:root{
  --ink:#0f172a;
  --ink-soft:#475569;
  --bg:#f8fafc;
  --bg-alt:#e2e8f0;
  --line:#cbd5e1;
  --accent:#3b82f6;
  --accent-dark:#2563eb;
  --white:#ffffff;
  --radius:20px;
  --max:1240px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Manrope',system-ui,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
body.menu-open { overflow: hidden; }

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* ============================ SKIP-LINK ============================ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: 15px;
  z-index: 99999;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(59,130,246,.4);
}
.skip-link:focus { top: 0; outline: none; }

/* ============================ FOCUS-VISIBLE ============================ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible { outline-color: var(--accent-dark); }
.footer a:focus-visible,
.skip-link:focus-visible { outline-color: var(--white); }

/* ============================ HEADER ============================ */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);border-bottom:1px solid rgba(0,0,0,.05);}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:96px;gap:20px;}
.logo{display:flex;align-items:center;cursor:pointer;}
.logo img{height:72px;width:auto;}

/* ДЕСКТОПНОЕ МЕНЮ */
.nav {display: flex; gap: 20px; font-size: 14px; font-weight: 600; color: var(--ink-soft);}
.nav a{position:relative;cursor:pointer;white-space:nowrap;transition: color 0.3s;}
.nav a:hover, .nav a.active{color:var(--accent)}
.nav a::after{content:"";position:absolute;bottom:-6px;left:0;width:0;height:2px;background:var(--accent);transition:width .3s;}
.nav a.active::after, .nav a:hover::after{width:100%}

.header-actions{display:flex;align-items:center;gap:20px}
.header-phones {display: flex; flex-direction: column; gap: 6px;}

/* Отдел продаж — акцентный, крупнее */
.header-phone {font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--accent); line-height: 1.1;}
.header-phone span {display: block; font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-top: 2px; opacity: .8;}

/* Диспетчерская — приглушённая, мельче */
.header-phone.secondary {font-size: 13px; font-weight: 600; color: var(--ink-soft);}
.header-phone.secondary span {font-size: 9px; font-weight: 600; color: var(--ink-soft); opacity: .85;}

/* Телефоны в бургер-меню (только мобильные) */
.nav-phones { display: none; }

.burger{display:none;background:none;border:none;cursor:pointer;width:44px;height:44px;position:relative; z-index: 10000;}
.burger span{position:absolute;left:11px;right:11px;height:2px;background:var(--ink);transition:.3s;}
.burger span:nth-child(1){top:16px}
.burger span:nth-child(2){top:22px}
.burger span:nth-child(3){top:28px}

/* ============================ КНОПКИ ============================ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 28px;border-radius:12px;font-weight:700;font-size:15px;border:none;cursor:pointer;transition:all .3s;white-space:nowrap;}
.btn-primary{background:var(--accent);color:var(--white);}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-2px);}
.btn-ghost{background:transparent;color:var(--ink);border:2px solid var(--line)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-sm{padding:10px 20px;font-size:14px;border-radius:10px}
.btn-doc{background:var(--bg);color:var(--ink);border:1px solid var(--line);width:100%;display:flex;justify-content:center;gap:8px;}
.btn-doc:hover{background:var(--white);border-color:var(--accent);color:var(--accent);}
.btn-doc svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}

/* ============================ HERO ============================ */
.hero{position:relative;background:var(--ink);color:var(--white);padding:120px 0 140px;}
.eyebrow{display:inline-block;font-size:13px;font-weight:800;color:#93c5fd;margin-bottom:24px;background:rgba(255,255,255,.1);padding:8px 16px;border-radius:100px;}
.hero h1{font-size:clamp(38px,6vw,72px);line-height:1.1;font-weight:800;margin-bottom:28px;}
.hero h1 em{font-style:normal;color:#60a5fa;}
.hero p.lead{font-size:clamp(16px,1.8vw,20px);color:rgba(255,255,255,.8);max-width:600px;margin-bottom:48px;}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}

/* ============================ STATS & BANNER ============================ */
.stats{background:var(--white);padding:40px 0;margin-top:-60px;position:relative;z-index:10;border-radius:24px;box-shadow:0 20px 40px -20px rgba(0,0,0,.1);max-width:var(--max);margin-left:auto;margin-right:auto;margin-bottom:40px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;padding:0 40px}
.stat{text-align:center}
.stat b{display:block;font-size:38px;font-weight:800;color:var(--ink);margin-bottom:8px}
.stat b i{font-style:normal;color:var(--accent); font-size: 0.6em;}
.stat span{font-size:14px;color:var(--ink-soft);font-weight:600}

.discount-banner{background:var(--ink);border-radius:20px;padding:40px;margin:0 auto 40px;max-width:var(--max);display:flex;justify-content:space-between;align-items:center;gap:30px;color:var(--white);}
.discount-banner h3{font-size:24px;font-weight:800;margin-bottom:8px;}
.discount-banner p{color:rgba(255,255,255,.75);font-size:16px;}

/* ============================ CARDS & SECTIONS ============================ */
.section{padding:100px 0}
.section--tight-top{padding-top:60px}
.section-head{max-width:700px;margin-bottom:60px}
.section-head h1, .section-head h2{font-size:38px;font-weight:800;margin-bottom:20px}
.section-head p{color:var(--ink-soft);font-size:18px}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:30px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}

