/* === SECTIONS.CSS === */
/* assets/css/sections.css */
/* НАЗНАЧЕНИЕ: Стили конкретных секций страницы */
/* СВЯЗИ: main.css (переменные), views/sections/*.php */
/* РАЗМЕР: ~460 строк */

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Затемнение поверх фото, чтобы текст читался */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,32,39,.94) 0%, rgba(11,32,39,.82) 38%, rgba(11,32,39,.45) 100%),
    radial-gradient(120% 90% at 80% 15%, var(--gold-glow), transparent 55%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 3;
}

.hero-top {
  position: absolute;
  top: 34px; left: 0; right: 0;
  z-index: 3;
}

.hero-top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-65);
}

.brand {
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 8px 0 26px;
  color: #fff;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero .lede {
  font-size: 19px;
  max-width: 620px;
  color: var(--ivory-80);
  font-weight: 300;
}

.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-meta div span {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.hero-meta div strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: #fff;
}

.hero-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   ЦЕНОВАЯ ШКАЛА
   ============================================ */

.price-scale {
  margin-top: 46px;
  border: 1px solid var(--line);
  background: rgba(198,164,91,.04);
  padding: 34px;
}

.scale-track {
  position: relative;
  height: 4px;
  background: var(--line-soft);
  margin: 46px 0 22px;
  border-radius: 2px;
}

.scale-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-radius: 2px;
}

.scale-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
}

.cream .scale-point { border-color: var(--ivory-2); }

.scale-point.done { background: var(--gold); }
.scale-point.future { background: var(--ivory); border-color: var(--line); }
.cream .scale-point.future { background: var(--ivory-2); }

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-55);
}

.scale-labels b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.scale-labels div:last-child { text-align: right; }
.scale-labels div:last-child b { color: var(--gold); }

/* ============================================
   ЦЕНЫ - КАРТОЧКИ ТИПОВ
   ============================================ */

.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.type-card {
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 34px;
  position: relative;
  transition: transform .3s var(--ease-out-quart), box-shadow .3s var(--ease-out-quart);
}

.cream .type-card { background: var(--ivory-2); }

.type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(11,32,39,.09);
}

.type-card .t-area {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.type-card .t-area small {
  font-size: 20px;
  color: var(--ink-55);
  font-weight: 500;
}

.type-card .t-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.type-card .t-note {
  font-size: 14px;
  color: var(--ink-55);
  min-height: 42px;
}

.type-card .t-price {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.type-card .t-price span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.type-card .t-price b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================
   УСЛОВИЯ ВХОДА
   ============================================ */

.entry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 26px;
}

.entry-item {
  background: var(--ivory);
  padding: 26px 30px;
}

.cream .entry-item { background: var(--ivory-2); }

.entry-item.primary { background: rgba(198,164,91,.09); }

.entry-item .e-pct {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.entry-item .e-label {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 10px 0 6px;
}

.entry-item .e-benefit {
  font-size: 15px;
  color: var(--ink);
}

/* ============================================
   ГАРАНТИИ (ключевая секция)
   ============================================ */

.guarantees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 48px;
  margin-top: 46px;
}

.guarantee {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.guarantee .g-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 10px;
}

.guarantee h3 {
  font-size: 23px;
  margin-bottom: 8px;
  color: #fff;
}

.guarantee p {
  font-size: 14.5px;
  color: var(--ivory-65);
}

/* ============================================
   ИНФРАСТРУКТУРА
   ============================================ */

.infra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

.infra-item {
  background: var(--ivory);
  padding: 30px 24px;
  text-align: center;
  transition: background .3s var(--ease-out-quart);
}

.cream .infra-item { background: var(--ivory-2); }

.infra-item:hover {
  background: color-mix(in oklab, var(--gold) 7%, var(--ivory));
}

.cream .infra-item:hover {
  background: color-mix(in oklab, var(--gold) 9%, var(--ivory-2));
}

.infra-item .i-icon {
  margin-bottom: 14px;
  line-height: 0;
  display: flex;
  justify-content: center;
}

/* Линейная иконка в золоте */
.i-icon .ic {
  width: 34px;
  height: 34px;
  color: var(--gold);
  transition: transform .35s var(--ease-out-quart), color .3s var(--ease-out-quart);
}

.infra-item:hover .ic {
  transform: translateY(-2px) scale(1.06);
  color: var(--gold-soft);
}

.infra-item .i-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}

.infra-item .i-note {
  font-size: 13px;
  color: var(--ink-55);
}

/* ============================================
   ГАЛЕРЕЯ ОТДЕЛКИ
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out-quart);
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Фото-вставка внутри секции (панели, аллея) */
.infra-photo {
  margin-top: 34px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.infra-photo img {
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out-quart);
}

.infra-photo:hover img { transform: scale(1.03); }

.infra-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 28px 20px;
  font-size: 14px;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(11,32,39,.88), transparent);
}

.gallery-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-55);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.dark .gallery-note { color: var(--ivory-65); }

/* Просмотр фото */
dialog.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

dialog.lightbox::backdrop {
  background: rgba(11,32,39,.94);
}

dialog.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

dialog.lightbox .lb-close {
  position: absolute;
  top: -38px; right: 0;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   ЭТАПЫ / СРОКИ
   ============================================ */

.steps { margin-top: 46px; }

.step {
  display: grid;
  grid-template-columns: 190px 1fr;
  position: relative;
  padding: 0 0 34px 34px;
  border-left: 2px solid var(--line);
  margin-left: -2px;
}

.step::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory);
}

.cream .step::before { border-color: var(--ivory-2); }
.dark  .step::before { border-color: var(--navy); }

.step:last-child { padding-bottom: 0; border-left-color: transparent; }

.step .when {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  padding-top: 2px;
}

.step .what h3 { font-size: 22px; margin-bottom: 5px; }
.step .what p  { font-size: 14px; color: var(--ink-70); }

.dark .step .what h3 { color: #fff; }
.dark .step .what p  { color: var(--ivory-65); }

/* ============================================
   FAQ
   ============================================ */

.faq { margin-top: 44px; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 22px 40px 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  position: relative;
  list-style: none;
  transition: color .2s var(--ease-out-quart);
}

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

.faq summary:hover { color: var(--gold); }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--gold);
  font-weight: 300;
  transition: transform .3s var(--ease-out-quart);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq .answer {
  padding: 0 40px 24px 0;
  font-size: 15px;
  color: var(--ink-70);
  max-width: 780px;
}

/* ============================================
   ФУТЕР
   ============================================ */

footer {
  background: #081014;
  color: color-mix(in oklab, var(--ivory) 42%, transparent);
  padding: 30px 0;
  font-size: 12px;
  letter-spacing: .05em;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
