/* ============================================================
   ЛОФТ 4:36 — нормализация публичных страниц
   Загружается после style.css и quick-contact.css.
   Здесь только исправления и общие компоненты, без переписывания
   всей исторической темы.
   ============================================================ */

:root {
  /* Латунь для текста: контрастнее, чем основной акцент */
  --accent-ink: #7a5e33;
  --wa: #1f6b57;
  --wa-hover: #175446;
  --shell-pad: max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
  --bar-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: 0;
}

body.has-qc {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body.has-qc {
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  }
}

img {
  max-width: 100%;
}

/* ---------- Skip-link и фокус ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

#hero :focus-visible,
#nav:not(.scrolled) :focus-visible {
  outline-color: #fff;
}

/* ---------- Полноэкранный hero ---------- */
/* Раньше общее правило section { max-width: 1120px } сжимало hero
   в «открытку» с кремовыми полями. Теперь фон — на всю ширину,
   а контент выровнен по общей сетке сайта. */
#hero {
  max-width: none;
  margin: 0;
  padding-inline: var(--shell-pad);
  width: 100%;
}

#nav {
  padding-inline: var(--shell-pad);
}

#nav.scrolled {
  padding-inline: var(--shell-pad);
}

.hero-stats {
  right: var(--shell-pad);
}

.hero-bg picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-bg img {
  /* Убираем бесконечный Ken Burns: он грел GPU и отвлекал от CTA */
  animation: heroFade 1.2s ease-out both;
}

.btn-primary,
.pricing-card-cta,
.nav-cta,
.quick-contact-btn,
.product-btn {
  font-family: inherit;
}

@media (max-width: 600px) {
  #nav {
    padding-block: 1rem;
  }

  .nav-logo {
    font-size: 11.5px;
    letter-spacing: 0.22em;
  }

  .nav-cta {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 0.62rem 1rem;
  }

  .hero-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    font-size: 11px;
    line-height: 1.4;
  }

  .hero-trust .dot {
    display: none;
  }

  #hero {
    padding-bottom: calc(3.75rem + var(--bar-h));
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  #hero {
    padding-bottom: calc(4.5rem + var(--bar-h));
  }
}

/* ---------- Цена и три CTA в hero ---------- */
.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-price strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.hero-price .price-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
  max-width: 560px;
  margin-top: 1.35rem;
}

.hero-actions .btn-primary {
  grid-column: 1 / -1;
  min-height: 52px;
  padding: 1rem 1.4rem;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: normal;
  text-align: center;
}

.btn-wa,
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  border: 1px solid var(--wa);
}

.btn-wa:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
}

.btn-call {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 700px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    max-width: none;
  }

  .hero-actions .btn-primary {
    grid-column: auto;
    flex: 0 1 auto;
  }

  .hero-actions .btn-wa,
  .hero-actions .btn-call {
    flex: 0 0 auto;
  }
}

/* ---------- Контраст мелких латунных подписей ---------- */
.section-label,
.pricing-label,
.audience-tag {
  color: var(--accent-ink);
}

/* ---------- Быстрые контакты ---------- */
.quick-contact-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(22, 19, 14, 0.1);
  opacity: 1;
  pointer-events: auto;
  transform: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.qc-price {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-right: 0.35rem;
  line-height: 1.05;
  white-space: nowrap;
}