.card{background:var(--white);border-radius:20px;padding:24px;border:1px solid var(--line);display:flex;flex-direction:column;}
.card-icon{width:64px;height:64px;border-radius:16px;background:rgba(59,130,246,.1);display:grid;place-items:center;margin-bottom:24px;color:var(--accent);flex-shrink:0;}
.card-icon svg{width:28px;height:28px;stroke:currentColor;stroke-width:2;fill:none}
.card h3{font-size:20px;font-weight:800;margin-bottom:12px}
.card p{font-size:15px;color:var(--ink-soft);margin-bottom:24px;flex:1;}
.card-img-wrap {width: 100%; height: 180px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; background: #e2e8f0;}
.card-img-wrap img {width: 100%; height: 100%; object-fit: cover;}
.card .price{font-size:24px;font-weight:800;color:var(--ink);}
.card .price small{font-size:14px;color:var(--ink-soft);font-weight:600;}

/* ============================ СЕРТИФИКАТЫ ============================ */
.cert-card {flex-direction: row; align-items: center; padding: 20px; gap: 20px;}
.cert-img {flex: 0 0 120px; height: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow: hidden; display: block;}
.cert-img img {width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s;}
.cert-img:hover img {transform: scale(1.05);}
.cert-info {flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;}
.cert-info h3 {margin-top: 0; margin-bottom: 6px; font-size: 18px; line-height: 1.3;}
.cert-info .gost-text {margin-bottom: 16px; font-size: 15px; font-weight: 800; color: var(--accent); display: block; white-space: nowrap; line-height: 1.2;}
.cert-info .btn {width: 100%; max-width: 200px; padding: 12px; font-size: 15px;}

/* ============================ ABOUT ============================ */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;margin-bottom:60px}
.about-img{border-radius:24px;height:450px;background:#cbd5e1;position:relative;overflow:hidden; box-shadow:0 20px 40px -20px rgba(0,0,0,.2);}
.about-img img {width: 100%; height: 100%; object-fit: cover;}
.features-list{display:grid;gap:24px}
.feature-item{display:flex;gap:16px;align-items:flex-start}
.feature-check{width:28px;height:28px;border-radius:50%;background:rgba(59,130,246,.15);display:grid;place-items:center;flex:none;color:var(--accent)}
.feature-check svg{width:16px;height:16px;stroke:currentColor;stroke-width:3;fill:none}
.feature-item h4{font-size:18px;font-weight:800;margin-bottom:4px}
.feature-item p{font-size:15px;color:var(--ink-soft)}

.requisites-box{background:var(--white);border-radius:20px;border:1px solid var(--line);padding:40px; box-shadow:0 10px 30px -15px rgba(0,0,0,.05);}
.requisites-box h3{font-size:24px;font-weight:800;margin-bottom:24px}
.requisites-box--compact{padding:32px}
.requisites-box--compact h3{font-size:20px;margin-bottom:16px}
.requisites-box--compact p{font-size:15px;line-height:1.75}
.req-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:24px}
.req-item span{display:block;font-size:12px;text-transform:uppercase;color:var(--ink-soft);font-weight:700;margin-bottom:4px}
.req-item b{font-size:16px;font-weight:800;color:var(--ink);word-break:break-word;}

