/* Общий Сброс и Базовые Стили */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-metallic: #A8A8A8; /* Металлический акцент */
    --color-dark-gray: #1a1a1a;
    --font-primary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Заголовки --- */
h1, h2, h3 {
    color: var(--color-gray);
    text-transform: uppercase;
    margin-bottom: 15px;
}

h1 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    padding-bottom: 40px;
}

/* --- Шапка и Навигация --- */
.header {
    background-color: var(--color-black);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-metallic);
    position: sticky; /* Добавлено, чтобы шапка была видна при прокрутке */
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 2px;
}

.nav a {
    color: var(--color-metallic);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--color-white);
}

.nav .cta-link {
    color: var(--color-white);
    border: 1px solid var(--color-metallic);
    padding: 8px 15px;
    border-radius: 4px;
}

.nav .cta-link:hover {
    background-color: var(--color-metallic);
    color: var(--color-black);
}

/* --- Секция Героя --- */
.hero {
    height: 70vh; /* Высота для акцента */
    /* background-image задается инлайн в HTML, но здесь стили по умолчанию */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 5%;
}

.hero-content {
    max-width: 600px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон для текста */
    border-radius: 8px;
}

.hero h2 {
    color: var(--color-metallic);
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: left;
}

/* Кнопки CTA */
.cta-group {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.cta-button {
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cta-button.primary {
    background-color: var(--color-white);
    color: var(--color-black);
}

.cta-button.primary:hover {
    background-color: var(--color-metallic);
}

.cta-button.secondary {
    background-color: transparent;
    border-color: var(--color-metallic);
    color: var(--color-white);
}

.cta-button.secondary:hover {
    border-color: var(--color-white);
    background-color: var(--color-metallic);
    color: var(--color-black);
}

/* Бейджи Доверия */
.trust-badges {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-metallic);
}

.trust-badges span {
    margin-right: 15px;
    color: var(--color-metallic);
    font-size: 0.9em;
    font-weight: 300;
}

/* --- Общие Секции --- */
section {
    padding: 80px 0;
}

.black-bg {
    background-color: var(--color-black);
    color: var(--color-white);
}
.black-bg h2, .black-bg h3 {
    color: var(--color-metallic);
}

/* --- Карточки Услуг --- */
.service-cards {
    display: flex;
    gap: 30px;
    text-align: center;
}

.service-cards .card {
    flex: 1;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.service-cards .card:hover {
    border-color: var(--color-metallic);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-cards h3 {
    text-transform: none;
}

/* --- Секция Процесса --- */
.process .steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
}

.process .step {
    flex: 1;
    padding: 20px;
}

.process .step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: var(--color-metallic);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 900;
}

/* --- Финальный CTA --- */
.final-cta {
    text-align: center;
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 60px 0;
}
.final-cta h2 {
    color: var(--color-white);
}
.final-cta p {
    margin-bottom: 30px;
}

/* --- Подвал --- */
.footer {
    background-color: var(--color-black);
    color: var(--color-metallic);
    padding: 25px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--color-metallic);
    text-decoration: none;
    margin-left: 20px;
}
.footer-links a:hover {
    color: var(--color-white);
}

/* --- Стили для JS Галереи --- */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.image-display {
    width: 100%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;
    border: 1px solid var(--color-metallic);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.main-fleet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s;
}

.thumbnail-nav {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    /* Используем временные ссылки для отображения миниатюр */
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumbnail.active, .thumbnail:hover {
    opacity: 1;
    border-color: var(--color-metallic);
}

/* --- Стили для JS Scroll Reveal Анимации --- */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile / Responsive overrides ===== */

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

.container{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Burger button */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  align-items:center;
  justify-content:center;
  gap: 6px;
}
.nav-toggle span{
  display:block;
  width: 20px;
  height: 2px;
  background: currentColor;
  opacity: .9;
}

/* Hero text scales nicely */
.hero-content h1{
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
}
.hero-content h2{
  font-size: clamp(16px, 2.6vw, 22px);
}

/* Buttons wrap on small screens */
.cta-group{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Trust badges wrap */
.trust-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px){
  /* Header: burger visible, nav collapses */
  .header .container{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle{ display:inline-flex; }

  .nav{
    display:none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;              /* если у тебя другая высота хедера — подправь */
    padding: 14px 20px 18px;
    background: rgba(10,10,12,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    flex-direction: column;
    gap: 10px;
    z-index: 999;
  }
  .nav.is-open{ display:flex; }

  .nav-link{
    display:block;
    padding: 12px 10px;
    border-radius: 12px;
  }

  /* Hero center on mobile */
  .hero{
    padding: 74px 0 46px;
  }
  .hero-content{
    padding: 0 20px;
    text-align: center;
  }
  .cta-group a{
    width: 100%;
    text-align:center;
  }

  /* Sections stack */
  .service-cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }

  .card, .step{
    width: 100%;
  }
}

@media (max-width: 900px){
  .nav a { margin-left: 0; }            /* убираем desktop-отступы пунктов меню */

  .process .steps{
    display: grid;                      /* переопределяем flex на мобилке */
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* FIX: burger button look */
.nav-toggle{
    width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;

  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--color-white);

  border-radius: 12px;
  cursor: pointer;

  align-items: center;
  justify-content: center;

  flex-direction: column;        /* <-- важно */
  gap: 6px;

  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 999px;
  opacity: .9;
}

.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible{
  outline: 2px solid rgba(168,168,168,.55);
  outline-offset: 2px;
}



 
.note-box--gradient{
  background: linear-gradient(180deg, #f7f7f8 0%, #efeff1 100%);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.note-box--gradient h3{
  margin: 0 0 12px;
  text-transform: none;
}

.note-list{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.note-list li{
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  color: rgba(0,0,0,.72);
}

.note-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0,0,0,.55);
}

.mini-cta--stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.note-box--gradient .cta-button{
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: 14px 16px;
}

/* Make primary button visible on light/gray card */
.note-box--gradient .cta-button.primary{
  background: #0b0b0c;
  color: #ffffff;
  border-color: rgba(0,0,0,.10);
}
.note-box--gradient .cta-button.primary:hover{
  background: #1b1b1f;
}

.note-box--gradient .cta-button.secondary{
  background: rgba(255,255,255,.75);
  color: #0b0b0c;
  border-color: rgba(0,0,0,.14);
}
.note-box--gradient .cta-button.secondary:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.22);
}

.note-tip{
  margin-top: 12px;
  font-size: 0.95em;
  color: rgba(0,0,0,.62);
}

/* Header logo image */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo{
  height: 34px;
  width: auto;
  display: block;
}

.brand-text{
  font-size: 1.05em;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 2px;
}

/* Mobile sizing */
@media (max-width: 900px){
  .brand-logo{ height: 28px; }
  .brand-text{ letter-spacing: 1.5px; font-size: 1em; }
}

/* ===== FIX: layout rules (keep desktop horizontal, mobile stacked) ===== */
@media (min-width: 901px){
  .service-cards{ display: flex; }
  .process .steps{ display: flex; }
}

@media (max-width: 900px){
  .service-cards{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .process .steps{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* Force burger visible on mobile (override any later rules) */
@media (max-width: 900px){
  .nav-toggle{ display: inline-flex !important; }
  .header .container{ position: relative; }
}
