:root{
  --bg:#f8fafc; --card:#ffffff; --card2:#f1f5f9; --border:#e2e8f0;
  --accent:#0284c7; --accent2:#0ea5e9;
  --ink:#0f172a; --steel:#64748b;
  --green:#16a34a; --green2:#22c55e;
  --yellow:#d97706; --amber:#b45309;
  --red:#dc2626; --red2:#fee2e2; --red2-text:#b91c1c;
  /* совместимость со старыми именами переменных в шаблонах статей блога */
  --paper:#f8fafc; --paper2:#f1f5f9; --line:#e2e8f0; --hazard:#0284c7; --route:#0ea5e9;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.65; font-size:16px;
}
.container{max-width:1080px;margin:0 auto;padding:0 24px;}
a{color:var(--accent);}

.eyebrow{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12px; font-weight:700; letter-spacing:.02em;
  color:#1d4ed8; background:#dbeafe; border-radius:999px; padding:6px 14px;
  margin-bottom:18px;
}
.eyebrow .dot{width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0;}

h2.section-title{font-weight:800; font-size:clamp(24px,3.2vw,34px); margin-bottom:14px; max-width:640px; letter-spacing:-.01em;}
p.section-sub{color:var(--steel); font-size:16px; max-width:560px; margin-bottom:36px;}

section{padding:72px 0;}
section.alt{background:var(--card2);}

