/* ============================================================
   Мобильные стили — применяются при ширине ≤ 768px
   ============================================================ */

/* Плавный скролл по якорям */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.4;
}

/* ================== Хедер ================== */
.logo {
  height: 35px;
}

/* Скрываем десктоп-навигацию и кнопки хедера */
.nav,
.header .btn.btn-primary,
.header-actions {
  display: none;
}

/* Бургер */
.burger {
  display: block;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: #333;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Мобильное меню */
.nav-mobile {
  position: absolute;
  top: 75px;
  right: 0;
  width: 80%;
  max-width: 300px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
}
.nav-mobile.active {
  transform: scaleY(1);
  opacity: 1;
}
.nav-mobile a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #0D9FCE;
  text-decoration: none;
  margin: 12px 0;
  transition: color 0.3s ease, transform 0.2s ease;
}
.nav-mobile a:hover {
  color: #075068;
  transform: translateX(5px);
}
.nav-mobile .btn.btn-primary {
  display: inline-block;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 24px;
  background: linear-gradient(92.59deg, #0D9FCE 0.93%, #075068 99.57%);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}
.nav-mobile .btn.btn-primary:hover {
  background: linear-gradient(92.59deg, #075068 0.93%, #0D9FCE 99.57%);
  transform: scale(1.05);
}

/* ================== Hero ================== */
.hero {
  background: none;
  padding: 100px 20px 20px;
  text-align: center;
}
.hero-content {
  display: block;
}
.hero-text {
  margin: 0 auto;
  z-index: 2;
  position: relative;
}
.hero-text h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0D9FCE;
}
.hero-text p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}
.hero-text .btn-accent {
  font-size: 16px;
  padding: 10px 18px;
}
.hero-image {
  display: none;
}

/* ================== Новости (отдельная страница) ================== */
.news-page {
  padding-top: 100px;
}

/* ================== Секции ================== */
#service h2,
#equipment h2 {
  font-size: 26px;
  text-align: center;
}
#service .section-subtext,
#equipment .section-subtext {
  font-size: 14px;
  text-align: center;
}

/* Сетки (flex-контейнеры — grid-template не нужен) */
.how-card {
  flex: 1 1 100%;
}
.device-card {
  width: 100%;
  max-width: 100%;
  text-align: center;
}
.device-card .btn.btn-primary {
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================== Зона покрытия ================== */
.coverage-map {
  padding: 24px;
  min-height: 220px;
  border-radius: 20px;
}
.coverage-placeholder {
  font-size: 16px;
}

/* ================== Форма заявки ================== */
.contact h2 {
  font-size: 26px;
}
.contact-form {
  padding: 20px;
}
.form-group label {
  font-size: 14px;
}
.form-group input {
  font-size: 14px;
  padding: 10px 12px;
  width: 90%;
}
.form-actions button {
  font-size: 14px;
  width: 100%;
}

/* ================== Кнопка "Наверх" ================== */
#scroll-top {
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* ================== Футер ================== */
.footer-wrapper {
  flex-direction: column;
  text-align: center;
}
.footer-logo {
  height: 60px;
}
.footer-subtext,
.footer-info {
  font-size: 12px;
}
.footer-label {
  font-size: 14px;
}
.footer-social-icons {
  justify-content: center;
}
.footer-contact {
  justify-content: center;
}
