/* okna159.ru — стили сайта (вариант A «Светлый каталог»). Цвета из логотипа: #AC3606, #259D33. */
:root {
  --red: #AC3606; --red-dark: #8a2b05; --red-soft: #fbeee8; --green: #259D33;
  --ink: #1b1d20; --ink-2: #4a4f57; --ink-3: #737983;
  --line: #e4e6ea; --bg: #ffffff; --bg-2: #f4f5f7; --bg-3: #eceef1;
  --radius: 14px; --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.6 'Onest', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(25px, 3.4vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: clamp(64px, 8vw, 112px) 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 62ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; padding: 14px 22px; } }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Шапка */
/* Шапка сплошная: размытие под полупрозрачной шапкой (backdrop-filter) без видеокарты давало рывки при прокрутке —
   15% кадров дольше 33 мс (tools\check-smooth.js); без него — ровные 60 кадров/с */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
/* Зоны нажатия не меньше 44 px (рекомендация для сенсорных экранов): высоту добираем полями, вид не меняется */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; padding: 10px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--red); }
.top .phone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; font-size: 17px; white-space: nowrap; }
.top .btn { padding: 11px 20px; font-size: 15px; }
/* Мобильное меню на <details>: работает и без JS */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu summary span::before, .menu summary span::after { content: ''; position: absolute; left: 0; }
.menu summary span::before { top: -6px; } .menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu .panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(20,24,30,.14); padding: 10px; display: grid; }
.menu .panel a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu .panel a:hover { background: var(--bg-2); }
.menu .panel .tel { margin-top: 6px; background: var(--red); color: #fff; text-align: center; font-weight: 700; }
.menu .panel .tel:hover { background: var(--red-dark); }
/* 7 пунктов меню + номер + кнопка помещаются в строку от 1300 px; уже — номер прячем, кнопка «Позвонить» остаётся */
@media (min-width: 1101px) and (max-width: 1300px) { .top .phone { display: none; } }
@media (max-width: 1100px) { .nav { display: none; } .top .phone { margin-left: auto; } .menu { display: block; } }
@media (max-width: 600px) {
  .top .phone, .top .btn { display: none; } .menu { margin-left: auto; } .logo img { height: 30px; }
  .menu .panel { position: fixed; left: 16px; right: 16px; top: 66px; width: auto; }
}

/* Первый экран */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.025em; }
.hero h1 span { color: var(--red); }
.hero .lead { margin: 22px 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.hero .note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hero-art { position: relative; display: block; aspect-ratio: 1; color: inherit; text-decoration: none; }
.hero-art::before { content: ''; position: absolute; inset: 6% 2% 2% 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, var(--bg-3) 70%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-art .slide { opacity: 0; transform: scale(.96) translateY(10px); transition: opacity .9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-art .slide.on { opacity: 1; transform: none; }
.hero-art .tag span { display: block; transition: opacity .3s; }
.hero-art .tag b { transition: opacity .3s; }
.hero-art.swap .tag b, .hero-art.swap .tag span { opacity: 0; }
.dots { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #c9cdd3; transition: width .4s, background .4s; }
.dots i.on { width: 22px; background: var(--red); }
.hero-art .tag { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); box-shadow: 0 10px 30px rgba(20,24,30,.08); }
.hero-art .tag b { display: block; font-size: 20px; color: var(--ink); }
.hero-art .t1 { left: 0; top: 18%; } .hero-art .t2 { right: 0; bottom: 16%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* Цифры */
.stats { padding: 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: -40px; position: relative; }
.stat { padding: 28px clamp(16px, 2vw, 30px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--red); letter-spacing: -0.02em; }
.stat span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) {
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Каталог */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 15px; font-weight: 500; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.filters button:hover { border-color: var(--ink-3); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters[hidden] { display: none; }
/* Карточки-строки: 3 колонки на десктопе, 2 на планшете, 1 на телефоне */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--bg-2); border: 1.5px solid transparent; border-radius: var(--radius); padding: 10px 18px 10px 10px; text-decoration: none; transition: border-color .2s, background .2s; }
.card[hidden] { display: none; }
.card:hover { border-color: var(--red); background: #fff; }
.card .pic { width: 84px; height: 84px; border-radius: 10px; background: #fff; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card h3 { font-size: 18px; margin: 0 0 4px; }
.card .specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-3); }
.card .specs span + span::before { content: '·'; margin-right: 12px; color: var(--line); }
.cls { font-weight: 700; color: #fff; background: var(--ink); border-radius: 6px; padding: 0 7px; font-size: 12px; line-height: 20px; }
.card .cls { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; font-size: 14px; border-radius: 8px; }
.cls.a { background: var(--red); }
/* 13 систем: при 3 колонках в последнем ряду свободны 2 ячейки — блок встаёт в них; иначе — отдельной строкой.
   Если систем станет больше или меньше, поправить span здесь. */
.card.ask { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; background: var(--red); color: #fff; padding: 18px 26px; }
.card.ask:hover { background: var(--red-dark); border-color: transparent; }
.card.ask h3 { font-size: 20px; }
.card.ask p { color: #f6dcd2; font-size: 15px; }
.card.ask .tel { font-size: 22px; font-weight: 700; white-space: nowrap; }
.props .card { background: #fff; }
@media (max-width: 1100px) { .card.ask { grid-column: 1 / -1; } }
.legend { margin-top: 16px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) {
  .card { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 8px 14px 8px 8px; }
  .card .pic { width: 64px; height: 64px; }
  .card h3 { font-size: 16.5px; }
  .card .specs { font-size: 13px; gap: 2px 8px; }
  .card .specs span + span::before { margin-right: 8px; }
  .card.ask { padding: 20px; }
  /* фильтр — одной строкой с прокруткой, чтобы не занимал три строки */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}

/* Свойства */
.props { background: var(--bg-2); }
.props .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.prop { background: #fff; border-radius: var(--radius); padding: 30px 28px; }
.prop .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 20px; }
.prop .ic svg { width: 26px; height: 26px; }
.prop p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .props .grid { grid-template-columns: minmax(0, 1fr); } }

/* Производство */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .text p + p { margin-top: 16px; }
.split .text p { color: var(--ink-2); }
.ph { position: relative; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--bg-3) 14px 28px); display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 14px; padding: 24px; min-height: 240px; }
.ph b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 4px; }
.split .ph { aspect-ratio: 4 / 3; min-height: 0; }
.prod-pic { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.prod-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.prod-pic:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Почему Grain */
.why { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 80px); }
.why .sticky { position: sticky; top: 110px; align-self: start; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 600; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
/* «+» в квадрате 28×28 с отступом: повёрнутый на 45° он остаётся внутри строки */
.acc summary::after { content: '+'; position: absolute; right: 8px; top: 19px; width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 28px; font-weight: 300; color: var(--red); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { color: var(--ink-2); padding: 0 0 22px; max-width: 70ch; }
@media (max-width: 860px) { .why { grid-template-columns: minmax(0, 1fr); } .why .sticky { position: static; } }

/* Наши работы: 4×2 на десктопе и планшете, лента с прокруткой вбок на телефоне */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a { flex: 0 0 82%; scroll-snap-align: center; }
}
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10,12,15,.92); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); border-radius: 8px; }
.lb button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.24); }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }

/* Как мы работаем: 5 шагов в ряд, на телефоне — компактный список */
.howto { padding-top: 0; }
.steps-row { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps-row li { counter-increment: s; background: var(--bg-2); border-radius: var(--radius); padding: 20px 18px 22px; position: relative; transition: transform .3s, background .3s; }
.steps-row li:hover { transform: translateY(-3px); background: var(--red-soft); }
.steps-row li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps-row b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps-row span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1100px) { .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps-row li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 14px; padding: 14px 16px; }
  .steps-row li::before { grid-row: span 2; margin: 0; }
}
.faq .lead a:hover { text-decoration: underline; }

/* Отзывы */
.reviews { background: var(--bg-2); }
.rv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.rv figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.rv blockquote { margin: 0; flex: 1; color: var(--ink-2); font-size: 16px; }
.rv blockquote::before { content: '“'; display: block; font-size: 56px; line-height: .6; color: var(--red); margin-bottom: 14px; font-family: Georgia, serif; }
.rv figcaption { margin-top: 20px; font-weight: 600; }
.rv figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); }
@media (max-width: 960px) { .rv { grid-template-columns: minmax(0, 1fr); } }

/* Партнёрам */
.partners .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.pr { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.pr .n { font-size: 14px; font-weight: 700; color: var(--red); }
.pr h3 { font-size: 18px; margin: 8px 0 6px; }
.pr p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .partners .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partners .grid { grid-template-columns: minmax(0, 1fr); } }
.coop { margin-top: 48px; background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.coop h3 { font-size: clamp(24px, 2.4vw, 32px); }
.coop p { color: #c7cbd1; margin-top: 12px; }
.coop ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.coop li { display: flex; gap: 12px; align-items: start; color: #e6e8eb; }
.coop li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.coop .btn { margin-top: 26px; }
@media (max-width: 860px) { .coop { grid-template-columns: minmax(0, 1fr); } }

/* Контакты */
.contacts .box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contacts .map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.contacts .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* сверху слева: внизу у OSM подпись правообладателей, её не закрываем */
.map-open { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px 9px 10px; border-radius: 10px; box-shadow: 0 4px 16px rgba(20,24,30,.18); }
.map-open svg { width: 18px; height: 18px; color: #fc3f1d; }
.map-open:hover { color: var(--red); }
.cinfo { background: var(--bg-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 26px; }
.cinfo .k { font-size: 14px; color: var(--ink-3); }
.cinfo .v { font-size: 20px; font-weight: 600; text-decoration: none; display: block; margin-top: 2px; padding: 6px 0; }
.cinfo a.v:hover { color: var(--red); }
.cinfo .big { font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--red); }
@media (max-width: 860px) { .contacts .box { grid-template-columns: minmax(0, 1fr); } }

/* Страница системы */
.crumbs { font-size: 14px; color: var(--ink-3); padding-top: 28px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; }
.product { padding-top: 24px; }
.product .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.product .pic { background: radial-gradient(circle at 40% 35%, #fff 0%, var(--bg-3) 80%); border-radius: calc(var(--radius) + 6px); aspect-ratio: 1; padding: 4%; }
.product .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product .meta { font-size: 15px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.product h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 10px 0 18px; letter-spacing: -0.02em; }
.product .lead { margin-bottom: 28px; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-3); width: 55%; padding-right: 16px; }
.spec td { font-weight: 600; font-size: 18px; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }
.product .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product .hint { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .product .wrap { grid-template-columns: minmax(0, 1fr); } .product .pic { max-width: 480px; } }

/* Полоса-призыв */
.cta { background: var(--red); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; }
.cta p { color: #f6dcd2; margin-top: 10px; }
.cta .tel { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }

/* Текстовые страницы */
.doc { padding-top: 32px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 12px 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 12px; }
.doc p { color: var(--ink-2); margin-bottom: 12px; overflow-wrap: break-word; }
.doc a { color: var(--red); }

/* 404 */
.nf { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.nf b { display: block; font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--red); letter-spacing: -0.04em; }
.nf h1 { margin: 16px 0 12px; font-size: clamp(26px, 3vw, 36px); }
.nf p { color: var(--ink-2); margin-bottom: 28px; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
footer img { height: 28px; width: auto; margin-bottom: 12px; }
footer a { color: var(--ink-2); }

/* ===================== Визуальность и плавность ===================== */
html { interpolate-size: allow-keywords; }

/* Фон первого экрана: мягкие пятна цветов логотипа и тонкие контуры окон */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(172,54,6,.10), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.hero::after { inset: 0; background: radial-gradient(circle at 8% 90%, rgba(37,157,51,.08), transparent 35%); }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }

/* Появление первого экрана */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .note { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .18s; } .hero .actions { animation-delay: .28s; } .hero .note { animation-delay: .36s; }
.hero-art { animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero-art .slide.on { animation: float 7s ease-in-out infinite; }
.hero-art .t1 { animation: pop .6s .7s both; } .hero-art .t2 { animation: pop .6s .85s both; }
.hero h1 span { background: linear-gradient(90deg, var(--red), #d4541c, var(--red)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* Появление блоков при прокрутке (классы ставит site.js только тем, что ниже первого экрана) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Кнопки и карточки */
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-red:hover { box-shadow: 0 10px 24px rgba(172,54,6,.28); }
.card { transition: border-color .25s, background .25s, transform .25s, box-shadow .25s; }
.card:not(.ask):hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,30,.08); }
.card .pic img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .pic img { transform: scale(1.12) rotate(-3deg); }
.card .cls { transition: transform .25s; }
.card:hover .cls { transform: scale(1.12); }
.card.ask { background: linear-gradient(120deg, var(--red), #c2450f, var(--red)); background-size: 200% 100%; animation: sheen 8s linear infinite; }
.cards .card.show { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.prop { transition: transform .3s, box-shadow .3s; }
.prop:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,24,30,.07); }
.prop .ic { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s; }
.prop:hover .ic { transform: rotate(-8deg) scale(1.1); background: var(--red); color: #fff; }
.rv figure { transition: transform .3s, box-shadow .3s; }
.rv figure:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,24,30,.07); }
.pr { transition: padding-left .3s; }
.pr:hover { padding-left: 10px; }

/* Шкала температур в «Почему Grain» */
.temp { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.temp span:first-child { color: #2f6fd6; } .temp span:last-child { color: var(--red); }
.temp i { flex: 1; max-width: 240px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2f6fd6, #8fb6ee 40%, #f3c39e 65%, var(--red)); position: relative; overflow: hidden; }
.temp i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); transform: translateX(-100%); animation: glint 3.5s ease-in-out infinite; }
@keyframes glint { 60%, 100% { transform: translateX(100%); } }

/* Плавный аккордеон (Chrome/Edge 131+; в остальных — мгновенно) */
.acc details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s cubic-bezier(.2,.7,.2,1), content-visibility .4s allow-discrete; }
.acc details[open]::details-content { block-size: auto; }
.acc summary { transition: color .2s; }
.acc summary:hover { color: var(--red); }

/* Наши работы: подпись и лупа при наведении, плавное открытие просмотра */
.gallery a { position: relative; }
.gallery a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,24,30,.45), transparent 55%) , url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") right 14px bottom 14px / 26px no-repeat; opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.lb[open] { animation: fade .25s ease both; }
.lb[open]::backdrop { animation: fade .25s ease both; }
.lb img { animation: zoom .35s cubic-bezier(.2,.7,.2,1) both; }
.lb img.next { animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.94); } }

/* Тёмный блок для партнёров и полоса-призыв: контуры окон на фоне */
.coop, .cta { position: relative; overflow: hidden; isolation: isolate; }
.coop::after, .cta::after { content: ''; position: absolute; z-index: -1; right: -40px; top: -30px; width: 300px; height: 360px; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 260'%3E%3Cg fill='none' stroke='white' stroke-width='3'%3E%3Crect x='10' y='10' width='200' height='240' rx='8'/%3E%3Cpath d='M110 10v240M10 130h200'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(-8deg); }

/* Шапка: тень при прокрутке, подсветка текущего раздела */
.top { transition: box-shadow .3s, background .3s; }
.top.scrolled { box-shadow: 0 6px 24px rgba(20,24,30,.08); }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 1px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }

/* Полоса прогресса прокрутки (браузеры с scroll-timeline; в остальных её просто нет) */
.progress { position: fixed; z-index: 30; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), #e2672e); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Кнопка звонка на телефоне — появляется после первого экрана */
.fab { display: none; }
@media (max-width: 700px) {
  .fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 25; right: 16px; bottom: 16px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(172,54,6,.35); transform: translateY(120px); opacity: 0; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s; }
  .fab svg { width: 20px; height: 20px; }
  .fab.show { transform: none; opacity: 1; }
  .fab.show svg { animation: ring 3s ease-in-out 1s infinite; }
}
@keyframes ring { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 96% { transform: rotate(-8deg); } }

/* Страница системы: появление и «парение» разреза */
.product .pic { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.product .pic img { animation: float 7s ease-in-out .8s infinite; }
.product .meta, .product h1, .product .lead, .product .spec, .product .actions { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.product h1 { animation-delay: .06s; } .product .lead { animation-delay: .12s; } .product .spec { animation-delay: .18s; } .product .actions { animation-delay: .24s; }
.spec tr { transition: background .2s; }
.spec tr:hover { background: var(--bg-2); }

/* Плавные переходы между страницами (Chrome/Edge 126+): разрез «перелетает» из карточки на страницу системы */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-art .slide.on { opacity: 1; transform: none; }
  .hero h1 span { color: var(--red); background: none; }
  .progress { display: none; }
}
@media print { .top, .menu, .cta, .filters { display: none !important; } .card { break-inside: avoid; } }
