/* =========================
   style.css — полный файл
   ========================= */

/* Сброс и базовые стили */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root{
  --blue: #0A2647;
  --muted: #f5f6f8;
  --text: #222;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--muted);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a { text-decoration: none; color: inherit; }

/* Header */
.top-bar {
  background: var(--blue);
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 4px 18px rgba(10,38,71,0.08);
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
   border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  border: 2px solid #fff;
 
}

.logo img:hover {
  transform: scale(1.05);
}

.nav {
  display: flex; align-items: center; gap: 18px;
}
.nav a {
  color: #fff; font-weight: 500; padding: 8px 6px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active {
  color: var(--blue); background: var(--gold-1); padding: 8px 12px;
}

/* Бургер (мобильное меню) */
.burger { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* Hero */
.hero {
  height: 78vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 20px;
  position: relative;
}
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,38,71,0.45), rgba(10,38,71,0.25)); }
.hero-content { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 4.2vw, 48px); margin-bottom: 12px; color: var(--gold-1); text-shadow: 0 6px 30px rgba(0,0,0,0.45); line-height:1.05; }
.hero p { font-size: 1.05rem; margin-bottom: 18px; color: rgba(255,255,255,0.92); }

/* Buttons: gradient + ripple coord vars */
.btn, .btn-outline {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
}
.btn {
  display:inline-block;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--blue);
  padding: 12px 24px; border-radius: 8px;
  font-weight: 700; box-shadow: 0 8px 30px rgba(230,194,0,0.12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(230,194,0,0.2); }

/* ripple light */
.btn::after {
  content: ""; position: absolute; left: var(--x); top: var(--y);
  width: 0; height: 0; transform: translate(-50%,-50%); border-radius: 50%;
  background: rgba(255,255,255,0.12); transition: width .45s ease, height .45s ease, opacity .45s;
  opacity: 0;
}
.btn:hover::after { width: 300px; height: 300px; opacity: 1; }

/* outline variant */
.btn-outline {
  display:inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.9);
  padding: 10px 20px; border-radius: 8px; font-weight: 700;
  transition: background .22s, color .22s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.95); color: var(--blue);
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #03080e;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  float: right;
  margin-top: -45px; /* подвинет кнопку ближе к заголовку */
  margin-right: 40px;
}

.btn-more i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-more:hover {
  background: #f4f5f6;
  transform: translateY(-2px);
}

.btn-more:hover i {
  transform: translateX(4px);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}
