    /* ---------- RESET ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; padding: 0; }
    html { scroll-behavior: smooth;}

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: #2b2b2b;
      background: #fff;
    }
    body.no-scroll { overflow: hidden; }

    img, svg { max-width: 100%; height: auto; display: block; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: none; background: none; }

    :root {
      --color-bg: #ffffff;
      --color-bg-alt: #f7f4ef;
      --color-text: #2b2b2b;
      --color-muted: #6b6b6b;
      --color-primary: #7a5230;
      --color-primary-dark: #5c3d22;
      --color-accent: #c89b6a;
      --color-border: #e5e0d8;
      --color-float-msg: #26a269;
      --radius: 12px;
      --shadow: 0 4px 20px rgba(0,0,0,.06);
      --container: 1200px;
      --container-xxl: 1600px;
    }

    /* ---------- LAYOUT ---------- */
    .container {
      width: 100%;
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 20px;
    }
    .container-large {
      width: 100%;
      max-width: var(--container-xxl);
      margin: 0 auto;
      padding: 0 20px;
    }
    .section { padding: 80px 0; }
    .section:nth-child(even) { background: var(--color-bg-alt);color:var(--color-text); }

    .section__head { margin-bottom: 40px; text-align: center; }
    .section__title {
      font-family: 'Manrope', sans-serif;
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 800;
      line-height: 1.2;
    }
    .section__lead { color: var(--color-muted); margin-top: 10px; }

    /* ---------- BUTTONS ---------- */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 22px;
      border-radius: var(--radius);
      font-weight: 600;
      transition: background .2s, color .2s, transform .1s;
      white-space: nowrap;
    }
    .btn:active { transform: translateY(1px); }
    .btn--primary { background: var(--color-primary); color: #fff; }
    .btn--primary:hover { background: var(--color-primary-dark); }
    .btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
    .btn--ghost:hover { background: rgba(255,255,255,.25); }
    .btn--outline { border: 2px solid var(--color-primary); color: var(--color-primary); }
    .btn--outline:hover { background: var(--color-primary); color: #fff; }
    .btn--lg { padding: 16px 28px; font-size: 17px; }

    /* ==================== HEADER V3 ==================== */
    .header--v3 {
      position: sticky;
      top: 0;
      z-index: 100;
      background: #fff;
      transition: box-shadow .25s ease;
    }
    .header--v3.header--scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

    .header--v3 .header__inner {
      height: 72px;
      display: flex; align-items: center; gap: 24px;
      transition: height .25s ease;
    }
    .header--v3.header--scrolled .header__inner { height: 60px; }

    .logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-weight: 800; }
    .logo__mark {
      width: 36px;
      height: 36px;
/*       border-radius: 8px; */
/*       background: var(--color-primary);  */
      color: var(--color-primary-dark);
      display: grid;
      place-items: center;
    }
    .footer .logo__mark {color: var(--color-bg-alt);}
    .logo__text {
      font-size: 18px;
      color: var(--color-text);
      line-height: .6;
      letter-spacing: .5px;
    }
    .logo_text_down {
      font-size: 8px;
      letter-spacing: normal;
    }
    .header--v3 .nav { margin-left: auto; }
    .header--v3 .nav__list { display: flex; gap: 26px; align-items: center; list-style: none; }

    .nav__item { position: relative; }
    .header--v3 .nav__link {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 15px; font-weight: 500; color: var(--color-text);
      padding: 8px 0; transition: color .15s ease;
    }
    .header--v3 .nav__link:hover,
    .header--v3 .nav__link:focus-visible,
    .header--v3 .nav__link.is-active { color: var(--color-primary); }

    .nav__caret { font-size: 10px; opacity: .6; transition: transform .2s ease; }
    .nav__item--has-dropdown.is-open .nav__caret { transform: rotate(180deg); }

/* Мостик для мыши: не даёт дропдауну закрыться при переходе от кнопки к панели */
.nav__item--has-dropdown .dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  /* чтобы клики по пустоте не срабатывали случайно — можно оставить так */
  pointer-events: auto;
}

    .dropdown {
      position: absolute; top: calc(100% + 12px); left: 50%;
      transform: translateX(-50%) translateY(6px);
      background: #fff;
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      box-shadow: 0 12px 32px rgba(0,0,0,.08);
      padding: 20px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
      min-width: 480px;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .nav__item--has-dropdown:hover .dropdown,
    .nav__item--has-dropdown.is-open .dropdown {
      opacity: 1; visibility: visible; pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }
    .dropdown__col { display: flex; flex-direction: column; }
    .dropdown__title {
      font-family: 'Manrope', sans-serif; font-size: 12px;
      text-transform: uppercase; letter-spacing: .06em;
      color: var(--color-muted); margin-bottom: 10px;
    }
    .dropdown__col a {
      display: block; padding: 6px 0; font-size: 14px;
      color: var(--color-text); transition: color .15s;
    }
    .dropdown__col a:hover,
    .dropdown__col a:focus-visible { color: var(--color-primary); }

    .header__actions { display: flex; align-items: center; gap: 16px; }
    .header__phone {
      display: inline-flex; align-items: center; gap: 8px;
      font-weight: 700; color: var(--color-text); white-space: nowrap;
      transition: color .15s;
    }
    .header__phone:hover { color: var(--color-primary); }
    .header__phone-icon { font-size: 15px; }

    .burger {
      display: none;
      flex-direction: column; justify-content: center; gap: 5px;
      width: 36px; height: 36px; padding: 6px;
      border-radius: 8px;
    }
    .burger span {
      display: block; height: 2px; width: 100%;
      background: var(--color-text); border-radius: 2px;
      transition: transform .25s ease, opacity .2s ease;
    }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header__trust {
      background: var(--color-bg-alt);
      border-top: 1px solid var(--color-border);
      font-size: 13px; color: var(--color-muted);
      transition: max-height .25s ease, opacity .25s ease;
      max-height: 40px; overflow: hidden;
    }
    .header--v3.header--scrolled .header__trust { max-height: 0; opacity: 0; border-top-color: transparent; }

    .header__trust-inner { display: flex; gap: 28px; flex-wrap: wrap; padding: 8px 20px; }
    .header__trust span { white-space: nowrap; }

    .header--v3 a:focus-visible,
    .header--v3 button:focus-visible {
      outline: 2px solid var(--color-primary);
      outline-offset: 2px;
      border-radius: 4px;
    }

    /* ---------- HERO ---------- */
    .hero {
      background: linear-gradient(135deg, #3a2516 0%, #6b4526 100%);
      color: #fff;
      padding: 80px 0;
    }
    .hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
    .hero__title {
      font-family: 'Manrope', sans-serif;
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 800; line-height: 1.15;
    }
    .hero__subtitle { font-size: 18px; margin-top: 16px; opacity: .9; }
    .hero__features {
      list-style: none; margin: 28px 0;
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    }
    .hero__features li { position: relative; padding-left: 26px; font-size: 15px; }
    .hero__features li::before {
      content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700;
    }
    .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
    .hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

    /* ---------- SERVICES ---------- */
    .services__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
    }
    .card {
      background: #fff;
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 24px;
      display: flex; flex-direction: column; gap: 10px;
      transition: box-shadow .2s, transform .2s, border-color .2s;
    }
    .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--color-accent); }
    .card__icon {
      width: 48px; height: 48px; border-radius: 10px;
      background: var(--color-bg-alt); color: var(--color-primary);
      display: grid; place-items: center; font-size: 22px;
    }
    .card__title { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; }
    .card__text { color: var(--color-muted); font-size: 14px; }
    .card__more { margin-top: auto; color: var(--color-primary); font-weight: 600; font-size: 14px; }

    /* ---------- WHY ---------- */
    .why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .why__item { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--color-border); }
    .why__item h3 { font-family: 'Manrope', sans-serif; font-size: 17px; margin-bottom: 8px; }
    .why__item p { color: var(--color-muted); font-size: 14px; }

    /* ---------- BEFORE/AFTER ---------- */
    .beforeafter__slider {
      position: relative; max-width: 900px; margin: 0 auto;
      border-radius: var(--radius); overflow: hidden;
      aspect-ratio: 16 / 9;
    }
    .beforeafter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .beforeafter__img--after { clip-path: inset(0 0 0 50%); }
    .beforeafter__range {
      position: absolute; inset: auto 0 20px 0;
      width: 90%; margin: 0 auto; display: block;
      accent-color: var(--color-primary);
    }
    .beforeafter__caption { text-align: center; color: var(--color-muted); margin-top: 16px; font-size: 14px; }

    /* ---------- STEPS ---------- */
    .steps__list {
      list-style: none;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
    }
    .steps__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
    .steps__num {
      font-family: 'Manrope', sans-serif; font-weight: 800;
      color: var(--color-accent); font-size: 28px; display: block; margin-bottom: 8px;
    }
    .steps__item h3 { font-size: 16px; }

    /* ---------- PORTFOLIO ---------- */
    .portfolio__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
    .portfolio__item {
      position: relative; border-radius: var(--radius); overflow: hidden;
      aspect-ratio: 4 / 3; display: block;
    }
    .portfolio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
    .portfolio__item:hover img { transform: scale(1.05); }
    .portfolio__label {
      position: absolute; left: 12px; bottom: 12px;
      background: rgba(0,0,0,.6); color: #fff;
      padding: 6px 12px; border-radius: 8px; font-size: 13px;
    }
    .portfolio__cta { text-align: center; margin-top: 32px; }

    /* ---------- PRICES ---------- */
    .prices__table {
      width: 100%; border-collapse: collapse;
      background: #fff; border-radius: var(--radius); overflow: hidden;
      box-shadow: var(--shadow);
    }
    .prices__table th, .prices__table td {
      padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--color-border);
    }
    .prices__table th { background: var(--color-primary); color: #fff; font-weight: 600; }
    .prices__table tr:last-child td { border-bottom: none; }
    .prices__cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

    /* ---------- REVIEWS ---------- */
    .reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
    .review { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--color-border); }
    .review__text { font-style: italic; margin-bottom: 12px; }
    .review__author { color: var(--color-muted); font-size: 14px; font-weight: 600; }

    /* ---------- QUIZ ---------- */
    .quiz__inner { max-width: 720px; margin: 0 auto; }
    .quiz__form { display: grid; gap: 24px; }
    .quiz__step {
      border: 1px solid var(--color-border); border-radius: var(--radius);
      padding: 20px; background: #fff;
    }
    .quiz__step legend { font-weight: 700; padding: 0 8px; }
    .quiz__step label { display: block; margin: 8px 0; cursor: pointer; }
    .quiz__step input[type="text"],
    .quiz__step input[type="tel"],
    .quiz__step input[type="number"] {
      width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
      border-radius: 8px; font: inherit; margin-bottom: 8px;
    }

    /* ---------- FAQ ---------- */
    .faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
    .faq__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 22px; }
    .faq__item summary { font-weight: 600; cursor: pointer; }
    .faq__item p { margin-top: 12px; color: var(--color-muted); }

    /* ---------- GEO ---------- */
    .geo__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
    .geo__list a {
      display: inline-block; padding: 10px 20px;
      background: #fff; border: 1px solid var(--color-border);
      border-radius: 999px; font-weight: 500;
    }
    .geo__list a:hover { border-color: var(--color-primary); color: var(--color-primary); }

    /* ---------- BLOG PREVIEW ---------- */
    .blog-preview__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .post { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s; }
    .post:hover { box-shadow: var(--shadow); }
    .post__title { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
    .post__excerpt { color: var(--color-muted); font-size: 14px; }

    /* ---------- CTA FINAL ---------- */
    .cta-final { background: var(--color-primary); color:#fff;padding: 64px 0; }
    .cta-final__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
    .cta-final__text h2 { font-family: 'Manrope', sans-serif; font-size: clamp(22px, 3vw, 32px); }
    .cta-final__text p { opacity: .9; margin-top: 10px; }
    .cta-final__form { display: grid; gap: 12px; background: rgba(255,255,255,.1); padding: 24px; border-radius: var(--radius); }
    .cta-final__form input[type="text"],
    .cta-final__form input[type="tel"] {
      padding: 14px 16px; border-radius: 8px; border: none; font: inherit; width: 100%;
    }
    .cta-final__agree { font-size: 13px; opacity: .85; }

    /* ---------- FOOTER ---------- */
    .footer { background: #1f1a15; color: #d8d2c9; padding: 56px 0 24px; }
    .footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
    .footer__title { color: #fff; font-family: 'Manrope', sans-serif; font-size: 15px; margin-bottom: 12px; }
    .footer__col ul { list-style: none; display: grid; gap: 8px; }
    .footer__col a:hover { color: #fff; }
    .footer__desc { margin-top: 12px; font-size: 14px; color: #a8a29a; }
    .logo--footer .logo__text { color: #fff; }
    .footer__bottom {
      border-top: 1px solid #3a332b; margin-top: 40px; padding-top: 20px;
      display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
      font-size: 13px; color: #a8a29a;
    }
    .footer__bottom ul { list-style: none; display: flex; gap: 20px; }

    /* ---------- FLOAT BUTTONS ---------- */
    .float-call, .float-msg {
      position: fixed; right: 20px; z-index: 90;
      width: 56px; height: 56px; border-radius: 50%;
      display: grid; place-items: center;
      font-size: 24px; box-shadow: var(--shadow);
    }
    .float-call { bottom: 90px; background: var(--color-primary); color: var(--color-bg-alt); display: none; }
    .float-msg { bottom: 20px; background: var(--color-float-msg); color: var(--color-bg-alt); }

    /* ---------- MODAL ---------- */
    .modal { position: fixed; inset: 0; z-index: 200; display: none; }
    .modal--open { display: grid; place-items: center; }
    .modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
    .modal__dialog {
      position: relative; z-index: 1;
      background: #fff; border-radius: var(--radius);
      padding: 32px; width: min(440px, 92vw);
      box-shadow: var(--shadow);
    }
    .modal__close { position: absolute; top: 12px; right: 16px; font-size: 28px; line-height: 1; color: var(--color-muted); }
    .modal__title { font-family: 'Manrope', sans-serif; font-size: 22px; margin-bottom: 8px; }
    .modal__text { color: var(--color-muted); margin-bottom: 20px; }
    .modal__form { display: grid; gap: 12px; }
    .modal__form input[type="text"],
    .modal__form input[type="tel"] {
      padding: 14px 16px; border: 1px solid var(--color-border);
      border-radius: 8px; font: inherit; width: 100%;
    }
    .modal__agree { font-size: 13px; color: var(--color-muted); }

    .is-invalid { border-color: #d33 !important; }
    .form-success {
      padding: 24px; background: #e8f6ec; color: #1f6b3a;
      border-radius: var(--radius); font-weight: 600; text-align: center;
    }

    /* ---------- RESPONSIVE ---------- */
    @media (max-width: 1024px) {
      .header--v3 .nav {
        display: none;
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: #fff; padding: 20px;
        overflow-y: auto; z-index: 99;
      }
      .header--v3 .nav--open { display: block; }
      .header--v3 .nav--open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
      .header--v3 .nav--open .nav__link {
        font-size: 17px; padding: 16px 0; width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid var(--color-border);
      }
      .header--v3 .nav--open .dropdown {
        position: static; transform: none;
        opacity: 1; visibility: visible; pointer-events: auto;
        box-shadow: none; border: none; padding: 0 0 16px;
        display: none; grid-template-columns: 1fr; gap: 10px; min-width: 0;
      }
      .header--v3 .nav--open .nav__item--has-dropdown.is-open .dropdown { display: grid; }
      .header--v3 .nav--open .dropdown__title { padding-top: 12px; }

      .header__phone-num { display: none; }
      .header__phone { padding: 8px; }
      .header__phone-icon { font-size: 18px; }

      .header__trust-inner {
        gap: 16px; font-size: 12px; padding: 8px 20px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .header__trust-inner::-webkit-scrollbar { display: none; }

      .hero__inner { grid-template-columns: 1fr; }
      .cta-final__inner { grid-template-columns: 1fr; }
      .footer__inner { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 640px) {
      .section { padding: 56px 0; }
      .hero { padding: 56px 0; }
      .hero__features { grid-template-columns: 1fr; }
      .footer__inner { grid-template-columns: 1fr; }
      .prices__table th, .prices__table td { padding: 12px 14px; font-size: 14px; }
      .float-call { display: grid; }

      .header--v3 .btn--primary { display: none; }
      .header--v3 .header__actions { margin-left: auto; gap: 10px; }
      .header--v3 .burger { display: flex; }
      .header--v3 .header__inner { height: 64px; gap: 12px; }
      .header--v3.header--scrolled .header__inner { height: 56px; }
      .header--v3 .nav { top: 64px; }
      .logo__text { font-size: 16px; }
      .logo__mark { width: 32px; height: 32px; font-size: 13px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .header--v3 *, .header--v3 *::before, .header--v3 *::after {
        transition: none !important; animation: none !important;
      }
    }


/* ==================== MODAL ==================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.modal--open { display: grid; place-items: center; }

.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}
.modal__dialog {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius);
  padding: 32px; width: min(440px, 92vw);
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute; top: 12px; right: 16px;
  font-size: 28px; line-height: 1; color: var(--color-muted);
}
.modal__title { font-family: 'Manrope', sans-serif; font-size: 22px; margin-bottom: 8px; }
.modal__text { color: var(--color-muted); margin-bottom: 20px; }
.modal__form { display: grid; gap: 12px; }
.modal__form input[type="text"],
.modal__form input[type="tel"] {
  padding: 14px 16px; border: 1px solid var(--color-border);
  border-radius: 8px; font: inherit; width: 100%;
}
.modal__agree { font-size: 13px; color: var(--color-muted); }

/* ==================== FORM VALIDATION ==================== */
.is-invalid { border-color: #d33 !important; }
.form-success {
  padding: 24px; background: #e8f6ec; color: #1f6b3a;
  border-radius: var(--radius); font-weight: 600; text-align: center;
}

/* ==================== HEADER SCROLLED ==================== */
.header--scrolled { box-shadow: var(--shadow); }



/* ==================== HEADER ACTIONS ==================== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Телефон --- */
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: color .15s;
}
.header__phone:hover { color: var(--color-primary); }
.header__phone-icon { font-size: 15px; }

/* --- Кнопки в шапке --- */
.header__callback,
.header__cta {
  white-space: nowrap;
}

/* ==================== ПЛАНШЕТ: сужаем ==================== */
@media (max-width: 1024px) {
  /* На планшете и ниже — телефон без номера */
  .header__phone-num { display: none; }
  .header__phone {
    padding: 8px;
    font-size: 18px;           /* иконка чуть крупнее, чтобы попадать пальцем */
  }
  .header__phone-icon { font-size: 18px; }

  /* Кнопку «Замер бесплатно» тоже можно скрыть на планшете,
     если места мало — раскомментируй при необходимости */
  /* .header__cta { display: none; } */
}

/* ==================== МОБИЛКА ==================== */
@media (max-width: 640px) {
  /* Оставляем только иконку телефона + бургер */
  .header__callback,
  .header__cta { display: none; }

  .header__actions {
    margin-left: auto;
    gap: 8px;
  }

  .header__phone {
    padding: 8px;
    /* минимальная зона тапа 44×44 — важно для iOS */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}
