/* Твой Дом — лендинг «Расчёт стоимости» */
:root {
  --tvdm-blue: #0885c9;
  --tvdm-blue-dark: #0676b5;
  --tvdm-green: #7ca84b;
  --tvdm-green-dark: #678d3e;
  --tvdm-navy: #0e2b45;
  --tvdm-text: #0f172a;
  --tvdm-muted: #64748b;
  --tvdm-border: #dce3ea;
  --tvdm-subtle: #f6f8fa;
  --tvdm-shadow: 0 14px 34px rgba(14, 43, 69, 0.1);
}

/* ---------- Hero ---------- */
.tvdm-hero { position: relative; overflow: hidden; color: #fff; background: var(--tvdm-navy); }
.tvdm-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvdm-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 32, 52, .94) 0%, rgba(10, 43, 69, .86) 45%, rgba(8, 133, 201, .42) 100%); }
.tvdm-hero__content { position: relative; padding: 84px 0 96px; }
.tvdm-hero__content h1 { max-width: 880px; margin: 0 0 22px; color: #fff; font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.tvdm-hero__content > p { max-width: 680px; margin: 0 0 30px; color: rgba(255, 255, 255, .86); font-size: 18px; line-height: 1.65; }
.tvdm-hero__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 720px; margin: 0 0 34px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.tvdm-hero__points li { display: flex; align-items: center; gap: 10px; }
.tvdm-hero__points i { color: var(--tvdm-green); font-size: 20px; }
.tvdm-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.tvdm-hero__buttons .fsk-btn--primary { min-width: 220px; }
.tvdm-hero .fsk-eyebrow--light { color: #a9d67f; }

/* ---------- Метрики ---------- */
.tvdm-metrics { border-bottom: 1px solid var(--tvdm-border); }
.tvdm-metrics .fsk-metrics__grid { padding: 26px 0; }

/* ---------- Секции ---------- */
.tvdm-section-alt { background: var(--tvdm-subtle); border-top: 1px solid var(--tvdm-border); border-bottom: 1px solid var(--tvdm-border); }
.fsk-section-heading--left { text-align: left; }
.fsk-section-heading--left > * { margin-left: 0; margin-right: 0; }

/* ---------- Калькулятор ---------- */
.tvdm-calc { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; margin-top: 34px; align-items: start; }
.tvdm-calc__panel { padding: 30px; border: 1px solid var(--tvdm-border); border-radius: 16px; background: #fff; box-shadow: var(--tvdm-shadow); }
.tvdm-calc__panel h3 { margin: 0 0 6px; color: var(--tvdm-navy); font-size: 22px; letter-spacing: -.01em; }
.tvdm-calc__help { margin: 0 0 8px; color: var(--tvdm-muted); font-size: 14px; }
.tvdm-calc__block { padding: 20px 0 4px; margin-top: 18px; border-top: 1px solid #edf2f6; }
.tvdm-calc__label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.tvdm-calc__label b { color: var(--tvdm-navy); font-size: 15px; }
.tvdm-calc__value { flex: 0 0 auto; color: var(--tvdm-blue-dark); font-size: 18px; font-weight: 800; white-space: nowrap; }
.tvdm-area-line { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; align-items: center; }
.tvdm-area-line input[type="number"] { width: 100%; height: 48px; padding: 0 10px; border: 1.5px solid var(--tvdm-border); border-radius: 10px; font: inherit; font-weight: 800; text-align: center; color: var(--tvdm-navy); background: #fff; }
.tvdm-area-line input[type="number"]:focus { outline: none; border-color: var(--tvdm-blue); box-shadow: 0 0 0 3px rgba(8, 133, 201, .14); }
.tvdm-area-line input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none; background: linear-gradient(90deg, var(--tvdm-blue), var(--tvdm-green)); }
.tvdm-area-line input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 6px solid var(--tvdm-blue); background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); cursor: pointer; }
.tvdm-area-line input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 6px solid var(--tvdm-blue); background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); cursor: pointer; }
.tvdm-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvdm-choice--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tvdm-choice__btn { position: relative; display: flex; min-height: 52px; align-items: center; justify-content: center; padding: 10px 12px; border: 1.5px solid var(--tvdm-border); border-radius: 12px; background: #fff; color: var(--tvdm-text); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.tvdm-choice__btn:hover { border-color: var(--tvdm-blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 43, 69, .08); }
.tvdm-choice__btn input { position: absolute; opacity: 0; pointer-events: none; }
.tvdm-choice__btn:has(input:checked) { border-color: var(--tvdm-blue); background: #eef7fd; color: var(--tvdm-blue-dark); box-shadow: 0 10px 26px rgba(8, 133, 201, .14); }
.tvdm-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvdm-option { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--tvdm-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.tvdm-option:hover { border-color: var(--tvdm-blue); }
.tvdm-option:has(input:checked) { border-color: var(--tvdm-green); background: #f5f9ef; }
.tvdm-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tvdm-green); }
.tvdm-option b { display: block; color: var(--tvdm-text); font-size: 13px; }
.tvdm-option em { display: block; margin-top: 2px; color: var(--tvdm-muted); font-size: 11px; font-style: normal; }
.tvdm-calc__note { display: flex; gap: 8px; margin: 20px 0 0; padding: 13px 15px; border: 1px solid #dcebcf; border-radius: 10px; background: #f5f9ef; color: #4b6342; font-size: 12px; line-height: 1.5; }
.tvdm-calc__note i { color: var(--tvdm-green-dark); }

.tvdm-calc__result { position: sticky; top: 96px; padding: 28px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, #0a2438 0%, #0e2b45 45%, #0676b5 130%); box-shadow: 0 22px 50px rgba(14, 43, 69, .22); }
.tvdm-calc__result-mini { margin: 0 0 8px; color: #a9d67f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tvdm-calc__price { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tvdm-calc__per { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.tvdm-calc__result hr { margin: 20px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.tvdm-calc__summary { display: grid; gap: 9px; font-size: 13px; }
.tvdm-calc__summary > div { display: flex; justify-content: space-between; gap: 16px; }
.tvdm-calc__summary span { color: rgba(255, 255, 255, .78); }
.tvdm-calc__summary strong { text-align: right; }
.tvdm-calc__disclaimer { margin: 16px 0; color: rgba(255, 255, 255, .72); font-size: 11px; line-height: 1.5; }
.tvdm-calc__cta { width: 100%; }
.tvdm-calc__reset { width: 100%; margin-top: 10px; padding: 6px; border: 0; background: transparent; color: rgba(255, 255, 255, .8); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.tvdm-calc__reset:hover { color: #fff; }

/* ---------- Карточки «Что получите» ---------- */
.tvdm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.tvdm-card { padding: 26px; border: 1px solid var(--tvdm-border); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(14, 43, 69, .06); transition: border-color .2s ease, box-shadow .2s ease; }
.tvdm-card:hover { border-color: var(--tvdm-blue); box-shadow: 0 16px 38px rgba(14, 43, 69, .12); }
.tvdm-card__num { display: grid; width: 44px; height: 44px; margin-bottom: 16px; place-items: center; border-radius: 50%; background: var(--tvdm-blue); color: #fff; font-size: 13px; font-weight: 800; }
.tvdm-card h3 { margin: 0 0 10px; color: var(--tvdm-navy); font-size: 19px; }
.tvdm-card p { margin: 0; color: var(--tvdm-muted); font-size: 14px; line-height: 1.6; }

/* ---------- Этапы ---------- */
.tvdm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Факторы ---------- */
.tvdm-factors { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.tvdm-checks { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.tvdm-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--tvdm-muted); font-size: 15px; line-height: 1.6; }
.tvdm-checks i { flex: 0 0 auto; margin-top: 3px; color: var(--tvdm-green-dark); font-size: 18px; }
.tvdm-checks strong { color: var(--tvdm-navy); }
.tvdm-aside { padding: 30px; border: 1px solid var(--tvdm-border); border-radius: 14px; background: #fff; box-shadow: var(--tvdm-shadow); }
.tvdm-aside h3 { margin: 0 0 12px; color: var(--tvdm-navy); font-size: 24px; line-height: 1.25; }
.tvdm-aside p { margin: 0 0 10px; color: var(--tvdm-muted); font-size: 14px; }
.tvdm-aside ul { margin: 0 0 22px; padding-left: 20px; color: var(--tvdm-text); font-size: 14px; line-height: 1.75; }
.tvdm-aside li::marker { color: var(--tvdm-green-dark); }

/* ---------- Галерея ---------- */
.tvdm-gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 12px; margin-top: 34px; }
.tvdm-gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; }
.tvdm-gallery img:first-child { height: 100%; }
.tvdm-gallery__more { margin: 24px 0 0; }

/* ---------- FAQ ---------- */
.tvdm-faq-wrap { max-width: 860px; }
.tvdm-faq { display: grid; gap: 10px; margin-top: 30px; }
.tvdm-faq details { padding: 18px 22px; border: 1px solid var(--tvdm-border); border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(14, 43, 69, .05); }
.tvdm-faq summary { color: var(--tvdm-navy); font-weight: 700; cursor: pointer; list-style-position: inside; }
.tvdm-faq summary:hover { color: var(--tvdm-blue-dark); }
.tvdm-faq details p { margin: 12px 0 0; color: var(--tvdm-muted); font-size: 15px; line-height: 1.65; }

/* ---------- CTA ---------- */
.tvdm-cta { padding: 64px 0; color: #fff; background: linear-gradient(120deg, #0a2438 0%, var(--tvdm-navy) 55%, #105a7d 100%); }
.tvdm-cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.tvdm-cta h2 { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.tvdm-cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.65; }
.tvdm-cta__action { justify-self: end; }
.tvdm-cta__action .fsk-btn { min-width: 220px; }

/* ---------- Секция формы ---------- */
.tvdm-lead-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 52px; align-items: center; }
.tvdm-lead-copy h2 { margin: 0 0 14px; color: var(--tvdm-navy); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.tvdm-lead-copy > p { margin: 0 0 24px; color: var(--tvdm-muted); font-size: 16px; line-height: 1.65; }
.tvdm-lead-points { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.tvdm-lead-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--tvdm-text); font-size: 15px; }
.tvdm-lead-points i { margin-top: 2px; color: var(--tvdm-green-dark); font-size: 18px; }
.tvdm-lead-contacts { display: grid; gap: 10px; }
.tvdm-lead-contacts a { display: inline-flex; gap: 10px; align-items: center; color: var(--tvdm-blue-dark); font-weight: 600; text-decoration: none; }
.tvdm-lead-contacts a:hover { color: var(--tvdm-navy); }
.tvdm-lead-contacts i { color: var(--tvdm-blue); font-size: 16px; }

.tvdm-form { padding: 32px; border: 1px solid var(--tvdm-border); border-radius: 16px; background: #fff; box-shadow: 0 22px 55px rgba(14, 43, 69, .12); }
.tvdm-form h3 { margin: 0 0 6px; color: var(--tvdm-navy); font-size: 24px; letter-spacing: -.01em; }
.tvdm-form__sub { margin: 0 0 22px; color: var(--tvdm-muted); font-size: 14px; }
.tvdm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tvdm-field--full { grid-column: 1 / -1; }
.tvdm-field label { display: block; margin-bottom: 6px; color: var(--tvdm-navy); font-size: 12px; font-weight: 700; }
.tvdm-field label span { color: #d64545; }
.tvdm-field input,
.tvdm-field select,
.tvdm-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--tvdm-border); border-radius: 10px; outline: none; background: #fff; color: var(--tvdm-text); font: inherit; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.tvdm-field textarea { resize: vertical; }
.tvdm-field input::placeholder,
.tvdm-field textarea::placeholder { color: #9aa8b1; }
.tvdm-field input:focus,
.tvdm-field select:focus,
.tvdm-field textarea:focus { border-color: var(--tvdm-blue); box-shadow: 0 0 0 3px rgba(8, 133, 201, .14); }
.tvdm-field.is-error input,
.tvdm-field.is-error select { border-color: #d64545; }
.tvdm-field.is-error input:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, .14); }
.tvdm-form__msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.tvdm-form__msg--success { color: #2f5d26; background: #eaf5e2; border: 1px solid #d5ecc7; }
.tvdm-form__msg--error { color: #a02222; background: #fdeeee; border: 1px solid #f5cfcf; }
.tvdm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tvdm-form__consent { display: flex; gap: 10px; margin: 16px 0 0; align-items: flex-start; color: var(--tvdm-muted); font-size: 12px; line-height: 1.45; cursor: pointer; }
.tvdm-form__consent input { flex: 0 0 auto; margin-top: 2px; width: 17px; height: 17px; accent-color: var(--tvdm-blue); }
.tvdm-form__consent a { color: var(--tvdm-blue-dark); }
.tvdm-form__consent.is-error { color: #a02222; }
.tvdm-form__submit { width: 100%; margin-top: 18px; min-height: 56px; font-size: 16px; }
.tvdm-form__note { display: flex; gap: 7px; justify-content: center; align-items: center; margin: 12px 0 0; color: var(--tvdm-muted); font-size: 12px; }
.tvdm-form__note i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #eaf5e2; color: var(--tvdm-green-dark); font-weight: 800; font-style: normal; }

/* ---------- Футер ---------- */
.tvdm-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 40px 0; }
.tvdm-footer__col strong { color: #fff; font-size: 16px; }
.tvdm-footer__col p { margin: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.6; }
.tvdm-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.tvdm-footer__socials a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--tvdm-green); color: #fff; text-decoration: none; }
.tvdm-footer__contacts { margin: 0; padding: 0; list-style: none; }
.tvdm-footer__contacts li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.tvdm-footer__contacts i { color: var(--tvdm-green); }
.tvdm-footer__contacts a { color: #fff; text-decoration: none; }
.tvdm-footer__contacts a:hover { color: #a9d67f; }
.tvdm-footer__legal { margin: 0 !important; color: rgba(255, 255, 255, .55) !important; font-size: 11px !important; line-height: 1.7 !important; }
.tvdm-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .6); font-size: 12px; }
.tvdm-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tvdm-footer__bottom nav a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.tvdm-footer__bottom nav a:hover { color: #fff; }

/* ---------- Страница благодарности ---------- */
.tvdm-thanks { padding: 84px 0 100px; background: var(--tvdm-subtle); }
.tvdm-thanks__card { max-width: 720px; margin: 0 auto; padding: 52px 48px; border: 1px solid var(--tvdm-border); border-radius: 18px; background: #fff; box-shadow: var(--tvdm-shadow); text-align: center; }
.tvdm-thanks__icon { display: grid; width: 84px; height: 84px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: #e9f5e4; color: var(--tvdm-green-dark); font-size: 42px; }
.tvdm-thanks__card h1 { margin: 0 0 14px; color: var(--tvdm-navy); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.tvdm-thanks__lead { max-width: 520px; margin: 0 auto 30px; color: var(--tvdm-muted); font-size: 16px; line-height: 1.65; }
.tvdm-thanks__warn { margin: -14px auto 26px; padding: 12px 14px; border: 1px solid #f5cfcf; border-radius: 10px; background: #fdeeee; color: #a02222; font-size: 13px; }
.tvdm-thanks__warn a { color: #a02222; font-weight: 700; }
.tvdm-thanks__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; }
.tvdm-thanks__step { padding: 20px 16px; border: 1px solid var(--tvdm-border); border-radius: 12px; background: #fff; }
.tvdm-thanks__step i { display: block; margin-bottom: 10px; color: var(--tvdm-blue); font-size: 26px; }
.tvdm-thanks__step b { display: block; margin-bottom: 6px; color: var(--tvdm-navy); font-size: 14px; }
.tvdm-thanks__step span { color: var(--tvdm-muted); font-size: 12px; line-height: 1.5; }
.tvdm-thanks__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tvdm-thanks__alt { margin: 26px 0 0; color: var(--tvdm-muted); font-size: 14px; }
.tvdm-thanks__alt a { color: var(--tvdm-blue-dark); font-weight: 600; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .tvdm-calc { grid-template-columns: 1fr; }
  .tvdm-calc__result { position: static; }
  .tvdm-lead-grid { grid-template-columns: 1fr; gap: 36px; }
  .tvdm-factors { grid-template-columns: 1fr; gap: 28px; }
  .tvdm-choice--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .tvdm-hero__content { padding: 56px 0 64px; }
  .tvdm-hero__points { grid-template-columns: 1fr; }
  .tvdm-cards { grid-template-columns: 1fr; }
  .tvdm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvdm-gallery { grid-template-columns: 1fr 1fr; }
  .tvdm-gallery img:first-child { grid-column: 1 / -1; height: 300px; }
  .tvdm-cta__inner { grid-template-columns: 1fr; gap: 24px; }
  .tvdm-cta__action { justify-self: start; }
  .tvdm-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .tvdm-thanks { padding: 48px 0 64px; }
  .tvdm-thanks__card { padding: 36px 22px; }
  .tvdm-thanks__steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tvdm-form { padding: 22px 18px; }
  .tvdm-form__grid { grid-template-columns: 1fr; }
  .tvdm-choice,
  .tvdm-choice--4,
  .tvdm-options { grid-template-columns: 1fr; }
  .tvdm-area-line { grid-template-columns: minmax(0, 1fr) 92px; }
  .tvdm-calc__panel { padding: 22px 18px; }
  .tvdm-gallery { grid-template-columns: 1fr; }
  .tvdm-gallery img,
  .tvdm-gallery img:first-child { grid-column: auto; height: 260px; }
  .tvdm-steps { grid-template-columns: 1fr; }
}
