/* ===== Base & Variables ===== */
:root{
  --bg:#f7f8fa;
  --bg-alt:#ffffff;
  --text:#1c2430;
  --text-muted:#6b7684;
  --accent:#ff7a1a;
  --accent-dark:#e8620a;
  --accent-soft:#fff1e6;
  --line:#e7e9ee;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 8px 24px rgba(30,40,60,0.08);
  --shadow-lg:0 16px 48px rgba(30,40,60,0.12);
  --header-h:72px;
  --maxw:1180px;
  --ff:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--ff);
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.section{padding:64px 0;}
.section-head{margin-bottom:28px;text-align:center;}
.section-tag{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);background:var(--accent-soft);padding:6px 14px;border-radius:20px;margin-bottom:10px;}
.section-title{font-size:clamp(24px,3.4vw,36px);font-weight:800;letter-spacing:-0.01em;}
.section-sub{color:var(--text-muted);font-size:15px;margin-top:8px;max-width:560px;margin-left:auto;margin-right:auto;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:12px;font-weight:700;font-size:15px;
  border:none;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(255,122,26,0.35);}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-2px);}
.btn-outline{background:#fff;color:var(--text);border:1.5px solid var(--line);}
.btn-outline:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px);}
.btn-sm{padding:9px 16px;font-size:13px;border-radius:10px;}

/* ===== Loader ===== */
#page-loader{
  position:fixed;inset:0;background:var(--bg);z-index:9999;
  display:flex;align-items:center;justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
#page-loader.hide{opacity:0;visibility:hidden;}
.loader-car{position:relative;width:120px;height:70px;}
.loader-road{position:absolute;bottom:8px;left:0;width:100%;height:3px;background:repeating-linear-gradient(90deg,var(--line) 0 10px, transparent 10px 20px);overflow:hidden;border-radius:2px;}
.loader-car svg{width:64px;height:64px;position:relative;animation:carMove 1.1s ease-in-out infinite;color:var(--accent);}
@keyframes carMove{0%{transform:translateX(-10px);}50%{transform:translateX(10px);}100%{transform:translateX(-10px);}}
.loader-dot{position:absolute;bottom:4px;width:6px;height:6px;border-radius:50%;background:var(--accent);animation:dotBlink 1.1s ease-in-out infinite;}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;left:0;width:100%;z-index:1000;
  background:rgba(255,255,255,0.85);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  height:var(--header-h);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%;}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;}
.logo-mark{width:34px;height:34px;border-radius:9px;background:var(--accent);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;}
.nav-links{display:flex;gap:28px;align-items:center;}
.nav-links a{font-weight:600;font-size:15px;color:var(--text-muted);transition:color .2s;position:relative;padding:6px 0;}
.nav-links a:hover, .nav-links a.active{color:var(--text);}
.nav-links a.active::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--accent);border-radius:2px;}
.header-phone{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px;color:var(--accent);}
.header-actions{display:flex;align-items:center;gap:16px;}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px;}
.burger span{width:24px;height:2.5px;background:var(--text);border-radius:2px;transition:.3s;}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.burger.open span:nth-child(2){opacity:0;}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ===== Hero ===== */
.hero{position:relative;min-height:560px;display:flex;align-items:center;overflow:hidden;background:#0f1720;}
.hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(15,23,32,0.55) 0%, rgba(15,23,32,0.85) 100%);}
.hero-content{position:relative;z-index:2;color:#fff;padding:80px 0;text-align:left;max-width:640px;}
.hero-content h1{font-size:clamp(30px,5vw,52px);font-weight:800;line-height:1.15;letter-spacing:-0.02em;}
.hero-content h1 span{color:var(--accent);}
.hero-content p{margin-top:16px;font-size:17px;color:rgba(255,255,255,0.85);max-width:480px;}
.hero-cta{margin-top:28px;display:flex;gap:14px;flex-wrap:wrap;}
.hero-phone-badge{margin-top:22px;display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.25);padding:10px 18px;border-radius:14px;font-weight:700;font-size:16px;backdrop-filter:blur(4px);}

/* ===== About / Stats / Advantages ===== */
.about-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center;}
.about-text p{color:var(--text-muted);font-size:15.5px;margin-bottom:14px;}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:22px;}
.stat-card{background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius-sm);padding:16px 10px;text-align:center;}
.stat-num{font-size:22px;font-weight:800;color:var(--accent);}
.stat-label{font-size:12px;color:var(--text-muted);margin-top:4px;}
.advantages-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;}
.adv-item{display:flex;gap:12px;align-items:flex-start;background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px;}
.adv-icon{width:36px;height:36px;flex-shrink:0;border-radius:10px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;color:var(--accent);}
.adv-title{font-weight:700;font-size:14px;}
.adv-text{font-size:12.5px;color:var(--text-muted);margin-top:2px;}

