/* Сброс отступов */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Навигация */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 0;
  display: flex;
  align-items: center;
}

/* Hero */
.hero {
  background: #f5f5f5;
  text-align: center;
  /* вместо padding: 4rem 0; — ставим минимальный */
  padding: 1rem 0; /* <- менее жирный отступ сверху/снизу */
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
/* Если вам нужно обнулить margin-top у h1, можно добавить */
.hero h1 {
  margin-top: 0;
}
.hero p {
  font-size: 1.25rem;
  color: #555;
}

/* ... остальные стили без изменений ... */


/* 1) flex‑контейнер, текст встаёт в самый левый край, картинка отодвигается вправо */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* прижать всё содержимое к левой границе */
  text-align: left;         /* текст внутри по-умолчанию — слева */
  gap: 2rem;
}

/* Центрируем только заголовок */
.about h2 {
 /* position: relative;  
  left: 44%;           
  transform: translateX(-50%); */
  text-align: center;
  margin-bottom: 1rem;

  
  /* остальное (размер шрифта и отступы) по вашему вкусу */
}
/* 2) чуть сдвинем текст вниз и уберём ограничения по ширине */
.about-text {
  margin-top: 1.5rem !important;         /* опустили текст ниже */
  flex: none; 
text-align: left;
  padding-bottom: 1rem !important;                /* не сужаем текст, он естественно займёт нужное место */
}

/* 3) картинке даём «авто» отступ слева, чтобы она уползла вправо, плюс немного от края */
/*.about-image {
  margin-left: auto;         
  margin-right: 10%;         
}
*/
/* 4) размер картинки */
.about-image img {
  margin-bottom: 0rem !important;
  max-width: 300px;          
  width: 100%;
  height: auto;
  display: block; 
}

/* Новая картинка под текстом в Hero */
.hero-image {
  display: block;         /* чтобы подчинялась потоковой вёрстке */
  margin: 1.5rem auto 0;  /* отступ сверху и центрирование */
  max-width: 100%;        /* не выйдет за пределы контейнера */

}


/* ——————————————————————————————————————
   Сделать заголовки в секции Services чёрными
   —————————————————————————————————————— */
.services h2 {
  color: #000 !important;     /* Our Services */
}

.services .card h3 {
  color: #000 !important;     /* Organic Traffic, Native Traffic, Mediabuy */
}


.services .service-cards {
  margin-left: 3%; /* сдвиг на 5% ширины родителя */
}


/* Ещё больше иконки в карточках услуг */
.services .card img {
  width: 300px;
  height: auto;       /* сохраняем пропорции */
  margin-bottom: 1rem;
}



