:root{
  --navy:#061b2e;
  --navy2:#0a2944;
  --blue:#0876e8;
  --red:#ef233c;
  --text:#07192c;
  --muted:#65758a;
  --line:#dce5ef;
  --soft:#f3f7fb;
  --white:#fff;
  --radius:16px;
  --shadow:0 10px 35px rgba(6,27,46,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
}
body.modal-open{overflow:hidden}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
.container{width:min(1440px,calc(100% - 48px));margin:auto}

.header{
  height:82px;
  background:#fff;
  display:flex;
  align-items:center;
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid #e5ebf2;
}
.header .container{
  display:flex;
  align-items:center;
  gap:28px;
}
.logo img{width:185px;max-height:62px;object-fit:contain}
.nav{
  margin-left:auto;
  display:flex;
  gap:27px;
  align-items:center;
  font-weight:800;
  font-size:14px;
}
.nav a:hover{color:var(--red)}
.header-phone{
  white-space:nowrap;
  font-size:17px;
  font-weight:900;
}
.btn{
  border:0;
  border-radius:10px;
  padding:14px 21px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-red{background:var(--red);color:#fff}
.btn-white{background:#fff;color:var(--text)}
.btn-outline{
  border:1px solid #c9d6e4;
  color:var(--text);
  background:#fff;
}
.btn-glass{
  color:#fff;
  background:rgba(5,24,42,.35);
  border:1px solid rgba(255,255,255,.8);
}
.eyebrow{
  display:block;
  font-size:12px;
  letter-spacing:.12em;
  font-weight:900;
  color:var(--blue);
  margin-bottom:8px;
}
.eyebrow.light{color:#78c2ff}

/* HERO */
.hero-reference{
  min-height:570px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 72% 45%,rgba(34,120,181,.35),transparent 32%),
    linear-gradient(105deg,#061a2d 0%,#0b3657 56%,#174a69 100%);
  color:#fff;
}
.hero-reference:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.24;
  background:
    linear-gradient(165deg,transparent 0 55%,rgba(0,0,0,.65) 56% 100%),
    radial-gradient(ellipse at 75% 0,rgba(255,255,255,.28),transparent 32%);
}
.hero-reference:after{
  content:"";
  position:absolute;
  right:-5%;
  bottom:-95px;
  width:65%;
  height:330px;
  background:linear-gradient(180deg,rgba(53,109,142,.2),rgba(0,16,30,.75));
  transform:skewY(-5deg);
}
.hero-photo-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 15% 7%,rgba(245,164,177,.25),transparent 16%),
    radial-gradient(circle at 55% 25%,rgba(164,205,229,.15),transparent 25%);
}
.hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(2,16,30,.94) 0%,rgba(2,19,35,.72) 43%,rgba(2,19,35,.12) 75%);
}
.hero-reference-inner{
  min-height:570px;
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:48% 52%;
  align-items:center;
}
.hero-copy{padding:58px 0 64px}
.hero-kicker{
  font-size:12px;
  letter-spacing:.34em;
  font-weight:800;
  opacity:.88;
  margin-bottom:18px;
}
.hero-copy h1{
  margin:0;
  font-size:54px;
  line-height:1.03;
  letter-spacing:-.035em;
  text-transform:uppercase;
  max-width:760px;
}
.hero-copy h1 span{color:#fff}
.hero-lead{
  max-width:630px;
  font-size:19px;
  line-height:1.5;
  margin:21px 0 25px;
  color:#e3edf6;
}
.hero-benefits{
  display:flex;
  gap:25px;
  margin:25px 0 30px;
}
.hero-benefits div{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
}
.hero-benefits b{
  width:36px;height:36px;border-radius:9px;
  display:grid;place-items:center;
  color:#79c9ff;
  border:1px solid rgba(125,203,255,.35);
  background:rgba(24,92,137,.32);
  font-size:19px;
}
.hero-actions{display:flex;gap:13px}
.hero-visual{
  align-self:stretch;
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.hero-car{
  width:92%;
  max-height:435px;
  object-fit:cover;
  object-position:center;
  border-radius:24px 24px 0 0;
  margin-bottom:0;
  filter:drop-shadow(0 24px 30px rgba(0,0,0,.42));
  border:1px solid rgba(255,255,255,.2);
}
.hero-route-note{
  position:absolute;
  z-index:2;
  top:58px;
  right:8px;
  padding:10px 13px;
  border-radius:8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  background:rgba(2,18,32,.72);
  border:1px solid rgba(255,255,255,.18);
}

/* FILTER */
.quick-reference{
  position:relative;
  z-index:10;
  margin-top:-18px;
}
.quick-reference>.container{
  background:#fff;
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
  border:1px solid #e3eaf2;
}
.quick-head{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
}
.quick-head h2{font-size:24px;margin:0}
.quick-head .eyebrow{margin-bottom:4px}
.country-pills{display:flex;gap:6px;margin-left:auto}
.pill{
  border:1px solid #dce5ef;
  border-radius:8px;
  padding:7px 13px;
  font-size:12px;
  font-weight:800;
}
.pill.active{background:var(--red);border-color:var(--red);color:#fff}
.filters{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.filters label{
  font-size:11px;
  color:#66758a;
  font-weight:800;
}
.filters input,.filters select{
  display:block;
  width:100%;
  height:45px;
  margin-top:6px;
  border:1px solid #d7e1eb;
  border-radius:8px;
  background:#fff;
  padding:0 11px;
  color:#12243a;
}
.filters.advanced{
  margin-top:10px;
  display:none;
}
.filters.advanced.open{display:grid}
.filter-actions{display:flex;gap:10px;margin-top:14px}

/* PROMO */
.promo-section{padding:28px 0 12px}
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.promo-card{
  min-height:250px;
  position:relative;
  overflow:hidden;
  border-radius:16px;
  border:1px solid #dce6ef;
  box-shadow:0 7px 22px rgba(8,31,52,.08);
}
.promo-content{
  position:relative;
  z-index:2;
  width:56%;
  padding:31px;
}
.promo-content h2{
  margin:0 0 10px;
  font-size:29px;
  line-height:1.08;
}
.promo-content p{
  font-size:14px;
  line-height:1.5;
  color:#53657a;
  margin:0 0 20px;
}
.promo-art{
  position:absolute;
  inset:0;
}
.promo-calc{
  background:linear-gradient(110deg,#fff 0 48%,#d8efff 48%,#1876b8 100%);
}
.promo-calc .promo-art:after{
  content:"₽";
  position:absolute;
  right:11%;
  top:16%;
  width:150px;height:150px;
  display:grid;place-items:center;
  border-radius:32px;
  transform:rotate(-8deg);
  font-size:84px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(145deg,#27a7ff,#07528d);
  box-shadow:0 18px 38px rgba(5,58,96,.28);
}
.promo-quiz{
  background:linear-gradient(110deg,#fff 0 50%,#e8f5ff 50%,#a8d9fa 100%);
}
.promo-quiz .promo-art:before{
  content:"";
  position:absolute;
  width:240px;height:105px;
  right:4%;
  bottom:23px;
  border-radius:60% 40% 22% 18%;
  background:linear-gradient(155deg,#1c8dde,#073c69);
  box-shadow:0 22px 22px rgba(4,35,58,.22);
}
.promo-quiz .promo-art:after{
  content:"✓  →  ✓  →  ✓";
  position:absolute;
  right:8%;
  top:38px;
  font-weight:900;
  color:#0969ae;
  letter-spacing:.18em;
}

/* COMMON SECTIONS */
.section{padding:48px 0}
.section.white{background:#fff}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:20px;
}
.section h2{
  margin:0;
  font-size:34px;
  letter-spacing:-.025em;
}
.tabs{display:flex;gap:7px;flex-wrap:wrap}
.tabs button{
  border:1px solid #d7e1eb;
  background:#fff;
  border-radius:8px;
  padding:8px 13px;
  font-weight:800;
}
.tabs button.active{background:var(--navy);color:#fff}

/* CATALOG */
.catalog-reference{background:#f6f9fc!important}
.cars{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:13px;
}
.car-card{
  background:#fff;
  border:1px solid #dde6ef;
  border-radius:13px;
  overflow:hidden;
  transition:.2s;
}
.car-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.car-card img{
  width:100%;
  height:170px;
  object-fit:cover;
  background:#edf3f7;
}
.car-card .car-body{padding:14px}
.car-card h3{margin:0 0 8px;font-size:16px}
.car-card p{margin:4px 0;color:#68788a;font-size:12px}
.car-card .price{font-size:18px;color:var(--text);font-weight:900}
.catalog-loading{grid-column:1/-1;padding:35px;text-align:center;color:var(--muted)}

/* ROUTE */
.route-reference{
  background:
    radial-gradient(circle at 67% 45%,rgba(18,122,198,.28),transparent 28%),
    linear-gradient(120deg,#061a2e,#0a3455);
  color:#fff;
  overflow:hidden;
}
.route-layout{
  min-height:350px;
  display:grid;
  grid-template-columns:40% 60%;
  align-items:center;
}
.route-copy{padding-right:30px}
.route-copy h2{font-size:40px}
.route-copy h2 span{color:#61baff}
.route-copy p{line-height:1.6;color:#d4e2ed;max-width:530px}
.route-map{
  position:relative;
  height:310px;
  border-radius:18px;
  background:
    radial-gradient(circle at 25% 52%,#f03342 0 7%,transparent 7.5%),
    radial-gradient(circle at 72% 25%,rgba(91,184,247,.4),transparent 3%),
    radial-gradient(circle at 82% 47%,rgba(91,184,247,.4),transparent 3%),
    radial-gradient(circle at 68% 68%,rgba(91,184,247,.4),transparent 3%),
    radial-gradient(circle at 88% 77%,rgba(91,184,247,.4),transparent 3%),
    linear-gradient(145deg,rgba(24,111,170,.25),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
}
.map-origin{
  position:absolute;left:18%;top:47%;
  background:var(--red);padding:9px 13px;border-radius:8px;font-weight:900;
}
.route-line{
  position:absolute;
  left:29%;height:2px;
  background:#50b5ff;
  transform-origin:left;
  box-shadow:0 0 8px #2c9dec;
}
.r1{top:48%;width:42%;transform:rotate(-24deg)}
.r2{top:51%;width:51%;transform:rotate(-4deg)}
.r3{top:54%;width:40%;transform:rotate(17deg)}
.r4{top:57%;width:52%;transform:rotate(28deg)}
.route-city{position:absolute;font-size:12px;font-weight:900}
.c1{left:69%;top:18%}.c2{left:80%;top:40%}.c3{left:67%;top:69%}.c4{left:75%;top:83%}

/* STEPS */
.purchase-reference{background:#fff}
.steps-line{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  position:relative;
  gap:18px;
}
.steps-line:before{
  content:"";
  position:absolute;
  top:20px;left:4%;right:4%;
  height:2px;background:#d7e1eb;
}
.steps-line article{position:relative}
.steps-line b{
  position:relative;
  z-index:2;
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  border:5px solid #fff;
}
.steps-line h3{font-size:15px;margin:11px 0 5px}
.steps-line p{font-size:12px;color:#68798c;line-height:1.45;margin:0}

/* ECOSYSTEM */
.ecosystem-reference{background:#f3f7fb!important}
.ecosystem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.eco-card{
  min-height:280px;
  position:relative;
  overflow:hidden;
  border-radius:15px;
  background:#fff;
  border:1px solid #dce6ef;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.eco-photo{
  height:115px;
  background:
    radial-gradient(circle at 70% 60%,rgba(255,255,255,.45),transparent 22%),
    linear-gradient(135deg,#0a3658,#1687d1);
}
.eco-agent .eco-photo{background:linear-gradient(135deg,#d9edff,#2e83cf)}
.eco-dealer .eco-photo{background:linear-gradient(135deg,#0b243b,#425d72)}
.eco-exporter .eco-photo{background:linear-gradient(135deg,#113a5c,#e05a55)}
.eco-card>div:last-child{padding:18px}
.eco-card span{font-size:10px;color:var(--blue);font-weight:900;letter-spacing:.07em}
.eco-card h3{margin:5px 0 7px;font-size:21px}
.eco-card p{font-size:13px;line-height:1.45;color:#65758a;min-height:55px}
.eco-card button{
  border:0;background:var(--navy);color:#fff;
  padding:10px 13px;border-radius:8px;font-weight:800;
}

/* REVIEWS */
.reviews-reference{
  background:linear-gradient(120deg,#061a2d,#0b304e);
  color:#fff;
}
.reviews-layout{display:grid;grid-template-columns:58% 42%;gap:24px}
.reviews-copy{
  border-radius:17px;
  padding:38px;
  background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(26,116,177,.18));
  border:1px solid rgba(255,255,255,.1);
}
.reviews-copy h2{font-size:39px}
.reviews-copy p{color:#d4e1ec;line-height:1.6;max-width:700px}
.review-actions{display:flex;gap:10px;margin-top:22px}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.social-grid a{
  min-height:130px;
  border-radius:14px;
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:#fff;
  color:var(--text);
}
.social-grid b{font-size:20px}
.social-grid span{color:#718094;font-size:12px}

/* FAQ */
.faq-reference{background:#fff!important}
.faq-list{display:grid;gap:9px;margin-top:20px}
.faq-list details{
  border:1px solid #dce5ee;
  border-radius:11px;
  padding:17px 19px;
}
.faq-list summary{font-weight:900;cursor:pointer}
.faq-list p{color:#64768a;line-height:1.5}

/* FOOTER */
.footer{
  background:#041525;
  color:#dce8f2;
  padding:46px 0;
}
.footer h3,.footer h4{color:#fff}
.footer a{color:#dce8f2}

/* MODALS */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:500;
  background:rgba(0,12,23,.72);
  padding:24px;
  overflow:auto;
}
.modal.open{display:flex;align-items:center;justify-content:center}
.modal-card{
  width:min(760px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:16px;
  padding:24px;
  color:var(--text);
}
.modal-close{float:right;border:0;background:none;font-size:25px}
.field label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}
.field input,.field select{
  width:100%;height:45px;border:1px solid #d8e1ea;border-radius:8px;padding:0 12px;
}

/* MOBILE */
@media(max-width:1000px){
  .container{width:min(100% - 28px,760px)}
  .header{height:66px}
  .header .nav,.header-phone{display:none}
  .logo img{width:145px}
  .header .btn{margin-left:auto;padding:10px 15px}

  .hero-reference{min-height:auto}
  .hero-reference-inner{
    min-height:0;
    grid-template-columns:1fr;
    padding-top:0;
  }
  .hero-copy{padding:38px 0 18px}
  .hero-kicker{font-size:9px;letter-spacing:.22em}
  .hero-copy h1{font-size:36px;max-width:500px}
  .hero-lead{font-size:15px;margin:14px 0 17px}
  .hero-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
  .hero-benefits div{font-size:11px}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .hero-actions .btn{padding:13px 9px;font-size:12px}
  .hero-visual{height:240px}
  .hero-car{
    width:100%;height:225px;max-height:none;
    border-radius:16px 16px 0 0;
    object-fit:cover;
  }
  .hero-route-note{top:13px;right:8px;font-size:9px}

  .quick-reference{margin-top:0;padding:12px 0;background:#eef4f9}
  .quick-reference>.container{padding:15px;border-radius:13px}
  .quick-head{display:block}
  .quick-head h2{font-size:21px}
  .country-pills{margin:12px 0;overflow:auto}
  .quick-head>.btn{width:100%}
  .filters{grid-template-columns:1fr 1fr}
  .filters.advanced.open{grid-template-columns:1fr 1fr}
  .filter-actions{display:grid;grid-template-columns:1fr 1fr}

  .promo-section{padding:10px 0}
  .promo-grid{grid-template-columns:1fr;gap:10px}
  .promo-card{min-height:210px}
  .promo-content{width:68%;padding:21px}
  .promo-content h2{font-size:22px}
  .promo-content p{font-size:12px}
  .promo-calc .promo-art:after{width:100px;height:100px;font-size:55px;right:5%;top:25%}
  .promo-quiz .promo-art:before{width:145px;height:70px;right:0}

  .section{padding:34px 0}
  .section h2{font-size:27px}
  .section-head{display:block}
  .tabs{margin-top:13px;overflow:auto;flex-wrap:nowrap}

  .cars{
    display:flex;
    overflow-x:auto;
    gap:10px;
    scroll-snap-type:x mandatory;
    padding-bottom:8px;
  }
  .car-card{min-width:245px;scroll-snap-align:start}
  .car-card img{height:155px}

  .route-layout{grid-template-columns:1fr;min-height:0}
  .route-copy{padding:0}
  .route-copy h2{font-size:29px}
  .route-map{height:250px;margin-top:22px}
  .route-city{font-size:9px}

  .steps-line{
    display:flex;
    overflow-x:auto;
    gap:10px;
  }
  .steps-line:before{display:none}
  .steps-line article{
    min-width:190px;
    border:1px solid #dce5ee;
    border-radius:12px;
    padding:15px;
  }
  .steps-line b{border:0}

  .ecosystem-grid{
    display:flex;
    overflow-x:auto;
    gap:10px;
  }
  .eco-card{min-width:265px}

  .reviews-layout{grid-template-columns:1fr}
  .reviews-copy{padding:25px}
  .reviews-copy h2{font-size:29px}
  .social-grid a{min-height:100px;padding:15px}

  .footer{padding-bottom:90px}
}

@media(max-width:560px){
  .container{width:calc(100% - 20px)}
  .hero-copy h1{font-size:31px}
  .hero-lead{font-size:14px}
  .hero-benefits b{width:30px;height:30px}
  .hero-visual{height:200px}
  .hero-car{height:190px}
  .filters,.filters.advanced.open{grid-template-columns:1fr}
  .promo-content{width:74%;padding:18px}
  .promo-content h2{font-size:20px}
  .promo-content p{max-width:260px}
  .social-grid{grid-template-columns:1fr 1fr}
}

/* existing bottom mobile navigation, if present */
@media(min-width:1001px){
  .mobile-nav,.bottom-nav{display:none!important}
}


/* ===== APPROVED BUY CAR DV BANNERS ===== */

/* Главный баннер: никакой Elantra из каталога */
.hero-reference{
  min-height:570px;
  background:
    linear-gradient(90deg,rgba(2,15,28,.82) 0%,rgba(2,15,28,.52) 38%,rgba(2,15,28,.08) 70%),
    url("/v40-ui/assets/home/banners/hero.jpg") center center / cover no-repeat !important;
}
.hero-reference:before,
.hero-reference:after,
.hero-photo-layer{
  display:none!important;
}
.hero-shade{
  background:linear-gradient(90deg,rgba(2,15,28,.70),rgba(2,15,28,.12) 72%,transparent)!important;
}
.hero-visual{
  background:none!important;
}
.hero-car{
  display:none!important;
}

/* Калькулятор */
.promo-calc{
  background:
    linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.88) 46%,rgba(255,255,255,.05) 75%),
    url("/v40-ui/assets/home/banners/calculator.jpg") center right / cover no-repeat!important;
}
.promo-calc .promo-art:after{
  display:none!important;
}

/* Подбор */
.promo-quiz{
  background:
    linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.88) 46%,rgba(255,255,255,.04) 75%),
    url("/v40-ui/assets/home/banners/selection.jpg") center right / cover no-repeat!important;
}
.promo-quiz .promo-art:before,
.promo-quiz .promo-art:after{
  display:none!important;
}

/* Маршруты */
.route-reference{
  background:
    linear-gradient(90deg,rgba(3,22,39,.96) 0%,rgba(3,22,39,.80) 40%,rgba(3,22,39,.20) 78%),
    url("/v40-ui/assets/home/banners/routes.jpg") center center / cover no-repeat!important;
}

/* Отзывы */
.reviews-reference{
  background:
    linear-gradient(90deg,rgba(3,22,39,.96) 0%,rgba(3,22,39,.82) 43%,rgba(3,22,39,.25) 100%),
    url("/v40-ui/assets/home/banners/reviews.jpg") center center / cover no-repeat!important;
}

/* Мобильная версия */
@media(max-width:1000px){
  .hero-reference{
    min-height:590px;
    background:
      linear-gradient(180deg,rgba(2,15,28,.88) 0%,rgba(2,15,28,.58) 52%,rgba(2,15,28,.15) 100%),
      url("/v40-ui/assets/home/banners/hero.jpg") 62% center / cover no-repeat!important;
  }
  .hero-visual{
    height:90px!important;
  }
  .promo-calc,
  .promo-quiz{
    background-position:center right!important;
  }
}

/* =========================================================
   BUY CAR DV — HEADER + FOOTER FIX
   ========================================================= */

.wrap{
  width:min(1440px, calc(100% - 48px));
  margin:0 auto;
}

/* ---------- HEADER ---------- */
.header{
  position:relative;
  z-index:1000;
  width:100%;
  height:88px;
  background:#fff;
  border-bottom:1px solid #e4e9ef;
  box-shadow:0 2px 12px rgba(0,20,40,.08);
}

.header .header-row{
  height:88px;
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:nowrap;
}

.header .header-row > a:first-child{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  width:230px;
  height:72px;
  overflow:hidden;
}

.header .logo{
  display:block !important;
  width:220px !important;
  max-width:220px !important;
  height:auto !important;
  max-height:70px !important;
  object-fit:contain !important;
  margin:0 !important;
}

.header .nav{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:24px;
  flex:1 1 auto;
  min-width:0;
  margin:0 !important;
}

.header .nav a{
  display:block;
  color:#0a1b2c;
  font-size:15px;
  line-height:1.2;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  padding:10px 0;
}

.header .nav a:hover{
  color:#ef233c;
}

.header .header-actions{
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
  margin:0 !important;
}

.header .header-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  margin:0 !important;
  border-radius:10px;
  font-size:15px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  text-decoration:none;
}

.header .header-actions .btn-outline{
  color:#0a1b2c;
  background:#fff;
  border:1px solid #ccd5df;
}

.header .header-actions .btn-red{
  color:#fff;
  background:#ef233c;
  border:1px solid #ef233c;
  cursor:pointer;
}

/* ---------- FOOTER ---------- */
.footer{
  position:relative;
  width:100%;
  background:#061a2b;
  color:#fff;
  padding:58px 0 46px;
  min-height:0 !important;
}

.footer .footer-grid{
  display:grid !important;
  grid-template-columns:minmax(320px,1.5fr) minmax(190px,.7fr) minmax(190px,.7fr);
  gap:70px;
  align-items:start;
}

.footer .footer-grid > div{
  min-width:0;
}

.footer .footer-logo{
  display:block !important;
  width:250px !important;
  max-width:250px !important;
  height:auto !important;
  max-height:90px !important;
  object-fit:contain !important;
  margin:0 0 20px !important;
}

.footer p{
  margin:0 0 12px;
  color:#cbd6df;
  font-size:15px;
  line-height:1.6;
}

.footer h3{
  margin:4px 0 20px;
  color:#fff;
  font-size:17px;
  line-height:1.2;
}

.footer a{
  color:#dbe5ed;
  text-decoration:none;
}

.footer a:hover{
  color:#fff;
  text-decoration:underline;
}

/* ---------- TABLET / MOBILE ---------- */
@media(max-width:1100px){
  .header{
    height:auto;
  }

  .header .header-row{
    height:auto;
    min-height:82px;
    flex-wrap:wrap;
    padding:8px 0 12px;
    gap:8px 18px;
  }

  .header .header-row > a:first-child{
    width:200px;
    height:64px;
  }

  .header .logo{
    width:195px !important;
    max-width:195px !important;
  }

  .header .nav{
    order:3;
    width:100%;
    flex-basis:100%;
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:3px;
  }

  .header .header-actions{
    margin-left:auto !important;
  }
}

@media(max-width:760px){
  .wrap{
    width:min(100% - 28px, 1440px);
  }

  .header .header-row > a:first-child{
    width:170px;
  }

  .header .logo{
    width:165px !important;
    max-width:165px !important;
  }

  .header .header-actions .btn-outline{
    display:none;
  }

  .header .nav{
    gap:18px;
  }

  .header .nav a{
    font-size:13px;
  }

  .footer{
    padding:40px 0;
  }

  .footer .footer-grid{
    grid-template-columns:1fr !important;
    gap:30px;
  }

  .footer .footer-logo{
    width:220px !important;
  }
}

/* ===== HERO PROPORTIONS FIX ===== */
.hero-reference{
  min-height:0 !important;
  height:540px !important;
  background-size:cover !important;
  background-position:center center !important;
}

.hero-reference .wrap{
  height:100%;
}

.hero-copy{
  padding-top:58px !important;
  padding-bottom:42px !important;
}

@media(min-width:1500px){
  .hero-reference{
    height:560px !important;
  }
}

@media(max-width:1000px){
  .hero-reference{
    height:auto !important;
    min-height:560px !important;
    background-position:58% center !important;
  }
}

@media(max-width:600px){
  .hero-reference{
    min-height:620px !important;
  }
}

/* =================================================
   BUY PROCESS BLOCK
   ================================================= */

.buy-process-reference{
    padding:70px 0;
    background:#f7f9fc;
}

.buy-process-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.buy-process-image img{
    width:100%;
    height:360px;
    object-fit:cover;
    border-radius:24px;
}

.buy-process-copy h2{
    font-size:42px;
    margin:15px 0;
}

.buy-process-copy p{
    font-size:18px;
    line-height:1.6;
    color:#5b6b7a;
    max-width:520px;
}

@media(max-width:900px){
    .buy-process-layout{
        grid-template-columns:1fr;
    }

    .buy-process-image img{
        height:auto;
        object-fit:contain;
    }

    .buy-process-copy h2{
        font-size:30px;
    }
}


/* PURCHASE ROUTE MODAL */
.purchase-route-list{
    display:grid;
    gap:12px;
    margin-top:20px;
}

.purchase-route-list p{
    margin:0;
    padding:14px 16px;
    background:#f7f9fc;
    border-radius:14px;
    line-height:1.5;
    font-size:15px;
}

.purchase-route-list b{
    font-size:16px;
}

@media(max-width:600px){
    .purchase-route-list p{
        font-size:14px;
        padding:12px;
    }
}


/* SOCIAL CARDS V41 */
.social-grid .social-card{
  position:relative;
  overflow:hidden;
  min-height:150px;
  padding:18px;
  justify-content:flex-end;
  gap:4px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 28px rgba(0,0,0,.16);
  color:#fff;
  transition:transform .18s ease,box-shadow .18s ease;
}
.social-grid .social-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(0,0,0,.24);
}
.social-grid .social-card b{
  position:relative;
  z-index:2;
  color:#fff;
  font-size:20px;
}
.social-grid .social-card span{
  position:relative;
  z-index:2;
  color:rgba(255,255,255,.82);
  font-size:11px;
}
.social-icon{
  position:absolute;
  z-index:1;
  right:14px;
  top:7px;
  font-size:58px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.07em;
  color:rgba(255,255,255,.22);
}
.social-vk{background:linear-gradient(135deg,#1473e6,#0752a8)!important}
.social-instagram{background:linear-gradient(135deg,#6c36c9,#c62e78 55%,#e8842c)!important}
.social-rutube{background:linear-gradient(135deg,#111827,#242f42)!important}
.social-rutube .social-icon{color:#19e6b3}
.social-dzen{background:linear-gradient(135deg,#171717,#3a3a3a)!important}
.social-dzen .social-icon{
  background:#fff;
  color:#111;
  width:62px;
  height:62px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:34px;
  letter-spacing:0;
}
