/*
 * Стили публичного сайта домостроительного комбината.
 * Файл подключается напрямую в шаблонах resources/views/public, минуя Vite,
 * поэтому правится руками и не требует сборки.
 */
:root {
    --brand: #c45a27;
    --brand-dark: #9a4016;
    --brand-soft: #f4e6d8;
    --forest: #163028;
    --forest-deep: #10241e;
    --ink: #1c1915;
    --steel: #24332c;
    --steel-line: #31443b;
    --muted: #6f665c;
    --line: #e3d9c8;
    --soft: #f6f0e6;
    --cream: #fbf6ee;
    --gold: #c9a46a;
    --white: #fff;
    --shadow: 0 16px 40px rgba(28, 25, 21, 0.08);
    --shadow-soft: 0 8px 24px rgba(28, 25, 21, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --display: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sans: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .stage-title, .section-title-modern, .intake-title {
    font-family: var(--display);
    font-kerning: normal;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body.cart-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.public-site {
    background:
        radial-gradient(1200px 500px at 12% -10%, rgba(201, 164, 106, 0.16), transparent 55%),
        var(--cream);
}

/* Header ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: rgba(251, 246, 238, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(28, 25, 21, 0.08);
    background: rgba(251, 246, 238, 0.92);
    box-shadow: 0 10px 30px rgba(28, 25, 21, 0.06);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--forest);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.brand-text span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.site-nav a {
    padding: 26px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--forest);
    border-color: var(--gold);
}

/* Телефон, кнопка и корзина не переносятся на вторую строку: при нехватке
   места сжимается меню, а не они */
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 16px;
    white-space: nowrap;
}

.phone {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-button:hover {
    border-color: var(--forest);
    background: var(--soft);
}

.cart-icon {
    display: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cart-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    font-size: 20px;
    color: var(--ink);
}

/* Hero ------------------------------------------------------------------- */

.hero {
    padding: 46px 0 80px;
    background: linear-gradient(180deg, var(--soft) 0, #fff 78%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 760px;
    margin: 14px 0 22px;
    font-size: clamp(40px, 5.2vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero-copy > p,
.page-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: none;
}

.eyebrow-light {
    color: #c8cdd2;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button-primary {
    color: #fff;
    background: var(--forest);
    box-shadow: 0 10px 24px rgba(22, 48, 40, 0.18);
}

.button-primary:hover {
    background: var(--forest-deep);
    transform: translateY(-1px);
}

.button-light {
    background: #fff;
    border: 1px solid var(--line);
}

.button-light:hover {
    border-color: var(--forest);
    background: var(--soft);
}

.button-dark {
    color: #fff;
    background: var(--ink);
}

.button-white {
    color: var(--ink);
    background: #fff;
}

.button-wide {
    width: 100%;
}

.hero-lead {
    padding: 36px 0 60px;
    background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-badge-accent {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: #fff;
    background: var(--brand);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge-plant {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.hero-title-sub {
    display: block;
    color: var(--brand);
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 620px;
    margin: 16px 0 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.hero-usps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(15, 23, 32, 0.03);
}

.usp-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background: var(--brand-soft);
    border-radius: 6px;
    font-size: 16px;
    flex-shrink: 0;
}

.usp-item strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.usp-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.hero-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.hero-quick-links span {
    color: var(--muted);
    font-weight: 600;
}

.hero-quick-links a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-quick-links a:hover {
    color: var(--brand-dark);
}

/* Форма первого экрана ---------------------------------------------------- */

.hero-form-wrapper {
    position: relative;
}

.lead-form-card {
    padding: 32px;
    background: #fff;
    border: 2px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 32, 0.12);
}

.lead-form-head {
    margin-bottom: 22px;
}

.lead-form-tag {
    display: inline-block;
    padding: 4px 8px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lead-form-head h3 {
    margin: 8px 0 6px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.lead-form-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.form-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.chip-option {
    cursor: pointer;
}

.chip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    transition: all 0.15s ease;
}

.chip-option input:checked + span {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.form-select,
.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-select:focus,
.form-input:focus {
    border-color: var(--brand);
}

.form-input-phone {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.messenger-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.messenger-option {
    cursor: pointer;
}

.messenger-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.messenger-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.messenger-option input:checked + span {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: var(--brand);
}

.button-glow {
    box-shadow: 0 8px 24px rgba(210, 85, 26, 0.35);
    font-size: 15px;
    padding: 14px 20px;
    height: auto;
}

.button-glow:hover {
    box-shadow: 0 12px 30px rgba(210, 85, 26, 0.45);
    transform: translateY(-1px);
}

.form-privacy {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.auth-agree,
.constructor-auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-agree input,
.constructor-auth-agree input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--brand);
}

.auth-agree a,
.constructor-auth-agree a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Sections --------------------------------------------------------------- */

.section {
    padding: 72px 0;
}

.section-compact {
    padding: 56px 0;
}

.section-border {
    border-top: 1px solid var(--line);
}

.section-tint {
    background: var(--soft);
}

.section-divided {
    border-top: 1px solid var(--line);
}

.section-dark {
    color: #fff;
    background: var(--ink);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2,
.mortgage-banner h2,
.about-grid h2,
.calculator-form h2,
.plant-intro h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.text-link {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Производство ----------------------------------------------------------- */

.plant-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat-card strong {
    display: block;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-card b {
    display: block;
    margin: 10px 0 6px;
    font-size: 15px;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.plant-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
    margin-bottom: 40px;
}

.plant-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.section-dark .plant-intro p {
    color: #b6c0cb;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.workshop-card {
    position: relative;
    padding: 28px;
    background: var(--steel);
    border: 1px solid var(--steel-line);
    border-radius: 8px;
    background-image: var(--grid);
    background-size: 26px 26px;
}

.workshop-card b {
    display: block;
    color: #7c8899;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.workshop-card h3 {
    margin: 12px 0 12px;
    color: #fff;
    font-size: 20px;
}

.workshop-card p {
    margin: 0 0 18px;
    color: #b6c0cb;
    font-size: 14px;
    line-height: 1.65;
}

.workshop-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.workshop-card li {
    position: relative;
    padding-left: 18px;
    color: #d3dae2;
    font-size: 13px;
}

.workshop-card li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 2px;
    background: var(--brand);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quality-card {
    padding: 24px;
    background: #fff;
    border-top: 3px solid var(--brand);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.06);
}

.quality-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.quality-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.production-hero {
    background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.equipment-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 32, 0.04);
}

.equipment-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 8px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.equipment-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
}

.equipment-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.advantage-card {
    padding: 28px;
    background: var(--steel);
    border: 1px solid var(--steel-line);
    border-radius: 8px;
}

.advantage-icon {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.advantage-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

.advantage-card p {
    margin: 0;
    color: #b6c0cb;
    font-size: 13px;
    line-height: 1.65;
}

/* Стандарты предприятия --------------------------------------------------- */

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.standard-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 32, 0.04);
}

.standard-card:nth-child(4),
.standard-card:nth-child(5) {
    grid-column: span 1;
}

.standard-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.standard-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}

.standard-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.standards-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
}

.standards-footer-text strong {
    display: block;
    font-size: 16px;
    color: var(--ink);
}

.standards-footer-text span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

/* Интерактивный квиз-подборщик ------------------------------------------- */

.quiz-container {
    padding: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 32, 0.08);
}

.quiz-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.quiz-header h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.quiz-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.quiz-step-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.quiz-step-text b {
    color: var(--brand);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--soft);
    border-radius: 99px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--ink);
}

.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.quiz-card {
    cursor: pointer;
}

.quiz-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 18px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.quiz-card:hover .quiz-card-content {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 32, 0.06);
}

.quiz-card input:checked + .quiz-card-content {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 8px 24px rgba(210, 85, 26, 0.12);
}

.quiz-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.quiz-card-content strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.quiz-card-content span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.quiz-finish-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.quiz-finish-info h3 {
    margin: 10px 0 8px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.quiz-finish-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.quiz-finish-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: var(--soft);
    border-radius: 10px;
}

/* Страница проекта ------------------------------------------------------- */

.project-hero {
    padding: 26px 0 70px;
    background: linear-gradient(180deg, var(--soft) 0, #fff 70%);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.breadcrumbs b {
    color: var(--ink);
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 44px;
}

.gallery-main {
    position: relative;
    display: block;
    margin: 0;
    height: 480px;
    overflow: hidden;
    background: var(--soft);
    border-radius: 10px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main figcaption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(20, 24, 28, 0.86);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: 0 0 96px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    background: var(--soft);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--brand);
}

.project-summary h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.022em;
}

