  /* Шрифты (Montserrat variable + переменные --font-*) — в css/fonts.css, он линкуется перед site.css. */
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: rgba(245, 245, 244, 0.7);
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #111111;
    --brand-strong: color-mix(in srgb, var(--brand) 88%, white);
    --brand-deep: color-mix(in srgb, var(--brand) 76%, white);
    --dark: var(--brand);
    --dark-2: var(--brand-strong);
    --accent: #111111;
    --accent-hover: color-mix(in srgb, var(--accent) 88%, white);
    --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
    --accent-soft-strong: color-mix(in srgb, var(--accent) 18%, white);
    --accent-warm: color-mix(in srgb, var(--accent) 34%, white);
    --accent-ink: color-mix(in srgb, var(--accent) 82%, black);
    --accent-veil: color-mix(in srgb, var(--accent) 18%, transparent);
    --accent-veil-soft: color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-ring: color-mix(in srgb, var(--accent) 16%, transparent);
    --accent-ring-strong: color-mix(in srgb, var(--accent) 28%, transparent);
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
    --container: 1280px;
    /* Высота фиксированной шапки: логотип 80px + паддинги 20px + бордер.
       Единственный источник — от него считаются отступ main, высоты hero
       и sticky-элементы (calculator.css). */
    --header-height: 102px;
    --hero-offset: 96px;
    --anchor-offset: 20px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-padding-top: var(--anchor-offset);
  }

  body {
    margin: 0;
  }

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

  .roof-page {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .roof-brand__title,
  .roof-eyebrow,
  .roof-section__label,
  .roof-hero-card__title,
  .roof-section__title,
  .roof-card__title,
  .roof-gallery-card__title,
  .roof-category-card__title,
  .roof-faq-item summary,
  .roof-cta-card__title {
    font-family: var(--font-heading);
  }

  .roof-container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
  }

  .roof-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background-color 0.38s ease, box-shadow 0.38s ease;
  }

  .roof-page > main {
    padding-top: var(--header-height);
  }

  .roof-page main section[id],
  .roof-footer[id] {
    scroll-margin-top: var(--anchor-offset);
  }

  .roof-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
  }

  .roof-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }

  .roof-brand__logo-wrap {
    display: flex;
    align-items: center;
    height: 80px;
  }

  .roof-brand__logo {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .roof-brand__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .roof-brand__subtitle {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
  }

  .roof-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .roof-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .roof-nav a:hover {
    color: var(--text);
  }

  .roof-nav a.is-active {
    color: var(--accent);
  }

  .roof-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Переключатель языка — выпадающее меню (глобус + код + стрелка). */
  .roof-lang { position: relative; }

  .roof-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.18s;
  }

  .roof-lang__toggle:hover { color: var(--accent-hover); }
  .roof-lang__globe { flex: none; }
  .roof-lang__chev { flex: none; transition: transform 0.18s; }
  .roof-lang.is-open .roof-lang__chev { transform: rotate(180deg); }

  /* Каждый язык — в своей <form>; contents убирает её бокс. */
  .roof-lang__form { display: contents; }

  .roof-lang__menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: max-content;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    z-index: 500;
    overflow: hidden;
  }

  .roof-lang.is-open .roof-lang__menu { display: block; }

  .roof-lang__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: none;
    text-align: left;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
  }

  .roof-lang__item:hover { background: #f8fafc; }
  .roof-lang__item.is-active { font-weight: 700; cursor: default; justify-content: flex-start; gap: 7px; }
  .roof-lang__check { flex: none; color: var(--text); }

  /* В мобильном меню — без дропдауна: языки списком сразу. */
  .roof-lang--mobile { width: 100%; }
  .roof-lang--mobile .roof-lang__toggle { display: none; }
  .roof-lang--mobile .roof-lang__menu {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    border-top: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    margin-top: 6px;
    padding-top: 6px;
  }
  .roof-lang--mobile .roof-lang__item { padding: 10px 0; }

  .roof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 18px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .roof-btn--accent {
    background: var(--accent);
    color: #fff;
  }

  .roof-btn--accent:hover {
    background: var(--accent-hover);
  }

  /* ── User menu ── */
  .roof-user-menu {
    position: relative;
  }

  .roof-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    transition: color 0.18s;
    padding: 0;
  }

  .roof-user-icon:hover { color: var(--accent-hover); }

  .roof-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15,23,42,0.15);
    min-width: 220px;
    z-index: 500;
    overflow: hidden;
  }

  .roof-user-dropdown.is-open { display: block; }

  .roof-user-dropdown__header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
  }

  .roof-user-dropdown__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
  }

  .roof-user-dropdown__code {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
  }

  .roof-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s;
  }

  .roof-user-dropdown__item:hover { background: #f8fafc; }

  .roof-user-dropdown__item--danger { color: #e11d48; }
  .roof-user-dropdown__item--danger:hover { background: #fff1f2; }

  .roof-user-dropdown__divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
  }

  .roof-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: color 0.18s;
  }

  .roof-cart-icon:hover { color: var(--accent-hover); }

  .roof-cart-icon--disabled {
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
  }

  .roof-cart-icon.is-pulse {
    animation: cart-pop .5s cubic-bezier(.36,.07,.19,.97);
  }

  @keyframes cart-pop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.45) rotate(-8deg); }
    60%  { transform: scale(1.25) rotate(6deg); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
  }

  .roof-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f00;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .roof-btn--dark {
    background: var(--dark);
    color: #fff;
  }

  .roof-btn--dark:hover {
    background: var(--dark-2);
  }

  .roof-btn--light {
    background: #fff;
    color: var(--text);
    border: 1px solid #cbd5e1;
  }

  .roof-btn--light:hover {
    background: #f8fafc;
  }

  .roof-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(780px, calc(100vh - var(--header-height)), 960px);
    background-color: var(--dark);
    /* Промежуточная переменная: на мобильном media query подменяет её на
       -sm вариант (1200px) — сам градиентный composite не дублируется. */
    --roof-hero-bg-resolved: var(--roof-hero-bg);
    background-image:
      linear-gradient(90deg, rgba(2, 6, 23, 0.74) 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.16) 100%),
      linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.48) 100%),
      var(--roof-hero-bg-resolved);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
  }

  @media (max-width: 768px) {
    .roof-hero {
      --roof-hero-bg-resolved: var(--roof-hero-bg-sm, var(--roof-hero-bg));
    }
  }

  .roof-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) calc(100% - clamp(40px, 6%, 64px)), #fff 100%);
    pointer-events: none;
  }

  .roof-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.48));
    opacity: 0.58;
    pointer-events: none;
    z-index: -1;
  }

  .roof-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    min-height: clamp(780px, calc(100vh - var(--header-height)), 960px);
    box-sizing: border-box;
    align-items: end;
    padding: 80px 0 92px;
  }

  .roof-hero-card {
    max-width: 760px;
    animation: roofHeroLift 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .roof-hero-card__image {
    display: flex;
    align-items: flex-end;
    min-height: 520px;
  }

  .roof-hero-card__content {
    max-width: 720px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    color: #fff;
    padding: 0;
  }

  .roof-eyebrow {
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
  }

  .roof-hero-card__title {
    margin: 16px 0 0;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.055em;
    text-wrap: balance;
    max-width: 900px;
  }

  /* Кириллица ~15-20% шире латиницы: тот же кегль даёт на 2 строки больше и
     hero «разъезжается» по высоте. Кегль для ru чуть меньше — строк столько же,
     сколько в ro. :where() обнуляет специфичность, чтобы мобильные правила ниже
     по файлу продолжали побеждать. */
  :where(html[lang="ru"]) .roof-hero-card__title {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
  }

  .roof-hero-card__text {
    margin: 22px 0 0;
    font-size: clamp(1.02rem, 1.4vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 650px;
    text-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  }

  /* Empty hero subtitle: reserve its footprint (no text) so the title/buttons stay put. */
  .roof-hero-card__text--reserved {
    min-height: 3.3em;
  }

  .roof-hero-card__quick {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .roof-quick-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(1.2);
    padding: 0 22px;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.18);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  }

  .roof-quick-box:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.24);
  }

  .roof-benefits {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 56px 0 0;
    background: #fff;
  }

  .roof-benefits__panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
  }

  .roof-benefit {
    min-width: 0;
    padding: 0 12px;
    text-align: center;
  }

  .roof-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
  }

  .roof-benefit__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .roof-benefit__icon img {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: contain;
    /* НИКАКИХ filter здесь: на iOS Safari filter выносит img в отдельный
       GPU-слой, который на OLED дизерится в видимый серый квадрат (глазом
       видно, на скриншоте чисто). Grayscale+contrast запечены в сами PNG. */
  }

  .roof-benefit h2 {
    margin: 20px 0 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0;
  }

  .roof-benefit p {
    margin: 9px 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
  }

  /* Stats band: a wide "achievements" strip — counters, a Moldova map with a
     caption beside it, and a typed claim paragraph. Wider than the standard
     container so it spans more than the benefits grid below it. */
  .roof-stats {
    position: relative;
    z-index: 3;
    padding: 56px 0 0;
    background: #fff;
  }

  .roof-stats__container {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
  }

  /* Fixed-track grid: counters | map | claim. Each block keeps its own place
     regardless of how much text it holds (the claim column is a fixed width),
     and the whole grid is centered — so the strip never drifts off-centre. */
  .roof-stats__panel {
    display: grid;
    grid-template-columns: auto auto 40ch;
    justify-content: center;
    align-items: center;
    gap: clamp(26px, 3vw, 56px);
  }

  /* The three counters travel together as one block, so their big numbers stay
     aligned on one line while the block as a whole centers against the taller
     map — the map sets the row height and the vertical center. */
  .roof-stats__counters {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 2.4vw, 46px);
  }

  .roof-stat {
    min-width: 0;
  }

  .roof-stat--counter {
    text-align: center;
  }

  .roof-stat--map {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 20px);
  }

  /* The value reserves the width of its FINAL number (via a hidden placeholder)
     so the live count-up animates inside a fixed slot — the row never reflows. */
  .roof-stat__value {
    display: inline-grid;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
  }

  .roof-stat__value::before {
    content: attr(data-final);
    grid-area: 1 / 1;
    visibility: hidden;
  }

  .roof-stat__num {
    grid-area: 1 / 1;
    justify-self: center;
  }

  .roof-stat__label {
    margin: 6px auto 0;
    max-width: 21ch;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--muted);
  }

  /* Map: bigger silhouette, caption sits to its right. */
  .roof-stat-map {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(5.5rem, 11vw, 8.5rem);
    flex: 0 0 auto;
  }

  .roof-stat-map__svg {
    height: 100%;
    width: auto;
    display: block;
    overflow: visible;
  }

  .roof-stat-map__caption {
    margin: 0;
  }

  /* Reserve the caption title's final width so the typewriter can't nudge the
     map block sideways as it fills in. */
  .roof-stat-map__title {
    display: inline-grid;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    font-weight: 800;
    color: var(--text);
  }

  .roof-stat-map__title::before {
    content: attr(data-final);
    grid-area: 1 / 1;
    visibility: hidden;
  }

  .roof-stat-map__title-text {
    grid-area: 1 / 1;
    justify-self: start;
  }

  .roof-stat-map__text {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--muted);
  }

  /* Right claim paragraph: a normal lead line + an emphasized bold line. */
  .roof-stats__side {
    margin: 0;
    font-size: clamp(0.96rem, 1.05vw, 1.1rem);
    line-height: 1.6;
    color: var(--muted);
  }

  .roof-stats__side-lead {
    display: block;
  }

  .roof-stats__side-strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-weight: 800;
  }

  /* Solid black silhouette; stroke welds sub-pixel gaps between districts. */
  .roof-stat-map__piece {
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: center;
  }

  /* JS arms each piece (hidden) only when motion is available; no-JS stays visible. */
  .roof-stat-map.is-armed .roof-stat-map__piece {
    opacity: 0;
  }

  /* Reveal via a keyframe animation (not a transition): a transition needs a
     committed "before" state, which the browser coalesces away when the section
     is already on-screen at load (map snaps in instantly). An animation starts
     reliably whenever applied. Per-piece animation-delay (set in JS) staggers the
     assembly; fill-mode "both" holds each piece hidden until its turn. */
  .roof-stat-map.is-armed.is-visible .roof-stat-map__piece {
    animation: roof-piece-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  @keyframes roof-piece-in {
    from {
      opacity: 0;
      transform: scale(0.35);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Generic typewriter caret. */
  .roof-typed.is-typing::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -0.1em;
    animation: roof-caret-blink 0.8s steps(1) infinite;
  }

  @keyframes roof-caret-blink {
    50% {
      opacity: 0;
    }
  }

  @media (max-width: 1100px) {
    /* Counters + map stay in row 1; the claim spans a full-width row 2. */
    .roof-stats__panel {
      grid-template-columns: auto auto;
    }

    .roof-stat--side {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: 56ch;
    }
  }

  @media (max-width: 640px) {
    .roof-stats {
      padding-top: 32px;
    }

    .roof-stats__panel {
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
    }

    .roof-stat--side {
      grid-column: auto;
      max-width: none;
    }

    .roof-stats__counters {
      flex-wrap: wrap;
      gap: 24px;
    }

    .roof-stat--counter {
      flex: 1 1 100%;
      text-align: left;
    }

    .roof-stat__label {
      margin-left: 0;
      margin-right: 0;
    }

    .roof-stat--map {
      justify-content: flex-start;
    }
  }

  .roof-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(245, 245, 244, 0.7);
  }

  .roof-strip__grid {
    display: grid;
    gap: 16px;
    padding: 24px 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .roof-strip__item {
    border-radius: 18px;
    border: 1px solid #fff;
    background: #fff;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }

  .roof-section {
    padding: 104px 0;
  }

  .roof-section--alt {
    /* Single uniform background across the site; no alternating tint */
    background: transparent;
  }

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

  .roof-category-section {
    padding-top: 76px;
    background: #fff;
    border-top: 0;
    border-bottom: 0;
  }

  .roof-services-section {
    padding-top: 84px;
    background: #fff;
  }

  .roof-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 28px;
  }

  .roof-service-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  }

  .roof-service-card__media {
    aspect-ratio: 1.55 / 1;
    background: #f1f5f9;
    overflow: hidden;
  }

  .roof-service-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .roof-service-card__body {
    padding: 22px;
  }

  .roof-service-card__title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.28;
    font-weight: 800;
    color: #0f172a;
    overflow-wrap: anywhere;
  }

  .roof-service-card__text {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .roof-category-section__btn-mobile,
  .roof-projects__btn-mobile {
    display: none;
  }

  .roof-calc-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - var(--header-height));
    padding: 96px 0;
    --roof-calc-bg-resolved: var(--roof-calc-bg);
    background:
      linear-gradient(rgba(2, 6, 23, 0.1)),
      var(--roof-calc-bg-resolved) center/cover no-repeat;
    color: #fff;
  }

  @media (max-width: 768px) {
    .roof-calc-hero {
      --roof-calc-bg-resolved: var(--roof-calc-bg-sm, var(--roof-calc-bg));
    }
  }

  .roof-calc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) calc(100% - clamp(40px, 6%, 64px)), #fff 100%),
      linear-gradient(0deg, rgba(255, 255, 255, 0) calc(100% - clamp(40px, 6%, 64px)), #fff 100%),
      rgba(2, 6, 23, 0.58);
    pointer-events: none;
  }

  .roof-calc-hero__inner {
    position: relative;
    z-index: 1;
    min-height: calc(100dvh - var(--header-height) - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
  }

  .roof-calc-hero__head {
    text-align: center;
    max-width: 640px;
  }

  .roof-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
  }

  .roof-tool-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.2s ease;
  }

  .roof-tool-card:hover {
    background: rgba(255, 255, 255, 0.13);
  }

  .roof-tool-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }

  .roof-tool-card__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
  }

  .roof-tool-card__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0;
    flex: 1;
  }

  .roof-calc-hero__content {
    max-width: 620px;
  }

  .roof-calc-hero .roof-section__label,
  .roof-calc-page .roof-section__label {
    color: var(--accent-warm);
  }

  .roof-calc-hero .roof-section__text,
  .roof-calc-page .roof-section__text {
    color: #e2e8f0;
    max-width: 560px;
    margin-bottom: 28px;
  }

  .roof-calc-page {
    min-height: calc(100vh - 96px);
    --roof-calc-bg-resolved: var(--roof-calc-bg);
    background:
      linear-gradient(rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.76)),
      var(--roof-calc-bg-resolved) center/cover no-repeat;
    color: #fff;
  }

  @media (max-width: 768px) {
    .roof-calc-page {
      --roof-calc-bg-resolved: var(--roof-calc-bg-sm, var(--roof-calc-bg));
    }
  }

  .roof-calc-page__inner {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
  }

  .roof-calc-page__content {
    max-width: 720px;
  }

  .roof-section__head {
    max-width: 720px;
    margin-bottom: 46px;
  }

  .roof-section__label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .roof-section--dark .roof-section__label {
    color: var(--accent-warm);
  }

  .roof-section__title {
    margin: 12px 0 0;
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.052em;
    text-wrap: balance;
  }

  .roof-section__text {
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
  }

  .roof-section--dark .roof-section__text,
  .roof-section--dark .roof-list,
  .roof-section--dark .roof-field__mock,
  .roof-section--dark .roof-calc-note {
    color: #cbd5e1;
  }

  .roof-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

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

  .roof-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 34px 28px;
    align-items: start;
  }

  @supports selector(:has(*)) {
    @media (min-width: 641px) {
      .roof-category-grid:has(> .roof-category-card:only-child) {
        grid-template-columns: minmax(0, 430px);
        justify-content: center;
      }

      .roof-category-grid:has(> .roof-category-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 430px));
        justify-content: center;
      }
    }
  }

  .roof-category-card {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .roof-category-card:hover,
  .roof-category-card:focus-visible {
    transform: translateY(-4px);
  }

  .roof-category-card:focus-visible {
    outline: 3px solid var(--accent-ring-strong);
    outline-offset: 4px;
  }

  .roof-category-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.45 / 1;
    min-height: 190px;
    border-radius: 16px;
  }

  .roof-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .roof-category-card:hover .roof-category-card__media img,
  .roof-category-card:focus-visible .roof-category-card__media img {
    transform: scale(1.035);
  }

  .roof-category-card__title {
    min-width: 0;
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
  }

  .roof-category-card__body {
    padding-top: 14px;
  }

  .roof-category-card__text {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .roof-category-card:hover .roof-category-card__title,
  .roof-category-card:focus-visible .roof-category-card__title {
    color: var(--accent);
  }

  .roof-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    padding: 0;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease, border-color 0.42s ease;
  }

  .roof-card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.12);
  }

  .roof-card__image {
    height: 248px;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .roof-card:hover .roof-card__image {
    transform: scale(1.045);
  }

  .roof-card__title {
    padding: 24px 24px 0;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .roof-card__text {
    margin-top: 16px;
    padding: 0 24px 24px;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--muted);
  }

  .roof-calc {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: start;
  }

  .roof-list {
    margin: 24px 0 0;
    padding-left: 18px;
    line-height: 2;
    color: #cbd5e1;
  }

  .roof-calc-box {
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  }

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

  .roof-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .roof-field__mock {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 0.92rem;
    color: #64748b;
  }

  .roof-calc-result {
    margin-top: 20px;
    border-radius: 10px;
    background: var(--accent-soft);
    padding: 20px;
  }

  .roof-calc-result__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-ink);
  }

  .roof-calc-result__price {
    margin-top: 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .roof-calc-note {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--muted);
  }

  .roof-gallery-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    color: inherit;
    text-decoration: none;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease, border-color 0.42s ease;
  }

  .roof-gallery-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.11);
  }

  .roof-gallery-card__image {
    height: 164px;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .roof-gallery-card:hover .roof-gallery-card__image {
    transform: scale(1.05);
  }

  .roof-gallery-card__image--project {
    height: 260px;
  }

  .roof-gallery-card__body {
    padding: 20px;
  }

  .roof-gallery-card__title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 800;
  }

  .roof-gallery-card__text {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
  }

  .roof-work-card {
    display: flex;
    flex-direction: column;
  }

  .roof-work-card .roof-gallery-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .roof-work-card .roof-gallery-card__body > :nth-last-child(2) {
    margin-bottom: 18px;
  }

  .roof-work-card__image-link {
    display: block;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
  }

  .roof-work-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .roof-work-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-radius: 8px;
    padding: 5px 10px;
    background: #fff7ed;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .roof-work-card__badge--muted {
    border-color: rgba(100, 116, 139, 0.28);
    background: #f8fafc;
    color: #334155;
  }

  .roof-gallery-card__title a {
    color: inherit;
    text-decoration: none;
  }

  .roof-gallery-card__title a:hover {
    color: var(--brand);
  }

  .roof-work-card__location {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
  }

  /* Та же форма, что у .roof-btn/.roof-btn--light — кнопки должны выглядеть одинаково. */
  .roof-work-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
  }

  .roof-work-card__more::after {
    content: "→";
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.28s ease;
  }

  .roof-work-card__more:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
  }

  .roof-work-card__more:hover::after {
    transform: translateX(4px);
  }

  .roof-work-card__more:focus-visible {
    outline: 3px solid var(--accent-ring-strong);
    outline-offset: 3px;
  }

  @keyframes roofHeroLift {
    from {
      opacity: 0;
      transform: translateY(34px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .roof-reveal {
    opacity: 0;
    transform: translateY(54px) scale(0.98);
    transition:
      opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .roof-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .roof-grid-3 > .roof-reveal:nth-child(2),
  .roof-grid-4 > .roof-reveal:nth-child(2) {
    --reveal-delay: 140ms;
  }

  .roof-grid-3 > .roof-reveal:nth-child(3),
  .roof-grid-4 > .roof-reveal:nth-child(3) {
    --reveal-delay: 280ms;
  }

  .roof-grid-4 > .roof-reveal:nth-child(4) {
    --reveal-delay: 420ms;
  }

  .roof-faq-contact__form.roof-reveal { --reveal-delay: 140ms; }
  .roof-tool-card.roof-reveal:nth-child(2) { --reveal-delay: 160ms; }

  .roof-category-card.roof-reveal:nth-child(2) { --reveal-delay: 100ms; }
  .roof-category-card.roof-reveal:nth-child(3) { --reveal-delay: 200ms; }
  .roof-category-card.roof-reveal:nth-child(4) { --reveal-delay: 300ms; }

  .roof-faq-item.roof-reveal:nth-child(2) { --reveal-delay: 80ms; }
  .roof-faq-item.roof-reveal:nth-child(3) { --reveal-delay: 160ms; }
  .roof-faq-item.roof-reveal:nth-child(4) { --reveal-delay: 240ms; }
  .roof-faq-item.roof-reveal:nth-child(5) { --reveal-delay: 320ms; }
  .roof-faq-item.roof-reveal:nth-child(n+6) { --reveal-delay: 400ms; }

  .roof-split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
  }

  .roof-faq-section {
    background: #fff;
  }

  .roof-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
    align-items: start;
  }

  .roof-faq-section__head {
    position: sticky;
    top: 124px;
    margin-bottom: 0;
  }

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

  .roof-faq-item {
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .roof-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    padding: 14px 56px 14px 22px;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

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

  .roof-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--accent);
    font-size: 1.15rem;
    line-height: 1;
    transform: translateY(-50%);
  }

  .roof-faq-item[open] summary {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .roof-faq-item[open] summary::after {
    content: "-";
  }

  .roof-faq-item p {
    margin: 0;
    padding: 18px 22px 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
  }

  /* FAQ page top section reduced padding */
  .roof-faq-page {
    padding-top: 40px;
  }


  /* FAQ page */
  .roof-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 36px;
  }
  .roof-breadcrumb a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .roof-breadcrumb a:hover { color: var(--brand); }

  .roof-faq-page__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
  }
  .roof-faq-page__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 8px 0 16px;
  }
  .roof-faq-page__lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
  }

  .roof-faq-page__list {
    max-width: 900px;
    margin: 0 auto;
  }

  .roof-faq-page__list .roof-faq-item summary {
    min-height: 52px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .roof-faq-list__more {
    margin-top: 32px;
    text-align: center;
  }

  /* FAQ contact form */
  .roof-faq-contact {
    background: var(--surface, #f7f7f5);
    padding-top: 6px;
    padding-bottom: 64px;
  }
  .roof-faq-contact__inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }
  .roof-faq-contact__inner .roof-section__title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
  }
  .roof-faq-contact__head {
    margin-bottom: 28px;
  }
  .roof-faq-contact__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .roof-faq-contact__form .roof-field {
    margin-bottom: 16px;
    text-align: left;
  }
  .roof-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .roof-form-alert {
    margin-bottom: 16px;
    border: 1px solid rgba(180, 35, 24, 0.22);
    border-radius: 10px;
    background: #fff7f6;
    padding: 12px 14px;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
  }
  .roof-faq-contact__form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .roof-faq-contact__form input,
  .roof-faq-contact__form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
  }
  .roof-faq-contact__form input:focus,
  .roof-faq-contact__form textarea:focus {
    outline: none;
    border-color: var(--brand);
  }
  .roof-field--error input,
  .roof-field--error textarea {
    border-color: #d92d20;
    background: #fffafa;
  }
  .roof-field__error {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b42318;
    margin-top: 6px;
    line-height: 1.35;
  }
  .roof-field__error:empty {
    display: none;
  }
  .roof-faq-contact__form .roof-btn {
    margin-top: 8px;
    width: 100%;
  }
  .roof-faq-contact__form.htmx-request .roof-btn {
    opacity: 0.72;
    pointer-events: none;
  }
  .roof-faq-contact__success {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 24px;
    font-size: 1rem;
    color: #2e7d32;
  }

  .roof-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .roof-lead-modal.is-open {
    display: flex;
  }

  .roof-lead-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
    cursor: pointer;
  }

  .roof-lead-modal__panel {
    position: relative;
    width: min(100%, 440px);
    border-radius: 18px;
    background: #fff;
    padding: 34px 30px 30px;
    text-align: center;
    box-shadow: 0 28px 76px rgba(15, 23, 42, 0.24);
  }

  .roof-lead-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }

  .roof-lead-modal__close:hover,
  .roof-lead-modal__close:focus-visible {
    background: #e2e8f0;
  }

  .roof-lead-modal__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 1.65rem;
    font-weight: 900;
  }

  .roof-lead-modal h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .roof-lead-modal p {
    margin: 14px 0 24px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
  }

  .roof-lead-modal .roof-btn {
    width: 100%;
  }

  .roof-cta {
    border-radius: 16px;
    background:
      radial-gradient(circle at top right, var(--accent-veil-soft), transparent 26%),
      linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-deep) 52%, #111827 100%);
    color: #fff;
    padding: 40px 48px;
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.22);
  }

  .roof-cta__grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
    align-items: center;
  }

  .roof-cta-card {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 24px;
  }

  .roof-cta-card__title {
    font-size: 1.15rem;
    font-weight: 800;
  }

  .roof-cta-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
  }

  .roof-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background:
      radial-gradient(circle at top right, var(--accent-veil-soft), transparent 22%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.88rem;
  }

  .roof-footer__inner {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr 1.05fr 1fr;
    gap: 36px 32px;
    align-items: start;
    width: 100%;
    padding: 40px 48px 10px;
    box-sizing: border-box;
  }

  /* Заголовок колонки/ряда футера — тот же голос, что у «Program de lucru». */
  .roof-footer__heading {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
  }

  .roof-footer__nav .roof-footer__heading,
  .roof-footer__contacts .roof-footer__heading {
    margin-bottom: 4px;
  }

  .roof-footer__brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
  }

  .roof-footer__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
  }

  .roof-footer__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .roof-footer__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .roof-footer__text {
    margin: 10px 0 0;
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
  }

  /* Офисы — ряд карточек на всю ширину под колонками (по две в ряд). */
  .roof-footer__offices {
    padding: 26px 48px 30px;
    box-sizing: border-box;
  }

  .roof-footer__offices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .roof-footer__office {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .roof-footer__office a {
    color: #334155;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .roof-footer__office a:hover {
    color: var(--accent);
  }

  .roof-footer__office-placeholder {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
  }

  .roof-footer__office-name {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .roof-footer__office-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .roof-footer__office-head > svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    color: var(--accent);
  }

  .roof-footer__office p.roof-footer__office-address {
    margin: 0;
    font-weight: 700;
    color: var(--text);
  }

  /* Адрес-ссылка: цвет текста, подчёркивание при наведении; карта открывается и кнопкой ниже. */
  .roof-footer__office a.roof-footer__office-address {
    font-weight: 700;
    color: var(--text);
  }

  .roof-footer__office a.roof-footer__office-address:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .roof-footer__office-hours {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .roof-footer__office-hours > svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--accent);
  }

  .roof-footer__office-hours-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .roof-footer__office-hours-label {
    margin-bottom: 2px;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .roof-footer__office-hours-value {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* «Vezi pe hartă» — кнопка-пилюля; при наведении инвертируется, как соцсети. */
  .roof-footer__office-map {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
  }

  .roof-footer__office a.roof-footer__office-map {
    color: var(--text);
  }

  .roof-footer__office a.roof-footer__office-map:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

  .roof-footer__office-map svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }

  .roof-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
  }

  .roof-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #334155;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
  }

  .roof-footer__social svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .roof-footer__social:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
  }

  .roof-footer__nav,
  .roof-footer__contacts {
    display: grid;
    gap: 10px;
    justify-items: start;
    min-width: 0;
  }

  .roof-footer__contacts {
    gap: 14px;
  }

  .roof-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .roof-footer__contact svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--accent);
  }

  .roof-footer__contacts a.roof-footer__contact--phone {
    font-size: 1.02rem;
    font-weight: 700;
  }

  .roof-footer__nav a,
  .roof-footer__contacts a,
  .roof-footer__bottom a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: var(--font-body);
    font-weight: 500;
  }

  .roof-footer__nav a:hover,
  .roof-footer__contacts a:hover,
  .roof-footer__bottom a:hover {
    color: var(--accent);
  }

  .roof-footer__contacts a {
    font-weight: 600;
  }

  .roof-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 48px 28px;
    box-sizing: border-box;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    color: var(--muted);
  }

  @media (max-width: 1100px) {
    .roof-nav {
      display: none;
    }

    .roof-footer__inner {
      grid-template-columns: 1fr 1fr;
    }

    .roof-strip__grid,
    .roof-grid-4,
    .roof-grid-3,
    .roof-calc,
    .roof-cta__grid {
      grid-template-columns: 1fr 1fr;
    }

    .roof-benefits__panel {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 1500px) {
    .roof-header__inner {
      gap: 18px;
    }

    .roof-nav {
      gap: 24px;
    }
  }

  @media (max-width: 1240px) {
    :root {
      --hero-offset: 112px;
    }

    .roof-header__inner {
      gap: 14px;
    }

    .roof-brand {
      gap: 14px;
    }

    .roof-nav {
      gap: 18px;
    }

    .roof-nav a {
      font-size: 0.88rem;
    }

    .roof-btn--accent {
      padding: 11px 16px;
      font-size: 0.9rem;
    }

    .roof-hero-card {
      max-width: 580px;
    }
  }

  @media (max-width: 860px) {
    :root {
      --hero-offset: 132px;
    }

    .roof-header__inner {
      flex-wrap: wrap;
    }

    .roof-brand {
      gap: 18px;
    }

    /* На мобиле прячем только шапочный переключатель; мобильный (.roof-lang--mobile) живёт в выезжающем меню. */
    .roof-lang--header {
      display: none;
    }

    .roof-hero__inner,
    .roof-calc-hero__inner,
    .roof-calc,
    .roof-footer__inner,
    .roof-faq-layout,
    .roof-grid-3,
    .roof-grid-4,
    .roof-strip__grid,
    .roof-cta__grid,
    .roof-form-grid {
      grid-template-columns: 1fr;
    }

    .roof-split-head {
      flex-direction: column;
      align-items: flex-start;
    }

    .roof-faq-section__head {
      position: static;
    }

    .roof-hero-card__image {
      min-height: 420px;
    }

    .roof-tools-grid {
      grid-template-columns: 1fr;
    }

    .roof-cta {
      padding: 28px 22px;
    }

    .roof-benefits {
      padding-top: 44px;
    }
  }

  @media (max-width: 640px) {
    .roof-calc-hero__inner {
      gap: 32px;
    }
    .roof-tool-card {
      padding: 28px 24px;
    }

    :root {
      --hero-offset: 148px;
    }

    .roof-container {
      width: min(var(--container), calc(100% - 24px));
    }

    .roof-footer__inner,
    .roof-footer__offices,
    .roof-footer__bottom {
      padding-left: 24px;
      padding-right: 24px;
    }

    .roof-footer__offices-grid {
      grid-template-columns: 1fr;
    }

    .roof-footer__brand-head {
      gap: 12px;
    }

    .roof-footer__logo-wrap {
      width: 56px;
      height: 56px;
      border-radius: 16px;
    }

    .roof-brand__subtitle {
      display: none;
    }

    .roof-header__inner {
      flex-wrap: nowrap;
    }

    .roof-header__actions {
      margin-left: auto;
    }

    .roof-burger {
      display: flex !important;
    }

    .roof-header__actions > .roof-btn {
      display: none;
    }

    .roof-hero-card,
    .roof-hero-card__image,
    .roof-hero-card__content {
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .roof-hero-card__title {
      max-width: 12ch;
      font-size: clamp(1.65rem, 7.3vw, 2rem);
      line-height: 1.04;
      letter-spacing: -0.04em;
      text-wrap: normal;
      overflow-wrap: break-word;
    }

    .roof-hero-card__text {
      max-width: 34ch;
      font-size: 0.98rem;
      line-height: 1.55;
      overflow-wrap: break-word;
    }

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

    .roof-benefits {
      padding-top: 32px;
    }

    .roof-benefits__panel {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .roof-benefit {
      padding: 0 18px;
    }

    .roof-hero__inner {
      padding: 56px 0 48px;
    }

    .roof-calc-page,
    .roof-calc-page__inner {
      min-height: 640px;
    }

    .roof-footer__bottom {
      flex-direction: column;
      align-items: flex-start;
      padding-bottom: 24px;
    }

    .roof-hero-card__quick {
      grid-template-columns: 1fr;
      align-items: stretch;
      flex-direction: column;
    }

    .roof-category-section {
      padding-bottom: 48px;
    }

    .roof-category-grid {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .roof-category-card__media {
      aspect-ratio: 1 / 1;
      min-height: unset;
    }

    .roof-category-card__body {
      padding-top: 10px;
      text-align: center;
    }

    .roof-category-card__text {
      display: none;
    }

    .roof-category-section .roof-split-head .roof-btn,
    #projects .roof-split-head .roof-btn {
      display: none;
    }

    .roof-category-section__btn-mobile,
    .roof-projects__btn-mobile {
      display: flex;
      width: 100%;
      box-sizing: border-box;
      margin-top: 16px;
      justify-content: center;
    }

    .roof-grid-3,
    .roof-grid-4 {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(278px, 84vw);
      grid-template-columns: none;
      gap: 16px;
      margin: 0 -12px;
      padding: 0 18vw 20px 12px;
      overflow-x: auto;
      overflow-y: visible;
      overscroll-behavior-x: none;
      scroll-padding-inline: 12px;
      scroll-behavior: auto;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      touch-action: pan-x pan-y;
      -webkit-overflow-scrolling: touch;
    }

    .roof-grid-3::-webkit-scrollbar,
    .roof-grid-4::-webkit-scrollbar {
      display: none;
    }

    .roof-grid-3 > *,
    .roof-grid-4 > * {
      min-width: 0;
      scroll-snap-align: start;
      scroll-snap-stop: normal;
    }

    .roof-scroll-wrap {
      -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%);
      mask-image: linear-gradient(to right, black 82%, transparent 100%);
    }


    .roof-faq-layout {
      gap: 28px;
    }

    .roof-faq-item summary {
      min-height: 62px;
      padding: 18px 50px 18px 18px;
      font-size: 1rem;
    }

    .roof-faq-item summary::after {
      right: 18px;
      width: 26px;
      height: 26px;
    }

    .roof-faq-item p {
      padding: 16px 18px 18px;
      font-size: 0.96rem;
    }
  }

  /* ========== BURGER ========== */

  .roof-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .roof-burger:hover { background: #f1f5f9; }

  .roof-burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #0f172a;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
    transform-origin: center;
  }

  .roof-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .roof-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .roof-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ========== MOBILE NAV ========== */

  .roof-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 39;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 80px 24px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .roof-mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .roof-mobile-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .roof-mobile-nav__links a {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    text-align: center;
    transition: background 0.18s, color 0.18s;
  }

  .roof-mobile-nav__links a:hover {
    background: #f1f5f9;
    color: var(--accent);
  }

  .roof-mobile-nav__button {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    border-radius: 16px;
    border: none;
    background: #f8fafc;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, color 0.18s;
  }

  .roof-mobile-nav__button:hover {
    background: #f1f5f9;
    color: var(--accent);
  }

  .roof-mobile-nav__cta {
    width: 100%;
    max-width: 320px;
    padding: 15px 24px;
    border-radius: 999px;
    font-size: 1rem;
    text-align: center;
  }

  body.roof-nav-open { overflow: hidden; }

  @media (max-width: 1100px) {
    .roof-burger { display: flex; }
  }

  @media (max-width: 640px) {
    /* Keep account / cart / burger as one tidy row in the header. The header is
       already a fixed white bar, so the burger doesn't need to float on its own
       (which made it overlap the cart/account icons). */
    .roof-burger {
      display: flex !important;
      width: 36px;
      height: 36px;
      padding: 7px;
    }
  }

  @media (min-width: 1101px) {
    .roof-mobile-nav { display: none; }
  }

  /* ========== END BURGER ========== */

  @supports (height: 100dvh) {
    .roof-hero {
      min-height: clamp(780px, calc(100dvh - var(--header-height)), 960px);
    }

    .roof-hero__inner {
      min-height: clamp(780px, calc(100dvh - var(--header-height)), 960px);
    }

    .roof-calc-hero {
      padding: 100px 0;
    }
  }

  /* Mobile: hero fills the visible screen (svh accounts for browser bars)
     so it looks full-height on every phone while CTA buttons stay above the fold */
  @media (max-width: 640px) {
    .roof-hero,
    .roof-hero__inner {
      min-height: 100svh;
    }

    .roof-hero {
      background-position: var(--roof-hero-pos-mobile, center);
    }

    .roof-hero__inner {
      padding: var(--hero-offset, 148px) 0 40px;
    }

    .roof-hero-card__image {
      min-height: 0;
    }

    .roof-hero-card__quick {
      margin-top: 24px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    .roof-reveal {
      opacity: 1;
      transform: none;
    }
  }

  .shop-hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, var(--accent-veil), transparent 26%),
      linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 48%, #f8fafc 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .shop-hero--compact {
    min-height: auto;
  }

  .shop-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: end;
    padding: 64px 0 56px;
  }

  .shop-hero--compact .shop-hero__inner {
    grid-template-columns: 1fr;
    padding: 48px 0 32px;
  }

  .shop-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .shop-hero__text {
    max-width: 720px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .shop-search {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.06);
  }

  .shop-search__label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
  }

  .shop-search__row {
    display: flex;
    gap: 12px;
  }

  .shop-search input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 0 18px;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
  }

  .shop-category-grid,
  .shop-product-grid {
    display: grid;
    gap: 20px;
  }

  .shop-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .shop-category-card,
  .shop-card {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  }

  .shop-category-card {
    display: block;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .shop-category-card:hover,
  .shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
  }

  .shop-category-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .shop-category-card__meta,
  .shop-card__meta,
  .shop-price__secondary,
  .shop-price__hint,
  .shop-breadcrumb {
    color: #64748b;
    font-size: 0.92rem;
  }

  .shop-category-card__meta {
    margin-top: 10px;
  }

  .shop-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .shop-card__media {
    display: block;
    aspect-ratio: 1.1 / 1;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  }

  .shop-card__media img,
  .shop-detail__main-image img,
  .shop-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .shop-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    color: #94a3b8;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  }

  .shop-card__placeholder--detail {
    min-height: 520px;
    border-radius: 12px;
  }

  .shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .shop-card__eyebrow {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .shop-card__title,
  .shop-detail__title {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .shop-card__title a {
    color: inherit;
    text-decoration: none;
  }

  .shop-card__meta,
  .shop-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .shop-price__label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
  }

  .shop-price__current {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text);
  }

  .shop-price__secondary--strike {
    text-decoration: line-through;
  }

  .shop-stock {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 0.85rem;
  }

  .shop-stock.is-out {
    background: #fef2f2;
    color: #b91c1c;
  }

  .shop-card__actions,
  .shop-detail__actions,
  .shop-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
  }

  .shop-card__disabled {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: #94a3b8;
    font-weight: 700;
  }

  .shop-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: start;
  }

  .shop-detail__gallery,
  .shop-detail__content,
  .shop-placeholder {
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.06);
  }

  .shop-detail__gallery {
    padding: 18px;
  }

  .shop-detail__main-image {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  }

  .shop-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .shop-detail__thumb {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  }

  .shop-detail__content,
  .shop-placeholder {
    padding: 28px;
  }

  .shop-breadcrumb {
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
  }

  .shop-detail__description {
    color: #334155;
    line-height: 1.75;
  }

  .shop-empty {
    padding: 26px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
  }

  .shop-placeholder {
    max-width: 760px;
    margin: 0 auto;
  }

  @media (max-width: 1100px) {
    .shop-category-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-product-grid,
    .shop-detail,
    .shop-hero__inner {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 720px) {
    .shop-category-grid,
    .shop-product-grid,
    .shop-detail__thumbs {
      grid-template-columns: 1fr;
    }

    .shop-search__row {
      flex-direction: column;
    }

    .shop-hero__inner {
      padding: 42px 0 30px;
    }

    .shop-detail__content,
    .shop-detail__gallery,
    .shop-placeholder,
    .shop-search {
      padding: 20px;
    }
  }

  /* ── Despre noi (about) ──────────────────────────────────── */
  .roof-about__layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 56px;
    align-items: start;
  }

  .roof-about__head {
    position: sticky;
    top: 124px;
    margin-bottom: 0;
    max-width: none;
  }

  .roof-about__rule {
    display: block;
    width: 72px;
    height: 2px;
    margin-top: 28px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  }

  .roof-about__head.is-visible .roof-about__rule {
    transform: scaleX(1);
  }

  .roof-about__body {
    display: grid;
    gap: 24px;
    padding-top: 6px;
  }

  .roof-about__body p {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--muted);
  }

  .roof-about__body p:first-child {
    font-size: clamp(1.18rem, 1.6vw, 1.4rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }

  .roof-about__body p:last-child:not(:first-child) {
    margin-top: 6px;
    padding: 22px 26px;
    border-left: 2px solid var(--text);
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
  }

  /* staggered paragraph reveal */
  .roof-about__body p.roof-reveal:nth-child(2) { --reveal-delay: 130ms; }
  .roof-about__body p.roof-reveal:nth-child(3) { --reveal-delay: 260ms; }
  .roof-about__body p.roof-reveal:nth-child(n+4) { --reveal-delay: 360ms; }

  @media (max-width: 860px) {
    .roof-about__layout {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .roof-about__head {
      position: static;
      top: auto;
    }

    .roof-about__rule {
      margin-top: 22px;
    }

    .roof-about__body p:last-child:not(:first-child) {
      padding: 18px 20px;
    }
  }

  /* ══ Поиск: строка + саджест ══════════════════════════════
     Общий компонент: шапка каталога/категории (shop.css больше
     не содержит этих стилей) и глобальный оверлей поиска. */
  .shop-catalog-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
    overflow: hidden;
  }

  .shop-catalog-search-wrap {
    position: relative;
    flex: 0 1 460px;
    max-width: 100%;
  }

  .shop-catalog-search-wrap .shop-catalog-search {
    width: 100%;
  }

  .shop-catalog-search:focus-within {
    border-color: #94a3b8;
  }

  .shop-catalog-search__input {
    flex: 1;
    min-width: 260px;
    padding: 9px 12px;
    border: none;
    outline: none;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
  }

  .shop-catalog-search__input::placeholder { color: #b0bec8; }

  .shop-catalog-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.18s;
    flex-shrink: 0;
  }

  .shop-catalog-search__btn:hover { color: var(--accent); }

  .shop-catalog-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
  }

  .shop-catalog-suggest__section + .shop-catalog-suggest__section {
    border-top: 1px solid #eef2f7;
  }

  .shop-catalog-suggest__heading {
    padding: 12px 16px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
  }

  .shop-catalog-suggest__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
  }

  .shop-catalog-suggest__item:hover,
  .shop-catalog-suggest__item.is-active {
    background: #f8fafc;
  }

  .shop-catalog-suggest__media {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e5edf5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    overflow: hidden;
  }

  .shop-catalog-suggest__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .shop-catalog-suggest__media svg {
    width: 22px;
    height: 22px;
  }

  .shop-catalog-suggest__body {
    min-width: 0;
  }

  .shop-catalog-suggest__title {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
  }

  .shop-catalog-suggest__title mark,
  .shop-catalog-suggest__meta mark {
    background: rgba(251, 146, 60, 0.18);
    color: inherit;
    border-radius: 4px;
    padding: 0 2px;
  }

  .shop-catalog-suggest__meta {
    margin-top: 3px;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shop-catalog-suggest__price {
    padding-left: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
  }

  .shop-catalog-suggest__empty {
    padding: 16px;
    font-size: 0.86rem;
    color: #64748b;
  }

  .shop-catalog-suggest__footer {
    border-top: 1px solid #eef2f7;
  }

  .shop-catalog-suggest__footer-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
  }

  .shop-catalog-suggest__footer-link:hover,
  .shop-catalog-suggest__footer-link.is-active {
    background: var(--accent-soft);
  }

  /* ══ Глобальный поиск: лупа в шапке + оверлей ══════════════ */
  .roof-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    transition: color 0.18s;
    padding: 0;
    flex-shrink: 0;
  }

  .roof-search-icon:hover { color: var(--accent-hover); }

  .roof-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .roof-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .roof-search-overlay__panel {
    width: min(620px, 100%);
    margin-top: 14vh;
    transform: translateY(-12px);
    transition: transform 0.22s ease;
  }

  .roof-search-overlay.is-open .roof-search-overlay__panel {
    transform: translateY(0);
  }

  /* Строка крупнее, чем в шапке каталога: единственный элемент оверлея */
  .roof-search-overlay .shop-catalog-search-wrap {
    flex: none;
    width: 100%;
  }

  .roof-search-overlay .shop-catalog-search {
    border-radius: 14px;
    border-color: transparent;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  }

  .roof-search-overlay .shop-catalog-search__input {
    font-size: 1.05rem;
    padding: 15px 18px;
  }

  .roof-search-overlay .shop-catalog-search__btn {
    width: 52px;
    height: 52px;
  }

  .roof-search-overlay .shop-catalog-suggest {
    max-height: min(60vh, 520px);
    overflow-y: auto;
  }

  .roof-search-overlay__close {
    position: absolute;
    top: 18px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s;
  }

  .roof-search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.24);
  }

  @media (max-width: 640px) {
    .shop-catalog-search-wrap,
    .shop-catalog-search {
      flex: 1 1 100%;
    }

    .shop-catalog-search__input {
      min-width: 0;
    }

    .shop-catalog-suggest__item {
      grid-template-columns: 48px minmax(0, 1fr);
    }

    .shop-catalog-suggest__price {
      grid-column: 2;
      padding-left: 0;
    }

    .roof-search-overlay {
      padding: 0 12px;
    }

    .roof-search-overlay__panel {
      margin-top: 76px;
    }

    .roof-search-overlay .shop-catalog-suggest {
      max-height: calc(100dvh - 170px);
    }

    .roof-search-overlay__close {
      top: 14px;
      right: 12px;
    }
  }

  /* ---------- Юридические страницы (pages/legal_page.html) ---------- */

  .legal-page {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--font-body);
    color: #1e293b;
    line-height: 1.65;
  }

  .legal-page h1 {
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.2;
    margin: 0 0 18px;
  }

  .legal-page h2 {
    font-size: clamp(20px, 2.4vw, 24px);
    margin: 34px 0 12px;
  }

  .legal-page h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  .legal-page p,
  .legal-page ul,
  .legal-page ol {
    margin: 0 0 14px;
  }

  .legal-page ul,
  .legal-page ol {
    padding-left: 24px;
  }

  .legal-page li {
    margin-bottom: 6px;
  }

  .legal-page a {
    color: var(--accent);
  }

  .legal-page blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--accent);
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
  }

  .legal-page hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 28px 0;
  }

  /* Широкие таблицы (реестры cookie, сроки) скроллятся внутри страницы. */
  .legal-page table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 14px;
  }

  .legal-page th,
  .legal-page td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
  }

  .legal-page th {
    background: #f1f5f9;
    font-weight: 600;
    white-space: nowrap;
  }

  /* ---------- Футер: юр. ссылки и реквизиты ---------- */

  .roof-footer__requisites {
    padding: 14px 48px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  .roof-footer__requisites p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: #64748b;
  }

  @media (max-width: 767px) {
    .roof-footer__requisites {
      padding: 14px 20px 10px;
    }
  }

  /* ---------- Информирование у форм и чекбоксы согласий ---------- */

  .roof-form-privacy {
    margin: 10px 0 0;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
  }

  .roof-form-privacy a {
    color: inherit;
    text-decoration: underline;
  }

  .roof-form-privacy a:hover {
    color: var(--accent);
  }

  .visualizer-privacy {
    margin: 0 0 12px;
  }

  .roof-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
  }

  .roof-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--accent);
  }

  .roof-consent a {
    color: var(--accent);
    text-decoration: underline;
  }

  .roof-consent--error span {
    color: #b91c1c;
  }

  /* ---------- Cookie-баннер ---------- */

  /* Авторский display (.roof-btn: inline-flex, __settings: grid, сам баннер:
     fixed-блок) перебивает браузерное [hidden]{display:none} — без этого
     правила «свёрнутое» состояние баннера не работает: панель категорий и
     кнопка «Salvează» видны сразу, а после выбора не скрывался бы и баннер. */
  .cookie-consent[hidden],
  .cookie-consent [hidden] {
    display: none !important;
  }

  .cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 12px;
    pointer-events: none;
  }

  .cookie-consent__panel {
    pointer-events: auto;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 18px 20px;
  }

  .cookie-consent__title {
    margin: 0 0 8px;
    font-size: 17px;
  }

  .cookie-consent__text {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
  }

  .cookie-consent__text a {
    color: var(--accent);
  }

  .cookie-consent__settings {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
  }

  .cookie-consent__category {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
  }

  .cookie-consent__category input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
  }

  .cookie-consent__category--locked {
    cursor: default;
    color: #64748b;
  }

  .cookie-consent__error {
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: #b91c1c;
  }

  .cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookie-consent__actions .roof-btn {
    padding: 9px 16px;
    font-size: 14px;
  }

  .roof-footer__cookie-settings {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: inherit;
    color: #334155;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .roof-footer__cookie-settings:hover {
    color: var(--accent);
  }

  /* Опасное действие (удаление аккаунта) */
  .roof-btn--danger {
    background: #b91c1c;
    border: 1px solid #b91c1c;
    color: #fff;
  }

  .roof-btn--danger:hover {
    background: #991b1b;
    border-color: #991b1b;
  }

  .shop-account-danger-title {
    margin-top: 28px;
    color: #b91c1c;
  }

  @media (max-width: 640px) {
    .cookie-consent__actions .roof-btn {
      flex: 1 1 100%;
      text-align: center;
    }
  }
