:root {
  --accent: #E8A33D;
  --bg: #0C0E12;
  --bg-alt: #11141B;
  --card: #161A23;
  --panel: #10141C;
  --text: #EDEFF3;
  --muted: #9BA3B0;
  --faint: #8B93A1;
  --line: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Golos Text', sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: 'Inter Tight', sans-serif; margin: 0; }
p { margin: 0; }
a { color: #C9CFD9; text-decoration: none; }
a:hover { color: #FFFFFF; }
.container { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 3vw, 32px); padding-right: clamp(20px, 3vw, 32px); }
.accent { color: var(--accent); }

/* Первый экран */
.hero-wrap { background: linear-gradient(to right, rgba(12,14,18,0.95) 0%, rgba(12,14,18,0.72) 55%, rgba(12,14,18,0.40) 100%), url(assets/hero.jpg) center / cover no-repeat var(--bg); }
@media (max-width: 720px) {
  .hero-wrap { background: linear-gradient(rgba(12,14,18,0.84), rgba(12,14,18,0.94)), url(assets/hero.jpg) center / cover no-repeat var(--bg); }
}
.topbar { --nav-alpha: 0; position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(12,14,18,var(--nav-alpha)); backdrop-filter: blur(calc(12px * var(--nav-alpha))); -webkit-backdrop-filter: blur(calc(12px * var(--nav-alpha))); border-bottom: 1px solid rgba(255,255,255,calc(0.14 * var(--nav-alpha) / 0.96)); }
.topbar:has(.menu-button[aria-expanded="true"]) { background: rgba(12,14,18,0.96); }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.06em; color: var(--text); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; }
.menu a { font-size: 14px; }
.phone-pill { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 11px 20px; }
.hero { padding: calc(76px + clamp(88px, 11vw, 160px)) 0 clamp(88px, 11vw, 150px); }
.hero .container { display: flex; flex-direction: column; gap: 32px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--accent); }
h1 { max-width: 900px; font-weight: 800; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.06; letter-spacing: -0.02em; }
.h-em { font-style: italic; color: var(--accent); }
.lead { max-width: 580px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.btn, .btn-ghost { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter Tight', sans-serif; font-size: 16px; padding: 16px 30px; border-radius: 999px; }
.btn { background: var(--accent); color: #17130A; font-weight: 700; }
.btn:hover { color: #17130A; filter: brightness(1.07); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.2); color: var(--text); font-weight: 600; }

/* Показатели */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.stat b { display: block; font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: clamp(26px, 2.5vw, 34px); color: var(--text); margin-bottom: 8px; }
.stat span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* Секции */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,0.06); }
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
h2 { font-weight: 700; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.015em; }
.sec-intro { font-size: 18px; line-height: 1.7; color: var(--muted); }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* О компании */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: start; }
.about-col { display: flex; flex-direction: column; gap: 24px; }
.about-text { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.link-accent { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 16px; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.link-accent:hover { color: var(--accent); opacity: 0.85; }

/* Услуги */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-weight: 700; font-size: 21px; line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.panel { position: relative; background: var(--panel); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; height: 150px; display: flex; align-items: center; justify-content: center; }
.panel .num { position: absolute; top: 14px; left: 16px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; color: var(--accent); }

/* Подход */
.collage { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.principle { border-top: 2px solid var(--accent); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.principle .n { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; color: var(--faint); }
.principle h3 { font-weight: 700; font-size: 22px; }
.principle p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Шаги */
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step-card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.step-card .step-n { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.step-card h3 { font-weight: 700; font-size: 21px; }
.step-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Контакты */
.grid-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.contact-card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-card .label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.addr { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 21px; line-height: 1.4; }
.tel { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 22px; color: var(--text); }

/* Футер */
footer { border-top: 1px solid var(--line); }
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 36px; padding-bottom: 36px; }
footer .brand { font-size: 15px; }
footer .note { font-size: 14px; color: var(--faint); }

/* Анимации иллюстраций */
@keyframes ks-sweep { 0%, 100% { transform: rotate(-12deg) } 50% { transform: rotate(12deg) } }
@keyframes ks-crawl { to { stroke-dashoffset: -40 } }
@keyframes ks-radar { to { transform: rotate(360deg) } }
@keyframes ks-blink { 0%, 76%, 100% { opacity: 1 } 86% { opacity: 0.2 } }
@keyframes ks-slew { 0%, 100% { transform: rotate(-9deg) } 50% { transform: rotate(9deg) } }
.ks-sweep { animation: ks-sweep 9s ease-in-out infinite; transform-box: view-box; }
.ks-crawl { animation: ks-crawl 3.2s linear infinite; }
.ks-radar { animation: ks-radar 9s linear infinite; transform-box: view-box; transform-origin: 100px 60px; }
.ks-blink { animation: ks-blink 6s linear infinite; }
.ks-slew { animation: ks-slew 11s ease-in-out infinite; transform-box: view-box; transform-origin: 115px 53px; }
@media (prefers-reduced-motion: reduce) { .ks-sweep, .ks-crawl, .ks-radar, .ks-blink, .ks-slew { animation: none; } }

/* Навигация и доступность */
html { scroll-padding-top: 100px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
.menu-button { display: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.card, .btn, .btn-ghost { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-5px); border-color: #e8a33d70; }
.btn:hover, .btn-ghost:hover { transform: translateY(-3px); }
.reveal { animation: appear .7s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .topbar .container { gap: 16px; }
  .menu { order: 3; width: 100%; justify-content: center; padding: 8px 0; }
}
@media (max-width: 600px) {
  .topbar .container { gap: 12px; }
  .brand { font-size: 14px; }
  .menu-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--card); color: var(--text); cursor: pointer; }
  .phone-pill { order: 2; padding: 6px 0; border: 0; font-size: 14px; }
  .menu { display: none; order: 4; align-items: stretch; gap: 0; }
  .menu.is-open { display: flex; flex-direction: column; }
  .menu a { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero { padding: 146px 0 80px; }
  .hero .container { gap: 24px; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
  .about-grid { gap: 28px; }
  .card, .step-card, .contact-card { padding: 24px; }
  .stack-48 { gap: 32px; }
  .stats .container { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 10px; }
  .tel { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 601px) and (max-width: 1000px) { html { scroll-padding-top: 150px; } }

/* Единое выравнивание номера и кнопки WhatsApp */
.contact-phone { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-phone .tel { white-space: nowrap; }
.contact-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #25d366; border-radius: 9px; background: #25d366; color: #072c16; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
.contact-whatsapp:hover { background: #5be28e; border-color: #5be28e; }
.contact-whatsapp:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
