/* ── Общее для блоков ниже каталога ── */
.sec { padding: 100px 0; }
.sec-head { padding: 0 8px; max-width: 760px; }
.sec-head .eyebrow, .eyebrow-x { font: 700 13px var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.sec-head h2, .h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin-top: 12px; }
.sec-head p { color: var(--muted); margin-top: 14px; max-width: 36em; }
.sec .btn-secondary { background: #fff; }
.ok-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ok-list li { display: flex; gap: 12px; }
.ok-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ── 3. Индивидуальный по цене типового ── */
.indiv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 44px; }
.steps { display: grid; gap: 12px; }
.step { background: #fff; border-radius: 26px; padding: 26px 28px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.step .n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 22px var(--f-head); background: var(--cream); color: var(--ink); }
.step:nth-child(2) .n { background: var(--amber); color: #fff; }
.step:nth-child(3) .n { background: var(--forest); color: var(--cream); }
.step h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { border-radius: 22px; padding: 22px 24px; }
.compare .them { background: #e9e7e3; color: #4b4a46; }
.compare .us { background: var(--forest); color: var(--cream); }
.compare b { display: block; font: 700 13px var(--f-head); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.compare p { font: 700 18px/1.3 var(--f-head); }
.plan-card { position: relative; background: #fff; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.plan-card .pics { position: relative; flex: 1; min-height: 360px; display: grid; grid-template-columns: 1fr 1fr; }
.plan-card .pics img { width: 100%; height: 100%; object-fit: cover; }
.plan-card .pics img.plan { object-fit: contain; background: #fff; padding: 22px; }
.plan-card .chips-x { position: absolute; left: 18px; top: 18px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 60%; }
.plan-card .chips-x span { padding: 7px 12px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 13px var(--f-head); }
.plan-card .chips-x span:nth-child(2) { background: var(--amber); }
.plan-card .foot { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-top: 1.5px solid rgba(26,26,26,.07); flex-wrap: wrap; }
.plan-card .zero { font: 800 40px/1 var(--f-head); letter-spacing: -.03em; color: var(--amber); }
.plan-card .foot p { color: var(--muted); font-size: 15px; line-height: 1.35; }
.plan-card .foot .btn { margin-left: auto; }

/* ── 7. Сроки (тёмный блок, как у Вжуха) ── */
.dark { background: var(--ink); color: #fff; }
.dark .sec-head p { color: rgba(255,255,255,.7); }
.time-top { display: flex; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
.time-big { margin-left: auto; display: flex; gap: 14px; }
.time-big div { background: rgba(255,255,255,.07); border-radius: 22px; padding: 18px 22px; min-width: 170px; }
.time-big b { display: block; font: 800 40px/1 var(--f-head); letter-spacing: -.03em; color: var(--cream); }
.time-big span { font-size: 14px; opacity: .7; }
.timeline-x { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.timeline-x::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: rgba(255,255,255,.14); }
.timeline-x li { list-style: none; position: relative; padding-top: 40px; }
.timeline-x li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.timeline-x li:first-child::before, .timeline-x li:last-child::before { background: var(--amber); box-shadow: none; }
.timeline-x b { font: 700 17px/1.25 var(--f-head); display: block; }
.timeline-x span { font-size: 14px; opacity: .65; display: block; margin-top: 6px; line-height: 1.4; }
.time-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 56px; }
.time-photo { position: relative; border-radius: 26px; overflow: hidden; min-height: 340px; }
.time-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.time-photo .cap { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(26,26,26,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.time-photo .cap b { font: 700 18px var(--f-head); display: block; }
.time-photo .cap span { font-size: 14px; opacity: .85; }
.live-card { border-radius: 26px; background: var(--forest); color: var(--cream); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.live-card .rec { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.18); font: 700 13px var(--f-head); }
.live-card .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6b4a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.live-card h3 { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.live-card p { opacity: .85; }

/* ── 8. Цены, комплектации, ипотека ── */
.kits-wrap { background: #fff; border-radius: 30px; margin-top: 44px; overflow: hidden; }
.kits-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kits-table th, .kits-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1.5px solid rgba(26,26,26,.06); }
.kits-table thead th { position: sticky; top: 0; background: #fff; z-index: 2; padding-top: 22px; padding-bottom: 18px; cursor: pointer; vertical-align: bottom; }
.kits-table thead th:first-child { cursor: default; }
.kits-table thead b { display: block; font: 800 19px var(--f-head); }
.kits-table thead span { display: block; font: 400 13px/1.35 var(--f-text); color: var(--muted); margin-top: 4px; max-width: 16em; }
.kits-table thead em { display: block; font: 800 17px var(--f-head); font-style: normal; margin-top: 10px; color: var(--ink); }
.kits-table thead small { display: block; font-size: 12px; color: var(--muted); }
.kits-table td:first-child, .kits-table th:first-child { width: 22%; font-weight: 700; color: var(--ink); padding-left: 28px; }
.kits-table td { color: #3c3b38; }
.kits-table .on { background: #fff8e8; }
.kits-table thead th.on { background: var(--cream); }
.kits-table tr.group td { background: var(--paper); font: 700 12.5px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.kits-table .yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; vertical-align: middle; }
.kits-table .no { color: #b9b6af; }
.kits-table tbody.extra { display: none; }
.kits-wrap.full tbody.extra { display: table-row-group; }
.kits-more { display: flex; justify-content: center; padding: 18px; }
.kits-scroll { overflow-x: auto; }

.mortgage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.mort-info { background: var(--forest); color: var(--cream); border-radius: 30px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.mort-info h3 { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.mort-info .ok-list li::before { background-color: var(--amber); }
.mort-info .banks-w { display: flex; align-items: center; gap: 26px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(253,235,196,.18); flex-wrap: wrap; }
.mort-info .banks-w img { height: 24px; filter: brightness(0) invert(1); }
.mort-info .banks-w .domrf { display: flex; align-items: center; gap: 7px; font: 800 16px var(--f-head); color: #fff; }
.mort-info .banks-w .domrf img { height: 22px; }

/* Формы */
.form-card { background: #fff; border-radius: 30px; padding: 40px; }
.form-card h3 { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.form-card > p { color: var(--muted); margin-top: 8px; }
.form { display: grid; gap: 12px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font: 700 13px var(--f-head); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(26,26,26,.1);
  background: var(--paper); font: 400 16px var(--f-text); color: var(--ink); outline: none; transition: border-color .2s, background .2s;
}
.field textarea { height: 90px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: #fff; }
.field.err input { border-color: #d9472b; }
.ways { display: flex; gap: 8px; flex-wrap: wrap; }
.ways label { cursor: pointer; position: relative; }
.ways input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ways span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--paper); font: 700 14px var(--f-head); box-shadow: inset 0 0 0 1.5px rgba(26,26,26,.08); }
.ways input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--amber); flex: none; }
.consent a { text-decoration: underline; }
.form .btn { width: 100%; margin-top: 6px; }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-done b { display: block; font: 800 26px var(--f-head); margin-top: 14px; }
.form-done p { color: var(--muted); margin-top: 6px; }
.form-done i { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); }
.sent .form { display: none; }
.sent .form-done { display: block; }

/* ── 9. Объекты + экскурсия ── */
.objects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.obj { background: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.obj-gal { position: relative; aspect-ratio: 4 / 3; background: #ddd; overflow: hidden; }
.obj-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.obj-gal img.on { opacity: 1; }
.obj-gal .nav { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.obj-gal .nav button { border: 0; background: none; cursor: pointer; }
.obj-gal .count { position: absolute; right: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(26,26,26,.55); color: #fff; font: 700 13px var(--f-head); }
.obj-gal .bars { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 5px; }
.obj-gal .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.obj-gal .bars i.on { background: #fff; }
.obj-body { padding: 26px 28px 30px; }
.obj-body .label { font: 700 13px var(--f-head); color: var(--forest); letter-spacing: .06em; text-transform: uppercase; }
.obj-body h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; }
.obj-body .ok-list { font-size: 15.5px; }
.tour { margin-top: 16px; background: var(--cream); border-radius: 30px; padding: 36px 40px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.tour h3 { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 14em; }
.tour p { color: #6a5a45; margin-top: 8px; max-width: 32em; }
.tour .btn { margin-left: auto; }

/* ── 11. Риелторам ── */
.partners { background: var(--amber); color: #fff; border-radius: 34px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.partners .eyebrow-x { color: var(--cream); }
.partners h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin-top: 12px; }
.partners p { opacity: .92; margin-top: 14px; max-width: 30em; }
.partners .big { font: 800 clamp(56px, 6.5vw, 96px)/.95 var(--f-head); letter-spacing: -.045em; }
.partners .big small { display: block; font: 600 16px var(--f-text); letter-spacing: 0; opacity: .9; margin-top: 10px; }
.partners .ok-list { margin-top: 26px; }
.partners .ok-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee814a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.partners .btn { margin-top: 30px; }
.partners .btn-light { background: #fff; color: var(--ink); }

/* ── 12. Вопросы ── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.faq-side { position: sticky; top: 24px; align-self: start; }
.faq-side .btn { margin-top: 26px; }
.faq details { background: #fff; border-radius: 22px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font: 700 18px/1.3 var(--f-head); display: flex; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font: 500 22px/1 var(--f-head); transition: transform .25s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--cream); }
.faq details p { padding: 0 26px 24px; color: #4b4a46; margin-top: -6px; }

/* ── 13. Финальный блок ── */
.final { background: var(--ink); color: #fff; border-radius: 34px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.final h2 { font-weight: 800; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.final h2 em { font-style: normal; color: var(--amber); }
.final .lead-p { color: rgba(255,255,255,.72); margin-top: 16px; max-width: 28em; }
.contacts { display: grid; gap: 12px; margin-top: 36px; }
.contact { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.06); transition: background .2s; }
.contact:hover { background: rgba(255,255,255,.1); }
.contact i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); }
.contact i svg { width: 22px; height: 22px; }
.contact b { display: block; font: 700 18px var(--f-head); }
.contact span { font-size: 14px; opacity: .65; }
.final .form-card { color: var(--ink); }

/* ── Подвал ── */
.foot { padding: 70px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 0 8px; }
.foot-top .logo img { height: 40px; width: auto; }
.foot-top .tagline { color: var(--muted); margin-top: 14px; max-width: 18em; }
.foot-top h4 { font: 700 13px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font: 600 15px var(--f-head); }
.foot-top ul a { opacity: .85; }
.foot-top ul a:hover { opacity: 1; color: var(--amber-x, #c9612c); }
.foot-top .tel { font: 800 20px var(--f-head); display: block; }
.foot-top .tel + span { font-size: 13px; color: var(--muted); display: block; margin-bottom: 12px; }
.socials { display: flex; gap: 8px; margin-top: 6px; }
.socials a { height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; background: #fff; font: 700 14px var(--f-head); box-shadow: inset 0 0 0 1.5px rgba(26,26,26,.07); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 40px; margin-top: 56px; padding: 24px 8px 0; border-top: 1.5px solid rgba(26,26,26,.08); font-size: 13px; color: var(--muted); }
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-bottom .dev { flex: none; white-space: nowrap; }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .indiv-grid, .mortgage, .partners, .final, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .timeline-x { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .timeline-x::before { display: none; }
  .time-cards { grid-template-columns: minmax(0, 1fr); }
  .time-big { margin-left: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sec { padding: 70px 0; }
  .step { padding: 20px; grid-template-columns: 44px 1fr; gap: 14px; }
  .step .n { width: 44px; height: 44px; font-size: 19px; }
  .compare { grid-template-columns: 1fr; }
  .plan-card .pics { grid-template-columns: 1fr; min-height: 0; }
  .plan-card .pics img { aspect-ratio: 4 / 3; }
  .plan-card .foot .btn { margin-left: 0; width: 100%; }
  .time-big { flex-direction: column; width: 100%; }
  .timeline-x { grid-template-columns: 1fr 1fr; }
  .kits-table { font-size: 13.5px; min-width: 760px; }
  .mort-info, .form-card { padding: 26px 22px; }
  .form .row { grid-template-columns: 1fr; }
  .objects-grid { grid-template-columns: 1fr; }
  .tour { padding: 28px 24px; }
  .tour .btn { margin-left: 0; width: 100%; }
  .partners, .final { padding: 30px 22px; border-radius: 26px; }
  .partners .btn { width: 100%; }
  .partners .big { font-size: 46px; white-space: nowrap; }
  .partners .big small { white-space: normal; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .foot-bottom .legal { flex-direction: column; }
}

/* Плашки над заголовком переносятся целиком */
.pills { flex-wrap: wrap; row-gap: 6px; }
.pills span { white-space: nowrap; }
@media (max-width: 640px) { .pills { border-radius: 16px; } }