header{position:sticky; top:0; z-index:20; background:rgba(248,250,252,.92); backdrop-filter:blur(6px); border-bottom:1px solid var(--border);}
header .bar{display:flex; align-items:center; justify-content:space-between; padding:16px 0;}
.logo{display:flex; align-items:center; gap:10px; text-decoration:none;}
.logo .badge{width:34px;height:34px;display:block;object-fit:contain;}
.logo .word{font-weight:800;font-size:19px;color:var(--accent);}
nav{display:flex; align-items:center; gap:24px;}
nav a{font-size:14px; font-weight:600; text-decoration:none; color:var(--steel);}
nav a:hover{color:var(--accent);}
.btn{display:inline-flex; align-items:center; gap:8px; border:none; cursor:pointer; font-weight:700; font-size:14px; padding:12px 22px; border-radius:10px; text-decoration:none;}
.btn-primary{background:var(--accent); color:#fff;}
.btn-primary:hover{background:#0369a1;}
.btn-outline{background:#fff; color:var(--accent); border:1.5px solid var(--accent);}
.btn-outline:hover{background:#eff6ff;}

.hero{padding:60px 0 20px;}
.hero-grid{display:grid; grid-template-columns:1fr; gap:40px; align-items:center;}
@media(min-width:768px){.hero-grid{grid-template-columns:1fr 1fr; gap:32px;}}
@media(min-width:1200px){.hero-grid{gap:56px;}}
/* Табло справа сейчас скрыто (закомментировано в renderHome.js) - пока в
   hero-grid только один блок, растягиваем его на всю ширину, а не оставляем
   пустую половину. Как только табло вернётся - второй ребёнок появится, и
   :only-child перестанет матчиться, всё само вернётся в две колонки. */
@media(min-width:768px){.hero-grid:has(> div:only-child){grid-template-columns:1fr;}}
.hero-grid > div:only-child{max-width:640px;}
.hero h1{font-weight:800; font-size:clamp(30px,4.6vw,48px); line-height:1.12; letter-spacing:-.015em; margin-bottom:20px;}
.hero p.lead{font-size:18px; color:var(--steel); max-width:480px; margin-bottom:28px;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}

/* Короб с уже "напечатанным" на фото табло - один цельный PNG (см.
   box-board.png), без отдельной HTML-карточки поверх. Просто картинка,
   центрированная в своей колонке hero, с разумным потолком ширины, чтобы
   не раздувалась на очень широких экранах. */
.board-box-wrap{width:100%; max-width:480px; margin-inline:auto;}
.board-box-img{display:block; width:100%; height:auto;}

.grid{display:grid; grid-template-columns:1fr; gap:14px;}
@media(min-width:700px){.grid.cols-3{grid-template-columns:repeat(3,1fr);}}
@media(min-width:640px){.grid.cols-2{grid-template-columns:repeat(2,1fr);}}
.tile{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:22px; transition:box-shadow .15s;}
.tile:hover{box-shadow:0 8px 24px -12px rgba(15,23,42,.15);}
.tile .ic{width:28px;height:28px;color:var(--accent);margin-bottom:12px;}
.tile .ic svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.tile h3{font-size:15.5px; font-weight:700; margin-bottom:6px;}
.tile .code{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:700;color:var(--accent2);margin-bottom:10px;display:block;letter-spacing:.02em;}
.tile p{font-size:14px; color:var(--steel); margin:0;}

.compare{display:grid; grid-template-columns:1fr; gap:18px; margin-top:8px;}
@media(min-width:760px){.compare{grid-template-columns:1fr 1fr;}}
.compare-col{border-radius:16px; padding:26px; border:1px solid var(--border); background:var(--card);}
.compare-col .stamp{display:inline-block; font-size:13px; font-weight:700; padding:5px 14px; border-radius:999px; margin-bottom:16px;}
.compare-col.bad .stamp{background:var(--red2); color:var(--red2-text);}
.compare-col.good .stamp{background:#dcfce7; color:#15803d;}
.compare-col ul{list-style:none;}
.compare-col li{padding:9px 0; font-size:14px; border-bottom:1px solid var(--border); display:flex; gap:10px;}
.compare-col li:last-child{border-bottom:none;}
.compare-col.bad li::before{content:"✕"; color:var(--red); font-weight:700;}
.compare-col.good li::before{content:"✓"; color:var(--green); font-weight:700;}

.timeline{position:relative; padding-left:38px;}
.timeline::before{content:"";position:absolute;left:14px;top:6px;bottom:6px;width:2px;background:var(--border);}
.t-step{position:relative; padding-bottom:32px;}
.t-step:last-child{padding-bottom:0;}
.t-step .marker{position:absolute; left:-38px; top:0; width:30px; height:30px; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center;}
.t-step h4{font-size:16px; font-weight:800; margin-bottom:4px;}
.t-step p{color:var(--steel); font-size:14px; margin:0;}

.price-grid{display:grid; grid-template-columns:1fr; gap:20px;}
@media(min-width:720px){.price-grid{grid-template-columns:1fr 1fr;}}
.price-tag{background:var(--card); border:1.5px solid var(--border); border-radius:16px; padding:30px;}
.price-tag.highlight{border-color:var(--accent); box-shadow:0 0 0 3px #e0f2fe;}
.price-tag .kicker{font-size:12px; font-weight:700; color:var(--steel); text-transform:uppercase; letter-spacing:.04em;}
.price-tag h3{font-size:20px; font-weight:800; margin:6px 0 14px;}
.price-tag .amount{font-size:38px; font-weight:800; color:var(--accent); margin-bottom:4px;}
.price-tag .amount .unit{font-size:15px; color:var(--steel); font-weight:600;}
.price-tag ul{list-style:none; margin:16px 0;}
.price-tag li{font-size:14px; color:var(--steel); padding:6px 0;}
.price-tag li::before{content:"✓ "; color:var(--green); font-weight:700;}

.rev-grid, .photo-strip{display:flex; gap:16px; flex-wrap:wrap;}
.rev-card, .photo-slot{flex:1; min-width:240px; border:1.5px dashed var(--border); border-radius:14px; padding:26px; text-align:center; background:var(--card2); color:var(--steel);}
.rev-card .name{font-weight:800; font-size:15px; margin-bottom:6px; color:var(--ink);}
.rev-card .status{font-size:12px; color:var(--steel);}
.photo-slot{aspect-ratio:4/3; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.photo-slot .ic{width:30px;height:30px;margin-bottom:12px;opacity:.55;}
.photo-slot .ic svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.5;}
.photo-slot .t{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; margin-bottom:4px; color:var(--ink);}
.photo-slot .d{font-size:12px; max-width:220px;}

.faq-item{border-bottom:1px solid var(--border); padding:18px 0;}
.faq-item summary{font-weight:700; cursor:pointer; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; color:var(--accent); font-size:20px; font-weight:700;}
.faq-item[open] summary::after{content:"–";}
.faq-item p{color:var(--steel); font-size:14px; margin-top:12px; max-width:640px;}

.intake{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:36px; max-width:520px; margin:0 auto;}
.intake .kicker{font-size:12px; font-weight:700; color:var(--steel); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px;}
.field{margin-bottom:14px;}
.field label{display:block; font-size:12px; font-weight:700; color:var(--steel); text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px;}
.field input, .field textarea{width:100%; padding:12px 14px; border:2px solid var(--border); border-radius:10px; font-family:inherit; font-size:14px; background:var(--card2); color:var(--ink);}
.field input:focus, .field textarea:focus{border-color:var(--accent); outline:none;}
.field textarea{min-height:80px;}

.blog-list{display:grid; grid-template-columns:1fr; gap:14px;}
@media(min-width:700px){.blog-list{grid-template-columns:repeat(2,1fr);}}
.blog-card{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:24px; text-decoration:none; color:var(--ink); display:block; transition:box-shadow .15s;}
.blog-card:hover{box-shadow:0 8px 24px -12px rgba(15,23,42,.15); border-color:var(--accent);}
.blog-card h3{font-size:16px; font-weight:700; margin-bottom:8px;}
.blog-card p{color:var(--steel); font-size:13.5px; margin:0;}
.blog-card .tag{display:inline-block; font-size:11px; color:#1d4ed8; background:#dbeafe; font-weight:700; padding:3px 10px; border-radius:999px; margin-bottom:10px;}

article.post{max-width:680px;margin:0 auto;}
article.post h1{font-weight:800;font-size:clamp(26px,4vw,38px);line-height:1.18;margin-bottom:22px;letter-spacing:-.015em;}
article.post h2{font-weight:800;font-size:20px;margin-top:32px;margin-bottom:14px;}
article.post p{margin-bottom:16px;font-size:16px;color:var(--ink);}
article.post ul{margin:0 0 16px 20px;}
article.post li{margin-bottom:8px;color:var(--ink);}
.cta-box{background:var(--card2);border:1px solid var(--border);border-radius:16px;padding:26px;margin-top:36px;}
.back-link{display:inline-block;margin-bottom:24px;font-size:13px;color:var(--steel);text-decoration:none;font-weight:600;}
.note{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:16px 20px;font-size:14px;color:#78350f;margin:20px 0;}
table.cmp{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px;}
table.cmp th, table.cmp td{border-bottom:1px solid var(--border);padding:10px 8px;text-align:left;}
table.cmp th{font-size:12px;text-transform:uppercase;color:var(--steel);}

footer{border-top:1px solid var(--border); padding:32px 0; text-align:center; color:var(--steel); font-size:13px;}
footer a{color:var(--steel);}
.foot-grid{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;}

@media (prefers-reduced-motion: reduce){ .board-live .pulse{animation:none;} }