/* ===== Gallery slider ===== */
.gallery-slider{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:16/9;background:#000;}
.gallery-track{display:flex;height:100%;transition:transform .55s cubic-bezier(.4,0,.2,1);}
.gallery-slide{flex:0 0 100%;height:100%;}
.gallery-slide img{width:100%;height:100%;object-fit:cover;}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,0.85);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;transition:.2s;}
.gallery-nav:hover{background:#fff;}
.gallery-prev{left:12px;}
.gallery-next{right:12px;}
.gallery-dots{position:absolute;bottom:12px;left:0;width:100%;display:flex;justify-content:center;gap:8px;z-index:3;}
.gallery-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.55);cursor:pointer;transition:.2s;}
.gallery-dot.active{background:#fff;width:20px;border-radius:5px;}

/* ==========================================================================
   Интерактивная карта маршрутов — сигнатурный элемент
   ========================================================================== */
.map-section {
  /* Переменные специально для карты, чтобы ничего не сломалось */
  --ink: #19212A;
  --white: #ffffff;
  --teal-light: #4A8286;
  --gap-block: 28px;
  --radius-m: 12px;
  --radius-l: 16px;
  --ease: ease;
  --font-mono: system-ui, -apple-system, sans-serif;
  --font-display: system-ui, -apple-system, sans-serif;

  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}
.map-section .section-head p { color: rgba(250,250,247,0.65); }
.map-section .eyebrow { color: var(--accent); }
.map-section .section-head h2 { color: var(--white); }

.route-map-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap-block);
  align-items: center;
}

.route-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-l);
  background: #1E2833;
  background-image:
    radial-gradient(circle at 22% 24%, rgba(74,130,134,0.22), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(242,169,59,0.08), transparent 50%);
  border: 1px solid rgba(250,250,247,0.1);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.8rem);
}

.route-map svg { width: 100%; height: 100%; display: block; overflow: visible; }

.route-line {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.4;
  transition: stroke .25s var(--ease), opacity .25s var(--ease), stroke-width .25s var(--ease);
}
.route-line.route-line--active {
  stroke: var(--accent);
  opacity: 1;
  stroke-width: 3;
}

.map-point {
  cursor: pointer;
}
.map-point:focus {
  outline: none;
}
.map-point:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
}
.map-point circle.point-core {
  fill: #2B3644;
  stroke: rgba(250,250,247,0.55);
  stroke-width: 2;
  transition: fill .2s var(--ease), stroke .2s var(--ease);
}
.map-point circle.point-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: point-ping 2.6s ease-out infinite;
}
.map-point.is-hub circle.point-core {
  fill: var(--accent);
  stroke: rgba(27,36,48,0.4);
}
.map-point.is-hub circle.point-pulse { animation-duration: 2.2s; }

.map-point:hover circle.point-core,
.map-point.is-active circle.point-core {
  fill: var(--accent);
  stroke: var(--accent);
}

@keyframes point-ping {
  0% { opacity: 0.6; transform: scale(0.6); }
  75% { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.2); }
}

.map-point text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  fill: rgba(250,250,247,0.68);
  pointer-events: none;
  transition: fill .2s var(--ease);
  paint-order: stroke;
  stroke: #1E2833;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-point.is-hub text {
  fill: rgba(250,250,247,0.92);
  font-size: 16px;
  font-weight: 700;
}
.map-point.is-active text,
.map-point:hover text {
  fill: var(--white);
  font-weight: 700;
}

