/* ============================================================
   PREMIUM DARK BLUE — единая система
   ============================================================ */

:root {
  --primary: #168BFF;
  --primary-dark: #0872DF;
  --primary-light: #38BDF8;
  --navy: #071629;
  --slate: #102B4C;
  --muted: #A9BCD3;
  --text: #F4F8FF;
  --bg: #071629;
  --bg-alt: #0B2038;
  --card: #102B4C;
  --border: rgba(145, 185, 225, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.34);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ctrl: 44px;
}

/* ============================================================
   СБРОС СТИЛЕЙ
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ЛОГОТИП SECURITY
   ============================================================ */

.logo-security {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--ctrl);
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.3px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 139, 255, 0.4);
  }
  60% {
    box-shadow: 0 0 0 12px rgba(22, 139, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 139, 255, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  max-width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 139, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(22, 139, 255, 0.42);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(226, 242, 255, 0.55);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-pulse {
  animation: pulse-glow 3s infinite ease-in-out;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(22, 139, 255, 0.5);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  box-shadow: 0 12px 40px rgba(22, 139, 255, 0.7);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.btn-glow:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-short {
  display: none;
}

/* ============================================================
   БЕЙДЖИ
   ============================================================ */

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(22, 139, 255, 0.14);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.badge-light {
  background: rgba(255, 255, 255, 0.1);
  color: #B9E2FF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(22, 139, 255, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
}

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(7, 22, 41, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 22, 41, 0.97);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #EAF3FF;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary-light);
  background: rgba(22, 139, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #EAF3FF;
  transition: var(--transition);
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

.header-phone:hover {
  color: var(--primary-light);
}

.header-cta-btn {
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--ctrl);
  height: var(--ctrl);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--primary-light);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--primary-light);
}

.mobile-close-btn {
  display: none;
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 20px;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.mobile-close-btn:hover {
  background: var(--primary);
  color: #fff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--navy);
  min-height: 700px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #071629 0%, #102B4C 60%, #0872DF 100%);
}

.hero-fon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
}

.hero-fon-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7, 22, 41, 1) 0%,
      rgba(7, 22, 41, 0.97) 25%,
      rgba(7, 22, 41, 0.88) 40%,
      rgba(7, 22, 41, 0.7) 55%,
      rgba(7, 22, 41, 0.4) 70%,
      rgba(7, 22, 41, 0.15) 85%,
      transparent 100%
    ),
    linear-gradient(0deg,
      rgba(7, 22, 41, 0.5) 0%,
      transparent 30%
    );
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(22, 139, 255, 0.3);
  bottom: -100px;
  right: 10%;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(56, 189, 248, 0.2);
  bottom: -50px;
  right: 30%;
  animation: glowPulse 5s ease-in-out infinite 1s;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-inner {
  position: relative;
  color: var(--text);
  max-width: 820px;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.hero h1 .highlight {
  color: var(--primary-light);
  display: block;
  margin-top: 8px;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(16, 43, 76, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-features li:hover {
  background: rgba(16, 43, 76, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.hf-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(22, 139, 255, 0.15);
  color: var(--primary-light);
}

.hf-ico svg {
  width: 22px;
  height: 22px;
}

.hero-features strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.hero-features li > div > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section {
  padding: 80px 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(4, 15, 30, .88), rgba(5, 22, 42, .78)),
    url("../assets/images/calculator-installation-bg.jpg") center 42% / cover no-repeat;
}
.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  overflow-wrap: break-word;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.light-title {
  color: var(--text);
}

.light-sub {
  color: var(--muted);
}

/* ============================================================
   КАРТОЧКИ
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: var(--text);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(22, 139, 255, 0.15);
  color: var(--primary-light);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ============================================================
   УСЛУГИ С ФОТО
   ============================================================ */

.card-service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card-service:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.svc-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate), var(--navy));
}

.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.card-service:hover .svc-img img {
  transform: scale(1.06);
}

.svc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 41, 0) 0%, rgba(7, 22, 41, 0.4) 100%);
  pointer-events: none;
}

.svc-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price {
  font-weight: 800;
  color: var(--primary-light);
  white-space: nowrap;
}

