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

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* === Header === */
header {
  background: #6c47ff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between; /* Распределяет элементы по краям */
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo img {
  height: 40px;
  width: auto;
}
/* Слоган в строке с логотипом и телефоном */
.header-slogan {
  color: #ffffff;
  margin: 0; /* ← убрали отступ сверху */
  font-size: 0.9rem;
  line-height: 1;
  align-self: center; /* ← гарантирует центрирование даже если другие элементы выше */
  padding: 0 12px; /* ← небольшой горизонтальный отступ */
}

/* Мобильные устройства: уменьшаем шрифт */
@media (max-width: 1670px) {
  .header-slogan {
    font-size: 0.8rem;
  }
}

/* Очень узкие экраны (опционально) */
@media (max-width: 576px) {
  .header-slogan {
    font-size: 0.8rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Правая часть: телефон + бургер */
.header-right-mobile {
  display: flex;
  align-items: center;
  gap: 12px; /* Отступ между иконкой и бургером */
}

/* === Region Selector === */
.region-selector {
  display: none;
  position: relative;
}

.region-toggle {
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  outline: none;
}

.region-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.region-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  padding: 16px;
  transition: all 0.25s ease;
  min-width: 280px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
}

.region-selector:hover .region-dropdown {
  opacity: 1;
  visibility: visible;
}

.region-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 1400px) {
  .region-columns-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Новое правило — 6 колонок при ширине ≥1600px */
@media (min-width: 1600px) {
  .region-columns-wrapper {
    grid-template-columns: repeat(6, 1fr);
  }
}
.region-group-title {
  display: block;
  font-weight: 700;
  color: #6c47ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(108, 71, 255, 0.2);
}

.region-column a {
  display: block;
  padding: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s;
}

.region-column a:hover {
  color: #6c47ff;
}

/* === Мобильные элементы === */
/* === Бургер-меню (мобильное) === */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;     /* Увеличили с 24px */
  height: 24px;    /* Увеличили с 18px */
  cursor: pointer;
  z-index: 1001;
  padding: 0px;    /* Добавляем внутренние отступы — чтобы не прижимался к краю */
  box-sizing: border-box;
}

.burger span {
  display: block;
  height: 2px;
  width: 36px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px; /* Скруглить края — выглядит аккуратнее */
}

/* При наведении — слегка увеличиваем */
.burger:hover {
  transform: scale(1.05);
}

.phone-icon {
  display: block;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.phone-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.phone-icon:hover {
  transform: scale(1.1);
}

.desktop-nav,
.phone-desktop {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  padding-top: 80px;
}

.mobile-menu.open {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10000;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.mobile-nav a {
  padding: 14px 0;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  width: auto;
  max-width: none;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(108, 71, 255, 0.1);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.social-icons svg {
  width: 32px;
  height: 32px;
  fill: #6c47ff;
  cursor: pointer;
}

/* === ДЕСКТОПНЫЕ СТИЛИ (≥1200px) === */
@media (min-width: 1600px) {
  .burger,
  .phone-icon,
  .mobile-menu {
    display: none !important;
  }

  .desktop-nav,
  .phone-desktop,
  .region-selector {
    display: block;
  }

  .desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
  }

  .desktop-nav a:hover,
  .desktop-nav a.active {
    background: rgba(255, 255, 255, 0.2);
  }

  .phone-desktop {
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    text-decoration: none;
  }

  /* Выпадающие меню (Digital и др.) */
  .desktop-nav li {
    position: static;
  }

  .has-dropdown > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 4px;
    opacity: 0.7;
  }

  .dropdown-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    padding: 24px;
    transition: all 0.25s ease;
    max-width: 1160px;
    width: calc(100vw - 40px);
  }

  .desktop-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-columns-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
  }

  .dropdown-column {
    min-width: 0;
  }

  .dropdown-menu .category-title {
    display: block;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #6c47ff;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(108, 71, 255, 0.2);
  }

  .dropdown-menu a {
    display: block;
    padding: 5px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: color 0.2s;
  }

  .dropdown-menu a:hover {
    color: #6c47ff;
  }
}
/*Добавление для выбора города */
.all-cities-section {
  padding: 60px 0;
  background: #f9f7ff;
}

.all-cities-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #6c47ff;
  margin-bottom: 12px;
}

.all-cities-section .subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.city-group h3 {
  font-size: 1.2rem;
  color: #6c47ff;
  margin-bottom: 12px;
}

.city-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-group li {
  margin-bottom: 6px;
}

.city-group a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.city-group a:hover {
  color: #6c47ff;
  text-decoration: underline;
}
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh; /* Полная высота на десктопе */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 1;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;;
  z-index: -2;
  overflow: hidden; /* на всякий случай */
}