@media (max-width: 480px) {
  .map-point text { font-size: 13px; }
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.map-route-card {
  background: rgba(250,250,247,0.05);
  border: 1px solid rgba(250,250,247,0.12);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-route-card .mrc-route {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}
.map-route-card .mrc-route .arrow { color: var(--accent); margin: 0 0.5rem; }
.map-route-card .mrc-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(250,250,247,0.65);
}
.map-route-card .mrc-meta strong {
  color: var(--accent);
  display: block;
  font-size: 1.1rem;
}
.map-route-card .mrc-hint {
  color: rgba(250,250,247,0.55);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .route-map-wrap { grid-template-columns: 1fr; }
}

/* ===== Contacts ===== */
.contacts-grid {
  display: flex;
  justify-content: center; /* Центрируем содержимое по горизонтали */
  padding: 0 15px; /* Небольшие отступы по бокам для мобильных устройств */
}

/* Добавьте ограничение ширины к классу .contact-card */
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  
  /* Добавленные свойства: */
  width: 100%;
  max-width: 600px; /* Ограничиваем ширину, чтобы карточка не была слишком широкой */
}
.contact-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);}
.contact-row:last-child{border-bottom:none;}
.contact-icon{width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.contact-label{font-size:12px;color:var(--text-muted);}
.contact-value{font-weight:700;font-size:15.5px;}
a.contact-value:hover{color:var(--accent);}
.messenger-row{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap;}
.messenger-btn{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;background:var(--bg);border:1px solid var(--line);font-weight:700;font-size:13.5px;transition:.2s;}
.messenger-btn:hover{border-color:var(--accent);color:var(--accent);}

/* ===== Sticky call bar (mobile) ===== */
.mobile-call-bar{position:fixed;bottom:0;left:0;width:100%;z-index:999;background:var(--accent);display:none;align-items:center;justify-content:center;gap:10px;padding:14px;color:#fff;font-weight:800;font-size:15px;box-shadow:0 -6px 20px rgba(0,0,0,0.15);}

/* ===== Footer ===== */
.site-footer{background:#0f1720;color:rgba(255,255,255,0.7);padding:40px 0 24px;font-size:13.5px;}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;}
.footer-inner a{color:rgba(255,255,255,0.85);font-weight:700;}
.footer-links{display:flex;gap:18px;flex-wrap:wrap;}

/* ===== Page hero (inner pages) ===== */
.page-hero{padding:56px 0 36px;text-align:center;border-bottom:1px solid var(--line);background:var(--bg-alt);}
.page-hero h1{font-size:clamp(26px,4vw,38px);font-weight:800;}
.page-hero p{color:var(--text-muted);margin-top:8px;}
.breadcrumbs{font-size:13px;color:var(--text-muted);margin-bottom:10px;}
.breadcrumbs a{color:var(--accent);font-weight:600;}

/* ===== Utility ===== */
.mt-lg{margin-top:40px;}
.center{text-align:center;}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .about-grid, .routes-layout, .contacts-grid{grid-template-columns:1fr;}
  .route-map-wrap{position:relative;top:0;}
  .advantages-list{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  .nav-links{position:fixed;top:var(--header-h);left:0;width:100%;background:#fff;flex-direction:column;padding:16px 20px;gap:6px;border-bottom:1px solid var(--line);transform:translateY(-8px);opacity:0;visibility:hidden;transition:.25s;box-shadow:var(--shadow-lg);}
  .nav-links.open{transform:translateY(0);opacity:1;visibility:visible;}
  .nav-links a{padding:10px 0;width:100%;border-bottom:1px solid var(--line);}
  .burger{display:flex;}
  .header-phone{display:none;}
  .stats-row{grid-template-columns:repeat(2,1fr);}
  .hero-content{text-align:left;padding:60px 0 100px;}
  .mobile-call-bar{display:flex;}
  body{padding-bottom:64px;}
  .section{padding:44px 0;}
}
@media (max-width: 480px){
  .hero-cta{flex-direction:column;align-items:stretch;}
  .contact-card{padding:18px;}
}

/* Hero mobile side padding + small hero buttons */
@media (max-width: 760px){
  .hero-content{padding-left:20px;padding-right:20px;}
}
.hero-slogan{color:var(--accent);font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:10px;}
.hero-cta-sm .btn{padding:10px 18px;font-size:13.5px;border-radius:10px;}
@media (max-width: 480px){
  .hero-cta-sm{flex-direction:row;flex-wrap:wrap;}
  .hero-cta-sm .btn{flex:1 1 auto;}
}

/* Home page routes split (list + map) */
.home-routes-split{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;}
.home-routes-map-wrap .route-map{aspect-ratio:4/5;}
@media (max-width: 900px){
  .home-routes-split{grid-template-columns:1fr;}
  .home-routes-map-wrap{order:-1;}
}

/* ===== Старый список маршрутов  ===== */
.routes-panel{display:flex;flex-direction:column;gap:14px;}
.route-info-box{background:linear-gradient(135deg,var(--accent-soft),#fff);border:1px solid var(--accent-soft);border-radius:var(--radius-sm);padding:16px 18px;min-height:78px;display:flex;align-items:center;gap:14px;font-size:14px;color:var(--text-muted);transition:.2s;}
.route-info-box strong{color:var(--text);}
.routes-list{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow-y:auto;padding-right:4px;}
.routes-list::-webkit-scrollbar{width:5px;}
.routes-list::-webkit-scrollbar-thumb{background:var(--line);border-radius:5px;}
.route-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;cursor:pointer;transition:.2s;}
.route-card:hover, .route-card.active{border-color:var(--accent);box-shadow:var(--shadow);}
.route-cities{font-weight:700;font-size:14.5px;display:flex;align-items:center;gap:8px;}
.route-cities .arrow{color:var(--accent);}
.route-meta{font-size:12px;color:var(--text-muted);margin-top:3px;}
.route-price{font-weight:800;color:var(--accent);font-size:17px;white-space:nowrap;}

@media (max-width: 760px) {
  .map-point {
    transform: scale(2);
  }
}