/* ============================ LICENSE & OFFER ============================ */
.license-card{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:40px;display:flex;gap:40px;align-items:center;}
.license-img{flex:0 0 350px;height:480px;border-radius:12px;background:#f1f5f9;border:2px dashed var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;position:relative;overflow:hidden;}
.license-img span{font-size:13px;color:var(--ink-soft);font-weight:600;z-index:2;}
.license-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:5;}
.license-info h3{font-size:24px;font-weight:800;margin-bottom:16px;}
.license-info p{font-size:15.5px;color:var(--ink-soft);margin-bottom:12px;line-height:1.6;}
.license-info .badge{display:inline-block;background:#dcfce7;color:#166534;padding:6px 12px;border-radius:6px;font-size:13px;font-weight:800;margin-bottom:20px;text-transform:uppercase;}

.offer-text{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:48px;}
.offer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--line);flex-wrap:wrap;}
.offer-header h3{font-size:26px;font-weight:800;margin:0;}
.offer-text h4{font-size:18px;font-weight:800;margin:24px 0 12px;}
.offer-text p{font-size:15px;color:var(--ink-soft);margin-bottom:12px;line-height:1.7;text-align:justify;}
.offer-text .doc-meta{display:flex;justify-content:space-between;margin-bottom:32px;font-weight:600;font-size:15px;background:var(--bg);padding:16px;border-radius:8px;}

/* ============================ MAP & CONTACTS ============================ */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;margin-bottom:60px;align-items:flex-start;}
.ci-item{display:flex;gap:20px;margin-bottom:32px;}
.ci-icon{width:56px;height:56px;border-radius:16px;background:var(--white);border:1px solid var(--line);display:grid;place-items:center;flex:none; box-shadow:0 4px 12px rgba(0,0,0,.03);}
.ci-icon svg{width:24px;height:24px;stroke:var(--accent);stroke-width:2;fill:none}
.ci-item span{font-size:13px;text-transform:uppercase;color:var(--ink-soft);font-weight:700}
.ci-item b{display:block;font-size:18px;font-weight:800;margin-top:4px;color:var(--ink); line-height: 1.4;}

.ci-icon--sales { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.25); }
.ci-icon--sales svg { stroke: var(--accent); }
.ci-icon--dispatcher { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); }
.ci-icon--dispatcher svg { stroke: #10b981; }
.ci-icon--max { background: rgba(0,119,255,.12); border-color: rgba(0,119,255,.25); }
.ci-icon--max svg { stroke: #0077ff; }

.map-container{width:100%; height:450px; border-radius:20px; overflow:hidden;}
.map-container iframe{width:100%; height:100%; border:none;}

/* ============================ FOOTER ============================ */
.footer{background:var(--ink);color:rgba(255,255,255,.7);padding:40px 0 20px;font-size:14px;border-radius:30px 30px 0 0}
.footer-top{display:flex;justify-content:space-between;align-items:center;gap:30px;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand {font-size:20px; font-weight:800; color:#fff;}
.footer-nav{display:flex;gap:24px;font-weight:600;}
.footer-nav a:hover{color:var(--white);cursor:pointer;}

.footer-disclaimer{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:12px 16px;margin:16px 0;font-size:12px;line-height:1.6;color:rgba(255,255,255,.5);}
.footer-disclaimer b{color:rgba(255,255,255,.8);}

.footer-bottom-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-top:16px;font-size:12px;color:rgba(255,255,255,.4);}
.footer-requisites{max-width:65%; line-height: 1.8;}
.footer-requisites b{color:rgba(255,255,255,.7);font-weight:600}
.footer-requisites a {text-decoration: underline; color: inherit;}
.footer-requisites a:hover {color: #fff;}
.footer-links {display:flex; gap:16px; align-items:center; flex-wrap:wrap;}
.footer-links a {text-decoration:underline; cursor:pointer; color:var(--accent); font-weight:700;}
.footer-links a:hover{color:var(--white);}

/* ============================ UX/UI УЛУЧШЕНИЯ ============================ */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--white); border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(59,130,246,.4); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 99; display: flex; align-items: center; justify-content: center; }
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--accent-dark); transform: translateY(-5px); box-shadow: 0 12px 25px rgba(59,130,246,.5); }