.hero-video-wrapper video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
height: 80vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero p.subtitle {
  font-size: 1.3rem;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.telegram-btn {
  display: inline-block;
  background: #6c47ff;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.telegram-btn:hover {
  opacity: 0.9;
}

/* === Адаптивность: мобильные устройства === */
@media (max-width: 768px) {
  .hero {
    height: auto;           /* ← отменяем фиксированную высоту */
    min-height: 80vh;      /* ← минимум — весь экран */
    padding: 0;             /* ← убираем внутренние отступы, чтобы не ломать высоту */
    justify-content: flex-start; /* ← прижимаем контент к верху */
    align-items: center;
    scroll-behavior: smooth; /* ← плавный скролл (опционально) */
  }

  .hero-content {
    max-width: 100%;
    padding: 40px 15px 60px; /* ← отступы сверху/снизу для читаемости */
    width: 100%;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.25;
  }

  .hero p.subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 100%;
    padding: 0 5px;
    line-height: 1.4;
  }

  .telegram-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 20px;
  }
}

/* Защита для очень маленьких экранов */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p.subtitle {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .telegram-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
/* Секция "Команда" — фон на всю ширину */
.team-section {
  margin-top: 60px;
  width: 100%;
  background-color: #f5f5f5; /* Светло-серый фон на всю секцию */
  padding: 60px 0; /* Добавили больше отступов сверху и снизу */
  color: #222;
}

.team-section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Белый карточный блок внутри фоновой секции */
.team-content-wrapper {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.team-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  color: #222;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Остальной CSS без изменений... */
.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
}

.team-card h4 {
  font-size: 1.1rem;
  margin: 8px 0 4px;
  font-weight: 700;
  color: #222;
}

.team-card .role {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-title {
    font-size: 1.5rem;
  }
}
    /* Основной контент */
    .container {
      max-width: 80%;
      margin: 0 auto;
      padding: 0 20px;
    }
    @media (max-width: 768px) {
      .container {
        max-width: 95%;
        padding: 0 15px;
      }
    }
    .page-content {
      padding: 80px 0;
    }
    .page-content h2 {
      font-size: 2.3rem;
      margin-bottom: 30px;
      color: #333;
    }
    .page-content p {
      margin-bottom: 16px;
      font-size: 1.05rem;
      line-height: 1.7;
    }
    .features-list {
      margin-top: 30px;
      padding-left: 20px;
    }
    .features-list li {
      margin-bottom: 10px;
      line-height: 1.6;
    }
    .features-list li::before {
      color: #6c47ff;
      font-weight: bold;
    }

    /* Преимущества */
    .advantages-block {
      background: #cfe2ff;
      padding: 60px 0;
      margin: 60px 0;
      border-radius: 16px;
    }
    .advantages-block h3 {
      font-size: 1.8rem;
      margin-bottom: 25px;
      text-align: center;
    }
    .adv-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      padding: 0 20px; /* отступы только для сетки */
    }
    .adv-card {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .adv-card h4 {
      font-size: 1.25rem;
      margin-bottom: 10px;
      color: #6c47ff;
    }
/* Стиль для кликабельной карточки */
.adv-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.adv-card-link .adv-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adv-card-link:hover .adv-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Стиль для "Перейти →" */
.adv-link-label {
  display: inline-block;
  margin-top: auto;
  padding: 8px 16px;
  font-size: 14px;
  background: #6a4ae5;
  color: white;
  border-radius: 6px;
  text-align: center;
  margin-top: 16px;
  transition: background 0.2s ease;
}

.adv-card-link:hover .adv-link-label {
  background: #5a3ad5;
}

/* Где работает */
.use-cases {
  padding: 60px 20px; /* добавлены боковые отступы */
  background: #cfe2ff; /* выровнено под фон преимуществ */
  border-radius: 16px;
  margin: 60px 0;
}
.use-cases h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}
.use-cases ul {
  list-style: none;
  padding: 0;
  max-width: 800px; /* ограничение ширины списка для лучшей читаемости */
  margin: 0 auto;   /* центрирование списка */
}
.use-cases li {
  padding: 10px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid #eee;
}
.use-cases li:last-child {
  border: none;
}
.use-cases li::before {
  content: "→ ";
  color: #6c47ff;
  font-weight: bold;
}

    /* CTA */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #6c47ff, #4a2cbf);
  color: white;
  border-radius: 16px;
  margin: 80px auto;
  width: 95%; /* по умолчанию — для мобильных */
  max-width: 1600px; /* или другое ограничение, если нужно */
}

/* Десктоп (например, от 1024px и выше) */
@media (min-width: 1024px) {
  .cta-section {
    width: 90%;
  }
}
    .cta-section h2 {
      font-size: 2.4rem;
      margin-bottom: 20px;
    }
    .cta-section p {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto 30px;
      opacity: 0.9;
    }
    .cta-btn {
      display: inline-block;
      background: white;
      color: #6c47ff;
      padding: 14px 36px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.1rem;
      transition: transform 0.2s;
    }
    .cta-btn:hover {
      transform: translateY(-2px);
    }
    
