/* Основные переменные */
:root {
  --primary: #0066cc; /* Основной голубой */
  --accent: #00bfa5;  /* Дополнительный бирюзовый */
  --text: #222;
  --bg: #f9f9f9;
  --red: #d32f2f;     /* Красный для заголовков */
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Голубой фон */
.blue-bg {
  background: linear-gradient(135deg, #e0f7fa, #eaf4fc);
  padding: 80px 0;
}

/* Обёртка секций */
.section-container {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* Header */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header.sticky {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* Логотип */
.logo a {
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--red);
}

/* Меню */
.menu ul {
  display: flex;
  list-style: none;
  align-items: center;
}
.menu ul li {
  margin: 0 15px;
}
.menu ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}
.menu ul li a:hover {
  color: var(--primary);
}

/* Контактная информация */
.contact-info {
  text-align: left;
  font-size: 18px;
  line-height: 1.2;
}
.contact-info a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: block;
  margin: 2px 0;
}

/* Бургер-меню */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
#hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.58); /* затемнение видео */
  z-index: 1;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.hero-content-overlay {
  width: 100%;
  max-width: 700px;
  min-height: 120px;
  background: linear-gradient(90deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 100%);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,32,64,0.10);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  word-break: break-word;
  min-height: 3em;
  letter-spacing: 0.01em;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
  text-align: left;
}
.hero-content p.hero-subtext {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  word-break: break-word;
  opacity: 0;
  transition: opacity 1s ease-in;
  animation: fadeInUp 1.8s cubic-bezier(.4,0,.2,1);
  text-align: left;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .hero-content {
    align-items: flex-start;
    text-align: left;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    max-width: 98vw;
    padding: 24px 4vw;
  }
  .hero-content-overlay {
    left: 0;
    right: auto;
    max-width: 98vw;
  }
  .hero-content h1, .hero-content p.hero-subtext {
    text-align: left;
  }
}

/* Кнопка */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Секции */
.section {
  padding: 60px 0;
}
.section h2,
.section h3 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--red);
  font-weight: 600;
}

/* Преимущества */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}
.adv-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.adv-card:hover {
  transform: translateY(-5px);
}
.adv-card .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- ЧИСТЫЙ СТИЛЬНЫЙ СЛАЙДЕР "НАШИ УСЛУГИ" --- */
.services-slider {
  width: 100%;
  margin: 0 auto 32px auto;
  box-sizing: border-box;
}
.services-slider .swiper-wrapper {
  width: 100%;
  align-items: stretch;
}
.services-slider .swiper-slide {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fafdff 60%, #eaf4fc 100%);
  box-shadow: 0 6px 32px 0 rgba(0,32,64,0.13);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 0;
}
.slide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 28px 18px 32px 18px;
  background: #f3f8fc;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(0,32,64,0.10);
  border-top: 5px solid #d32f2f;
  box-sizing: border-box;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  background-clip: padding-box;
}
.slide-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,32,64,0.16);
  transform: translateY(-4px) scale(1.03);
}
.slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  display: block;
  background: #fff;
  margin: 0;
  box-shadow: none;
}
.slide-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  margin: 18px 18px 8px 18px;
  color: #d32f2f;
  letter-spacing: 0.01em;
  text-align: center;
}
.slide-desc {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #003366;
  margin: 0 18px 24px 18px;
  line-height: 1.5;
  word-break: break-word;
  text-align: center;
}
.swiper-button-prev, .swiper-button-next {
  background: none !important;
  color: #0093d3 !important;
  border: none;
  box-shadow: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.swiper-button-prev:after, .swiper-button-next:after {
  font-size: 2.2rem;
  font-weight: bold;
  color: #0093d3;
  text-shadow: none;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
  opacity: 1;
  color: #005b8c !important;
}
.swiper-button-prev:active, .swiper-button-next:active {
  opacity: 0.5;
}
@media (max-width: 1024px) {
  .slide-card {
    padding: 24px 10px 28px 10px;
  }
  .slide-img {
    height: 150px;
  }
}
@media (max-width: 700px) {
  .services-slider {
    width: 105vw;
    max-width: 105vw;
    margin-left: -2.5vw;
    margin-right: -2.5vw;
    padding: 0;
  }
  .services-slider .swiper-slide {
    border-radius: 14px;
  }
  .slide-card {
    padding: 12px 4vw 18px 4vw;
    border-radius: 14px;
  }
  .slide-img {
    border-radius: 14px 14px 0 0;
    height: 90px;
    max-width: 100vw;
    margin-bottom: 14px;
  }
  .slide-title {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }
  .slide-desc {
    font-size: 0.98rem;
  }
  .swiper-button-prev, .swiper-button-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
@media (max-width: 400px) {
  .slide-img {
    height: 60px;
  }
}
/* --- КОНЕЦ ЧИСТОГО СТИЛЯ ДЛЯ СЛАЙДЕРА --- */

/* Исправление: slide-card и slide-img должны быть адаптивными и занимать всю ширину слайда */
.swiper-slide .slide-card {
  background: #f3f8fc;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(0,32,64,0.10);
  border-top: 5px solid #d32f2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 28px 18px 32px 18px;
  box-sizing: border-box;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  background-clip: padding-box;
}
.swiper-slide .slide-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,32,64,0.16);
  transform: translateY(-4px) scale(1.03);
}
.swiper-slide .slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  display: block;
  background: #fff;
  margin: 0;
  box-shadow: none;
}
.swiper-slide .slide-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  margin: 18px 18px 8px 18px;
  color: #d32f2f;
  letter-spacing: 0.01em;
  text-align: center;
}
.swiper-slide .slide-desc {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #003366;
  margin: 0 18px 24px 18px;
  line-height: 1.5;
  word-break: break-word;
  text-align: center;
}

