/* ADhome.kz — стиль «шоурум» (по мотивам amigo.ru) в фирменных цветах ADhome */
:root {
  --ink: #1f1f24;
  --ink-2: #3c3c45;
  --muted: #6c6c76;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  /* фирменные цвета из логотипа: розовый → фиолетовый */
  --navy: #1d1622;
  --navy-2: #2f2236;
  --accent: #b5447f;
  --accent-2: #6e1e68;
  --accent-light: #e58cbc;
  --accent-soft: #f8edf3;
  --brand-grad: linear-gradient(135deg, #c5528b, #6e1e68);
  --green: #25d366;
  --radius: 6px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .eyebrow, .lead-box .eyebrow, .slide .eyebrow { color: var(--accent-light); }
.section.dark p { color: #cfc8d6; }

.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--ink-2); max-width: 720px; font-weight: 400; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.link-more { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-more:hover { color: var(--accent); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 4px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  background: var(--navy); color: #fff; transition: background .2s, color .2s, filter .2s;
}
.btn:hover { background: var(--navy-2); }
.btn.accent { background: var(--brand-grad); color: #fff; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.08); }
.btn.wa { background: var(--green); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка */
.topbar { background: var(--bg-soft); color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--ink); text-decoration: none; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.footer .logo img { filter: brightness(0) invert(1); }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav > a, .nav .dd > a { text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 26px 0; }
.nav > a:hover, .nav > a.active, .nav .dd:hover > a { color: var(--accent); }
.nav .dd { position: relative; }
.nav .dd-menu {
  display: none; position: absolute; top: 100%; left: -20px; min-width: 300px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08); padding: 10px 0;
}
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { display: block; }
.nav .dd-menu a { display: block; padding: 10px 20px; text-decoration: none; font-size: 15px; color: var(--ink); }
.nav .dd-menu a:hover { background: var(--bg-soft); color: var(--accent); }
.header .phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.header .btn { padding: 12px 18px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* Слайдер на главной */
.slider { position: relative; margin: 20px auto 0; max-width: calc(var(--wrap) + 160px); padding: 0 20px; }
.slides { position: relative; height: min(78vh, 680px); min-height: 460px; border-radius: 14px; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; color: #fff; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,24,.78) 0%, rgba(20,14,24,.35) 55%, rgba(20,14,24,0) 100%); }
.slide .cap { position: absolute; z-index: 2; left: clamp(24px, 6vw, 80px); bottom: clamp(40px, 9vh, 90px); max-width: 560px; }
.slide h1, .slide h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); }
.slide p { color: #e9e3ee; font-size: 18px; }
.slider-nav { position: absolute; z-index: 3; right: 44px; bottom: 30px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: 14px; letter-spacing: .1em; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; cursor: pointer; font-size: 18px; }
.slider-nav button:hover { background: rgba(255,255,255,.15); }

/* Вводный блок */
.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.intro h2 { margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 600; }

/* Фото и заглушки */
.ph { position: relative; border-radius: var(--radius); overflow: hidden; background: #e6e3e8; }
.ph::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(31,31,36,.55); background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 4px;
}
.ph-roll { background: linear-gradient(180deg, #e9dcc6 0 62%, transparent 62%), linear-gradient(180deg, #a9c2d8, #dbe7f1); }
.ph-roll::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: #cbb796; }
.ph-blinds { background: repeating-linear-gradient(180deg, #e8eaee 0 16px, #c9ced8 16px 18px), #e8eaee; }
.ph-plisse { background: repeating-linear-gradient(180deg, #f1ebe2 0 9px, #ddd2c2 9px 18px); }
.ph-net { background:
  repeating-linear-gradient(0deg, rgba(40,48,64,.18) 0 1px, transparent 1px 6px),
  repeating-linear-gradient(90deg, rgba(40,48,64,.18) 0 1px, transparent 1px 6px),
  linear-gradient(180deg, #b9d3c4, #e2eee6); box-shadow: inset 0 0 0 12px #f2f2f2; }
.ph-room { background: linear-gradient(135deg, #e8dfd2, #c9d4df); }
.ph.has-img { background: #eee; margin: 0; }
.ph.has-img::after, .ph.has-img::before { display: none; }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery .ph { aspect-ratio: 4/3; position: relative; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 16px 14px; font-size: 14px; font-weight: 600;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.gallery .ph:hover img { transform: scale(1.04); }

/* Сетка и карточки */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; text-decoration: none; }
.card .ph { aspect-ratio: 4/3; }
a.card:hover .ph img { transform: scale(1.05); }
.card .body { padding: 18px 2px 6px; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { margin-bottom: 8px; }
a.card:hover h3 { color: var(--accent); }
.card .body p { color: var(--ink-2); font-size: 15px; flex: 1; margin-bottom: 10px; }
.card.boxed { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px 18px; }
.card.boxed .body { padding-top: 22px; }
.price { font-weight: 700; font-size: 18px; }
.price small { font-weight: 500; color: var(--muted); font-size: 14px; }
.more { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* Плитки продукции (как у AMIGO: большое фото и подпись поверх) */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; aspect-ratio: 4/3; grid-column: span 2; background: var(--navy); }
.tile.wide { grid-column: span 3; aspect-ratio: 16/10; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,14,24,.75) 100%); }
.tile .t { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.tile .t h3 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.tile .t p { margin: 0; color: #eee6f0; font-size: 14px; }
.tile .t span { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
/* Плитка без фото (москитные сетки) — рисунок сетки поверх фирменного градиента */
.tile.ph-tile { background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 7px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 7px),
  linear-gradient(135deg, #5a3a66, #2a1d31); }

/* Системы на странице изделия */
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.system { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system .n { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.system h3 { margin-bottom: 8px; }
.system p { color: var(--ink-2); font-size: 15px; margin: 0; }
.price-line { font-size: 15px; color: var(--ink-2); margin: 0 0 26px; }
.price-line b { color: var(--ink); font-size: 20px; }

/* Цвета фурнитуры и рам */
.palettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 30px; }
.palette h3 { margin-bottom: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 22px; }
.swatch { display: flex; flex-direction: column; align-items: center; text-align: center; width: 92px; font-size: 14px; }
.swatch span { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #d6d3d9; box-shadow: inset 0 -6px 12px rgba(0,0,0,.12); margin-bottom: 10px; }
.swatch b { font-weight: 600; }
.swatch small { color: var(--accent); font-weight: 600; font-size: 12px; line-height: 1.3; margin-top: 4px; }

/* Блок «Автоматика» */
.auto { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.auto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.auto-list li { padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.15); position: relative; font-size: 17px; }
.auto-list li::before { content: "⚡"; position: absolute; left: 0; top: 15px; color: var(--accent-light); }

/* Преимущества */
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .num { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .14em; margin-bottom: 12px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }
.section.dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }

/* Шаги */
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step .n { font-size: 44px; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Форма заявки */
.lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 56px; }
.lead-box p { color: #cfc8d6; }
.lead-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lead-box li::before { content: "✓"; color: var(--accent-light); font-weight: 800; margin-right: 10px; }
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 15px 16px; border-radius: 4px; border: 1px solid transparent;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.form textarea { resize: vertical; }
.form textarea:focus, .form input:focus, .form select:focus { outline: 2px solid var(--accent-light); }
.form .btn { width: 100%; padding: 17px; }
.form .note { font-size: 12px; color: #a59cad; margin: 0; }
.form .ok { display: none; background: rgba(37,211,102,.15); color: #fff; padding: 14px 16px; border-radius: 4px; }
.form.sent .ok { display: block; }
.form.sent .fields { display: none; }
.form .fields { display: grid; gap: 12px; }
.form .addr-fields { display: grid; gap: 10px; }
.form .addr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form .addr-row.street { grid-template-columns: 2fr 1fr; }
.form .addr-row.contact { grid-template-columns: 1fr 1.25fr; }
.form .addr-row input { padding-left: 12px; padding-right: 12px; min-width: 0; }
.form input:disabled { background: #e9e6ee; }
.form .check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #ddd6e3; cursor: pointer; }
.form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form input.invalid { border-color: #ff6b8a; box-shadow: 0 0 0 2px rgba(255,107,138,.35); }
.form .err { margin: 0; color: #ffb3c4; font-weight: 600; font-size: 14px; }

/* Районы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 4px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: #1f9d55; font-weight: 600; margin-left: 6px; }

/* AMIGO / баннеры */
.amigo { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 34px 38px; border-radius: 14px; background: var(--accent-soft); }
.amigo .mark { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.amigo p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 20px 44px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 20px; }

/* Внутренние страницы */
.page-head { padding: 26px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero { position: relative; margin: 20px auto 0; max-width: calc(var(--wrap) + 160px); padding: 0 20px; }
.page-hero .inner { position: relative; height: min(56vh, 520px); min-height: 360px; border-radius: 14px; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero .inner > img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,24,.8) 0%, rgba(20,14,24,.35) 60%, rgba(20,14,24,.1) 100%); }
.page-hero .cap { position: absolute; z-index: 1; left: clamp(24px, 6vw, 80px); bottom: clamp(30px, 7vh, 70px); max-width: 640px; }
.page-hero h1 { color: #fff; }
.page-hero .crumbs, .page-hero .crumbs a { color: #ddd3e3; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; letter-spacing: .02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head .wrap > .grid { align-items: center; }
.page-head .ph { aspect-ratio: 5/4; }
.page-head .price { font-size: 24px; margin: 4px 0 24px; }
.prose { max-width: 840px; }
.muted-date { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose ul { padding-left: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.table td:last-child { font-weight: 600; }

/* Подвал */
.footer { background: var(--navy); color: #a99fb1; padding: 70px 0 30px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 16px; font-weight: 600; }
.footer a { color: #d6cfdc; text-decoration: none; display: block; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .logo { display: inline-block; margin-bottom: 14px; }
.footer .bottom { border-top: 1px solid #33283b; margin-top: 44px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Плавающий WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Адаптив */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .header .phone { display: none; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .systems { grid-template-columns: repeat(2, 1fr); }
  .lead-box, .grid-2, .intro, .auto { grid-template-columns: 1fr; }
  .auto { gap: 30px; }
  .intro { gap: 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow: auto;
  }
  .header.open .nav > a, .header.open .nav .dd > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header.open .nav .dd-menu { display: block; position: static; border: 0; box-shadow: none; padding: 4px 0 10px 12px; min-width: 0; }
  .header.open .nav .dd-menu a { padding: 8px 0; }
  .header.open .phone { display: block; padding-top: 16px; }
  .amigo { grid-template-columns: 1fr; text-align: left; }
  .sec-head { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .grid-4, .grid-3, .tiles, .systems { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .lead-box { padding: 30px 20px; }
  .topbar .hours { display: none; }
  .slider, .page-hero { padding: 0 12px; margin-top: 12px; }
  .slides { min-height: 520px; }
  .slide::after { background: linear-gradient(180deg, rgba(20,14,24,.15) 0%, rgba(20,14,24,.85) 75%); }
  .slide .cap { left: 22px; right: 22px; bottom: 90px; }
  .slider-nav { left: 22px; right: auto; bottom: 26px; }
  .page-hero .inner { min-height: 420px; }
  .page-hero .inner::after { background: linear-gradient(180deg, rgba(20,14,24,.2) 0%, rgba(20,14,24,.85) 70%); }
}

/* Иллюстрация замера в форме заявки */
.zamer-art { width: 100%; max-width: 380px; height: auto; margin-top: 28px; display: block; }
.lead-box { background: radial-gradient(120% 140% at 0% 0%, #3a2444 0%, var(--navy) 55%); }
@media (max-width: 980px) { .zamer-art { max-width: 300px; margin: 22px auto 0; } }

/* Районы: карточки с ЖК */
.dists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.dist { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; text-decoration: none; transition: border-color .2s; }
.dist:hover { border-color: var(--accent); }
.dist h3 { margin-bottom: 10px; }
.dist ul { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; color: var(--ink-2); }
.dist li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.dist li span { color: var(--accent); font-weight: 600; white-space: nowrap; }
.dist-foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.dist-foot b { color: var(--ink); }
@media (max-width: 980px) { .dists { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dists { grid-template-columns: 1fr; } }

/* Нано-сетка и калькулятор (только /moskitnye-setki/) */
.nano-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.nano-head .btns { margin-top: 22px; }
.nano-protect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.nano-protect h3, .nano-who h3 { margin-top: 0; }
.nano-protect ul, .nano-who ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nano-protect li { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.nano-protect li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.nano-feats { margin-top: 36px; }
.nano-who { margin-top: 30px; }
.nano-who li { padding: 10px 16px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 15px; }
.calc-box { align-items: start; }
.form .addr-row.calc-size { grid-template-columns: 1fr 1fr; }
.calc-total { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 16px 18px; font-size: 16px; color: #ddd6e3; }
.calc-total b { display: block; font-size: 34px; color: #fff; margin-top: 4px; }
.calc-total small { display: block; color: #a59cad; font-size: 13px; margin-top: 4px; }
@media (max-width: 980px) { .nano-head { grid-template-columns: 1fr; gap: 26px; } }
.calc-step { font-weight: 600; color: #fff; font-size: 15px; margin-top: 4px; }
.calc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-opt { cursor: pointer; position: relative; display: block; }
.form .calc-opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.calc-opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 14px 14px 14px 42px; position: relative;
  border: 2px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.05); transition: border-color .15s, background .15s; }
.calc-opt span::before { content: ""; position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.calc-opt b { color: #fff; font-size: 15px; line-height: 1.3; }
.calc-opt em { font-style: normal; color: #cfc8d6; font-size: 14px; }
.calc-opt:hover span { border-color: rgba(255,255,255,.5); }
.calc-opt input:checked + span { border-color: var(--accent-light); background: rgba(197,82,139,.22); }
.calc-opt input:checked + span::before { border-color: var(--accent-light); background: var(--accent-light); box-shadow: inset 0 0 0 3px var(--navy); }
.calc-opt input:checked + span em { color: #fff; font-weight: 700; }
.calc-opt input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 2px; }
@media (max-width: 600px) { .calc-opts { grid-template-columns: 1fr; } }

/* ===== Телефон: крупный, контрастный текст (90% посетителей с мобильного) ===== */
@media (max-width: 980px) {
  body { font-size: 17px; line-height: 1.6; }
  h3 { font-size: 20px; }
  .lead { font-size: 18px; line-height: 1.6; }
  .eyebrow { font-size: 13px; letter-spacing: .1em; }
  .btn { font-size: 15px; letter-spacing: .04em; padding: 16px 24px; }
  .link-more, .more, .tile .t span { font-size: 14px; letter-spacing: .06em; }
  .card .body p, .system p, .feature p, .step p { font-size: 16px; line-height: 1.55; }
  .prose p, .prose li { font-size: 17px; line-height: 1.65; }
  .faq summary { font-size: 18px; line-height: 1.4; }
  .faq details p { font-size: 17px; }
  .crumbs { font-size: 14px; }
  .badge { font-size: 15px; }
  .chip { font-size: 16px; }
  .price-line { font-size: 16px; }
  .table { font-size: 16px; }
  .table th { font-size: 13px; letter-spacing: .05em; }
  .topbar { font-size: 14px; }
  .header.open .nav > a, .header.open .nav .dd > a { font-size: 15px; letter-spacing: .06em; }
  .header.open .nav .dd-menu a { font-size: 17px; padding: 10px 0; }
  .tile .t h3 { font-size: 22px; }
  .tile .t p { font-size: 15px; line-height: 1.45; color: #fff; }
  .tile::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(20,14,24,.85) 100%); }
  .gallery figcaption { font-size: 15px; }
  .slide p, .page-hero .cap p { font-size: 17px; color: #fff; }
  .page-hero .crumbs, .page-hero .crumbs a { color: #f0e9f3; }
  .swatch { font-size: 15px; }
  .swatch small { font-size: 13px; }
  .dist ul { font-size: 15px; }
  .dist-foot { font-size: 14px; }
  .auto-list li { font-size: 17px; }
  .footer { font-size: 16px; }
  .footer h4 { font-size: 13px; letter-spacing: .1em; }
  .footer .bottom { font-size: 14px; }
  .footer a { margin-bottom: 12px; }
  .lead-box p { color: #e4dde9; font-size: 17px; }
  .lead-box li { font-size: 17px; }
  .form .note { font-size: 13px; color: #c4bacb; }
  .form .check { font-size: 16px; }
  .form .err { font-size: 15px; }
  .nano-protect li { font-size: 15px; }
  .nano-who li { font-size: 16px; }
  .calc-step { font-size: 16px; }
  .calc-opt b { font-size: 16px; }
  .calc-opt em { font-size: 15px; }
  .calc-total small { font-size: 14px; color: #cfc6d6; }
  .section.dark p { color: #e0d9e6; }
}
@media (max-width: 600px) {
  .topbar { display: none; }  /* лишняя строка над шапкой: на телефоне есть меню и WhatsApp */
  .slide .eyebrow, .page-hero .eyebrow { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
  .slide::after { background: linear-gradient(180deg, rgba(20,14,24,.35) 0%, rgba(20,14,24,.9) 70%); }
  .page-hero .inner::after { background: linear-gradient(180deg, rgba(20,14,24,.35) 0%, rgba(20,14,24,.9) 65%); }
  .slide h1, .slide h2, .page-hero h1 { font-size: 30px; }
}

/* Блок «Автоматика»: стенд-шоурум — в каждом окне своё изделие, все полностью опускаются и поднимаются сами */
.auto-scene { margin-top: 44px; overflow-x: clip; }  /* рука с пультом выезжает из-за края — без сдвига страницы вбок */
.stand { position: relative; max-width: 1060px; margin: 0 auto; }
.stand .hand { position: absolute; right: -2%; bottom: -14%; width: 19%; max-width: 200px; z-index: 5; opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.stand .hand svg { width: 100%; height: auto; display: block; }
.stand-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: linear-gradient(135deg, #c5528b, #6e1e68);
  color: #fff; border-radius: 10px 10px 0 0; padding: 12px 20px; font-weight: 700; font-size: 16px; }
.stand-top .status { display: grid; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.25); border-radius: 30px; padding: 5px 14px; }
.stand-top .status span { grid-area: 1 / 1; }
.stand-top .status .up { opacity: 0; }
/* Настоящее фото окна (три створки, вид на горы); поверх каждой створки — изделие из настоящих фото тканей и ламелей */
.stand-photo { position: relative; border-radius: 0 0 6px 6px; overflow: visible; }
.stand-photo > img { width: 100%; height: auto; display: block; border-radius: 0 0 6px 6px; }
.sash { position: absolute; top: 0; height: 98%; }
.sash.s1 { left: 2.8%; width: 26.8%; } .sash.s2 { left: 34.8%; width: 30.4%; } .sash.s3 { left: 70.4%; width: 26.7%; }
.sash .cas { position: absolute; left: -3%; right: -3%; top: 0; height: 7%; z-index: 3; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 55%, #d9d9d9 100%); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.sash .track { position: absolute; left: 0; right: 0; top: 6%; bottom: 0; z-index: 2; container-type: size; }
.sash .blind { position: absolute; left: 0; right: 0; top: 0; height: 0; background-position: 50% 100%; box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.sash .blind::after { content: ""; position: absolute; left: -1%; right: -1%; bottom: 0; height: max(5px, 2.4cqh); border-radius: 2px;
  background: linear-gradient(180deg, #fbfbfb, #d6d6d6); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.roll .blind { background: url(/static/img/tex-rulon.jpg) repeat 0 100% / 200cqw auto; }
.dn .blind { background: url(/static/img/tex-den-noch.jpg) no-repeat 50% 100% / 100cqw 100cqh; }
.gor .blind { background: url(/static/img/tex-gorizont.jpg) no-repeat 50% 100% / 100cqw 100cqh; }
.gor .blind::after { height: max(4px, 1.6cqh); background: linear-gradient(180deg, #f2f3f5, #b9bec5); }
.stand-labels { position: relative; height: 40px; }
.stand-labels span { position: absolute; top: 10px; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }
.stand-labels .s1 { left: 2.8%; width: 26.8%; } .stand-labels .s2 { left: 34.8%; width: 30.4%; } .stand-labels .s3 { left: 70.4%; width: 26.7%; }
/* Пульт, выключатель, телефон */
.auto-ctls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1060px; margin: 22px auto 0; }
.ctl { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: rgba(255,255,255,.96); color: #1f1f24; border-radius: 40px; font-weight: 700; font-size: 16px; }
.ctl i { position: relative; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #c5528b, #6e1e68); display: grid; place-items: center; flex-shrink: 0; }
.ctl i svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctl i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #e58cbc; opacity: 0; }
.ctl small { display: block; font-weight: 500; font-size: 13px; color: #6c6c76; }
@media (prefers-reduced-motion: no-preference) {
  .sash .blind { animation: blind-run 10s ease-in-out infinite; }
  .stand .hand { animation: hand-press 10s ease-in-out infinite; }
  .stand .hand .btn-dn { animation: press-dn 10s linear infinite; }
  .stand .hand .btn-up { animation: press-up 10s linear infinite; }
  .ctl i::after { animation: ctl-pulse 1.8s ease-out infinite; }
  .ctl:nth-child(2) i::after { animation-delay: .6s; } .ctl:nth-child(3) i::after { animation-delay: 1.2s; }
  .stand-top .status .dn { animation: st-dn 10s steps(1) infinite; }
  .stand-top .status .up { animation: st-up 10s steps(1) infinite; }
}
@media (prefers-reduced-motion: reduce) { .sash .blind { height: 60%; } }
/* полностью вниз и полностью вверх */
/* 1 с — рука нажимает пульт, 3 с — шторы опускаются, 1 с стоят, рука снова, 3 с — поднимаются */
@keyframes blind-run { 0%, 10% { height: 0; } 40%, 60% { height: 100%; } 90%, 100% { height: 0; } }
@keyframes hand-press { 0% { transform: translate(40%, 70%); opacity: 0; } 7% { transform: translate(0, 0); opacity: 1; } 9% { transform: translate(0, 3%); } 11% { transform: translate(0, 0); opacity: 1; } 17%, 50% { transform: translate(40%, 70%); opacity: 0; } 57% { transform: translate(0, 0); opacity: 1; } 59% { transform: translate(0, 3%); } 61% { transform: translate(0, 0); opacity: 1; } 67%, 100% { transform: translate(40%, 70%); opacity: 0; } }
@keyframes press-dn { 0%, 8% { fill: #4a3a52; } 9%, 12% { fill: #e58cbc; } 13%, 100% { fill: #4a3a52; } }
@keyframes press-up { 0%, 58% { fill: #4a3a52; } 59%, 62% { fill: #e58cbc; } 63%, 100% { fill: #4a3a52; } }
@keyframes ctl-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes st-dn { 0% { opacity: 1; } 49% { opacity: 0; } }
@keyframes st-up { 0% { opacity: 0; } 49% { opacity: 1; } }
@media (max-width: 760px) {
  .stand-top { padding: 10px 14px; font-size: 15px; }
  .stand-top .status { font-size: 13px; padding: 4px 10px; }
  .stand-labels span { font-size: 13px; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; top: 8px; }
  .stand-labels { height: 48px; }
  .auto-ctls { grid-template-columns: 1fr; gap: 10px; }
  .stand .hand { width: 34%; right: -1%; bottom: -8%; }
}

/* Страница «Автоматика» */
.auto-sys .ph { aspect-ratio: 4/3; margin: 0 -22px; border-radius: var(--radius) var(--radius) 0 0; }
.auto-sys .btns { margin-top: 6px; align-items: center; }
.auto-sys .btn { padding: 12px 18px; }
.ctl-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; margin-bottom: 16px; }
.ctl-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .steps5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps5 { grid-template-columns: 1fr; } }

/* Соцсети и отзывы */
.soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.soc a { display: grid !important; place-items: center; width: 40px; height: 40px; margin: 0 !important; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.soc a:hover { background: var(--accent); }
.soc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc a.wa svg { fill: currentColor; stroke: none; }
.soc.big a { width: 52px; height: 52px; background: var(--navy); }
.soc.big svg { width: 24px; height: 24px; }
.reviews { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.rev-btn { color: var(--ink) !important; letter-spacing: .04em; }
.rev-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr; gap: 28px; } }

/* Блок «Для бизнеса» на главной */
.b2b-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--navy); color: #fff; border-radius: 14px; overflow: hidden; }
.b2b-pic img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.b2b-txt { padding: 44px 44px 40px; }
.b2b-txt h2 { color: #fff; }
.b2b-txt p { color: #ddd5e3; }
.b2b-txt ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.b2b-txt li::before { content: "✓"; color: var(--accent-light); font-weight: 800; margin-right: 10px; }
.b2b-txt .eyebrow { color: var(--accent-light); }
@media (max-width: 980px) { .b2b-card { grid-template-columns: 1fr; } .b2b-pic img { min-height: 0; aspect-ratio: 16/10; } .b2b-txt { padding: 28px 22px; } }