/* ============================================================
   О КОМПАНИИ
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  background: var(--slate);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.about-features li {
  display: flex;
  gap: 14px;
}

.af-ico {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(22, 139, 255, 0.15);
  color: var(--primary-light);
  font-weight: 800;
}

.about-features strong {
  display: block;
  color: var(--text);
}

.about-features p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   ЭТАПЫ
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 30px;
  font-weight: 800;
  color: rgba(22, 139, 255, 0.25);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.step p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */

.calc-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.calc-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.calc-result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.calc-field {
  margin-bottom: 26px;
}

.calc-field > label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
}

.range-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.range-info span:nth-child(2) {
  font-weight: 800;
  color: var(--primary-light);
}

.tariffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tariff {
  position: relative;
}

.tariff input {
  position: absolute;
  opacity: 0;
}

.tariff span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-alt);
  color: var(--text);
}

.tariff span small {
  font-weight: 600;
  color: var(--muted);
}

.tariff input:checked + span {
  border-color: var(--primary);
  background: rgba(22, 139, 255, 0.1);
  color: var(--primary-light);
}

.tariff input:checked + span small {
  color: var(--primary-light);
}

.calc-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  transition: 0.2s;
}

.calc-check:hover {
  border-color: var(--primary);
}

.calc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.calc-result h3 {
  font-size: 16px;
  color: var(--muted);
}

.calc-total {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--primary-light);
  margin: 8px 0 20px;
}

.calc-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
  color: var(--text);
}

.calc-lines li span:first-child {
  color: var(--muted);
}

.calc-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.review-head strong {
  display: block;
  color: var(--text);
}

.review-head small {
  color: var(--muted);
}

.stars {
  color: var(--primary-light);
  letter-spacing: 3px;
  font-size: 16px;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 139, 255, 0.15);
  color: var(--primary-light);
  font-size: 18px;
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   CTA
   ============================================================ */