.spec-list {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
}

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.spec-list dt {
    color: var(--muted);
}

.spec-list dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.price-block {
    display: flex;
    flex-direction: column;
    margin-top: 26px;
    padding: 22px 24px;
    background: var(--ink);
    border-radius: 8px;
    border-left: 3px solid var(--brand);
}

.price-block span {
    color: #a4b0bd;
    font-size: 12px;
}

.price-block strong {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 34px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.price-block small {
    color: #8e9aa7;
    font-size: 12px;
}

.package-cards-note,
.package-cards-from {
    margin: -18px 0 28px;
    color: var(--muted);
    font-size: 15px;
}

.package-cards-from {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

.package-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.package-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.package-card.is-default {
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.package-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.package-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.package-card-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.package-card-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    color: #fff;
    background: var(--brand);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.package-card > strong {
    display: block;
    margin: 18px 0 16px;
    font-size: 28px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.package-card ul {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.package-card li span {
    color: var(--muted);
}

.package-card li b {
    text-align: right;
    font-weight: 650;
}

.package-card li.is-missing b {
    color: var(--muted);
    font-weight: 500;
}

.package-card > small {
    display: block;
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
}

.project-summary .button-row {
    margin-top: 22px;
}

/* Три действия в карточке проекта: одинаковая высота, без «осиротевшей»
   телефонной кнопки. На узком экране ипотека сверху на всю ширину. */
.project-summary .project-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.project-summary .project-actions > .project-favorite,
.project-summary .project-actions > .button {
    width: 100%;
    min-width: 0;
}

.project-summary .project-actions .project-favorite-button {
    display: flex;
}

.project-summary .project-actions a.project-favorite-button,
.project-summary .project-actions .project-favorite-button button,
.project-summary .project-actions > .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.project-summary .project-actions > .button-light {
    grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .project-summary .project-actions {
        grid-template-columns: 1fr;
    }

    .project-summary .project-actions > .button-primary {
        order: -1;
    }

    .project-summary .project-actions > .button-light {
        grid-column: auto;
    }
}

.project-customize {
    padding: 8px 0 56px;
}

.project-customize-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.project-customize h2 {
    max-width: 36rem;
    margin: 8px 0 10px;
    font-family: var(--display);
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.project-customize p {
    max-width: 40rem;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.project-customize-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.rich-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Расчёт платежа по проекту --------------------------------------------- */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.payment-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.payment-card b {
    font-size: 15px;
}

.payment-rate {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    color: #fff;
    background: var(--brand);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.payment-card > strong {
    display: block;
    margin: 16px 0 14px;
    font-size: 32px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.payment-card > strong i {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.payment-card dl {
    margin: 0;
}

.payment-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.payment-card dt {
    color: var(--muted);
}

.payment-card dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.payment-note {
    display: block;
    margin-top: 12px;
    color: var(--brand-dark);
    font-size: 11px;
    line-height: 1.5;
}

.disclaimer {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.project-gallery .render-disclaimer,
.catalog-summary + .render-disclaimer,
.cabinet-card .render-disclaimer {
    margin: 12px 0 0;
}

.selected-project {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    margin-bottom: 34px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.selected-image {
    display: block;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
    background: var(--soft);
    border-radius: 8px;
}

.selected-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-body .spec-list {
    margin-top: 0;
}

.selected-description {
    margin: 18px 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.selected-subtitle {
    margin: 0 0 18px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

/* Карточки каталога ------------------------------------------------------ */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card,
.product-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.project-favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.project-favorite-icon button,
.project-favorite-icon a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(22, 48, 40, 0.12);
    cursor: pointer;
}

.project-favorite-icon svg,
.project-favorite-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.project-favorite-icon.is-on button,
.project-favorite-icon.is-on a,
.project-favorite-button.is-on button {
    color: var(--brand);
}

.project-favorite-icon.is-on svg,
.project-favorite-button.is-on svg {
    fill: currentColor;
}

.project-favorite-button {
    display: inline-flex;
}

a.project-favorite-button,
.project-favorite-button button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

a.project-favorite-button:hover,
.project-favorite-button button:hover {
    border-color: var(--forest);
    background: var(--soft);
}

a.project-favorite-button.is-on,
.project-favorite-button.is-on button {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.project-card:hover,
.product-card:hover {
    border-color: var(--ink);
    box-shadow: none;
}

.project-image,
.product-image {
    position: relative;
    /* Обложка проекта — ссылка, поэтому блочность задаём явно. */
    display: block;
    height: 256px;
    overflow: hidden;
    background: var(--soft);
}

.project-image img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #8b95a2;
    background: repeating-linear-gradient(45deg, #eceff3 0 10px, #f4f6f8 10px 20px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-badges-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: calc(100% - 24px);
    pointer-events: none;
}

.project-image > .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.project-image > .card-badge-render {
    top: auto;
    bottom: 10px;
}

.card-badge {
    position: static;
    display: inline-block;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 4px 8px;
    color: #fff;
    background: rgba(17, 20, 24, 0.82);
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-badge-hot {
    display: inline-block;
    padding: 5px 9px;
    color: #fff;
    background: var(--brand);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-body,
.product-body {
    padding: 22px;
}

.project-body h3,
.product-body h3 {
    margin: 0 0 12px;
    font-size: 19px;
}

.project-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.project-title-row h3 {
    margin: 0;
}

.specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.specs span {
    padding: 6px 9px;
    color: var(--muted);
    background: var(--soft);
    border-radius: 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.card-pricing-block {
    margin-top: 18px;
    padding: 14px;
    background: var(--soft);
    border-radius: 6px;
}

.card-payment-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-amount {
    color: var(--brand);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.payment-amount i {
    font-size: 13px;
    font-style: normal;
    color: var(--muted);
    font-weight: 600;
}

.card-full-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
    font-size: 11px;
    color: var(--muted);
}

.card-full-price b {
    color: var(--ink);
    font-size: 12px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.card-actions .card-btn-primary {
    flex: 1 1 40%;
}

.card-actions .card-btn-secondary {
    flex: 1 1 auto;
}

.card-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #fff;
    background: var(--forest);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease;
}

.card-btn-primary:hover {
    background: var(--brand);
}

.card-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.card-btn-secondary:hover {
    background: var(--brand);
    color: #fff;
}

.card-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.card-bottom > div {
    display: flex;
    flex-direction: column;
}

.card-bottom small,
.unit,
.sku {
    color: var(--muted);
    font-size: 11px;
}

.sku {
    display: block;
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}

.card-bottom strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.round-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    font-size: 18px;
}

.round-link:hover {
    background: var(--brand);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-image {
    height: 206px;
}

.product-body {
    padding: 18px;
}

.product-body h3 {
    min-height: 46px;
    font-size: 16px;
}

.add-button {
    padding: 11px 14px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.add-button:hover {
    background: var(--brand-dark);
}

/* Ипотека --------------------------------------------------------------- */

.mortgage-banner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    align-items: stretch;
    gap: 20px;
}

.mortgage-banner > div:first-child {
    padding-right: 40px;
}

.mortgage-banner p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.rate-card {
    display: flex;
    min-height: 240px;
    padding: 24px;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
}

.rate-card:nth-child(3) {
    background: var(--ink);
}

.rate-card span {
    font-size: 13px;
    font-weight: 700;
}

.rate-card strong {
    font-size: 62px;
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.rate-card small {
    opacity: 0.78;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.featured-arctic {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.featured-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.featured-head h3 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.featured-head span {
    color: var(--muted);
    font-size: 13px;
}

.featured-arctic .featured-head span {
    color: #a4b0bd;
}

.featured-head strong {
    color: var(--brand);
    font-size: 46px;
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.featured-arctic .featured-head strong {
    color: #f0a173;
}

.featured-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.featured-arctic > p {
    color: #c3ccd6;
}

.featured-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0;
}

.featured-facts div {
    padding: 14px;
    background: var(--soft);
    border-radius: 6px;
}

.featured-arctic .featured-facts div {
    background: var(--steel);
}

.featured-facts dt {
    color: var(--muted);
    font-size: 11px;
}

.featured-arctic .featured-facts dt {
    color: #9aa6b3;
}

.featured-facts dd {
    margin: 5px 0 0;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.featured-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.featured-lists strong,
.featured-subtitle {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.list-check,
.list-dot {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.featured-arctic .list-check,
.featured-arctic .list-dot {
    color: #c3ccd6;
}

.list-check li,
.list-dot li {
    position: relative;
    padding-left: 22px;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 800;
}

.featured-arctic .list-check li::before {
    color: #f0a173;
}

.list-dot li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    width: 9px;
    height: 2px;
    background: var(--brand);
}

.featured-arctic .list-dot li::before {
    background: #f0a173;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.program-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.program-card > span {
    color: var(--muted);
    font-size: 11px;
}

.program-card h3 {
    margin: 8px 0;
}

.program-card > strong {
    color: var(--brand);
    font-size: 50px;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.program-meta {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

.program-meta span {
    padding: 6px 9px;
    background: var(--soft);
    border-radius: 4px;
    font-size: 11px;
}

.program-card ul {
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.region-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.region-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 6px 9px;
    color: var(--ink);
    background: var(--soft);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.tag-accent {
    color: #fff;
    background: var(--brand);
}

.region-card p {
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.region-card small {
    color: #8b95a2;
    font-size: 11px;
    line-height: 1.5;
}

.calculator-grid,
.mortgage-calc-board {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.mortgage-calc {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.mortgage-calc-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mortgage-calc-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 160px;
    padding: 12px 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.mortgage-calc-chip span {
    color: var(--muted);
    font-size: 13px;
}

.mortgage-calc-chip strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.mortgage-calc-chip:hover,
.mortgage-calc-offer:hover {
    border-color: var(--brand);
}

.mortgage-calc-chip[aria-selected="true"] {
    color: var(--forest);
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.mortgage-calc-field {
    display: block;
    margin-top: 22px;
}

.mortgage-calc-field:first-child {
    margin-top: 0;
}

.mortgage-calc-field-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.mortgage-calc-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.mortgage-calc-input input {
    flex: 1;
    width: 100%;
    height: 52px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.mortgage-calc-input input:focus {
    outline: none;
}

.mortgage-calc-input input[type="number"]::-webkit-inner-spin-button,
.mortgage-calc-input input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
}

.mortgage-calc-input span {
    color: var(--muted);
    font-size: 14px;
}

.mortgage-calc-field input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

.mortgage-calc-conditions {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.mortgage-calc-conditions strong {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.mortgage-calc-conditions ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.mortgage-calc-form,
.mortgage-calc-result {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.mortgage-calc-result {
    display: flex;
    flex-direction: column;
    color: #fff;
    background: var(--ink);
    border: 0;
}

.mortgage-calc-result > span,
.mortgage-calc-rate {
    color: #a4b0bd;
    font-size: 13px;
}

.mortgage-calc-result > strong {
    margin: 6px 0 8px;
    font-size: clamp(36px, 4vw, 50px);
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.mortgage-calc-rate {
    margin: 0 0 18px;
}

.mortgage-calc-result > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--steel-line);
    font-size: 13px;
}

.mortgage-calc-result > div b {
    font-variant-numeric: tabular-nums;
}

.mortgage-calc-result p[data-limit-note] {
    min-height: 42px;
    color: #f0a173;
    font-size: 12px;
}

.mortgage-calc-result .button {
    margin-top: auto;
}

.mortgage-calc-result small {
    margin-top: 12px;
    color: #8e9aa7;
    text-align: center;
}

.mortgage-calc-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.mortgage-calc-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.mortgage-calc-offer span {
    color: var(--muted);
    font-size: 13px;
}

.mortgage-calc-offer strong {
    font-size: 20px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.mortgage-calc-offer small {
    color: var(--muted);
}

.mortgage-calc-offer[aria-pressed="true"] {
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.calculator-form,
.calculator-result {
    padding: 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.calculator-form label {
    display: block;
    margin-top: 26px;
}

.calculator-form label > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.calculator-form input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

.calculator-form select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    color: #fff;
    background: var(--ink);
    border: 0;
}

.calculator-result > span {
    color: #a4b0bd;
    font-size: 13px;
}

.calculator-result > strong {
    margin: 8px 0 28px;
    font-size: 50px;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.calculator-result > div {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--steel-line);
    font-size: 13px;
}

.calculator-result p {
    min-height: 42px;
    color: #f0a173;
    font-size: 12px;
}

.calculator-result small {
    margin-top: 12px;
    color: #8e9aa7;
    text-align: center;
}

/* Процесс, документы, FAQ ------------------------------------------------ */

.two-column {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
    gap: 56px;
}

.two-column h2 {
    margin: 10px 0 30px;
    font-size: clamp(30px, 3.8vw, 44px);
    letter-spacing: -0.022em;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 0 0 26px 62px;
    counter-increment: step;
}

.steps li::before {
    content: "0" counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    left: 21px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.steps strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.steps span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.section-dark .steps li::before {
    color: var(--ink);
    background: #f0a173;
}

.section-dark .steps li:not(:last-child)::after {
    background: var(--steel-line);
}

.section-dark .steps span {
    color: #b6c0cb;
}

.documents-card {
    padding: 34px;
    background: var(--soft);
    border-radius: 10px;
    border-top: 3px solid var(--brand);
}

.documents-card h3 {
    margin: 10px 0 20px;
    font-size: 22px;
}

.documents-card .button {
    margin-top: 26px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.faq-list summary {
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

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

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Служебные блоки -------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-grid p {
    margin: 0;
    color: #b6c0cb;
    font-size: 17px;
    line-height: 1.8;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.about-points span {
    padding: 13px;
    border: 1px solid var(--steel-line);
    border-left: 3px solid var(--brand);
    border-radius: 4px;
    font-size: 13px;
}

.page-hero {
    padding: 48px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 720px;
    margin: 10px 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.page-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.mortgage-hero,
.shop-hero,
.production-hero {
    background: #fff;
}

.catalog-summary {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-summary strong {
    color: var(--ink);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 40px;
}

.pagination a {
    color: var(--brand);
    font-weight: 700;
}

.pagination span {
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 68px 30px;
    text-align: center;
    background: var(--soft);
    border-radius: 10px;
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.empty-state p {
    color: var(--muted);
}

.cta-section {
    padding: 48px 0;
    color: #fff;
    background: var(--ink);
    border-top: 1px solid var(--steel-line);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-inner h2 {
    max-width: 700px;
    margin: 10px 0 0;
    font-size: 34px;
    letter-spacing: -0.02em;
}

.catalog-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    align-items: end;
    gap: 14px;
    margin-bottom: 28px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filter-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    outline: none;
}

.filter-field select:focus {
    border-color: var(--ink);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.filter-actions .button {
    min-height: 42px;
}

.filter-range {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 2px 2px 0;
}

.filter-range-head,
.filter-range-ends {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.filter-range-label,
.filter-chips legend {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-range-head strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.filter-range-ends {
    color: var(--muted);
    font-size: 12px;
}

.filter-range-control {
    position: relative;
    height: 28px;
}

.filter-range-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    pointer-events: none;
}

.filter-range-control input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.filter-range-control input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.filter-range-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 48, 40, 0.16);
    cursor: pointer;
}

.filter-range-control input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.filter-range-control input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 48, 40, 0.16);
    cursor: pointer;
}

.filter-chips {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.filter-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-chip {
    display: block;
    cursor: pointer;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.filter-chip input:checked + span {
    border-color: var(--forest);
    background: var(--forest);
    color: #fff;
}

.filter-chip input:focus-visible + span {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

.reset-link {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
    padding: 62px 0 24px;
    color: #cbd3dc;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.brand-footer {
    color: #fff;
}

.brand-footer .brand-mark {
    background: var(--brand);
}

.brand-footer .brand-text span {
    color: #8e9aa7;
}

.footer-grid p {
    max-width: 380px;
    color: #8e9aa7;
    line-height: 1.7;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid strong {
    margin-bottom: 6px;
    color: #fff;
}

.footer-grid a,
.footer-grid span,
.footer-grid address {
    font-size: 13px;
    font-style: normal;
}

.footer-bottom {
    display: flex;
    gap: 24px;
    margin-top: 44px;
    padding-top: 20px;
    color: #78848f;
    border-top: 1px solid var(--steel-line);
    font-size: 11px;
}

.footer-bottom a:first-of-type {
    margin-left: auto;
}

.notice {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
}

.notice-success {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.notice-error {
    color: #952f2f;
    background: #fdeaea;
}

/* Корзина ---------------------------------------------------------------- */

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 32, 0.45);
}

.cart-drawer {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100dvh;
    padding: 28px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 32, 0.16);
    transform: translateX(105%);
    transition: transform 0.25s;
    overflow-y: auto;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.cart-head h2 {
    margin: 8px 0 20px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.close-button {
    border: 0;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
}

.cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line strong {
    font-size: 13px;
}

.cart-line span {
    color: var(--muted);
    font-size: 11px;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
}

.cart-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.cart-controls .remove {
    width: auto;
    margin-left: auto;
    color: #a43e3e;
    border: 0;
}

.cart-empty {
    padding: 50px 15px;
    color: var(--muted);
    text-align: center;
}

.checkout {
    margin-top: 22px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 19px;
}

.checkout-auth {
    display: grid;
    gap: 14px;
}

.checkout-auth [hidden] {
    display: none !important;
}

.checkout-auth h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.checkout-auth-hint {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.checkout-auth-legal {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.checkout-auth-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-auth-again {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.checkout-auth-again .text-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--forest);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-account {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.checkout-code-input,
.checkout-code input {
    letter-spacing: 0.28em;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.checkout [data-shop-error] {
    margin: 0;
}

/* Адаптив --------------------------------------------------------------- */

/* Ноутбуки и экраны с масштабированием (~1024 px): меню из пяти разделов,
   телефон, кнопка и корзина в одну строку не влезают с подписью бренда
   и словом «Корзина» — оставляем от корзины значок со счётчиком */
@media (max-width: 1180px) {
    .header-inner {
        gap: 16px;
    }

    .brand-text span {
        display: none;
    }

    .site-nav {
        gap: 16px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-cta {
        padding: 0 14px;
    }

    .cart-button {
        padding: 0 10px;
    }

    .cart-icon {
        display: block;
    }

    .cart-label {
        display: none;
    }

    .package-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
    }

    .menu-button {
        display: block;
    }

    .header-actions .phone {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual img {
        height: 430px;
    }

    .plant-stats,
    .quality-grid,
    .equipment-grid,
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-hero-grid,
    .selected-project {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 400px;
    }

    .payment-grid,
    .package-cards {
        grid-template-columns: 1fr;
    }

    .plant-intro,
    .featured-grid,
    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mortgage-banner {
        grid-template-columns: 1fr 1fr;
    }

    .mortgage-banner > div:first-child {
        grid-column: 1 / -1;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid,
    .mortgage-calc-board,
    .two-column,
    .quiz-finish-grid {
        grid-template-columns: 1fr;
    }

    .mortgage-calc-compare {
        grid-template-columns: 1fr;
    }

    .quiz-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plant-intro,
    .two-column {
        gap: 40px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        height: 66px;
    }

    .brand-text span {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .cart-button {
        padding: 0 9px;
    }

    .hero {
        padding-top: 26px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-copy > p,
    .page-hero p {
        font-size: 15px;
    }

    .hero-facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lead-form-card {
        padding: 22px 18px;
    }

    .form-chips {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-quick-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-visual img {
        height: 340px;
    }

    .hero-card {
        right: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .plant-stats,
    .quality-grid,
    .equipment-grid,
    .advantage-grid,
    .region-grid,
    .project-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 240px;
    }

    .product-image {
        height: 250px;
    }

    .mortgage-banner {
        grid-template-columns: 1fr;
    }

    .mortgage-banner > div:first-child {
        padding-right: 0;
    }

    .rate-card {
        min-height: 176px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-hero {
        padding: 52px 0;
    }

    .cta-inner,
    .project-customize-card {
        align-items: start;
        flex-direction: column;
    }

    .project-customize-card {
        padding: 22px 20px;
    }

    .project-customize-button {
        width: 100%;
    }

    .featured-card,
    .documents-card,
    .workshop-card,
    .calculator-form,
    .calculator-result,
    .quiz-container {
        padding: 22px 18px;
    }

    .quiz-cards-grid {
        grid-template-columns: 1fr;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-progress-wrap {
        width: 100%;
        align-items: flex-start;
    }

    .featured-head strong,
    .calculator-result > strong {
        font-size: 36px;
    }

    .featured-facts,
    .featured-lists {
        grid-template-columns: 1fr;
    }

    .steps li {
        padding-left: 52px;
    }

    .faq-list details {
        padding: 18px 20px;
    }

    .gallery-main {
        height: 280px;
    }

    .project-summary h1 {
        font-size: 30px;
    }

    .price-block strong {
        font-size: 28px;
    }

    .payment-card,
    .selected-project {
        padding: 20px;
    }

    .payment-card > strong {
        font-size: 26px;
    }

    .filter-actions .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom a:first-of-type {
        margin-left: 0;
    }

    .standards-grid {
        grid-template-columns: 1fr;
    }

    .standards-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .standards-footer .button {
        width: 100%;
    }

    .cart-drawer {
        padding: 20px;
    }
}


/* =========================================================================
 * Публичный сайт: тёплый архитектурный стиль комбината
 * ========================================================================= */

.index-num {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-bordered {
    border-top: 1px solid transparent;
}

.section-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(246, 240, 230, 0.55)),
        var(--soft);
}

.section-head-modern {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-title-modern {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.12;
}

.clean-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    color: var(--forest);
    border-bottom: 1px solid rgba(22, 48, 40, 0.28);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, gap 0.18s ease;
}

.clean-link:hover {
    gap: 10px;
    color: var(--brand);
    border-color: var(--brand);
}

/* Приветственный экран --------------------------------------------------- */

.stage {
    position: relative;
    overflow: hidden;
    color: #f8f1e6;
    background:
        radial-gradient(ellipse 70% 80% at 88% 12%, rgba(196, 90, 39, 0.28), transparent 52%),
        radial-gradient(ellipse 50% 45% at 8% 88%, rgba(201, 164, 106, 0.16), transparent 50%),
        linear-gradient(155deg, #10241e 0%, #163028 42%, #1a2a22 100%);
}

.stage-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 12.5% 100%,
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05), transparent 28%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.stage-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 64px;
    align-items: center;
    padding: 88px 0 80px;
}

.stage-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stage-kicker b {
    padding: 6px 11px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(196, 90, 39, 0.28);
}

.stage-kicker span {
    color: rgba(248, 241, 230, 0.62);
}

.stage-title {
    margin: 0 0 20px;
    max-width: 680px;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.stage-lead {
    margin: 0 0 32px;
    max-width: 520px;
    color: rgba(248, 241, 230, 0.74);
    font-size: 17px;
    line-height: 1.7;
}

.stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stage-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stage-btn-main {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 28px rgba(196, 90, 39, 0.32);
}

.stage-btn-main:hover {
    color: #fff;
    background: #d66a32;
    transform: translateY(-2px);
}

.stage-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.stage-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
}

.stage-btn i {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.62);
}

.stage-marks {
    display: grid;
    gap: 10px;
    max-width: 540px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.stage-marks li {
    position: relative;
    padding-left: 26px;
    color: rgba(248, 241, 230, 0.74);
    font-size: 14px;
    line-height: 1.5;
}

.stage-marks li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px transparent;
    background: radial-gradient(circle, var(--gold) 35%, transparent 38%);
}

.stage-visual {
    position: relative;
}

.stage-shot {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #1a2a22;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(8, 16, 13, 0.38);
}

.stage-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.stage-shot:hover img {
    transform: scale(1.045);
}

.stage-shot-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    color: var(--ink);
    background: rgba(251, 246, 238, 0.92);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.stage-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: -28px;
    margin-inline: 18px;
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    color: var(--ink);
    background: rgba(251, 246, 238, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(16, 36, 30, 0.16);
    backdrop-filter: blur(16px);
}

.stage-price-name {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
}

.stage-price-name:hover {
    color: var(--brand);
}

.stage-price-specs {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.stage-price-figure {
    text-align: right;
}

.stage-price-figure span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stage-price-figure strong {
    display: block;
    margin-top: 4px;
    color: var(--forest);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stage-price-figure i {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.stage-board {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(8, 16, 13, 0.22);
    backdrop-filter: blur(12px);
}

.stage-board-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-board-row:last-child {
    border-bottom: 0;
}

.stage-board-row strong {
    font-family: var(--display);
    font-size: 46px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.stage-board-row span {
    color: rgba(248, 241, 230, 0.55);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}

.stage-board-row span b {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.stage-board-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    color: rgba(248, 241, 230, 0.62);
    background: rgba(0, 0, 0, 0.16);
    font-size: 13px;
}

.stage-board-foot a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.stage-board-foot a:hover {
    color: var(--gold);
}

/* Полоса производственных показателей ------------------------------------ */

.capabilities {
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 0 8px;
}

.capability {
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid rgba(227, 217, 200, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.capability:first-child,
.capability:last-child {
    padding-left: 22px;
    padding-right: 22px;
    border-right: 1px solid rgba(227, 217, 200, 0.9);
}

.capability-mark {
    display: block;
    width: 28px;
    height: 4px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    border-radius: 999px;
}

.capability strong {
    display: block;
    color: var(--forest);
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.capability b {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 800;
}

.capability p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

/* 02: Технологическая таблица -------------------------------------------- */

.tech-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: 0;
}

.tech-table-row {
    display: grid;
    grid-template-columns: 52px 150px 240px 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tech-table-row:hover {
    transform: translateY(-2px);
    border-color: #d8c7ad;
    box-shadow: var(--shadow);
}

.tech-table-row:last-child {
    border-bottom: 1px solid var(--line);
}

.tech-col-num {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.tech-tag {
    display: inline-block;
    padding: 6px 10px;
    color: var(--forest);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.tech-col-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.tech-col-desc p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* 03: Ипотечная таблица -------------------------------------------------- */

.mortgage-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    background: transparent;
    border: 0;
}

.mortgage-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.mortgage-row-accent {
    color: #f8f1e6;
    background:
        radial-gradient(circle at 90% 10%, rgba(201, 164, 106, 0.22), transparent 40%),
        linear-gradient(160deg, #163028, #1d3b31);
    border-color: transparent;
}

.mortgage-row:last-child {
    border-bottom: 1px solid var(--line);
}

.mortgage-row-accent:last-child {
    border-bottom-color: transparent;
}

.mortgage-col-prog strong {
    display: block;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}

.mortgage-row-accent .mortgage-col-prog strong {
    color: #fff;
}

.mortgage-col-prog span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.mortgage-row-accent .mortgage-col-prog span {
    color: rgba(248, 241, 230, 0.7);
}

.mortgage-col-rate strong {
    color: var(--brand);
    font-family: var(--display);
    font-size: 56px;
    font-weight: 600;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
}

.mortgage-row-accent .mortgage-col-rate strong {
    color: var(--gold);
}

.mortgage-col-rate span,
.mortgage-col-limit span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mortgage-row-accent .mortgage-col-rate span,
.mortgage-row-accent .mortgage-col-limit span {
    color: rgba(248, 241, 230, 0.58);
}

.mortgage-col-limit strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.mortgage-row-accent .mortgage-col-limit strong {
    color: #fff;
}

.mortgage-col-action {
    text-align: left;
}

.mortgage-col-action .button {
    width: auto;
    min-width: 180px;
}

.mortgage-row-accent .button-light {
    color: var(--forest);
    background: #fff;
    border-color: transparent;
}

/* 05: Запрос и консультация ---------------------------------------------- */

.intake-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: stretch;
    padding: 12px;
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 164, 106, 0.14), transparent 36%),
        #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.intake-info {
    padding: 28px 20px 28px 28px;
}

.intake-title {
    margin: 6px 0 14px;
    color: var(--ink);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.intake-desc {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.intake-direct {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 18px;
}

.intake-direct span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intake-direct a {
    color: var(--forest);
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.intake-direct a:hover {
    color: var(--brand);
}

.intake-form {
    padding: 32px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.intake-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.intake-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.intake-field-full {
    grid-column: 1 / -1;
}

.intake-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.intake-field input,
.intake-field select {
    height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.intake-field input:focus,
.intake-field select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(22, 48, 40, 0.08);
}

.intake-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.intake-disclaimer {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.intake-disclaimer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.empty-state-modern {
    padding: 56px 28px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 24px;
}

.empty-state-modern h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.empty-state-modern p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
}

/* Адаптивность главной --------------------------------------------------- */

@media (max-width: 960px) {
    .stage-inner,
    .intake-block {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stage-inner {
        padding: 56px 0 48px;
    }

    .capabilities {
        margin-top: 0;
        padding: 8px 0 0;
    }

    .capabilities-grid,
    .mortgage-table {
        grid-template-columns: 1fr;
    }

    .capability {
        padding: 22px;
    }

    .tech-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mortgage-col-action {
        text-align: left;
    }

    .intake-info,
    .intake-form {
        padding: 22px;
    }

    .intake-grid {
        grid-template-columns: 1fr;
    }

    .intake-submit-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .stage-price {
        flex-direction: column;
        align-items: flex-start;
        margin-inline: 10px;
        gap: 12px;
    }

    .stage-price-figure {
        text-align: left;
    }

    .stage-btn {
        width: 100%;
        justify-content: center;
    }

    .section-head-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-shot,
    .stage-board,
    .intake-block {
        border-radius: 22px;
    }
}

/* Единая редакционная подача публичного сайта --------------------------- */

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    color: #fff;
    background: var(--forest);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(22, 48, 40, 0.16);
}

.header-cta:hover {
    background: var(--brand);
}

.page-hero,
.project-hero {
    position: relative;
    background:
        radial-gradient(circle at 88% 0%, rgba(201, 164, 106, 0.18), transparent 32%),
        linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.page-hero {
    padding: 72px 0 60px;
}

.page-hero h1,
.project-summary h1,
.hero-copy h1 {
    font-family: var(--display);
    max-width: 860px;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page-hero p {
    max-width: 640px;
    font-size: 18px;
}

.section {
    padding: 84px 0;
}

.section-heading {
    margin-bottom: 38px;
}

.section-heading h2,
.plant-intro h2,
.about-grid h2,
.calculator-form h2 {
    max-width: 760px;
    font-family: var(--display);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.022em;
}

.project-grid {
    gap: 20px;
}

.project-card,
.product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: #d8c7ad;
    box-shadow: 0 22px 44px rgba(28, 25, 21, 0.1);
}

.project-image,
.product-image {
    height: 280px;
}

.project-image img,
.product-image img {
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img,
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.project-body,
.product-body {
    padding: 22px;
}

.project-body h3,
.product-body h3 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
}

.card-badge {
    background: rgba(22, 48, 40, 0.86);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.specs {
    min-height: 25px;
}

.specs span {
    padding: 5px 9px;
    background: var(--soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.card-pricing-block {
    margin-top: 18px;
    padding: 18px 0 0;
    background: transparent;
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.payment-amount,
.card-bottom strong {
    color: var(--forest);
    letter-spacing: -0.025em;
}

.card-btn-primary,
.card-btn-secondary,
.add-button {
    border-radius: 999px;
}

.button-primary,
.card-btn-primary,
.add-button {
    color: #fff;
    background: var(--forest);
}

.button-primary:hover,
.card-btn-primary:hover,
.add-button:hover {
    background: var(--brand);
}

.section-dark {
    background:
        radial-gradient(circle at 80% 0%, rgba(196, 90, 39, 0.16), transparent 36%),
        var(--forest-deep);
}

.workshop-card,
.equipment-card,
.quality-card,
.documents-card,
.featured-card,
.program-card,
.region-card,
.payment-card,
.selected-project,
.stat-card,
.faq-list details,
.calculator-form,
.lead-form-card {
    border-radius: 22px;
}

.cta-section {
    background:
        radial-gradient(circle at 20% 0%, rgba(201, 164, 106, 0.18), transparent 36%),
        var(--forest);
}

.cta-inner h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 42px);
}

.catalog-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0 22px;
}

.catalog-summary strong {
    font-family: var(--display);
    font-size: 32px;
    letter-spacing: -0.04em;
}

.catalog-filters {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.catalog-filters-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 20px 18px 16px;
}

.catalog-filters-panel > * + * {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.catalog-filters-panel .filter-range,
.catalog-filters-panel .filter-chips,
.catalog-filters-panel .filter-actions {
    min-width: 0;
}

.catalog-filters-panel .filter-chips,
.catalog-filters-panel .filter-range {
    grid-column: auto;
    padding-left: 0;
    padding-right: 0;
}

.catalog-filters-panel .filter-chips-row {
    margin-top: 10px;
}

.catalog-filters-panel .filter-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-filters-panel .filter-actions .button {
    min-width: 148px;
    flex: 1 1 auto;
}

.catalog-filters-panel .reset-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 4px;
    flex: 0 0 auto;
}

@media (min-width: 960px) {
    .catalog-filters-panel {
        padding: 26px 28px 22px;
    }

    .catalog-filters-panel > * + * {
        margin-top: 20px;
        padding-top: 20px;
    }

    .catalog-filters-panel .filter-actions .button {
        flex: 0 0 auto;
    }
}

.filter-field select,
.catalog-filters input:not([type="range"]),
.catalog-filters select {
    border-radius: 12px;
}

.project-summary {
    padding: 6px 0 10px 18px;
    border-left: 4px solid var(--brand);
}

.project-summary h1 {
    font-size: clamp(34px, 4.2vw, 54px);
}

.price-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.package-card {
    border-radius: 20px;
}

.calculator-result {
    background: var(--forest);
    border-radius: 22px;
}

.faq-list details {
    border-radius: 16px;
}

.site-footer {
    color: #d9cfc0;
    background:
        radial-gradient(circle at 80% 0%, rgba(201, 164, 106, 0.12), transparent 32%),
        var(--forest-deep);
}

.brand-footer .brand-mark {
    color: var(--forest);
    background: var(--gold);
}

.footer-grid p,
.footer-grid a,
.footer-grid span,
.footer-grid address,
.brand-footer .brand-text span {
    color: #b8ada0;
}

.footer-grid strong,
.brand-footer {
    color: #fff;
}

.footer-bottom {
    color: #8f8578;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.cart-drawer {
    background: var(--cream);
    border-radius: 24px 0 0 24px;
}

.notice {
    border-radius: 14px;
}

.image-placeholder {
    background: repeating-linear-gradient(45deg, #efe6d6 0 10px, #f6f0e6 10px 20px);
    color: #8a7d6d;
}

@media (max-width: 960px) {
    .header-cta,
    .phone {
        display: none;
    }

    .page-hero,
    .project-hero {
        background: var(--soft);
    }

    .section {
        padding: 56px 0;
    }

    .project-image,
    .product-image {
        height: 240px;
    }

    .site-nav {
        background: rgba(251, 246, 238, 0.96);
    }
}

/* Консультант GigaChat -------------------------------------------------- */

.site-consultant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    font-family: var(--sans);
}

/* Окно и значки переключаются атрибутом hidden, а у окна свой display: flex —
   без этого правила браузерный [hidden] проигрывает и окно не закрывается */
.site-consultant [hidden] {
    display: none !important;
}

.site-consultant-toggle {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 14px 28px rgba(196, 90, 39, 0.28);
    cursor: pointer;
}

.site-consultant-toggle:hover {
    background: var(--brand-dark);
}

.site-consultant-toggle svg {
    width: 26px;
    height: 26px;
}

.site-consultant-window {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: flex;
    width: min(24rem, calc(100vw - 32px));
    height: min(36rem, 72vh);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.site-consultant-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: #fff;
    background: var(--forest);
}

.site-consultant-head p {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
}

.site-consultant-head span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.site-consultant-close {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.site-consultant-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-consultant-close svg {
    width: 18px;
    height: 18px;
}

.site-consultant-thread {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--soft);
}

.site-consultant-msg {
    margin: 0 32px 12px 0;
}

.site-consultant-msg-user {
    margin: 0 0 12px 32px;
    text-align: right;
}

.site-consultant-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
}

.site-consultant-msg-user .site-consultant-bubble {
    background: var(--brand);
    color: #fff;
}

.site-consultant-bubble a {
    color: var(--brand);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.site-consultant-msg img {
    display: block;
    width: 100%;
    max-height: 220px;
    margin-top: 8px;
    object-fit: cover;
    border-radius: 12px;
}

.site-consultant-wait {
    margin: 0 32px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.site-consultant-compose {
    padding: 12px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-consultant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.site-consultant-chips button {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    color: var(--steel);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.site-consultant-chips button:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.site-consultant-form {
    display: flex;
    gap: 8px;
}

.site-consultant-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.site-consultant-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(196, 90, 39, 0.12);
}

.site-consultant-form button {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.site-consultant-form button:hover {
    background: var(--brand-dark);
}

.site-consultant-form button:disabled,
.site-consultant-chips button:disabled,
.site-consultant-form input:disabled {
    opacity: 0.65;
    cursor: default;
}

/* Конструктор дома ------------------------------------------------------- */
/* Само приложение собирается Vite (public-constructor.js); здесь витрина
   первого экрана в духе главной: рисунок дома в рамке, плашка с ценой,
   кнопки — и рамка страницы вокруг */

.stage-constructor .stage-inner {
    align-items: start;
    padding-bottom: 64px;
}

.stage-constructor .stage-copy {
    padding-top: 18px;
}

.stage-contact {
    margin: 30px 0 0;
    color: rgba(248, 241, 230, 0.62);
    font-size: 14px;
}

.stage-contact a {
    margin-left: 6px;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.stage-contact a:hover {
    border-color: var(--gold);
}

.constructor-stage {
    display: block;
}

/* Рисунок дома: тёплая подложка, чтобы каркас читался на тёмном фоне экрана */
.constructor-shot {
    display: block;
    width: 100%;
    padding: 14px 12px 46px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 255, 255, 0.55), transparent 70%),
        linear-gradient(180deg, #f7efe3 0%, #efe4d3 100%);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.constructor-shot:hover {
    transform: translateY(-2px);
    box-shadow: 0 34px 80px rgba(8, 16, 13, 0.45);
}

.constructor-shot svg {
    display: block;
    width: 100%;
    height: 100%;
}

.constructor-shot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: var(--muted);
    font-size: 15px;
    cursor: default;
}

.constructor-shot-empty:hover {
    transform: none;
    box-shadow: 0 30px 70px rgba(8, 16, 13, 0.38);
}

.constructor-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: constructor-spin 0.9s linear infinite;
}

@keyframes constructor-spin {
    to {
        transform: rotate(360deg);
    }
}

.constructor-plate {
    align-items: center;
}

.constructor-plate-house {
    min-width: 0;
}

.constructor-plate .stage-price-name {
    letter-spacing: -0.01em;
}

.constructor-plate .stage-price-figure strong {
    color: var(--brand);
    font-size: 28px;
}

.constructor-plate-stack {
    display: block;
}

.constructor-plate-text {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.constructor-plate-text a {
    color: var(--brand);
    font-weight: 600;
}

.constructor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 18px 0;
}

.constructor-plate .constructor-actions {
    margin: 0;
}

.stage-btn-plain {
    color: var(--ink);
    border-color: var(--line);
    background: transparent;
}

.stage-btn-plain:hover {
    border-color: var(--forest);
}

/* На тёмной витрине третья кнопка — текстовая, без рамки */
.stage-constructor .stage-btn-plain {
    color: rgba(248, 241, 230, 0.78);
    border-color: transparent;
    padding-inline: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(248, 241, 230, 0.35);
}

.stage-constructor .stage-btn-plain:hover {
    color: #fff;
    border-color: transparent;
    text-decoration-color: var(--gold);
}

.constructor-fineprint,
.constructor-sent {
    margin: 16px 18px 0;
    font-size: 13px;
    line-height: 1.55;
}

.constructor-fineprint {
    color: rgba(248, 241, 230, 0.55);
}

.constructor-sent {
    padding-left: 22px;
    color: #f8f1e6;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c9a46a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") 0 3px / 14px no-repeat;
}

.constructor-sent a,
.constructor-sent .constructor-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Ссылка-кнопка внутри текста: «сохранить как новый», «другой номер» */
.constructor-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.constructor-link:disabled {
    opacity: 0.5;
    cursor: default;
}

.constructor-actions .stage-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Поле кода из SMS в диалоге сохранения */
.constructor-code-input {
    font-size: 22px;
    letter-spacing: 0.35em;
    text-align: center;
}

/* Вход в кабинете из конструктора: как /lk, не как заявка на расчёт */
.constructor-auth {
    display: grid;
    gap: 14px;
}

.constructor-auth-hint {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.constructor-auth-field {
    display: grid;
    gap: 6px;
}

.constructor-auth-field label {
    font-size: 13px;
    font-weight: 600;
}

.constructor-auth-field .p-inputtext {
    width: 100%;
    min-height: 48px;
    font-size: 17px;
}

.constructor-auth-error {
    color: #b42318;
}

.constructor-auth-submit {
    width: 100%;
    justify-content: center;
}

.constructor-auth-legal {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.constructor-auth-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.constructor-auth-again {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
}

.constructor-how-text {
    margin: 0 0 16px;
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.constructor-how .steps {
    padding-top: 12px;
}

@media (max-width: 960px) {
    .stage-constructor .stage-copy {
        padding-top: 0;
    }

    .constructor-actions .stage-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .constructor-plate {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .constructor-plate .stage-price-figure {
        text-align: left;
    }

    .constructor-actions,
    .constructor-fineprint,
    .constructor-sent {
        margin-inline: 0;
    }
}

/* Личный кабинет клиента ------------------------------------------------ */

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-account:hover,
.header-account.active {
    border-color: var(--forest);
    background: var(--soft);
}

.header-account-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cabinet-bar {
    position: sticky;
    top: 72px;
    z-index: 35;
    background: rgba(251, 246, 238, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cabinet-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px 28px;
    min-height: 52px;
}

.cabinet-bar-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cabinet-hero {
    padding: 40px 0 28px;
}

.cabinet-hero h1 {
    margin: 0 0 10px;
}

.cabinet-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
}

.cabinet-nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.cabinet-nav a,
.cabinet-nav button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.cabinet-nav a:hover,
.cabinet-nav button:hover {
    color: var(--forest);
    background: var(--soft);
}

.cabinet-nav a.is-active {
    color: var(--forest);
    background: var(--soft);
}

.cabinet-constructor-stage {
    padding: 0;
}

.cabinet-constructor-stage .container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-top: 28px;
    padding-bottom: 40px;
}

.cabinet-section {
    padding: 48px 0 80px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 32px;
}

.cabinet-main,
.cabinet-side {
    display: grid;
    gap: 20px;
}

.cabinet-heading {
    margin-bottom: 0;
}

.cabinet-heading-gap {
    margin-top: 28px;
}

.cabinet-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.cabinet-card h3 {
    margin: 14px 0 12px;
    font-size: 20px;
}

.cabinet-card .eyebrow + h3 {
    margin-top: 10px;
}

.cabinet-back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.cabinet-back:hover {
    color: var(--brand);
}

.cabinet-orders {
    display: grid;
    gap: 16px;
}

.cabinet-orders-page {
    max-width: 720px;
}

.cabinet-order {
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.cabinet-order h3 {
    margin: 10px 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.cabinet-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}

.cabinet-order-sum {
    font-size: 18px;
}

.cabinet-order-items {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.cabinet-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.cabinet-order-page {
    max-width: 720px;
}

.cabinet-order-due {
    margin: 18px 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.cabinet-order-pay-hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.cabinet-deals {
    display: grid;
    gap: 16px;
}

.cabinet-deal {
    display: block;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-deal:hover {
    border-color: var(--forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.cabinet-deal h3 {
    margin: 12px 0 14px;
    font-size: 22px;
    line-height: 1.25;
}

.cabinet-deal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cabinet-deal-dept {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cabinet-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 9px;
    color: var(--ink);
    background: var(--soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.cabinet-stage::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--stage, var(--forest));
    border-radius: 50%;
}

.cabinet-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
}

.cabinet-facts-wide {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cabinet-facts div {
    min-width: 0;
}

.cabinet-facts .cabinet-fact-full {
    grid-column: 1 / -1;
}

.cabinet-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabinet-facts dd {
    margin: 3px 0 0;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cabinet-facts dd small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.cabinet-money {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cabinet-money span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabinet-money strong {
    font-family: var(--display);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.cabinet-money > div:last-of-type {
    text-align: right;
}

.cabinet-progress {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--line);
}

.cabinet-progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress, 0%);
    background: var(--brand);
}

.cabinet-empty h3 {
    margin-top: 0;
}

.cabinet-empty p {
    color: var(--muted);
    line-height: 1.7;
}

.cabinet-empty a:not(.button) {
    color: var(--brand);
    font-weight: 600;
}

.cabinet-empty .button-row {
    margin-top: 22px;
}

.cabinet-empty-compact p {
    margin: 0;
}

.cabinet-houses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cabinet-houses-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cabinet-houses-inline {
    margin-top: 16px;
}

.cabinet-house {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.cabinet-house-shot {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: var(--gold);
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
    border-bottom: 1px solid var(--line);
}

.cabinet-house-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-house-shot svg {
    width: 64px;
    height: 64px;
}

.cabinet-house-body {
    padding: 18px 20px 20px;
}

.cabinet-house-body h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
}

.cabinet-house-body p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.cabinet-house-status {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.cabinet-house-status a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cabinet-house-body strong {
    display: block;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cabinet-house-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 14px;
}

.cabinet-house-actions .button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.cabinet-project-hero {
    display: grid;
    gap: 22px;
}

.cabinet-project-shot {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    color: var(--gold);
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.cabinet-project-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-project-shot svg {
    width: 72px;
    height: 72px;
}

.cabinet-project-summary h2 {
    margin: 8px 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.cabinet-project-summary .tag {
    margin-bottom: 16px;
}

.cabinet-project-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.cabinet-project-photos figure {
    margin: 0;
}

.cabinet-project-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: var(--soft);
}

.cabinet-project-photos figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.cabinet-project-calc-meta {
    margin: 8px 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.cabinet-project-price {
    display: block;
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cabinet-project-price + small {
    display: block;
    margin: 4px 0 12px;
    color: var(--muted);
}

.cabinet-project-hero .button-row,
.cabinet-card .button-row {
    margin-top: 18px;
}

.cabinet-profile,
.cabinet-chat {
    display: grid;
    gap: 12px;
}

.cabinet-profile-phone span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabinet-profile-phone strong {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.cabinet-help p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.cabinet-help a {
    display: block;
    font-weight: 600;
}

.cabinet-help-phone {
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: -0.02em;
}

.cabinet-help-phone:hover,
.cabinet-help a:hover {
    color: var(--brand);
}

.cabinet-field-error {
    margin: -4px 0 0;
    color: #952f2f;
    font-size: 13px;
}

.cabinet-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabinet-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.cabinet-list li > div:first-child {
    display: grid;
    min-width: 0;
}

.cabinet-list strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.cabinet-list span {
    color: var(--muted);
    font-size: 13px;
}

.cabinet-list .button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.cabinet-badge {
    padding: 5px 10px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.cabinet-badge-ok {
    color: #1f5a49;
    background: #e8f2ec;
    border-color: #cfe3d6;
}

.cabinet-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cabinet-timeline-card {
    margin-bottom: 28px;
}

.cabinet-timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cabinet-timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.cabinet-timeline li {
    position: relative;
    padding-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.cabinet-timeline li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
}

.cabinet-timeline li.is-done::before {
    background: var(--forest);
    opacity: 0.45;
}

.cabinet-timeline li.is-current {
    color: var(--ink);
}

.cabinet-timeline li.is-current::before {
    background: var(--brand);
}

.cabinet-chat textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-chat textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(22, 48, 40, 0.08);
}

.cabinet-chat form {
    display: grid;
    gap: 12px;
}

.cabinet-chat h3 {
    margin: 0;
}

.cabinet-chat small,
.cabinet-auth-form small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.cabinet-chat small a,
.cabinet-auth-form small a {
    color: var(--brand);
    font-weight: 600;
}

.cabinet-messages {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.cabinet-messages li {
    padding: 12px 14px;
    background: var(--cream);
    border-radius: 14px;
}

.cabinet-messages time {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.cabinet-messages p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

/* Вход в кабинет */

.cabinet-auth {
    padding: 64px 0 96px;
}

.cabinet-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 64px;
}

.cabinet-auth-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.1;
}

.cabinet-auth-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.cabinet-auth-copy p a {
    color: var(--brand);
    font-weight: 600;
}

.cabinet-auth-marks {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.cabinet-auth-marks li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
}

.cabinet-auth-marks li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
}

.cabinet-auth-form {
    display: grid;
    gap: 14px;
    padding: 34px;
    background: var(--cream);
}

.cabinet-auth-form [hidden],
.cabinet-two-factor [hidden] {
    display: none !important;
}

.cabinet-auth-form h2 {
    margin: 0;
    font-size: 26px;
}

.cabinet-auth-form form {
    display: grid;
    gap: 14px;
}

.cabinet-auth-hint {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.cabinet-auth-form,
.cabinet-auth-copy {
    min-width: 0;
}

/* Поле без width — 20 символов крупным шрифтом; на телефоне это шире экрана */
.cabinet-auth-form .intake-field input,
.cabinet-profile .intake-field input {
    width: 100%;
    min-width: 0;
}

.cabinet-auth-form .intake-field input {
    height: 52px;
    font-size: 17px;
}

.cabinet-code-input {
    letter-spacing: 0.4em;
    text-align: center;
    font-size: 26px !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cabinet-two-factor h3 {
    margin: 0;
    font-size: 18px;
}

.cabinet-two-factor p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cabinet-two-factor-status {
    font-weight: 700;
    color: var(--brand);
}

.cabinet-two-factor-qr {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.cabinet-two-factor-qr img {
    width: 196px;
    height: 196px;
    border-radius: 12px;
    background: #fff;
}

.cabinet-two-factor-secret {
    display: grid;
    gap: 4px;
}

.cabinet-two-factor-secret span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabinet-two-factor-secret code {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.cabinet-two-factor-form {
    display: grid;
    gap: 10px;
}

.cabinet-recovery {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
}

.cabinet-recovery ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
}

.otp-code {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
}

.otp-code__box {
    width: 2.55rem;
    height: 3.1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #fff;
    color: inherit;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0;
    outline: none;
}

.otp-code__box:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 24%, transparent);
}

.otp-code--invalid .otp-code__box {
    border-color: #c24141;
}

@media (max-width: 420px) {
    .otp-code__box {
        width: 2.2rem;
        height: 2.8rem;
        font-size: 1.15rem;
    }
}

.cabinet-auth-again {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    font-size: 13px;
}

.cabinet-auth-again button {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Шапке с кабинетом тесно в контейнере контента: на широких экранах она
   раздвигается до 1320 px, на средних прячет подпись бренда, а кнопка
   кабинета всегда остаётся значком — подпись есть в title и aria-label */
.header-account {
    padding: 0 10px;
}

.header-account-label {
    display: none;
}

.header-inner {
    width: min(1320px, calc(100% - 40px));
}

@media (max-width: 1400px) {
    .brand-text span {
        display: none;
    }
}

/* Меню ещё развёрнуто, а места под телефон уже нет: он остаётся в подвале и на кнопке «Рассчитать проект» */
@media (max-width: 1060px) and (min-width: 981px) {
    .phone {
        display: none;
    }
}

@media (max-width: 960px) {
    .cabinet-grid,
    .cabinet-auth-grid {
        grid-template-columns: 1fr;
    }

    .cabinet-auth-grid {
        gap: 36px;
    }

    .cabinet-constructor-stage .container {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .cabinet-bar-inner {
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .cabinet-nav {
        margin-left: 0;
        width: 100%;
    }

    .cabinet-houses-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cabinet-facts-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .header-account {
        padding: 0 9px;
    }

    .cabinet-card,
    .cabinet-deal,
    .cabinet-order {
        padding: 20px;
        border-radius: 18px;
    }

    .cabinet-nav {
        flex-wrap: wrap;
    }

    .cabinet-houses,
    .cabinet-houses-page,
    .cabinet-facts,
    .cabinet-project-photos {
        grid-template-columns: 1fr;
    }

    .cabinet-timeline {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }

    .cabinet-timeline li {
        padding: 0 0 0 18px;
    }

    .cabinet-timeline li::before {
        top: 4px;
        width: 4px;
        height: calc(100% + 6px);
    }

    .cabinet-money {
        flex-direction: column;
        gap: 8px;
    }

    .cabinet-money > div:last-of-type {
        text-align: left;
    }

    .cabinet-auth {
        padding: 40px 0 64px;
    }

    .cabinet-auth-form {
        padding: 24px;
    }
}

/* Конструктор в герое главной -------------------------------------------- */

.stage-visual .builder-form {
    box-shadow: 0 30px 70px rgba(8, 16, 13, 0.38);
}

.builder-form {
    display: grid;
    gap: 20px;
    padding: 28px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.builder-plan {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.builder-plan svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--sans);
    font-variant-numeric: tabular-nums;
}

.builder-plan-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 11px;
    color: var(--forest);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.builder-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.builder-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.builder-range span,
.builder-storeys legend {
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.builder-range output {
    color: var(--forest);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.builder-range input[type="range"] {
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    accent-color: var(--brand);
    cursor: pointer;
}

.builder-storeys {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.builder-storeys legend {
    margin-bottom: 10px;
}

.builder-storeys label {
    position: relative;
    display: inline-flex;
}

.builder-storeys input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
    pointer-events: none;
}

.builder-storeys span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.builder-storeys input:checked + span {
    color: #fff;
    background: var(--forest);
    border-color: var(--forest);
}

.builder-storeys input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(22, 48, 40, 0.14);
}

.builder-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.builder-summary div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.builder-summary span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.builder-summary strong {
    color: var(--forest);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.builder-submit {
    min-height: 52px;
    font-size: 15px;
}

.builder-note {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .builder-form {
        padding: 18px;
        gap: 16px;
    }

    .builder-controls {
        grid-template-columns: 1fr;
    }

    .builder-summary strong {
        font-size: 18px;
    }
}

.policy-hero p {
    max-width: 720px;
}

.policy-section {
    padding-top: 36px;
}

.policy-doc {
    max-width: 760px;
}

.policy-doc section + section {
    margin-top: 36px;
}

.policy-doc h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.policy-doc p,
.policy-doc li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.policy-doc p {
    margin: 0 0 12px;
}

.policy-doc ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.policy-doc li + li {
    margin-top: 6px;
}

.policy-doc a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-doc a:hover {
    color: var(--brand-dark);
}

.policy-requisites {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.policy-requisites div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.policy-requisites dt {
    color: var(--muted);
    font-size: 13px;
}

.policy-requisites dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .policy-requisites div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {
    .site-consultant {
        display: none;
    }
}

/* Кнопка звонка в шапке: видна там, где спрятан сам номер ------------------ */

.header-call {
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.header-call:hover {
    background: var(--brand-dark);
}

.header-call svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1060px) {
    .header-call {
        display: inline-grid;
    }
}

/* Главная: цена в мини-конструкторе --------------------------------------- */

.builder-price {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    padding: 14px 16px;
    background: var(--forest);
    border-radius: 14px;
    color: #fff;
}

.builder-price-main,
.builder-price-pay {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.builder-price-main span,
.builder-price-pay span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.builder-price-main strong {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.builder-price-pay strong {
    color: var(--gold);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.builder-price-pay small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.builder-price-range {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    line-height: 1.5;
}

.builder-price-range:empty {
    display: none;
}

@media (max-width: 600px) {
    .builder-price {
        grid-template-columns: 1fr;
    }

    .builder-price-main strong {
        font-size: 21px;
    }
}

/* Главная: общие мелочи новых разделов ------------------------------------ */

.home-lead {
    max-width: 760px;
    margin: -18px 0 32px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.home-save-hint {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.home-save-hint span {
    color: var(--brand);
    font-weight: 700;
}

/* Главная: комплектации --------------------------------------------------- */

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.package-card-popular {
    border-color: var(--forest);
    box-shadow: 0 0 0 1px var(--forest), var(--shadow);
}

.package-flag {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 4px 12px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.package-card h3 {
    margin: 0;
    font-size: 22px;
}

.package-summary {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.package-price strong {
    color: var(--forest);
    font-family: var(--display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.package-price strong i {
    color: var(--muted);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

.package-price span {
    color: var(--muted);
    font-size: 14px;
}

.package-features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.45;
}

.package-features li {
    position: relative;
    padding-left: 22px;
}

.package-features li::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 2px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* Главная: этапы и обещания ---------------------------------------------- */

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-steps li {
    position: relative;
    padding-top: 22px;
    border-top: 2px solid var(--line);
}

.home-step-num {
    position: absolute;
    top: -13px;
    left: 0;
    padding: 2px 9px;
    color: #fff;
    background: var(--forest);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.home-step-term {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-steps h3 {
    margin: 6px 0 6px;
    font-size: 18px;
}

.home-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-promises {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 48px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.home-promises div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    background: #fff;
}

.home-promises strong {
    color: var(--forest);
    font-size: 17px;
}

.home-promises span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Главная: личный кабинет ------------------------------------------------- */

.home-cabinet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

.home-cabinet .home-lead {
    margin: 14px 0 24px;
}

.home-cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
}

.home-cabinet-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-cabinet-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.home-cabinet-list strong {
    color: var(--forest);
    font-size: 16px;
}

.home-cabinet-list span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Главная: вопросы -------------------------------------------------------- */

.home-faq {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.home-faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.home-faq summary {
    position: relative;
    padding: 18px 52px 18px 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.home-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--brand);
    font-size: 22px;
    font-weight: 500;
    transform: translateY(-50%);
}

.home-faq details[open] summary::after {
    content: "−";
}

.home-faq details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .home-steps,
    .home-promises {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .home-cabinet {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .home-steps,
    .home-promises,
    .home-cabinet-list {
        grid-template-columns: 1fr;
    }

    .home-lead {
        margin-top: -8px;
        font-size: 16px;
    }
}

/* Банки, в которых компания аккредитована (главная и страница ипотеки) */
.bank-strip {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.bank-strip-head strong {
    display: block;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.bank-strip-head span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.bank-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bank-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
}

.bank-logo img {
    display: block;
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
}

.bank-logo span {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

@media (max-width: 760px) {
    .bank-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .bank-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}