#stickyCallBtn { position: fixed; bottom: 30px; left: 30px; background: #10b981; color: var(--white); padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); z-index: 99; transition: all 0.3s ease; animation: pulse-call 2s infinite; }
#stickyCallBtn:hover { background: #059669; transform: translateY(-3px); }
@keyframes pulse-call { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

#stickyMaxBtn { position: fixed; bottom: 30px; right: 100px; background: #0077ff; color: var(--white); padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4); z-index: 99; transition: all 0.3s ease; }
#stickyMaxBtn:hover { background: #005fd1; transform: translateY(-3px); }

.toast { visibility: hidden; min-width: 300px; background-color: #10b981; color: #fff; text-align: center; border-radius: 12px; padding: 16px; position: fixed; z-index: 99999; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); font-weight: 600; opacity: 0; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.toast.show { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-10px); }

/* ============================ PREFERS-REDUCED-MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
  #stickyCallBtn { animation: none !important; }
  #backToTop { transition: none !important; }
}

/* ============================ МОБИЛЬНАЯ ВЕРСИЯ ============================ */
@media(max-width:1024px){
  .site-header { backdrop-filter: none !important; background: #fff; }
  .header-inner { height: 80px; padding: 0 16px; }
  .logo img { height: 52px; }

  .nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #f8fafc; display: none; flex-direction: column; justify-content: flex-start; align-items: center; padding: 100px 20px 20px; z-index: 9999; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { color: #0f172a !important; font-size: 20px; font-weight: 700; width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a.active { color: var(--accent) !important; }

  /* Телефоны в бургер-меню */
  .nav-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav .nav-phones a.nav-phone {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent) !important;
    padding: 6px 0;
    border-bottom: none !important;
    line-height: 1.2;
  }
  .nav .nav-phones a.nav-phone span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    opacity: .8;
    margin-top: 2px;
  }
  .nav .nav-phones a.nav-phone.secondary {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft) !important;
  }
  .nav .nav-phones a.nav-phone.secondary span {
    color: var(--ink-soft);
    font-size: 9px;
    opacity: .85;
  }

  .header-actions { gap: 0; }
  .header-actions .header-phones { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; z-index: 10000 !important; position: relative; }
  .burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s ease; position: static; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #0f172a !important; }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #0f172a !important; }

  .grid-3, .grid-4, .grid-2, .about-grid, .contact-grid, .license-card {grid-template-columns:1fr; flex-direction: column; text-align: center;}
  .stats-grid {grid-template-columns:1fr 1fr}
  .discount-banner {flex-direction: column; text-align: center;}
  .footer-top {flex-direction: column; text-align: center;}
  .footer-nav {flex-wrap: wrap; justify-content: center;}
  .footer-bottom-row {flex-direction: column; text-align: center; gap:15px;}
  .footer-requisites {max-width:100%;}
  .license-img {width:100%; height:300px; flex: none;}
  .offer-header {flex-direction: column; align-items: center;}
  #backToTop { bottom: 20px; right: 20px; width: 48px; height: 48px; }

  #stickyCallBtn { bottom: 20px; left: 20px; width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  #stickyCallBtn span { display: none; }

  #stickyMaxBtn { bottom: 20px; right: 80px; width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  #stickyMaxBtn span { display: none; }

  .feature-item { text-align: left; }
  .req-grid, .req-item { text-align: left; }
  .offer-text p { text-align: left; }
  .section-head { margin-left: auto; margin-right: auto; }

  .section--tight-top { padding-top: 40px; }

  .page-contacts .contact-grid { text-align: left; align-items: flex-start; }
  .page-contacts .contact-grid .ci-item { flex-direction: row; align-items: flex-start; text-align: left; }
  .page-contacts .contact-grid .requisites-box { text-align: left; }
  .page-contacts .contact-grid .requisites-box p { text-align: left; }
  .page-contacts .contact-grid .section-head { text-align: center; }

  .cert-card { flex-direction: column; }
  .cert-img { flex: 0 0 auto; width: 100%; height: 200px; margin-bottom: 16px; }
  .cert-info { width: 100%; }
}