/* Перелинковка — "Вас также могут заинтересовать" */
.related-products {
  background: #cfe2ff;
  padding: 60px 20px;
  border-radius: 16px;
  margin: 60px 0;
}

.related-products h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  display: block;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.related-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #6c47ff;
}

.related-card p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #333;
}    

    /* Footer */
    footer {
      background: #1a1a1a;
      color: #ddd;
      padding: 40px 0 20px;
      font-size: 0.95rem;
    }
    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 30px;
    }
    .footer-col {
      flex: 1;
      min-width: 200px;
    }
    .footer-col h4 {
      color: white;
      margin-bottom: 16px;
      font-size: 1.1rem;
    }
    .footer-col ul {
      list-style: none;
      padding: 0;
    }
    .footer-col ul li {
      margin-bottom: 8px;
    }
    .footer-col a {
      color: #bbb;
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-col a:hover {
      color: #6c47ff;
    }
    .footer-bottom {
      text-align: center;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid #333;
      color: #777;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
      header {
        padding: 15px;
      }
      .logo {
        font-size: 1rem;
      }
      .desktop-nav,
      .phone-desktop {
        display: none;
      }
      .phone-icon,
      .burger {
        display: flex;
      }
      .hero {
        height: 70vh;
      }
      .hero h1 {
        font-size: 2.2rem;
      }
      .hero p.subtitle {
        font-size: 1.1rem;
      }
      .page-content h2,
      .advantages-block h3,
      .use-cases h3,
      .cta-section h2 {
        font-size: 1.8rem;
      }
      .footer-content {
        flex-direction: column;
      }
    }
.content-with-image {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.text-content {
  flex: 0 0 58%; /* ~60% под текст, чтобы изображение было ~40% */
}

.image-content {
  flex: 0 0 40%;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
  .content-with-image {
    flex-direction: column;
    gap: 20px;
  }
  .text-content,
  .image-content {
    flex: 1 0 auto;
    width: 100%;
  }
}
.contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.widget-toggle {
  width: 60px;
  height: 60px;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.widget-toggle:hover {
  transform: scale(1.1);
}

.widget-toggle img,
.widget-expanded img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.widget-expanded {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.widget-expanded.show {
  display: flex;
}

.widget-expanded a {
  width: 60px;
  height: 60px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlide 0.3s forwards;
}

.widget-expanded.show a {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes fadeInSlide {
  to { opacity: 1; transform: translateY(0); }
}

.widget-expanded.show a:nth-child(1) { animation-delay: 0.05s; }
.widget-expanded.show a:nth-child(2) { animation-delay: 0.1s; }
.widget-expanded.show a:nth-child(3) { animation-delay: 0.15s; }
.widget-expanded.show a:nth-child(4) { animation-delay: 0.2s; }
/* Услуги */
.services {
  padding: 80px 0;
  background: #f5f5f5; /* светло-серый фон */
}
.service-block {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-radius: 12px;
  margin-bottom: 40px;
  /* Добавляем отступы внутрь блока, чтобы текст не прилипал к краю */
  padding-left: 40px;
  padding-right: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* мягкая тень */
  border-radius: 12px; /* чтобы тень выглядела аккуратнее */
}
.service-block:last-child {
  margin-bottom: 0;
}
.service-block-purple {
  background: #6c47ff;
  color: white;
}
.service-block-white {
  background: white;
  color: #333;
}
.service-content {
  flex: 1;
  min-width: 300px;
}
.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.service-content .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.service-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.telegram-btn {
  display: inline-block;
  background: #6c47ff;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: opacity 0.2s;
}
.telegram-btn:hover {
  opacity: 0.9;
}
.service-video {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-video video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .service-block {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px; /* Отступы по бокам на мобильных */
  }
  .service-video {
    order: -1;
    margin-bottom: 20px;
  }
  .service-content h3 {
    font-size: 1.3rem;
  }
  .service-content .subtitle {
    font-size: 1rem;
  }
}
/* Десктоп: кнопки на всю ширину колонок */
.service-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  width: 100%;
}

.service-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.service-links a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 2px solid;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.service-block-purple .service-links a {
  color: white;
  border-color: white;
}
.service-block-white .service-links a {
  color: #6c47ff;
  border-color: #6c47ff;
}

.service-block-purple .service-links a:hover {
  background-color: white;
  color: #6c47ff;
}
.service-block-white .service-links a:hover {
  background-color: #6c47ff;
  color: white;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .service-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* центрирует все кнопки */
    gap: 12px;
    width: 100%;
  }

  .service-links a {
    width: 80%;
    padding: 8px 14px;
    font-size: 0.875rem;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
  }
}

/* Цвета для фиолетового и белого блоков */
.service-block-purple .service-links a {
  color: white;
  border-color: white;
  background: transparent;
}
.service-block-white .service-links a {
  color: #6c47ff;
  border-color: #6c47ff;
  background: transparent;
}

/* Hover-эффекты */
.service-block-purple .service-links a:hover {
  background-color: white;
  color: #6c47ff;
}
.service-block-white .service-links a:hover {
  background-color: #6c47ff;
  color: white;
}

/* === Адаптивность: мобильные устройства === */
@media (max-width: 768px) {
  .service-links {
    flex-direction: column;
    gap: 12px; /* меньше отступ между кнопками */
  }

  .service-links a {
    padding: 8px 14px; /* меньше padding */
    font-size: 0.875rem; /* чуть мельче шрифт */
    border-radius: 10px;
  }
}
/* Цвет текста и фона на белом блоке */
.service-block-white .service-links a {
  color: #6c47ff;
  border-color: #6c47ff;
}

/* Ховер-эффекты */
.service-block-purple .service-links a:hover {
  background-color: white;
  color: #6c47ff;
}

.service-block-white .service-links a:hover {
  background-color: #6c47ff;
  color: white;
}
/* Кнопка Telegram под ссылками */
.service-telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

/* Стиль на фиолетовом фоне */
.service-block-purple .service-telegram-btn {
  background: white;
  color: #6c47ff;
}
.service-block-purple .service-telegram-btn:hover {
  background: #e0d6ff;
  color: #4a2cbf;
}

/* Стиль на белом фоне */
.service-block-white .service-telegram-btn {
  background: #6c47ff;
  color: white;
  border: 2px solid #6c47ff;
}
.service-block-white .service-telegram-btn:hover {
  background: white;
  color: #6c47ff;
}
/* Дизайн и производство рекламной продукции */
.print-production {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
 
}
/* Скругление фоновых видео в типографии и фото/видео */
.print-bg,
.production-bg {
  border-radius: 20px;
  overflow: hidden;
}

/* Фоновое видео */
.print-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.print-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}
.print-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #6627FF;
  opacity: 0.6;
  z-index: 1;
}

/* Заголовок и кнопка */
.print-header {
  text-align: center;
  margin-bottom: 40px;
}
.print-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}
.print-header .subtitle {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Сетка услуг */
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.print-column {
  background: rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.print-column h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: white;
}
.print-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.print-column li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.print-column a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: opacity 0.2s;
}
.print-column a:hover {
  opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
  .print-header {
    text-align: center;
  }
  .print-header h2 {
    font-size: 2rem;
  }
  .print-grid {
    grid-template-columns: 1fr;
  }
  .print-column {
    padding: 20px;
  }
}
/* Фото&видео продакшн */
.photo-video-production {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: #333; /* Темный текст */
}
/* Скругление фоновых видео в типографии и фото/видео */
.print-bg,
.production-bg {
  border-radius: 20px;
  overflow: hidden;
}

