/* ========== css/style.css ========== */
:root {
  --color-bg: #f4f7fb;
  --color-white: #ffffff;
  --color-dark: #0b1a2e;
  --color-accent: #0057b3;
  --color-accent-light: #3377cc;
  --color-secondary: #e64a19; /* оранжевый */
  --color-text: #1f2a3f;
  --color-text-light: #4a5568;
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --shadow: 0 20px 35px -8px rgba(0, 40, 80, 0.2);
  --shadow-hover: 0 25px 45px -8px rgba(0, 87, 179, 0.25);
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== ШАПКА С ЛОГОТИПОМ ===== */
.header {
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo__image {
  height: 50px;
  width: auto;
  display: block;
}
.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}
.nav__link:hover {
  color: var(--color-accent);
}
.btn--small {
  background-color: var(--color-accent);
  color: white;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color var(--transition), box-shadow var(--transition);
}
.btn--small:hover {
  background-color: var(--color-accent-light);
  box-shadow: 0 8px 16px -6px rgba(0,87,179,0.4);
}

/* ===== ГЕРОЙ ===== */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f5fe 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 48px;
}
.hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-dark);
}
.hero__subtitle-top {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.tag {
  background: white;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,87,179,0.1);
}
.tag strong {
  color: var(--color-accent);
  font-weight: 700;
}
/* Преимущества */
.hero__benefits {
  background: rgba(0,87,179,0.03);
  border-left: 4px solid var(--color-secondary);
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.benefit-main {
  font-size: 1.1rem;
  margin-bottom: 12px;

  align-items: center;
  gap: 8px;
}
.benefit-main:last-child { margin-bottom: 0; }
.benefit-main strong {
  color: var(--color-accent);
  font-weight: 700;
}

.hero__features {
  list-style: none;
  margin-bottom: 32px;
}
.hero__features li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn--large {
  display: inline-block;
  background-color: var(--color-secondary);
  color: white;
  padding: 18px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 15px 25px -10px #e64a1980;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn--large:hover {
  transform: scale(1.02);
  box-shadow: 0 22px 35px -12px #e64a19b3;
}
.hero__image {
  display: flex;
  justify-content: center;
}
.stats-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
  width: 100%;
  max-width: 300px;
}
.stat-item {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0,87,179,0.2);
}
.stat-item:last-child { border-bottom: none; }
.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stat-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* СЛАЙДЕР */
.slider-container {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,87,179,0.15);
}
.slider-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 24px;
}
.heroSwiper {
  width: 100%;
  padding-bottom: 40px !important;
}
.swiper-slide {
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,87,179,0.15);
}
.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
}
.slide-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.slide-link p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--color-accent);
}
.swiper-button-prev, .swiper-button-next {
  color: var(--color-accent) !important;
  background: white;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.swiper-button-prev:after, .swiper-button-next:after {
  font-size: 1.2rem !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
}

/* ===== О КОМПАНИИ ===== */
.about {
  background-color: var(--color-white);
  padding: 80px 0;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  border-left: 8px solid var(--color-accent);
  padding-left: 24px;
}
.about__content {
  max-width: 900px;
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
  background: #f9fcff;
  padding: 32px;
  border-radius: var(--border-radius-sm);
  box-shadow: inset 0 1px 4px #fff, 0 6px 12px rgba(0,40,70,0.05);
}
.about__extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.extra-card {
  background: #eef4fc;
  border-radius: var(--border-radius-sm);
  padding: 32px;
  transition: var(--transition);
}
.extra-card:hover {
  background: #e3ecf9;
  box-shadow: var(--shadow-hover);
}
.extra-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

/* ===== СЕРВИС ===== */
.service {
  background: linear-gradient(135deg, #0b1a2e 0%, #12314e 100%);
  color: white;
  padding: 80px 0;
}
.section-title--light {
  color: white;
  border-left-color: var(--color-secondary);
}
.service__intro {
  font-size: 1.3rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 800px;
}
.service__extended {
  background: rgba(255,255,255,0.05);
  border-radius: var(--border-radius);
  padding: 32px;
  margin-bottom: 40px;
  border-left: 5px solid var(--color-secondary);
}
.service__extended p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  opacity: 0.95;
}
.service__extended p:last-child {
  margin-bottom: 0;
}
.service__highlight {
  font-weight: 600;
  color: #ffb89a;
  font-size: 1.2rem;
}
.service__reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.reason-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(5px);
  padding: 32px 24px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.reason-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-5px);
}
.reason-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.reason-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.service__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 48px 0;
  background: rgba(0,0,0,0.2);
  border-radius: var(--border-radius);
  padding: 40px;
}
.details-col h4 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--color-secondary);
}
.details-col ul {
  list-style: none;
}
.details-col li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.details-col li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
}
.service__cta {
  text-align: center;
  margin-top: 40px;
  background: rgba(230,74,25,0.15);
  padding: 48px 32px;
  border-radius: var(--border-radius);
}
.cta-text {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

/* ===== КОНТАКТЫ (обновленные) ===== */
.contacts {
  background-color: var(--color-white);
  padding: 80px 0;
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contacts__info {
  background: #f4f9ff;
  padding: 40px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
}
.contacts__info p {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,87,179,0.1);
  padding-bottom: 16px;
}
.contacts__info a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.contacts__info a:hover {
  text-decoration: underline;
}
.telegram-card {
  background: linear-gradient(145deg, #f1f7ff, #ffffff);
  border: 2px solid #27a6e5;
  border-radius: var(--border-radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.telegram-icon {
  font-size: 4rem;
}
.telegram-card h3 {
  font-size: 2rem;
  color: var(--color-dark);
  margin: 16px 0 16px;
}
.telegram-card p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}
.btn--telegram {
  display: inline-block;
  background-color: #27a6e5;
  color: white;
  padding: 16px 42px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: 0 10px 20px -8px #27a6e5b3;
}
.btn--telegram:hover {
  background-color: #1d8ecb;
}
.note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #888;
}

/* ===== ПОДВАЛ ===== */
.footer {
  background-color: #0b1a2e;
  color: #9aaebf;
  padding: 32px 0;
  text-align: center;
}
.footer a {
  color: var(--color-accent-light);
  text-decoration: none;
}
.footer__inner p {
  margin: 8px 0;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.2rem; }
  .service__reasons, .about__extra, .service__details, .contacts__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header__inner { flex-wrap: wrap; }
  .btn--large { font-size: 1rem; padding: 16px 24px; }
  .stats-card { max-width: 100%; }
  .heroSwiper .swiper-slide { width: 280px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 2rem; }
  .logo__image { height: 40px; }
}

/* Фиксированные размеры слайдов */
  .mySwiper .swiper-slide {
    width: calc(25% - 15px); /* 4 в ряд с учетом отступов */
    aspect-ratio: 4/3; /* одинаковое соотношение сторон */
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* все картинки подгоняются под размер */
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .mySwiper .swiper-slide img:hover {
    transform: scale(1.03);
  }
  
  /* Настройки слайдера */
  .mySwiper {
    padding: 20px 40px 50px !important;
  }
  
  .mySwiper .swiper-wrapper {
    align-items: center;
  }
  
  /* Стили попапа */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .lightbox-close:hover {
    color: #e64a19;
  }
  
  /* Адаптация для мобильных */
  @media (max-width: 768px) {
    .mySwiper .swiper-slide {
      width: calc(50% - 10px); /* на мобильных 2 в ряд */
    }
  }
  
  @media (max-width: 480px) {
    .mySwiper .swiper-slide {
      width: 100%; /* на маленьких 1 в ряд */
    }
  }