/* 1) Маска-обёртка */
.services-scroller {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

/* 2) Флекс‑контейнер, который будет двигаться */
.scrolling-wrapper {
  display: flex;
  /* длина анимации можно регулировать: чем больше – тем медленнее прокрутка */
  animation: scroll-rows 20s linear infinite;
}

/* 3) Ключевые кадры: сдвиг влево ровно на половину ширины всего контента */
@keyframes scroll-rows {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 4) Сами карточки (с учётом ваших существующих .card) */
.services .card {
  flex: 0 0 auto;      /* запоминаем ширину контента и не сжимаем */
  width: 300px;         /* или любая другая фиксированная ширина */
  margin-right: 2rem;   /* расстояние между карточками */
}
/* Подгоняем картинки/текст под новый размер при необходимости */
.services .card img {
  width: 100%;
  height: auto;
}


/* Маска — чтобы всё, что выезжает за границу, было скрыто */
.services-scroller {
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

/* Флекс‑рулильщик с анимацией */
.scrolling-wrapper {
  display: flex;
  animation: scroll-cards 20s linear infinite;
}

/* Движение на половину ширины всего контейнера (за счёт дублирования карточек) */
@keyframes scroll-cards {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Подстройка самих .card */
.services-scroller .card {
  flex: 0 0 auto;      /* не растягиваем, не сжимаем */
  width: 280px;         /* подберите свой размер карточки */
  margin-right: 1.5rem; /* отступ между карточками */
  background: #fff;     /* или ваш фон */
  color: #000;          /* текст чёрный */
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

/* Изображение внутри карточки */
.services-scroller .card img {
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

/* Заголовок и параграф */
.services-scroller .card h3 {
  margin: 0.5rem 0 0.5rem;
}
.services-scroller .card p {
  font-size: 0.9rem;
  color: #555;
}



/* === Перекрываем фон и цвета для всех основных блоков в тёмной теме === */
body.dark {
  /* если у вас был градиент — можно его тоже оставить */
  background: linear-gradient(180deg, #000000 0%, #333333 100%) !important;
  color: #eee !important;
}

/* Навбар */
body.dark .navbar {
  background: #111 !important;
  border-bottom-color: #444 !important;
}
/* Ссылки в навбаре */
body.dark .navbar nav ul li a,
body.dark .auth-buttons li a {
  color: #ddd !important;
  background: transparent !important;
}
/* Hero */
body.dark .hero {
  background: #222 !important;
}
/* О нас */
body.dark .about {
  background: #111 !important;
}
/* Services (фон всей секции) */
body.dark .services {
  background: #111 !important;
}
/* сам скроллер карточек, если он имеет фон */
body.dark .services-scroller {
  background: transparent !important;
}
/* карточки внутри сервисов */
body.dark .services-scroller .card {
  background: #222 !important;
  border-color: #444 !important;
  color: #eee !important;
}
/* заголовки и текст карточек */
body.dark .services-scroller .card h3,
body.dark .services-scroller .card p {
  color: #eee !important;
}

/* Контакты */
body.dark .contact {
  background: #111 !important;
}
body.dark .contact input,
body.dark .contact button {
  background: #333 !important;
  color: #fff !important;
  border-color: #555 !important;
}
body.dark .contact input::placeholder {
  color: #bbb !important;
}

/* Футер */
body.dark .footer {
  background: #111 !important;
  color: #aaa !important;
}
body.dark .footer a {
  color: #ddd !important;
}


body.dark .services h2 {
  color: #fff !important;
}


/* Заставляем видео растягиваться на 100% ширины контейнера */
.hero-video {
  width: 100% !important;
  height: auto !important;  /* сохраняет пропорции */
  max-height: none;         /* убирает ограничения по высоте */
  display: block;
  margin: 1.5rem 0 0;       /* отступ сверху, как у картинки раньше */
}

/* оборачиваем видео, чтобы наложить псевдо‑градиенты */
.hero-media {
  position: relative;
  overflow: hidden;

}

/* само видео */
.hero-video {
  width: 100% !important;
  height: auto  !important;
  display: block;
  margin: 1.5rem 0 0;
}

/* градиент сверху */
.hero-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* насколько “долго” будет сглаживаться переход */
  pointer-events: none;
  background: linear-gradient(to bottom, #222 0%, transparent 100%);
}

/* градиент снизу */
.hero-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to top, #222 0%, transparent 100%);
}






.hero-media {
  /* «Вырвать» из контейнера */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  /* Занять всю ширину viewport */
  width: 100vw;
  overflow: hidden; /* на случай, если видео чуть шире */
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}



/* Убираем отступы у .hero, чтобы видео прям в шапку упиралось */
.hero {
  padding: 0;
  margin: 0;
}

/* Уже было: .hero-media растягивается на всю ширину */
.hero-media {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  overflow: hidden;
  /* убираем стандартный отступ сверху у контейнера */
  padding-top: 0;
}

/* Видео во всю ширину */
.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Новый класс для текста поверх видео */
.hero-overlay {
  position: absolute;
  top: 35%;
  left: 6%;               /* вместо 50% — поднимаем текст выше */
  transform: translate(-50%, -40%); /* скорректировали смещение по Y */
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-overlay h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero-overlay p {
  font-size: 1.65rem !important; 
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  color: #B3B3B3 !important;
}



/*.hero-overlay h1 {
  font-size: 3rem !important;  
  color: #FFD700 !important;    
}


.hero-overlay p {
  font-size: 1.25rem !important; 
  color: #FFFAFA !important;   
}
*/


/* === 1) Убираем все отступы у шапки и у hero === */
/* 1) Сбрасываем отступы у шапки и секции */
header.navbar,
.hero {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) Вырвём .hero-media из .container и центрируем */
.hero-media {
  position: relative;
  width: 100vw;                               /* растянуть на всю ширину экрана */
  margin-left: calc(50% - 50vw);              /* сдвиг влево на половину лишней ширины */
  margin-right: calc(50% - 50vw);             /* на всякий случай — зеркально */
  overflow: hidden;
  padding: 0;
}

/* 3) Видео внутри занимает весь контейнер .hero-media */
.hero-media .hero-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* 4) Сброс отступов перед секцией “О нас” */
.hero + .about,
.about {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Исправление позиционирования видео */
.hero-media {
  left: 0;
  margin-left: 0;
  transform: none;
  width: 100%;
}

.hero-video {
  transform: none;
  margin: 0 auto;
  display: block;
}



/* Тонкая разделительная линия между About и Services */
.about {
    position: relative;
  padding-bottom: 0rem !important;
    margin-top: 2rem !important;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3); /* Полупрозрачная белая линия */
}

/* Для светлой темы - тёмная линия */
body.light .about::after {
    background: rgba(0, 0, 0, 0.1); /* Полупрозрачная тёмная линия */
}



.hero-overlay p:nth-of-type(4) {
  margin-top: 1.3rem;     
  font-size: 1.70rem !important; 
}


.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 2rem;
}

.about-text,
.about-image {
  margin-bottom: 0.1rem !important;
  margin: 0;
  flex: none;
}

.about-image {
  display: none !important;
}

.contact {
  display: none !important;
}











/* Футер: трёхколоночная сетка */
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Левая колонка */
.footer-logo img {
  max-height: 50px;
  width: auto;
}

/* Средняя колонка */
.footer-address {
  flex: 1;
  font-size: 0.95rem;
  color: inherit;
  text-align: center;
/*  align-self: center;*/
margin-top: 1.7rem;
}

/* Правая колонка */
.footer-nav {
  text-align: left;
  margin-top: 0.75rem;
}

.footer-nav h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: inherit;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 2.1rem;
}

.footer-nav li + li {
  margin-top: 0.5rem;
  font-size: 5rem !important;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #999; /* ваш hover‑цвет */
}


.about-text p {
  margin: 0 0 0.5rem 0 !important;
  line-height: 0.9;
  font-size: 1.4rem !important;
  color: #818a87 !important;
}


.footer-nav h3 a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-block; /* чтобы весь заголовок был «кликом» */
  transition: color 0.3s;
}
.footer-nav h3 a:hover {
  color: #999; /* или ваш hover‑цвет */
}

html {
  scroll-behavior: smooth;
}




/* Кнопка — только текст, без рамок и фона */
.footer-contact-btn {
  background: none;        /* без фона */
  border: none;            /* без рамки */
  padding: 0;              /* без внутренних отступов */
  margin: 0;               /* без внешних отступов */
  font-size: 1.1rem !important;       /* размер шрифта */
  font-weight: bold;       /* жирный текст */
  color: #fff;             /* цвет текста */
  text-decoration: none;   /* без подчёркивания */
  transition: color 0.3s;  /* плавный переход цвета */
  cursor: pointer;


  position: relative;
  top: -1.35rem;  /* подтягиваем вверх на 0.5rem */

  /* Сдвигаем вниз */
  /*display: inline-block;    /* нужно для margin или top */
  /*margin-top: -10rem;*/       /* или любое нужное значение */*/
  /* —или— вместо margin можно использовать позиционирование:
  position: relative;
  top: 0.5rem;
  */
}

/* При наведении текст светлее */
.footer-contact-btn:hover {
  color: #ccc;
}

/* Убираем обводку при фокусе (табом) */
.footer-contact-btn:focus {
  outline: none;
}




































/* =========================
       Ваши существующие стили (dark‑вариант)
       ========================= */
    html {
    scroll-behavior: smooth;
  }

    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(180deg, #000000 0%, #333333 100%);
      color: #fff;
    }

    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Navbar */
    .navbar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 0;
    }
    .navbar .logo img {
      height: 50px !important;  /* Увеличено на 50% */
      width: auto;
    }
    .navbar nav ul,
    .navbar .auth-buttons {
      list-style: none;
      display: flex;
      gap: 1rem;
      align-items: center; /* Выровнять элементы по центру по вертикали */
    }
    .navbar nav ul li a,
    .navbar .auth-buttons li a {
      text-decoration: none;
      color: #666; /* Серая надпись */
      background: transparent;
      padding: 0.5rem 1rem;
      cursor: pointer;
      transition: color 0.3s;
    }
    .navbar nav ul li a:hover,
    .navbar .auth-buttons li a:hover {
      color: #999;
    }

    /* Hero Section (dark‑вариант) */
    .hero {
      text-align: center;
      padding: 2rem 0; /* этот padding работает только при dark‑режиме */
    }
    .hero h1 {
      font-size: 2.5rem;
      margin: 0.5rem 0;
    }
    .hero p {
      font-size: 1.25rem;
      color: #ddd;
    }

    /* Other Sections (dark adjustments) */
    .about,
    .services,
    .contact,
    .footer {
      padding: 3rem 0;
    }
    .about h2,
    .services h2,
    .contact h2 {
      color: #fff;
    }
    .card {
      background: #222;
      border: none;
    }
    .card p,
    .card h3 {
      color: #eee;
    }
    .contact input,
    .contact button {
      background: #555;
      color: #fff;
      border: none;
    }
    .contact input::placeholder {
      color: #ccc;
    }
    .footer {
      background: transparent;
      color: #aaa;
    }
    .footer a {
      color: #fff;
    }

    /* =========================
       Ваш старый CSS (из файла styly.css)
       ========================= */
    /* Сброс отступов */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* Контейнер */
    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Навигация */
    .navbar {
      background: #fff;
      border-bottom: 1px solid #eaeaea;
      padding: 1rem 0;
      display: flex;
      align-items: center;
    }

    /* Hero (светлый режим из styly.css, именно этот padding перебивает dark‑вариант) */
    .hero {
      background: #f5f5f5;
      text-align: center;
      padding: 4rem 0; /* ← заменим это чуть ниже */
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    .hero p {
      font-size: 1.25rem;
      color: #555;
    }

    /* О нас */
    .about {
      padding: 3rem 0;
    }
    .about h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    .about p {
      font-size: 1rem;
      color: #666;
      margin-bottom: 2rem;
    }

    /* Услуги */
    .services {
      background: #fafafa;
      padding: 3rem 0;
    }
    .services h2 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    .service-cards {
      display: flex;
      gap: 2rem;
      justify-content: space-between;
    }
    .card {
      background: #fff;
      padding: 1.5rem;
      border: 1px solid #eaeaea;
      border-radius: 8px;
      text-align: center;
    }
    .card img {
      width: 60px;
      height: 60px;
      margin-bottom: 1rem;
    }
    .card h3 {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
    }
    .card p {
      font-size: 1rem;
      color: #666;
    }

    /* Контакты */
    .contact {
      padding: 3rem 0;
    }
    .contact h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    .contact form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 400px;
      margin: 0 auto;
    }
    .contact input {
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .contact button {
      padding: 0.75rem;
      border: none;
      border-radius: 4px;
      background: #333;
      color: #fff;
      cursor: pointer;
    }

    /* Футер */
    .footer {
      background: #fff;
      border-top: 1px solid #eaeaea;
      padding: 2rem 0;
      text-align: center;
    }
    .footer p {
      font-size: 0.875rem;
      color: #777;
    }
    .footer a {
      color: #333;
      text-decoration: none;
    }

    /* Добавляем стиль для нового контейнера navbar-left */
    .navbar-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    /* Обновляем стили для ссылок в навбаре */
    .navbar nav ul li a,
    .navbar .auth-buttons li a {
      text-decoration: none;
      color: #333; /* Темнее, чем #666, для лучшей видимости */
      background: #f0f0f0; /* Легкий фон для заметности */
      padding: 0.75rem 1.25rem; /* Увеличенный размер кнопок */
      cursor: pointer;
      transition: background 0.3s;
      font-weight: bold; /* Жирный текст для большей видимости */
      border-radius: 4px; /* Скругленные углы для стиля кнопок */
    }
    .navbar nav ul li a:hover,
    .navbar .auth-buttons li a:hover {
      background: #e0e0e0; /* Легкое изменение фона при наведении */
    }

    /* =========================
       Стили переключателя темы
       ========================= */
    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }
    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 34px;
    }
    .slider::before {
      content: '🌞'; /* Эмодзи солнца для светлой темы */
      position: absolute;
      left: 4px;
      bottom: 4px;
      font-size: 24px;
      transition: 0.4s;
    }
    input:checked + .slider {
      background-color: #2196F3;
    }
    input:checked + .slider::before {
      content: '🌜'; /* Эмодзи луны для темной темы */
      transform: translateX(26px);
    }
    /* Светлая тема */
    body.light {
      background-color: #ffffff !important;
      color: #000000 !important;
    }
    /* Темная тема */
    body.dark {
      background-color: #333333 !important;
      color: #ffffff !important;
    }


    /* ——————————————————————————————————————
       САМЫЕ ВАЖНЫЕ ПРАВКИ: ЗДЕСЬ МЫ УБИРАЕМ БОЛЬШИЕ ОТСТУПЫ У .hero
       Разместите этот блок В САМОМ КОНЦЕ (после всех предыдущих .hero)
       —————————————————————————————————————— */
    .hero h1 {
     margin-top: 0 !important;
   }

   /* ——————————————————————————————————————
      Scroll‑появление при скролле (должно быть ВНЕ любых других селекторов!)
      —————————————————————————————————————— */
  .scroll-animate {
    opacity: 0;
    transform: translateY(20px);
     transition: opacity 0.6s ease-out, transform 0.6s ease-out;
   }
   .scroll-animate.in-view {
     opacity: 1;
     transform: translateY(0);
   }

    

    /* по-буквенная анимация */