/* Фоновое видео */
.production-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.production-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Прозрачность 40% */
}


/* Заголовок и кнопка */
.production-header {
  text-align: center;
  margin-bottom: 40px;
}
.production-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}
.production-header .subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.telegram-btn {
  display: inline-block;
  background: #6c47ff;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.telegram-btn:hover {
  opacity: 0.9;
}

/* Сетка услуг */
.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.production-column {
  background: transparent; /* Прозрачный фон */
  padding: 24px;
  border-radius: 12px;
}
.production-column h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #333;
}
.production-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.production-column li {
  margin-bottom: 10px;
  line-height: 1.5;
}
.production-column a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.production-column a:hover {
  color: #6c47ff;
}

/* Адаптивность */
@media (max-width: 768px) {
  .production-header h2 {
    font-size: 2rem;
  }
  .production-grid {
    grid-template-columns: 1fr;
  }
}
   /* О нас */
.about {
  padding: 80px 0;
  background: #fff;
}
.container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    max-width: 95%;
    padding: 0 10px; /* чуть меньше отступы, чтобы не упиралось */
  }
}
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 300px;
}
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-text .process {
  color: #6c47ff;
  font-weight: 600;
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.telegram-btn {
  display: inline-block;
  background: #6c47ff;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: opacity 0.2s;
}
.telegram-btn:hover {
  opacity: 0.9;
}
.about-video {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-video video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column; /* Ставим колонку */
    align-items: center; /* Центрируем по горизонтали */
    text-align: center; /* Центрируем текст */
  }
  .about-text {
    order: 1; /* Текст сверху */
  }
  .about-video {
    order: -1; /* Видео выше текста */
    width: 100%; /* На мобилке видео — 100% ширины */
    max-width: 100%;
  }
  .about-video video {
    max-width: 100%;
    height: auto;
  }
}