.feature {
  background: #0A2647;
  color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 280px;
  text-align: center;
  transition: 0.3s;
}
.feature:hover {
  background: #0b0251;
  color: #000;
  transform: translateY(-5px);
}
.feature i {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Section base */
.section {
  padding: 72px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* О нас (две колонки) */
.about {
  background: #fff; padding: 72px 20px;
}
.about-container {
  display:flex; gap: 36px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.about-text { flex: 1 1 52%; min-width: 280px; }
.about-text h2 { font-size: 28px; color: var(--blue); margin-bottom: 14px; }
.about-text p { color: #444; margin-bottom: 14px; line-height: 1.65; }
.about-image { flex: 1 1 40%; display:flex; justify-content:center; min-width:240px; }
.about-image img {
  width: 100%; max-width: 520px; border-radius: 12px; box-shadow: 0 18px 50px rgba(10,38,71,0.08);
  transition: transform .35s ease;
}
.about-image img:hover { transform: scale(1.02); }

/* Автопарк */
.car-slider { padding: 64px 20px; background: #fff; }
.section-title { font-size: 26px; color: var(--blue); margin-bottom: 8px; }
.section-subtitle { color: #666; margin-bottom: 26px; }

/* Cards common */
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(10,38,71,0.08); }

/* Car card specific */
.car-card { padding: 20px; text-align:center; background: linear-gradient(180deg,#ffffff,#fbfbfb); border-radius:12px; }
.car-card img { width: 100%; border-radius: 8px; height: 160px; object-fit: cover; margin-bottom:12px; transition: transform .35s; }
.car-card:hover img { transform: scale(1.04); }
.car-card h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.05rem; }
.car-card p { color: #555; font-size: .95rem; margin-bottom: 12px; }
.stars { color: var(--gold-1); margin-bottom: 12px }

/* Services */
.services { padding: 60px 20px; background: linear-gradient(180deg,#fbfbfb,#fff); text-align:center; }
.service-cards { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:20px; margin-top:26px; }
.service-card { padding:18px; text-align:center; border-radius:12px; transition: transform .28s, box-shadow .28s; background:#fff; }
.service-card img{ width:100%; height:150px; object-fit:cover; border-radius:8px; margin-bottom:12px; }
.service-card h3 { color:var(--blue); margin-bottom:8px; }
.service-card p { color:#666; font-size:.95rem; }

/* How it works */
.how-it-works { padding:60px 20px; background:#f7f8fa; text-align:center; }
.how-it-works h2 { color:var(--blue); margin-bottom:28px; }
.steps { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:18px; max-width:1100px; margin:0 auto; }
.step { background:#fff; padding:22px; border-radius:12px; box-shadow:0 10px 30px rgba(10,38,71,0.04); }

/* Why us */
.why-us {
  padding: 80px 20px; /* немного увеличили верхний и нижний отступ */
  background: #000; /* оставляем тёмную тему */
  text-align: center;
}

.why-us h2 {
  margin-bottom: 40px; /* расстояние между заголовком и карточками */
  color: #fff;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.reason {
  padding: 20px;
  border-radius: 12px;
  background: #0A2647; /* тёмно-синий фон карточек */
  color: #fff;
  box-shadow: 0 8px 30px rgba(10, 38, 71, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(10, 38, 71, 0.5);
}

/* Reviews */
.reviews { padding:64px 20px; background:#fff; text-align:center; }
.review-cards { display:grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap:18px; margin-top:22px; }
.review-card { padding:22px; border-radius:12px; background: linear-gradient(180deg,#fff,#fbfbfb); box-shadow:0 10px 30px rgba(10,38,71,0.04); }
.review-img { width:64px; height:64px; border-radius:50%; object-fit:cover; display:block; margin:0 auto 12px; border:3px solid var(--gold-1); }

/* CTA */
.cta { padding:80px 20px; background: url('photo/vertolet.jpg') center/cover no-repeat; position:relative; color:#fff; }
.cta::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,38,71,0.65), rgba(10,38,71,0.35)); }
.cta .cta-content { position:relative; z-index:2; text-align:center; max-width:900px; margin:0 auto; }

/* Footer */
.site-footer {
  background: #000; /* вместо синего */
  color: #cfd6e6;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-top { padding:48px 20px 24px; }
.footer-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap:28px;
  max-width:1200px;
  margin:0 auto;
}
.footer-column h4 { color: #f9f9f8; margin-bottom:12px; font-size:1rem; }
.footer-brand .logo { color:#fbfbf9; font-weight:800; font-size:1.3rem; margin-bottom:8px; }
.footer-desc { color: rgba(255,255,255,0.85); margin-top:8px; font-size:.95rem; max-width:340px; }
.footer-column p, .footer-column li { color: rgba(255,255,255,0.85); font-size:.96rem; margin-bottom:8px; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li::before { content:'— '; color:#f0efed; }
.socials { display:flex; gap:10px; margin-top:8px; }
.social-link {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:8px;
  background: rgba(255,255,255,0.08); color:#fff; font-weight:700;
  transition: transform .2s, background .2s;
}
.social-link:hover { transform: translateY(-4px); background: #10100f; color:#0A2647; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding:18px 20px; }
.footer-bottom-inner { max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; gap:10px; align-items:center; color:rgba(255,255,255,0.75); font-size:.95rem; }
.small-note { font-size:.86rem; color: rgba(255,255,255,0.6); }
.socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.socials a {
  font-size: 26px;
  color: #fefefc; /* золотистый */
  transition: transform 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  color: #fff;
  transform: scale(1.2);
}

@media (max-width:640px) {
  .footer-bottom-inner { flex-direction:column; text-align:center; gap:6px; }
}


/* Small screens adjustments */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap:12px; }
  .burger { display:flex; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-container { flex-direction: column; text-align: center; }
  .about-image img { max-width: 86%; }
  .hero { min-height: 480px; }
  .footer-bottom-inner { flex-direction: column; gap:8px; text-align:center; }
}

/* === Reveal animation helpers (used by your script) === */
.anim-hidden { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.anim-show { opacity: 1; transform: translateY(0); }

/* Utility small */
.text-muted { color: #666; font-size:.95rem; }
.small-note { font-size:.86rem; color: rgba(255,255,255,0.6); margin-top:6px; }

.page{min-height:60vh;}

.container{width:min(1100px, 92%);margin:0 auto;}

.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}

.h1{font-size:clamp(28px,3vw,38px);margin-bottom:12px;}

.lead{font-size:18px;opacity:.9;margin-bottom:20px;}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}@media(max-width:900px){.contact-grid{grid-template-columns:1fr;}}

.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:12px;margin-top:6px} .contact-form label{display:block;margin:8px 0} .form-note{font-size:12px;opacity:.7;margin-top:8px}


/* ======== DARK THEME OVERRIDES (viptransport_dark_v2) ======== */
:root{
  --blue:#f2f0f0;
  --dark:#030f4a;
  --panel:#090909;
  --text:#f2f2f2;
  --mutedText:#faf7f7;
  --gold-1:#f9f8f5;
}
body{ background:var(--dark); color:var(--text); }
h1,h2,h3,h4,h5,h6{ color:var(--text); }
p, li, a { color:#fcfcfc; }
.top-bar{ background:#000; color:#fff; box-shadow:0 6px 24px rgba(0,0,0,.4); }
.nav a{ color:#fff; }
.nav a:hover,.nav a.active{ background:#16325B; color:#fff; }
.about,.services,.car-slider,.why-us,.reviews{ background:var(--panel); color:var(--text); }
.section-title{ color:#fff; }
.section-subtitle{ color:#b8c1d1; }
.card,.service-card,.car-card,.review-card,.reason{
  background:#0E2A54; color:#fafbfc; border:1px solid rgba(255,255,255,.07); box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.btn, .btn-outline{
  border:none; cursor:pointer; display:inline-block; font-weight:700; padding:12px 22px; border-radius:10px; transition:transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn{ background:#0A2647; color:#fff; }
.btn:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(10,38,71,.5); }
.btn-outline{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,.85); }
.btn-outline:hover{ background:#0A2647; color:#fff; }
.service-card{ text-align:left; display:flex; flex-direction:column; gap:10px; }
.service-card .icon{ font-size:22px; width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background:rgba(255,255,255,.12); color:#ffffff; }
.service-actions{ margin-top:6px; }
.site-footer{ background:#000; color:#cfd6e6; border-top:1px solid rgba(255,255,255,.08); }
.footer-column h4, .footer-brand .logo{ color:#fff; }
/* AVTO detail + lightbox */
.car-hero{ background:#08162E; padding:48px 20px; border-bottom:1px solid rgba(255,255,255,.08); }
.car-hero .container{ width:min(1100px,92%); margin:0 auto; }
.car-hero h1{ color:#fff; margin-bottom:8px; }
.car-hero .meta{ color:var(--mutedText); }
.car-photo{ background:#08162E; padding:24px 20px; }
.car-photo .img-wrap{ max-width:1100px; margin:0 auto; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.1); }
.car-photo img{ width:100%; display:block; object-fit:cover; }
.car-gallery{ background:#08162E; padding:16px 20px 56px; }
.car-gallery .grid{ width:min(1100px,92%); margin:14px auto 0; display:grid; gap:16px; grid-template-columns:repeat(3,1fr); }
.car-thumb{ border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.1); cursor:zoom-in; background:#0E2A54; }
.car-thumb img{ width:100%; height:220px; object-fit:cover; display:block; }
.lb{ position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:9999; }
.lb.open{ display:flex; }
.lb img{ max-width:92vw; max-height:86vh; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.lb .close{ position:absolute; top:18px; right:24px; font-size:28px; color:#fff; cursor:pointer; background:rgba(255,255,255,.12); padding:6px 12px; border-radius:10px; }
/* Фото в карточках услуг (servis.html) */
.serv-photo{
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0E2A54; 
}
.serv-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.95);
  transition: transform .35s ease, filter .35s ease;
}
.card:hover .serv-photo img{
  transform: scale(1.03);
  filter: brightness(1);
}
/* Настройка блока машины */
.car-block {
  text-align: center;
  margin-bottom: 80px; /* отступ между блоками машин */
}

/* Название машины */
.car-block h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 30px; /* верхний и нижний отступ между названием и фото */
}

/* Фото машины (основное) */
.car-photo img {
  display: block;
  margin: 0 auto 40px; /* центрирование и отступ снизу перед фото салона */
  max-width: 70%;      /* немного уменьшает ширину, чтобы не упиралось в края */
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Фото салона */
.car-interior {
  display: flex;
  justify-content: center;
  gap: 20px; /* расстояние между фото */
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.car-interior img {
  width: 30%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.car-interior img:hover {
  transform: scale(1.05);
}

/* === Фото автомобиля (основное изображение) === */
.car-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 0;
  margin: 0 auto 30px; /* ← увеличено расстояние между блоками */
  border: none;
}

.car-photo img {
  width: 85%;
  max-width: 500px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.car-photo img:hover {
  transform: scale(1.02);
  filter: brightness(1);
}


/* Lightbox — увеличение фото при клике */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 20px;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.car-main-photo {
  max-width: 1000px;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.car-main-photo img {
  width: 100%;
  height: clamp(260px, 45vh, 480px);
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: transform .35s ease, filter .35s ease;
}

.car-main-photo img:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Фото интерьера */
.car-interior {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.car-interior img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .3s ease, filter .3s ease;
  border: 1px solid rgba(255,255,255,0.08);
  filter: brightness(.9);
}

.car-interior img:hover {
  transform: scale(1.05);
  filter: brightness(1);
}
/* === О нас: чёрный фон + светлый текст === */
.page {
  background: #000;
  color: #fff;
}

.section.container {
  background: #000;
  color: #fff;
  padding: 100px 20px;
  text-align: left;
}

.section.container h1 {
  color: #fbfaf8;
  margin-bottom: 20px;
}

.section.container p,
.section.container li {
  color: #eaeaea;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section.container ul {
  margin-top: 16px;
  list-style: disc;
  padding-left: 24px;
}
/* ==== Lightbox (увеличение фото при клике) ==== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 20px;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}




@media (max-width:780px){
  .car-gallery .grid{ grid-template-columns:1fr; }
  .car-thumb img{ height:200px; }
}