.qc-price span {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.qc-price strong {
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.qc-price small {
  font-size: 9px;
  color: var(--muted);
}

.quick-contact-bar .quick-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 46px;
  padding: 0 0.55rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

.quick-contact-bar .quick-contact-btn--primary {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.quick-contact-bar .quick-contact-btn:hover {
  border-color: var(--accent);
}

.quick-contact-bar .quick-contact-btn--primary:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
}

@media (min-width: 769px) {
  .quick-contact-bar {
    inset: auto 1.75rem 1.75rem auto;
    width: auto;
    grid-template-columns: auto auto auto;
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
  }

  .qc-price {
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0 0.7rem 0 0.5rem;
    border-right: 1px solid var(--line);
  }

  .qc-price span,
  .qc-price small {
    font-size: 10px;
  }

  .qc-price strong {
    font-size: 14px;
  }

  .quick-contact-bar .quick-contact-btn {
    min-height: 42px;
    padding: 0 0.9rem;
    border-radius: 999px;
  }
}

/* ---------- Мобильная вертикаль hero ---------- */
@media (max-width: 600px) {
  .hero-stats {
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stat-item .num {
    font-size: 1.45rem;
  }

  .stat-item .label {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero-content {
    max-width: none;
  }

  .trust-strip {
    gap: 0.6rem 1rem;
    font-size: 11.5px;
    line-height: 1.4;
    padding: 1.15rem var(--shell-pad);
  }
}

/* ---------- Reveal: контент не должен исчезать без JS ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Статья: картинка больше не растягивается на 750px ---------- */
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- FAQ на <details> ---------- */
details.faq-item {
  border-bottom: 1px solid var(--line);
}

details.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.3rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

details.faq-item > summary::-webkit-details-marker {
  display: none;
}

details.faq-item > summary::marker {
  content: "";
}

details.faq-item .faq-a {
  display: block;
  padding: 0 2rem 1.35rem 0;
}

details.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-toggle {
  transition: transform 0.2s ease;
}

/* ---------- Контакты в футере ---------- */
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
  font-size: 13px;
}

.footer-contacts a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-contacts a:hover {
  color: var(--accent-ink);
}

/* ---------- Политика конфиденциальности ---------- */
.privacy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem var(--pad-x) 5rem;
  color: var(--ink-soft);
}

.privacy-page h1 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.privacy-meta {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.privacy-page h2 {
  margin: 2.2rem 0 0.8rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.privacy-page p {
  margin-bottom: 1rem;
}

.privacy-page ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.privacy-page li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
}

.privacy-page li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
}

.privacy-back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--accent-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.operator-block {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.operator-block p {
  margin: 0;
}

@media (max-width: 600px) {
  .privacy-page {
    padding-top: 6rem;
  }

  .privacy-page h1 {
    font-size: 2rem;
  }
}

/* ---------- Мелкие системные исправления ---------- */
.blog-card-photo img,
.gallery-item img,
.product-photo {
  height: 100%;
}

@media (max-width: 768px) {
  #nav.scrolled {
    padding-inline: var(--shell-pad);
  }
}

/* ---------- Поздние секции CSS не должны ломать мобильную сетку ---------- */
@media (max-width: 900px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Читаемость hero и шапки ---------- */
#nav:not(.scrolled) {
  background: linear-gradient(180deg, rgba(18, 16, 9, 0.55) 0%, rgba(18, 16, 9, 0) 100%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 16, 9, 0.5) 0%, rgba(18, 16, 9, 0.18) 55%, rgba(18, 16, 9, 0) 100%),
    linear-gradient(to bottom,
      rgba(18, 16, 9, 0.34) 0%,
      rgba(18, 16, 9, 0.16) 26%,
      rgba(18, 16, 9, 0.28) 54%,
      rgba(18, 16, 9, 0.68) 80%,
      rgba(18, 16, 9, 0.88) 100%);
}

@media (max-width: 600px) {
  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .hero-trust {
    display: none;
  }

  .hero-price .price-note {
    display: none;
  }
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.article-cta-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.article-cta-wa:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

@media (min-width: 900px) {
  .hero-content {
    max-width: 820px;
  }
}

/* ---------- Контакты в шапке на планшете/десктопе ---------- */
.nav-contact {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 12.5px;
  font-weight: 500;
}

.nav-contact a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-contact a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

#nav.scrolled .nav-contact a {
  color: var(--ink);
}

#nav.scrolled .nav-contact a:hover {
  color: var(--accent-ink);
}

@media (min-width: 769px) {
  .nav-contact {
    display: flex;
  }

  .quick-contact-bar {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

.nav-logo {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

#nav.scrolled .nav-logo {
  text-shadow: none;
}

@media (min-width: 961px) {
  .nav-contact {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }

  #nav.scrolled .nav-contact {
    border-left-color: var(--line);
  }
}

/* ---------- Мелкие правки мобильных блоков ---------- */
.booking-cta-note a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contacts {
  justify-content: center;
}

@media (max-width: 600px) {
  .privacy-item {
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .privacy-marker {
    font-size: 1.3rem;
  }
}

/* ---------- Короткие экраны: hero не должен уходить под шапку ---------- */
@media (max-width: 768px) and (max-height: 720px) {
  .hero-stats {
    display: none;
  }

  .hero-eyebrow {
    margin-bottom: 0.9rem;
  }

  .hero-sub {
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-price {
    margin-bottom: 0.9rem;
  }

  .hero-actions {
    margin-top: 0.9rem;
    gap: 0.5rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-wa,
  .hero-actions .btn-call {
    min-height: 48px;
  }

  #hero {
    padding-bottom: calc(3.5rem + var(--bar-h));
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .quick-contact-bar {
    padding-inline: max(16px, calc((100vw - 560px) / 2));
  }
}

.nav-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 600px) {
  .nav-cta {
    min-height: 44px;
    padding: 0.7rem 1rem;
    display: inline-flex;
    align-items: center;
  }
}

/* ============================================================
   Страница аренды — правки 17.11.2026
   Только новые классы: на главной не используются.
   ============================================================ */

/* Аргумент «вместо 2–3 квартир» в блоке «Главное» */
.usp-why {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* Блок «Локация»: что даёт удалённость */
.loc-facts {
  list-style: none;
  margin: 1.25rem 0 0.9rem;
  padding: 0;
  max-width: 420px;
  display: grid;
  gap: 0.5rem;
}

.loc-facts li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.loc-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.loc-facts strong {
  color: var(--ink);
  font-weight: 600;
}

.loc-note {
  max-width: 420px;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* Блок бронирования: «даты заняты» + WhatsApp рядом с кнопкой */
.booking-hint--alt {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.booking-wa-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--line);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.booking-wa-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}


/* Похожие статьи под текстом */
.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.article-related > h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.article-related .blog-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.article-related .blog-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