/* Удаляем сброс all: unset для slide-card, slide-img, slide-title, slide-desc */
.modern-slider, .slider-viewport, .slider-track, .slider-btn {
  all: unset;
}

/* Сохраняем стили slide-card для карточек Swiper */
.swiper-slide .slide-card {
  background: #f3f8fc;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(0,32,64,0.10);
  border-top: 5px solid #d32f2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 28px 18px 32px 18px;
  box-sizing: border-box;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  background-clip: padding-box;
}
.swiper-slide .slide-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,32,64,0.16);
  transform: translateY(-4px) scale(1.03);
}
.swiper-slide .slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  display: block;
  background: #fff;
  margin: 0;
  box-shadow: none;
}
.swiper-slide .slide-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  margin: 18px 18px 8px 18px;
  color: #d32f2f;
  letter-spacing: 0.01em;
  text-align: center;
}
.swiper-slide .slide-desc {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #003366;
  margin: 0 18px 24px 18px;
  line-height: 1.5;
  word-break: break-word;
  text-align: center;
}

@media (max-width: 700px) {
  .swiper-slide .slide-card {
    padding: 12px 4vw 18px 4vw;
  }
  .swiper-slide .slide-img {
    max-width: 70vw;
  }
  #services-slider {
    max-width: 100vw;
    width: 100vw;
    margin-left: -5vw;
    margin-right: -5vw;
    padding-left: 0;
    padding-right: 0;
  }
  #services-slider .services-swiper {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  #services-slider .swiper-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .services-slider {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .services-slider .swiper-wrapper {
    width: 100%;
  }
  .services-slider .swiper-slide {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Аккордеон (FAQ) */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.accordion-header:hover {
  background: #f1f1f1;
}
.accordion-header h3 {
  font-size: 1.1rem;
}
.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
}
.accordion-item.active .accordion-content {
  padding: 15px;
  max-height: 300px;
}

/* О компании */
/* Стили для секции "О компании" (mobile-first) */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  max-width: 100%;
}

.about-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-link h3 {
  font-size: 1.2rem;
  color: #0066cc;
  margin-bottom: 8px;
}

.about-link p {
  font-size: 1rem;
  color: #333;
}