.section-cta {
  background: linear-gradient(135deg, #0B2038, #102B4C);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-text h2 {
  color: var(--text);
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 14px;
}

.cta-text p {
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-bullets li {
  position: relative;
  padding-left: 28px;
  color: #E2E8F0;
  margin-bottom: 10px;
}

.cta-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 800;
}

.cta-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.cta-form h3 {
  margin-bottom: 20px;
  color: var(--text);
}

/* ============================================================
   ФОРМЫ
   ============================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--text);
  transition: var(--transition);
}

.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--text);
  transition: var(--transition);
  resize: vertical;
}

.form-group input::placeholder {
  color: #7891AD;
}

.form-group textarea::placeholder {
  color: #7891AD;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--navy);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--navy);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 16px;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.link {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  color: var(--text);
}

.ci {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(22, 139, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-list strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--primary-light);
}

/* ============================================================
   КАРТА
   ============================================================ */

.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #040F1E;
  color: var(--muted);
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-about p {
  font-size: 14px;
  margin: 16px 0 20px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.requisites li {
  font-size: 13.5px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
}

.footer-logo-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
}

/* ============================================================
   КНОПКА НАВЕРХ
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  z-index: 800;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(22, 139, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   МОДАЛКИ
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 18, 0.85);
  backdrop-filter: blur(4px);
}

@keyframes modal-spring {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text);
}

.modal.open .modal-dialog {
  animation: modal-spring 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-dialog h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--text);
}

.modal-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.selected-chip {
  display: inline-block;
  background: rgba(22, 139, 255, 0.15);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.exit-dialog {
  border-top: 4px solid var(--primary);
}

.exit-bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 139, 255, 0.12);
  border: 1px solid rgba(22, 139, 255, 0.3);
  color: var(--primary-light);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 14px;
}

.exit-bonus .ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary-light);
}

/* ============================================================
   СВЕТЛЫЕ МОДАЛКИ ДОКУМЕНТОВ
   ============================================================ */

.modal-doc-light {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: none !important;
  max-width: 720px !important;
}

.modal-doc-light .modal-doc-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.modal-doc-light .modal-doc-header h3 {
  color: #111827 !important;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-doc-light .doc-date {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.modal-doc-light .modal-doc-body {
  color: #4b5563 !important;
  padding-top: 16px;
}

.modal-doc-light .modal-doc-body h4 {
  color: #111827 !important;
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.modal-doc-light .modal-doc-body h4:first-child {
  margin-top: 8px;
}

.modal-doc-light .modal-doc-body p {
  color: #4b5563 !important;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.modal-doc-light .modal-doc-body ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0 16px;
}

.modal-doc-light .modal-doc-body li {
  color: #4b5563 !important;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-doc-light .modal-doc-body li strong {
  color: #111827 !important;
  font-weight: 700;
}

.modal-doc-light .modal-doc-body .doc-link {
  color: var(--primary) !important;
  text-decoration: underline;
}

.modal-doc-light .modal-doc-body .doc-link:hover {
  color: var(--primary-dark) !important;
}

.modal-close-light {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

.modal-close-light:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

/* ============================================================
   REVEAL АНИМАЦИИ
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="200"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="300"] {
  transition-delay: 0.3s;
}

.reveal[data-delay="400"] {
  transition-delay: 0.4s;
}

/* ============================================================
   АДАПТИВ — 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .header-inner {
    height: 60px;
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-phone {
    width: var(--ctrl);
    height: var(--ctrl);
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
  }

  .header-phone span {
    display: none;
  }

  .header-phone svg {
    width: 20px;
    height: 20px;
  }

  .header-cta-btn {
    height: var(--ctrl);
    padding: 0 14px;
    font-size: 13px;
    border-radius: 12px;
    border-width: 0;
  }

  .burger {
    display: flex;
    width: var(--ctrl);
    height: var(--ctrl);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - 60px);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 40px 24px 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 950;
  }

  .main-nav.mobile-open {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  .main-nav.mobile-open .mobile-close-btn {
    display: flex;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover {
    color: var(--primary-light);
    background: transparent;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-wrap {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-container {
    height: 350px;
  }

  .hero-fon {
    width: 100%;
    object-position: center;
  }

  .hero-fon-overlay {
    background:
      linear-gradient(90deg,
        rgba(7, 22, 41, 1) 0%,
        rgba(7, 22, 41, 0.95) 35%,
        rgba(7, 22, 41, 0.75) 55%,
        rgba(7, 22, 41, 0.4) 75%,
        rgba(7, 22, 41, 0.1) 90%,
        transparent 100%
      ),
      linear-gradient(0deg, rgba(7, 22, 41, 0.5) 0%, transparent 30%);
  }
}

/* ============================================================
   АДАПТИВ — 768px
   ============================================================ */

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

  .hero-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .svc-img {
    height: 180px;
  }

  .hero-fon {
    width: 100%;
    opacity: 1;
    object-position: center;
  }

  .hero-fon-overlay {
    background:
      linear-gradient(180deg,
        rgba(7, 22, 41, 0.92) 0%,
        rgba(7, 22, 41, 0.8) 40%,
        rgba(7, 22, 41, 0.7) 70%,
        rgba(7, 22, 41, 0.95) 100%
      );
  }

  .hero h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* ============================================================
   АДАПТИВ — 640px
   ============================================================ */

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

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .map-container {
    height: 280px;
  }
}

/* ============================================================
   АДАПТИВ — 480px
   ============================================================ */

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-title {
    font-size: 15px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  .header-cta-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .btn-full {
    display: none;
  }

  .btn-short {
    display: inline;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tariffs {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 0 56px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .svc-img {
    height: 170px;
  }

  .svc-label {
    font-size: 12px;
    padding: 5px 12px;
    bottom: 10px;
    left: 10px;
  }

  .modal-dialog {
    padding: 28px 20px;
  }

  .about-img {
    height: 260px;
  }

  .map-container {
    height: 240px;
  }

  .modal {
    padding: 12px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  .modal-doc-light {
    max-width: 100% !important;
  }

  .modal-doc-light .modal-doc-header {
    padding: 24px 20px 16px;
  }

  .modal-doc-light .modal-doc-header h3 {
    font-size: 20px;
  }

  .modal-doc-light .modal-doc-body {
    padding: 16px 20px 24px;
  }
}

/* ============================================================
   АДАПТИВ — 360px
   ============================================================ */

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .header-cta-btn {
    padding: 0 8px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .svc-img {
    height: 160px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* ============================================================
   SECURITY VISUAL UPDATE — footer, social links and motion
   ============================================================ */
.hero { isolation: isolate; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(56,189,248,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(56,189,248,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(56,189,248,.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 38% 82%, rgba(56,189,248,.6) 0 1px, transparent 2px);
  background-size: 240px 220px, 310px 270px, 280px 240px, 350px 300px;
  animation: security-particles 18s linear infinite;
}
@keyframes security-particles {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 120px -220px, -180px 270px, 140px -240px, -220px 300px; }
}
.hero-glow { animation: glowPulse 5s ease-in-out infinite, glowDrift 12s ease-in-out infinite alternate; }
@keyframes glowDrift {
  from { translate: -10px 8px; }
  to { translate: 24px -16px; }
}
.card-icon { position: relative; overflow: hidden; }
.card-icon::after {
  content: ""; position: absolute; inset: -60%;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%);
  transform: translateX(-70%) rotate(15deg);
  transition: transform .7s ease;
}
.card:hover .card-icon::after { transform: translateX(70%) rotate(15deg); }
.svc-img::before {
  content: ""; position: absolute; z-index: 1; top: -40%; bottom: -40%; left: -55%; width: 32%;
  transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .8s ease; pointer-events: none;
}
.card-service:hover .svc-img::before { left: 125%; }
.footer {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 78% 0%, rgba(22,139,255,.13), transparent 38%), #040F1E;
}
.footer-ambient { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.footer-ambient span {
  position:absolute; width:170px; height:170px; border:1px solid rgba(56,189,248,.12);
  border-radius:50%; right:8%; top:8%; animation: footer-orbit 16s linear infinite;
}
.footer-ambient span:nth-child(2) { width:260px; height:260px; right:4%; top:-5%; animation-duration:24s; }
.footer-ambient span:nth-child(3) { width:90px; height:90px; right:27%; top:35%; animation-duration:12s; }
@keyframes footer-orbit { to { transform: rotate(360deg) translateX(12px) rotate(-360deg); } }
.footer-grid, .footer-bottom { position:relative; z-index:1; }
.footer-grid { grid-template-columns: 1.55fr 1fr 1.1fr 1fr; gap:30px; }
.footer-about p { max-width:360px; line-height:1.7; }
.footer-logo-wrapper { border:0; background:transparent; padding:0; gap:12px; }
.footer-logo-wrapper .logo-icon { width:46px; height:46px; }
.footer-logo-wrapper .logo-title { letter-spacing:.09em; font-size:20px; }
.footer-logo-wrapper .logo-subtitle { letter-spacing:.08em; font-size:9px; text-transform:uppercase; }
.footer-photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0 22px; max-width:390px; }
.footer-photo-pair figure { min-width:0; overflow:hidden; border-radius:12px; border:1px solid rgba(148,163,184,.2); background:#102B4C; }
.footer-photo-pair img { display:block; width:100%; height:86px; object-fit:cover; transition:transform .6s ease, filter .6s ease; }
.footer-photo-pair figure:hover img { transform:scale(1.08); filter:saturate(1.15); }
.footer-photo-pair figcaption { padding:7px 9px; color:#b7c7d9; font-size:11px; }
.footer-contact-list { gap:10px !important; }
.footer-contact-card {
  display:flex; align-items:center; gap:11px; min-height:62px; padding:10px 12px;
  border:1px solid rgba(148,163,184,.2); border-radius:14px; background:rgba(255,255,255,.035);
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-contact-card:hover { background:rgba(22,139,255,.09); border-color:rgba(56,189,248,.4); transform:translateY(-2px); }
.footer-contact-card b { display:block; color:#eef6ff; font-size:13px; }
.footer-contact-card small { display:block; margin-top:4px; color:#94a8bd; font-size:11px; }
.footer-contact-icon {
  display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:11px;
  color:#38bdf8; background:rgba(22,139,255,.15); font-size:18px;
}
.footer-contact-icon-alt { color:#f59e0b; background:rgba(245,158,11,.12); }
.footer-socials { display:flex; align-items:center; gap:9px; margin-top:16px; }
.footer-socials a {
  display:grid; place-items:center; width:36px; height:36px; border-radius:11px;
  color:#fff; background:linear-gradient(145deg,#168bff,#1764c5);
  box-shadow:0 5px 15px rgba(22,139,255,.2); transition:transform .25s ease, box-shadow .25s ease;
}
.footer-socials a:nth-child(2) { background:linear-gradient(145deg,#213b67,#087ee8); }
.footer-socials a:nth-child(3) { background:linear-gradient(145deg,#2aabee,#168bff); }
.footer-socials a:hover { transform:translateY(-4px) rotate(-4deg); box-shadow:0 9px 22px rgba(22,139,255,.32); }
.footer-socials svg { width:21px; height:21px; }
.max-mark { font-weight:900; font-size:17px; letter-spacing:-2px; }
.footer-docs { gap:12px !important; }
.footer-docs a {
  display:flex; align-items:flex-start; gap:9px; padding:10px 11px; border:1px solid transparent;
  border-radius:10px; color:#c8d6e5; font-size:13px; line-height:1.45;
}
.footer-docs a:hover { border-color:rgba(56,189,248,.4); background:rgba(22,139,255,.08); }
.footer-docs a span { color:#f59e0b; font-size:17px; }
.footer-docs a b { margin-left:auto; color:#38bdf8; }
.footer-requisites-card {
  padding:16px; border-radius:15px; border:1px solid rgba(148,163,184,.2);
  background:rgba(255,255,255,.045); color:#c6d4e2;
}
.footer-requisites-title { display:flex; align-items:center; gap:10px; margin-bottom:16px; color:#f1f7ff; font-size:14px; }
.footer-requisites-title span { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; color:#f59e0b; background:rgba(245,158,11,.12); font-size:18px; }
.footer-requisites-card p { margin:7px 0; font-size:13px; }
.footer-requisites-line { height:1px; background:rgba(148,163,184,.18); margin:14px 0 10px; }
.footer-requisites-card small { color:#8fa4ba; font-size:11px; }
.footer-bottom-inner { color:#8fa4ba; }
@media (max-width:1024px) {
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-photo-pair { max-width:100%; }
  .footer-photo-pair img { height:105px; }
  .footer-bottom-inner { align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-bg::after, .footer-ambient span { animation:none !important; }
  .svc-img::before, .card-icon::after { display:none; }
}

/* ============================================================
   МОБИЛЬНЫЙ КАЛЬКУЛЯТОР — ЦЕНА ВСЕГДА ПЕРЕД ГЛАЗАМИ
   ============================================================ */
@media (max-width: 640px) {
  #calculator .section-head {
    margin-bottom: 22px;
  }

  #calculator .section-head h2 {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.12;
  }

  .calc-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Итог выводим над настройками и удерживаем вверху экрана */
  .calc-result {
    order: -1;
    position: sticky;
    top: 70px;
    z-index: 20;
    padding: 14px 16px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    background: #10263b;
    backdrop-filter: blur(14px);
  }

  .calc-result h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  .calc-total {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .calc-result .calc-lines,
  .calc-result .calc-note {
    display: none;
  }

  .calc-result .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 112px;
    padding: 11px 13px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .calc-form {
    padding: 18px;
    border-radius: 16px;
  }

  .calc-field {
    margin-bottom: 18px;
  }

  .calc-field:last-child {
    margin-bottom: 0;
  }

  .calc-field > label {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .tariffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tariff span {
    min-height: 62px;
    justify-content: center;
    padding: 10px;
    font-size: 13px;
  }

  .tariff span small {
    font-size: 10px;
    line-height: 1.25;
  }

  .calc-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .calc-check {
    min-height: 54px;
    padding: 9px;
    gap: 7px;
    font-size: 11px;
    line-height: 1.25;
  }

  .calc-check input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .calc-result {
    top: 64px;
    padding: 12px;
    column-gap: 8px;
  }

  .calc-result .btn {
    min-width: 100px;
    padding: 10px 9px;
    font-size: 11px;
  }

  .calc-total {
    font-size: 25px;
  }

  .calc-form {
    padding: 14px;
  }

  .calc-check {
    font-size: 10px;
    padding: 8px 6px;
  }
}

/* Обновлённый фирменный знак и контраст калькулятора */
.logo-icon { width: 46px; height: 46px; }
.section-dark .calc-form,
.section-dark .calc-result {
  background: rgba(7, 22, 41, .94);
  border-color: rgba(125, 190, 235, .24);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}
.section-dark .calc-field > label,
.section-dark .calc-result h3,
.section-dark .calc-check,
.section-dark .tariff span { color: #eef7ff; }
.section-dark .tariff span,
.section-dark .calc-check {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.section-dark .tariff input:checked + span {
  background: rgba(22,139,255,.22);
  border-color: #38a9ff;
}
.section-dark .calc-note { color: #c2d4e6; }
.consent .link { color: var(--primary-light); }
.consent { line-height: 1.55; }
