/* AlfaStal — светлая тема по референсу prosalon.by:
   белые карточки с крупным радиусом и мягкой тенью, pill-кнопки,
   фото-hero с оверлеем, line-art иконки, scroll-reveal. */

/* ---------- Шрифты (самохостинг, latin + cyrillic) ---------- */
@font-face { font-family:'Comfortaa'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/comfortaa-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Comfortaa'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/comfortaa-700-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }
@font-face { font-family:'Nunito'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/nunito-400-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Nunito'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/nunito-400-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }
@font-face { font-family:'Nunito'; font-weight:600; font-style:normal; font-display:swap;
  src:url('fonts/nunito-600-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Nunito'; font-weight:600; font-style:normal; font-display:swap;
  src:url('fonts/nunito-600-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }
@font-face { font-family:'Nunito'; font-weight:800; font-style:normal; font-display:swap;
  src:url('fonts/nunito-800-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Nunito'; font-weight:800; font-style:normal; font-display:swap;
  src:url('fonts/nunito-800-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }
@font-face { font-family:'JetBrains Mono'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/jetbrainsmono-500-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'JetBrains Mono'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/jetbrainsmono-500-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }
@font-face { font-family:'JetBrains Mono'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/jetbrainsmono-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'JetBrains Mono'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/jetbrainsmono-700-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+2000-206F; }

/* ---------- Токены ---------- */
:root {
  --acc: #ff6a00;
  --acc-dark: #e85f00;
  --acc-soft: rgba(255, 106, 0, .1);
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f1f4;
  --line: #e7e9ee;
  --fg: #17181c;
  --muted: #6f747f;
  --ink: #17181c;
  --shadow: 0 10px 34px rgba(23, 24, 28, .07);
  --shadow-hover: 0 16px 44px rgba(23, 24, 28, .12);
  --maxw: 1240px;
  --r: 22px;
  --r-sm: 14px;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.65 'Nunito', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.18; font-family: 'Comfortaa', 'Nunito', sans-serif; font-weight: 700; letter-spacing: -.01em; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.content { font-size: 16.5px; line-height: 1.75; color: #3a3e46; }
.content h2, .content h3 { margin: 1.7em 0 .6em; font-size: 24px; }
.content > :first-child { margin-top: 0; }
.content p { margin: .9em 0; }
.content ul { padding-left: 1.2em; }
.content li { margin: .4em 0; }
.content img { border-radius: var(--r-sm); margin: 1em 0; }
/* Структурные фото в карточках — без margin/radius от .content img
   (иначе .art/.card-art получают серые полосы и «разорванный» вид) */
.content .rowitem .art img,
.content .card-art img,
.content .pf-art img { margin: 0; border-radius: 0; }
.content a { color: var(--acc); font-weight: 700; text-decoration: none; }
/* Кнопки внутри контента: цвет текста не перебивается правилом .content a */
.content .btn-a { color: #fff; }
.content .btn-b { color: var(--fg); }
.content .cta-band .btn-a { color: var(--ink); }
/* Блоки внутри контента: свой вертикальный ритм, не сливаются с соседями */
.content .sec-head { margin: 46px 0 26px; }
.content > .sec-head:first-child { margin-top: 0; }
.content .adv, .content .stats-band, .content .steps, .content .svc-grid { margin-bottom: 34px; }
.content .rowitem { margin: 34px 0 38px; }
.content > .cta-band { margin-top: 40px; margin-bottom: 6px; }
/* последний блок прижимается к низу секции (правило ниже группы — оно и побеждает) */
.content > :last-child { margin-bottom: 0; }

/* Вводный абзац страницы */
.lead { font-size: 18.5px; line-height: 1.7; color: var(--muted); max-width: 780px; margin: 4px 0 34px; font-weight: 600; }

/* Карточки услуг */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.svc-card {
  background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 28px 28px 26px; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.svc-card .icon { width: 34px; height: 34px; color: var(--acc); margin-bottom: 14px; }
.svc-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.svc-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; }
.svc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-chips span { background: var(--acc-soft); color: var(--acc-dark); font-family:'JetBrains Mono',monospace; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* Чек-лист */
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; margin: 0; font-weight: 600; color: var(--fg); }
.checklist li .icon { color: var(--acc); margin-top: 4px; flex: none; width: 20px; height: 20px; }

/* ---------- Кнопки-пилюли ---------- */
.btn-a, .btn-b {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 15px; line-height: 1; border: 0; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-a { background: var(--acc); color: #fff; box-shadow: 0 10px 26px rgba(255, 106, 0, .32); }
.btn-a:hover { background: var(--acc-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 0, .4); }
.btn-b { background: transparent; color: var(--fg); border: 2px solid var(--fg); padding: 14px 28px; }
.btn-b:hover { background: var(--fg); color: #fff; transform: translateY(-2px); }
/* Тёмные секции: вторая кнопка — белая обводка (пилотная остаётся оранжевой). */
.on-acc .btn-b { border: 2px solid rgba(255, 255, 255, .85); color: #fff; background: transparent; }
.on-acc .btn-b:hover { background: #fff; color: var(--ink); }

/* ---------- Шапка ---------- */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 26px; height: 82px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.logo-main { font-family: 'Comfortaa'; font-weight: 700; font-size: 19px; letter-spacing: .02em; color: var(--fg); }
.logo-main span { color: var(--acc); }
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 700; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav li { list-style: none; position: relative; }
.nav a { color: var(--fg); text-decoration: none; font-size: 14.5px; font-weight: 700; padding: 6px 0; display: inline-block; }
.nav a:hover { color: var(--acc); }
/* Выпадающее подменю (Услуги → Мебель / Покраска / Покраска дисков) */
.nav .menu-item.has-children > a::after { content: '▾'; margin-left: 5px; color: var(--muted); font-size: 11px; }
.nav .menu-level-2 {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 70;
  min-width: 240px; flex-direction: column; gap: 0; flex-wrap: nowrap;
  background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-hover);
  padding: 10px 0; border: 1px solid var(--line);
}
.nav .menu-item:hover > .menu-level-2,
.nav .menu-item:focus-within > .menu-level-2 { display: flex; }
.nav .menu-level-2 .menu-item { width: 100%; }
.nav .menu-level-2 a { display: block; padding: 10px 20px; font-size: 14px; white-space: nowrap; }
.nav .menu-level-2 a:hover { background: var(--acc-soft); }
.top-tel { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap; }
.top-tel .icon { color: var(--acc); }
.top-cta { background: var(--acc); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; padding: 13px 22px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(255,106,0,.3); }
.top-cta:hover { background: var(--acc-dark); }
.burger { display: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); border-radius: 12px; padding: 10px 12px; margin-left: auto; cursor: pointer; }

/* ---------- Hero с фото цеха ---------- */
.hero { position: relative; color: #fff; padding: 130px 0 120px; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(20,22,27,.92) 0%, rgba(20,22,27,.78) 48%, rgba(20,22,27,.55) 100%),
    radial-gradient(700px 420px at 82% 28%, rgba(255,106,0,.16), transparent 60%),
    url('img/hero-workshop.jpg') 68% 38% / cover no-repeat #14161b; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .tag { font-family:'JetBrains Mono',monospace; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--acc); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.12; max-width: 820px; margin-bottom: 18px; }
.hero .hero-sub { color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; max-width: 540px; margin-bottom: 30px; }
.hero .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .btn-a { box-shadow: 0 14px 34px rgba(255,106,0,.4); }
.hero .btn-b { border-color: #fff; color: #fff; }
.hero .btn-b:hover { background: #fff; color: var(--ink); }
.hero-meta { display: flex; gap: 34px; margin-top: 56px; font-size: 14px; color: rgba(255,255,255,.75); font-weight: 600; flex-wrap: wrap; }
.hero-meta .meta-item { display: flex; align-items: center; gap: 8px; }

/* ---------- Секции ---------- */
/* только вертикальные: шорткат padding перебивал горизонтальные .wrap и сам обнулялся в media */
.sec { padding-top: 64px; padding-bottom: 64px; }
/* соседние секции на общем сером фоне: воздух даёт только нижний padding первой */
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.sec-head h2 { margin: 0; font-size: clamp(23px, 2.6vw, 30px); } /* margin:0 — линия центрируется по тексту, а не по margin-box (.content h2 давал +40px сверху) */
.sec-head .ln { flex: 1; height: 1px; background: var(--line); }
.sec-head .count { font-family:'JetBrains Mono',monospace; font-size: 12px; color: var(--muted); font-weight: 700; }
.sec-head a { color: var(--acc); font-size: 14px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.sec-kicker { text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); margin: 0 0 10px; }
.sec-title-center { text-align: center; font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.sec-sub-center { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 15.5px; line-height: 1.65; }

/* ---------- Карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: var(--fg); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-art { aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: var(--panel-2); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-info h3 { font-size: 17px; }
.card-info p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; flex: 1; }
.card-price { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-price b { color: var(--acc); font-size: 15.5px; font-weight: 800; }
.card-price .go { width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; transition: transform .18s ease; }
.card:hover .card-price .go { transform: rotate(45deg); }

/* ---------- Портфолио: широкие ряды ---------- */
.rowitem { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); margin-bottom: 22px; }
.rowitem > * { min-width: 0; }
.rowitem .art { background: var(--panel-2); min-height: 260px; overflow: hidden; }
.rowitem .art img { width: 100%; height: 100%; object-fit: cover; }
.rowitem .info { padding: 30px 34px; display: flex; flex-direction: column; align-items: flex-start; }
.rowitem.flip .art { order: 2; }
.rowitem.flip .info { order: 1; }
.rowitem .info h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 10px; }
.rowitem .info p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { background: var(--acc-soft); color: var(--acc-dark); font-family:'JetBrains Mono',monospace; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.big-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.big-price b { font-family:'JetBrains Mono',monospace; color: var(--acc); font-size: 24px; font-weight: 700; }
.big-price span { color: var(--muted); font-size: 13px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 34px; }
.spec { background: var(--panel); border-radius: var(--r-sm); padding: 16px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; box-shadow: var(--shadow); }
.spec span { color: var(--muted); font-size: 13.5px; }
.spec b { font-family:'JetBrains Mono',monospace; font-weight: 700; font-size: 13.5px; text-align: right; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step { background: var(--panel); border-radius: var(--r); padding: 24px 24px 22px; box-shadow: var(--shadow); }
.step .n { width: 46px; height: 46px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-family:'Comfortaa'; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.step b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.step span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Преимущества ---------- */
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.adv-item { background: var(--panel); border-radius: var(--r); padding: 26px 26px 24px; box-shadow: var(--shadow); }
.adv-item .icon { width: 34px; height: 34px; color: var(--acc); margin-bottom: 16px; }
.adv-item b { font-size: 16px; display: block; margin-bottom: 8px; }
.adv-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* ---------- Цифры ---------- */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-cell { background: var(--panel); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); }
.stat-cell b { font-family:'Comfortaa'; font-weight: 700; font-size: 32px; color: var(--acc); display: block; margin-bottom: 6px; }
.stat-cell span { color: var(--muted); font-size: 13px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--acc); color: #fff; border-radius: var(--r); padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 18px 44px rgba(255,106,0,.35); }
.cta-band b { font-size: 21px; display: block; margin-bottom: 4px; }
.cta-band span { font-size: 14px; opacity: .9; }
.cta-band .btn-a { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn-a:hover { transform: translateY(-2px); }

/* ---------- Внутренние страницы ---------- */
.pagehero { color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #262a33 0%, #14161b 60%, #1d2027 100%); }
.pagehero::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 85% 30%, rgba(255,106,0,.25), transparent 55%); }
.pagehero .wrap { position: relative; }
.pagehero h1 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); }
.pagehero p { margin: 12px 0 0; font-weight: 600; font-size: 15.5px; opacity: .85; max-width: 640px; }
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 26px 0 0; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
/* Детальная страница: карточка не прилипает к крошкам, секции в едином ритме */
.rowitem.detail { margin-top: 24px; }
.wrap > .sec-head { margin-top: 46px; }
.wrap > .sec-head:first-child { margin-top: 0; } /* секция уже дала свой padding-top */
.wrap > .adv, .wrap > .steps, .wrap > .grid, .wrap > .pf-grid, .wrap > .specs, .wrap > .content { margin-bottom: 34px; }
.wrap > .cta-band { margin-top: 40px; margin-bottom: 44px; }
/* CTA сразу после серой секции (главная): воздух уже есть — padding секции */
.sec + .wrap > .cta-band { margin-top: 0; }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; padding: 44px 24px 60px; max-width: var(--maxw); margin: 0 auto; }
.c-info { display: flex; flex-direction: column; gap: 14px; height: fit-content; }
.crow { background: var(--panel); border-radius: var(--r-sm); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.crow .icon { color: var(--acc); margin-top: 3px; width: 22px; height: 22px; }
.crow b { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.crow span { font-weight: 800; font-size: 15px; }
.cform { background: var(--panel); border-radius: var(--r); padding: 30px 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.cform label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 800; color: var(--fg); }
.cform input, .cform textarea {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; color: var(--fg);
  font: 400 15px/1.5 'Nunito', sans-serif; padding: 14px 16px; outline: none; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cform input:focus, .cform textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.cform .hp { position: absolute; left: -9999px; }
.cform .btn-a { align-self: flex-start; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row input { max-width: 150px; }
.ok { background: #e9f9ef; border: 1px solid #b8e6c9; color: #14713b; border-radius: var(--r); padding: 22px 26px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.ok .icon { color: #14713b; width: 26px; height: 26px; }
.err { background: #fdeeee; border: 1px solid #f0c2c2; color: #a03030; border-radius: var(--r-sm); padding: 15px 18px; font-size: 14px; }

/* ---------- Форма конструктора ---------- */
.xyzin-form { display: flex; flex-direction: column; gap: 16px; }
.xyzin-form h3 { font-size: 20px; margin: 0; }
.xyzin-form .form-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.xyzin-form .form-row { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 800; }
.xyzin-form input, .xyzin-form textarea, .xyzin-form select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; color: var(--fg);
  font: 400 15px/1.5 'Nunito', sans-serif; padding: 14px 16px; outline: none; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.xyzin-form input:focus, .xyzin-form textarea:focus, .xyzin-form select:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.xyzin-form .form-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.xyzin-form .btn {
  background: var(--acc); color: #fff; border: 0; cursor: pointer; align-self: flex-start;
  font-weight: 800; font-size: 15px; padding: 16px 30px; border-radius: 999px; font-family: 'Nunito', sans-serif;
  box-shadow: 0 10px 26px rgba(255,106,0,.32); transition: background .18s ease;
}
.xyzin-form .btn:hover { background: var(--acc-dark); }
.xyzin-form .alert-ok, .cform .alert-ok {
  background: #e9f9ef; border: 1px solid #b8e6c9; color: #14713b; border-radius: var(--r);
  padding: 22px 26px; font-weight: 700; line-height: 1.6;
}
.xyzin-form .alert-err { background: #fdeeee; border: 1px solid #f0c2c2; color: #a03030; border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; }

/* ---------- Статьи ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.art-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px;
  background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.art-card .art-cover { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-sm); margin-bottom: 6px; }
.art-card .art-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.art-card:hover .art-cover img { transform: scale(1.04); }
.art-card time { font-family:'JetBrains Mono',monospace; font-size: 12px; font-weight: 600; color: var(--acc); letter-spacing: .06em; }
.art-card h3 { font-size: 17px; margin: 0; line-height: 1.4; }
.art-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; }
.art-card .more { font-weight: 800; font-size: 14px; color: var(--acc); }

/* Обложка на детальной странице статьи */
.post-cover { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
/* Дата в карточках статей (не трогает цены каталога) */
.card-price .card-date { font-family:'JetBrains Mono',monospace; font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--acc); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--panel); border-radius: var(--r-sm); box-shadow: var(--shadow);
  padding: 20px 26px; margin-bottom: 14px;
}
.faq details[open] { padding-bottom: 22px; }
.faq summary {
  cursor: pointer; font-weight: 800; font-size: 16px; line-height: 1.5;
  list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family:'JetBrains Mono',monospace; font-size: 20px; font-weight: 700; color: var(--acc); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Портфолио ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf-card {
  display: block; background: var(--panel); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pf-art { aspect-ratio: 4 / 3; overflow: hidden; }
.pf-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pf-card:hover .pf-art img { transform: scale(1.05); }
.pf-info { padding: 20px 22px 22px; }
.pf-info h3 { font-size: 17px; margin: 0 0 6px; }
.pf-info p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pf-cost { font-weight: 800; font-size: 14px; color: var(--acc); }

/* ---------- Отзывы ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rv-card {
  background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.rv-card p { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.7; flex: 1; }
.rv-card .stars { color: #f0a72e; font-size: 16px; letter-spacing: 3px; }
.rv-author { border-top: 1px solid var(--line); padding-top: 14px; }
.rv-author b { font-size: 15px; }
.rv-author span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; gap: 10px; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination b {
  font-weight: 800; font-size: 14px; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; color: var(--muted); background: var(--panel); box-shadow: var(--shadow);
}
.pagination b { background: var(--acc); color: #fff; }
.pagination a:hover { color: var(--acc); }

/* ---------- Сервисные ---------- */
.big-404 { text-align: center; padding: 90px 24px; }
.big-404 b { font-family:'Comfortaa'; font-weight:700; font-size: clamp(80px, 16vw, 150px); color: var(--acc); line-height: 1; display: block; }
.big-404 h1 { font-size: 22px; margin: 20px 0 10px; }
.big-404 p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Скролл-кнопка ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .4);
  background: var(--ink); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow: var(--shadow-hover);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--acc); }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Футер ---------- */
.foot { background: var(--ink); color: #fff; margin-top: 20px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 38px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot-brand .f-logo { font-family: 'Comfortaa'; font-weight: 700; font-size: 20px; }
.foot-brand .f-logo span { color: var(--acc); }
.foot-brand p { margin: 12px 0 0; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.7; }
.foot-cols { display: flex; flex-direction: column; gap: 13px; }
.foot-cols a, .foot-cols .f-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.foot-cols a:hover { color: var(--acc); }
.foot-cols .icon { color: var(--acc); }
.foot-menu { display: flex; flex-direction: column; gap: 10px; }
.foot-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-menu a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 600; }
.foot-menu a:hover { color: var(--acc); }
.foot h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); margin: 0 0 10px; font-family:'JetBrains Mono',monospace; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; }
.foot-base-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: rgba(255,255,255,.55); }
.foot-base a { color: rgba(255,255,255,.75); }

/* ---------- Мобильное ---------- */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 83px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 18px 24px 22px; z-index: 60; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 11px 0; font-size: 16px; }
  /* подменю в мобильном меню — раскрытый список со сдвигом */
  .nav .menu-item.has-children > a::after { content: ' ▾'; }
  .nav .menu-level-2 {
    display: flex !important; position: static; box-shadow: none; border: 0;
    padding: 0 0 6px 14px; min-width: 0; background: transparent;
  }
  .nav .menu-level-2 a { padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--muted); }
  .burger { display: inline-flex; }
  .top-tel span { display: none; }
  .top-cta { display: none; }
  .rowitem, .rowitem.flip { grid-template-columns: 1fr; }
  .rowitem .info { padding: 24px 26px; }
  .rowitem.flip .art { order: 0; }
  .rowitem.flip .info { order: 1; }
  .contact { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .hero-meta { margin-top: 40px; flex-wrap: wrap; gap: 16px; }
  .articles, .pf-grid, .rv-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .content h2, .content h3 { font-size: 21px; }
}
@media (max-width: 480px) {
  /* только горизонтальные отступы: шорткат перебил бы вертикальные padding у .sec */
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 64px 0 88px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 38px); }
  .grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 24px; }
  .card-price .go { width: 34px; height: 34px; }
  .cform, .xyzin-form { padding: 24px 20px; }
}
