/* ===== АвтоХелп: тёмная ночная тема, крупная типографика ===== */
:root {
  --bg: #000000;
  --bg-2: #171D24;
  --bg-3: #181818;
  --surface: #14191F;
  --ink: #F2F6F9;
  --ink-2: #A8B6C2;
  --ink-3: #8496A6;
  --line: #232C35;
  --accent: #E6B14A;
  --accent-2: #3FBDDB;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/24px "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 60px; line-height: 64px; }
h2 { font-size: 36px; line-height: 40px; }
h3 { font-size: 20px; line-height: 28px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; background: var(--accent); color: #111; padding: 12px 16px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; }

/* телефонная полоса */
.callbar { background: var(--accent); color: #14191F; }
.callbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; flex-wrap: wrap; }
.callbar .state { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1F6B4A; box-shadow: 0 0 0 0 rgba(31, 107, 74, .5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 107, 74, .45); } 50% { box-shadow: 0 0 0 6px rgba(31, 107, 74, 0); } }
.callbar a { font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }

header.site { position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, .72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.logo i { width: 10px; height: 10px; background: var(--accent); display: block; transform: rotate(45deg); }
header nav { display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
header nav a { transition: color .3s var(--ease); }
header nav a:hover { color: var(--ink); }
header .call { border: 1px solid var(--line); border-radius: 4px; padding: 8px 16px; font-size: 14px; font-weight: 600; transition: background .3s var(--ease); }
header .call:hover { background: var(--bg-3); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* hero: текст слева, картинка справа, без центрирования */
.hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 680px; }
.hero .sub { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 560px; }
.hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 4px; font-weight: 600; font-size: 16px; transition: transform .3s var(--ease), background .3s var(--ease); }
.btn-main { background: var(--accent); color: #14191F; }
.btn-main:hover { background: #F0C468; transform: translateY(-1px); }
.btn-main:active { transform: scale(.99); }
.btn-line { border: 1px solid #3A4753; color: var(--ink); }
.btn-line:hover { background: var(--bg-3); }
.hero .shot { border: 1px solid #33414E; border-radius: 8px; overflow: hidden; background: #0E1620; }
.hero .shot img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }

.ticker { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ticker div { padding: 32px; border-right: 1px solid var(--line); }
.ticker div:last-child { border-right: 0; }
.ticker b { display: block; font-size: 30px; line-height: 36px; color: var(--accent); font-weight: 600; }
.ticker span { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-3); }

section { padding: 80px 0; }
.kicker { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #74D2EC; margin-bottom: 16px; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.muted { color: var(--ink-2); font-size: 18px; line-height: 28px; }

.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #2C3844; border: 1px solid #2C3844; border-radius: 8px; overflow: hidden; margin-top: 48px; }
.bgrid article { background: var(--bg-2); padding: 32px; border-top: 1px solid #2C3844; }
.bgrid article h3 { margin-bottom: 8px; }
.bgrid article p { color: var(--ink-2); }
.bgrid .tag { display: inline-block; font-size: 14px; color: var(--accent); margin-bottom: 16px; letter-spacing: .08em; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.flow article { position: relative; padding-top: 32px; border-top: 1px solid var(--line); }
.flow article b { position: absolute; top: -14px; background: var(--bg); padding-right: 12px; color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.flow article p { color: var(--ink-2); margin-top: 8px; }

/* большой слоган */
.slogan { padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0A0E12; }
.slogan p { max-width: 680px; font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -0.02em; }
.slogan .w { color: #6E7E8C; opacity: .32; transition: color .5s var(--ease), opacity .5s var(--ease); }
.slogan .w.on { color: var(--ink); opacity: 1; }

/* кейсы списком, а не карточками: каждая строка с картинкой слева */
.cases { margin-top: 48px; display: grid; gap: 24px; }
.case-row {
  display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2);
  transition: border-color .3s var(--ease), transform .5s var(--ease);
}
.case-row:hover { border-color: #36434F; transform: translateX(4px); }
.case-row img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-row .txt { padding: 32px 32px 32px 0; }
.case-row time { font-size: 14px; color: var(--ink-3); }
.case-row h3 { margin: 8px 0; }
.case-row p { color: var(--ink-2); }
.case-row .go { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--accent); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.quote { border-left: 2px solid var(--accent); padding: 8px 0 8px 24px; }
.quote p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: var(--ink-3); }

.geo { border: 1px solid var(--line); border-radius: 8px; padding: 40px; margin-top: 32px; background: var(--bg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { font-size: 14px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; color: var(--ink-2); }

.news { margin-top: 48px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 120px 1fr 24px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: color .3s var(--ease); }
.news a:hover { color: var(--accent); }
.news time { font-size: 14px; color: var(--ink-3); }
.news h3 { font-size: 20px; line-height: 28px; }
.news .arrow { color: var(--accent); }

.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 24px 0; cursor: pointer; font-size: 18px; line-height: 28px; font-weight: 600; display: flex; gap: 24px; justify-content: space-between; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "→"; color: var(--accent-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq p { padding-bottom: 24px; color: var(--ink-2); max-width: 820px; }

.final { padding: 96px 0; text-align: left; border-top: 1px solid var(--line); }
.final .box { border: 1px solid var(--line); border-radius: 8px; padding: 64px; background: var(--bg-2); }
.final h2 { max-width: 680px; }
.final p { margin-top: 16px; color: var(--ink-2); max-width: 560px; }
.final .big { display: inline-block; margin-top: 32px; font-size: 36px; line-height: 40px; font-weight: 600; color: var(--accent); }
.final .big:hover { color: #F0C468; }

footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--ink-3); font-size: 14px; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
footer a { color: var(--ink-2); display: block; padding: 4px 0; }
footer a:hover { color: var(--accent); }
footer h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); font-weight: 600; }

/* статья */
.crumbs { font-size: 14px; color: var(--ink-3); padding-top: 32px; }
.head { padding: 32px 0 24px; }
.head .meta { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.article { max-width: 720px; }
.article p { margin-top: 16px; font-size: 18px; line-height: 32px; color: var(--ink-2); }
.article figure { margin: 32px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.article img { width: 100%; }
.article figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-3); background: var(--bg-3); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 32px 0; }
.facts div { background: var(--bg-2); padding: 24px; }
.facts b { display: block; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.facts span { display: block; margin-top: 4px; font-size: 20px; font-weight: 600; color: var(--accent); }
.back { display: inline-block; margin-top: 40px; color: var(--accent); font-weight: 600; }

html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, .slogan .w { transition: none; transform: none; opacity: 1; }
  .live { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 36px; }
  .slogan p { font-size: 36px; line-height: 44px; }
  .hero .grid, .two, .bgrid, .flow, .case-row, .quotes, footer .grid { grid-template-columns: 1fr; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker div:nth-child(2) { border-right: 0; }
  .case-row .txt { padding: 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  header nav { display: none; }
  .final .box { padding: 32px; }
}