.about-link .btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #0066cc, #00bfa5);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-link .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Адаптивные стили для планшетов и десктопов */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 40px;
  }

  .about-text {
    font-size: 1.1rem;
    max-width: 60%;
  }

  .about-link {
    align-items: flex-start;
  }

  .about-link h3 {
    font-size: 1.5rem;
  }

  .about-link p {
    font-size: 1.2rem;
  }
}

/* Подвал */
footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.footer-left {
  flex: 0 0 40%;
  max-width: 40%;
  text-align: center;
}
.footer-map {
  flex: 0 0 60%;
  max-width: 60%;
  text-align: center;
}
footer p, footer a {
  margin: 5px 0;
}
footer a {
  text-decoration: none;
  color: var(--accent);
}
.footer-info,
.footer-copy,
.footer-social {
  margin-bottom: 10px;
}
.footer-map iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 8px;
}

/* Фиксированная кнопка заказа */
.fixed-order-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 20px 30px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1500;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.fixed-order-btn:hover {
  transform: scale(1.05);
}
.fixed-order-btn .btn-icon {
  display: none;
}
.fixed-order-btn .btn-text {
  display: inline-block;
}

/* Плавное появление */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Попап заказа */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.popup.active {
  display: flex;
  opacity: 1;
}
.popup-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 40px;
  animation: popupShow 0.4s ease forwards;
}
.popup-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--red);
  text-align: center;
}
.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.popup-content input,
.popup-content textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  resize: none;
}
.popup-content button.btn {
  margin-top: 10px;
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}
@keyframes popupShow {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Мобильные стили */
@media(max-width: 768px) {
  /* Фиксированный контейнер для бургер-меню (одинаковая ширина, синий контур) */
  .menu ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px; /* фиксированная ширина */
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 5px 0;
  }
  .menu ul.show {
    display: flex;
  }
  .burger {
    display: flex;
  }
  .header-container {
    flex-wrap: wrap;
  }
  #hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    text-align: center;
  }
  .hero-content {
    width: 90%;
    padding: 0;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p.hero-subtext {
    font-size: 1rem;
  }
  /* Кнопки внутри бургер-меню */
  .menu ul li {
    margin: 0; /* убираем внешний отступ, чтобы они шли ровно */
  }
  .menu ul li:not(:last-child) a {
    border-bottom: 1px solid var(--primary);
  }
  .menu ul li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    color: var(--text);
    background: #fff;
    text-decoration: none;
    font-weight: 500;
  }
  /* Фиксированный размер слайдера для мобильной версии */
  .slider-container {
    height: 450px; /* чуть больше, чтобы вместить текст */
    padding: 0 20px;
  }
  .slider {
    height: 100%;
  }
  .slide {
    flex-direction: column;
    text-align: center;
    height: 100%;
    /* Разрешаем прокрутку внутри слайда, если текст не помещается */
    overflow-y: auto;
  }
  .slide-image,
  .slide-content {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 10px 0;
  }
  /* Перенос фиксированной кнопки заказа влево */
  .fixed-order-btn {
    left: 20px;
    right: auto;
    padding: 20px;
    font-size: 1.4rem;
  }
  .fixed-order-btn .btn-text {
    display: none;
  }
  .fixed-order-btn .btn-icon {
    display: inline-block;
  }
  /* Центрирование текста в блоке «О компании» */
  .about-content {
    text-align: center;
  }
  /* Уменьшение размера телефонов в подвале */
  .footer-info p {
    font-size: 0.9rem;
  }
}

/* Оптимизация стилей для блока "О компании" */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.about-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-link h3 {
  font-size: 1.5rem;
  color: #0066cc;
  margin-bottom: 10px;
}

.about-link p {
  font-size: 1.2rem;
  color: #333;
}

.about-link .btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #0066cc, #00bfa5);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-link .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .about-content {
    padding: 20px 10px;
  }

  .about-text {
    font-size: 1rem;
  }

  .about-link h3 {
    font-size: 1.3rem;
  }

  .about-link p {
    font-size: 1rem;
  }
}