.hero-overlay .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterIn 0.4s forwards;
}

/* ключевые кадры */
@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}










































/* ———————————————————————————————
   1. Fluid layout: гибкие контейнеры и медиа
   ——————————————————————————————— */
.container {
  width: 90%;
  max-width: 1200px;
}
img, video {
  max-width: 100%;
  height: auto;
}

/* ———————————————————————————————
   2. Flex-контейнер для навбара
   ——————————————————————————————— */
.navbar {
  display: flex;
  flex-wrap: wrap;          /* разрешает перенос пунктов на новую строку */
  justify-content: space-between;
  align-items: center;
}

/* Аккаунт-кнопки внизу на мобильных */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar .auth-buttons {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* ———————————————————————————————
   3. Breakpoints для разных экранов
   ——————————————————————————————— */

/* Смартфоны (портрет) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-overlay {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }
  .services .card {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Планшеты */
@media (min-width: 577px) and (max-width: 992px) {
  .services-scroller {
    display: none; /* или замените на слайдер/карусель */
  }
  .services .service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}








/* ————————————————————————————————————————————————
   Адаптив для мобильных (max-width: 768px)
   ———————————————————————————————————————————————— */
@media (max-width: 768px) {
  /* Запретим «горизонтальную» прокрутку и уберём отрицательные отступы */
  html, body {
    overflow-x: hidden;
  }

  /* Навбар: всё в один столбец */
  .navbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.5rem !important;
  }
  .navbar .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  /* Список пунктов меню — столбец, полный width */
  .navbar nav ul {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.25rem !important;
  }
  .navbar nav ul li a {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem !important;
  }

  /* Auth-buttons под меню */
  .auth-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  /* Hero: снимем все внешние отступы, видео займёт всю ширину */
  .hero {
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero-media {
    margin-left: 0 !important;
    width: 100vw !important;
    position: relative !important;
  }

  /* Оверлей текста: центрируем и делаем чуть компактнее */
  .hero-overlay {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    top: 20% !important;
  }
  .hero-overlay h1 {
    font-size: 1.5rem !important;
  }
  .hero-overlay p {
    font-size: 1rem !important;
  }

  /* О нас: один столбец, картинка убрана */
  .about-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  .about-image {
    display: none !important;
  }

  /* Сервисы: скроем бесконечный скроллер и просто выложим карточки в столбец */
  .services-scroller {
    display: none !important;
  }
  .service-cards,
  .services .service-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .services .card {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* Футер: столбец */
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
}





/* ————————————————————————————————————————————————
   Мобильный infinite-scroller: по 1 карточке на экран
   (вместо statycznego column-layout)
   ———————————————————————————————————————————————— */
@media (max-width: 768px) {
  /* Показываем именно scroller, а не static карточки */
  .services-scroller {
    display: block !important;
    overflow: hidden; /* маска */
    position: relative;
    width: 100%;
    margin-top: 1rem !important;
  }
  /* Скрываем fallback-контейнер */
  .service-cards,
  .services .service-cards {
    display: none !important;
  }

  /* Сам flex-рулильщик с анимацией */
  .scrolling-wrapper {
    display: flex !important;
    animation: scroll-rows 20s linear infinite !important;
  }

  /* Каждая карточка — ровно 100% ширины экрана */
  .services-scroller .card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    margin-right: 0 !important;
  }

  /* Центрируем содержимое карточки */
  .services-scroller .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}






/* 1. Сделаем контейнер шапки флексом */
.navbar .container {
  display: flex;
  align-items: center;
}

/* 2. Оттолкнём навигацию вправо */
.navbar nav {
  margin-left: auto;
}

/* 3. Немного подправим отступы между пунктами */
.navbar nav ul {
  gap: 1rem; /* или любое удобное вам */
}

.navbar-left {
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar-left nav {
  margin-left: auto;
}































@media (max-width: 768px) {
  /* 1) Шапка: логотип слева, меню справа, пункты по центру одного столбца */
  .navbar-left {
    display: flex !important;
    align-items: center;
    width: 100%;
  }
  .navbar-left nav {
    margin-left: auto !important;
  }
  .navbar-left nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar-left nav ul li {
    margin: 0 !important;
  }
  .navbar-left nav ul li a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    text-align: right !important;
  }

  /* 2) Hero-overlay: гарантируем показ всех <p> */
  .hero-overlay {
    top: 15% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    padding: 0 !important;
  }
  .hero-overlay h1 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-overlay p {
    display: block !important;
    font-size: 1rem !important;
    color: #ccc !important;
    margin: 0.5rem 0 !important;
    line-height: 1.4 !important;
  }

  /* 3) Our Services: по одной карточке на экран, но скроллер виден */
  .services-scroller {
    display: block !important;
    overflow: hidden !important;
  }
  .service-cards,
  .services .service-cards {
    display: none !important;
  }
  .scrolling-wrapper {
    display: flex !important;
    animation: scroll-rows 20s linear infinite !important;
  }
  .services-scroller .card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .services-scroller .card img {
    max-width: 80% !important;
    margin: 0 auto 1rem !important;
  }
}


/* ————————————————————————————————————————————————
   Тонкая настройка hero-overlay для экрана ≤576px
   ———————————————————————————————————————————————— */
@media (max-width: 576px) {
  /* 1) Уменьшаем шрифт заголовка и увеличиваем межстрочный интервал */
  .hero-overlay h1 {
    font-size: 1.4rem !important;      /* было ~1.6rem */
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  /* 2) Управляем общим размером блока, чтобы весь текст отображался */
  .hero-overlay {
    top: 10% !important;               /* сдвинуть чуть выше */
    width: 100% !important;            /* занять всё пространство */
    padding: 0 1rem !important;        /* по бокам небольшой отступ */
    max-height: 80vh !important;       /* чтобы блок не вылезал за экран */
    overflow-y: auto !important;       /* если текста много — появится скролл */
  }

  /* 3) Подправляем параграфы, чтобы были компактнее */
  .hero-overlay p {
    font-size: 0.9rem !important;
    margin: 0.3rem 0 !important;
    line-height: 1.3 !important;
  }
}


@media (max-width: 576px) {
  /* ещё меньше заголовок */
  .hero-overlay h1 {
    font-size: 1.2rem !important;    /* было 1.4rem → делаем ещё меньше */
    line-height: 1.1 !important;
  }

  /* специально для последнего параграфа */
  .hero-overlay p:last-of-type {
    font-size: 0.9rem !important;   /* чуть меньше, чем остальные */
    margin-top: 0.4rem !important;
  }
}


/* в самом конце файла */
.hero-media::before,
.hero-media::after {
  display: none !important; }








/* === ЗУМ И РАСТЯЖКА ВИДЕО НА МОБИЛЬНЫХ ЭКРАНАХ + ЦЕНТРОВКА ТЕКСТА === */
@media (max-width: 768px) {
  /* 1) «Вырванное» видео делаем относительным и задаём высоту контейнера */
  section.hero .hero-media {
    position: relative !important;
    left: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    height: 50vh !important;    /* высота контейнера (60% от высоты окна) */
    max-height: none !important;
  }

  /* 2) Зумим само видео */
  section.hero .hero-media > video.hero-video {
    transform: scale(1.8) !important;
    transform-origin: center center !important;
    width: auto !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    transition: transform 0.3s ease-out !important;
  }

  /* 3) Центрируем ваш overlay-текст ровно по центру видео */
  section.hero .hero-media .hero-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 90% !important;
    padding: 0 1rem !important;
  }

  /* 4) Центрируем текст в секции “About us” */
  .about-text {
    text-align: center !important;
  }
}

