:root {
  --bg: #e7ecf3;
  --surface: #ffffff;
  --surface-soft: #f2f5fa;
  --text: #162235;
  --muted: #4e5d75;
  --accent: #2f4f78;
  --accent-dark: #203754;
  --line: #d4dde9;
  --radius: 12px;
  --shadow: 0 10px 24px rgba(18, 35, 58, 0.1);
  --shadow-heavy: 0 16px 34px rgba(12, 28, 52, 0.18);
  --header-height-scale: 1.9;
  --header-type-scale: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #f6f8fb 0%, var(--bg) 55%, #e2e8f0 100%);
  line-height: 1.5;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid #304863;
  box-shadow: 0 8px 18px rgba(10, 23, 41, 0.26);
  overflow: hidden;
  background: linear-gradient(90deg, #182a41 0%, #233954 100%);
}
.header-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.header-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center center;
}
.header-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 28, 0.68) 0%,
    rgba(12, 24, 42, 0.52) 55%,
    rgba(14, 28, 48, 0.58) 100%
  );
}
.header-body {
  position: relative;
  z-index: 2;
}
.header-inner {
  min-height: calc(68px * var(--header-height-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo { text-decoration: none; color: #f1f5fb; display: flex; flex-direction: column; line-height: 1.1; font-size: 1rem; }
.logo-main { font-weight: 800; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); font-size: calc(1em * var(--header-type-scale)); }
.logo-main span { color: #c8d6ea; }
.logo-note { font-size: calc(12px * var(--header-type-scale)); color: #c7d4ea; margin-top: calc(2px * var(--header-type-scale)); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: #dde7f5;
  text-decoration: none;
  font-weight: 600;
  font-size: calc(1rem * var(--header-type-scale));
  padding: calc(9px * var(--header-height-scale)) calc(12px * var(--header-height-scale));
  border-radius: 10px;
  border: 1px solid transparent;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(206, 220, 241, 0.18);
}
.header-contacts {
  border-top: 1px solid rgba(199, 212, 234, 0.16);
  padding: calc(8px * var(--header-height-scale)) 0;
  font-size: 14px;
  color: #c1cee2;
}
.header-contacts a { color: #ffffff; text-decoration: none; }
.header-contacts-tg {
  margin-top: calc(6px * var(--header-height-scale));
  padding-top: calc(6px * var(--header-height-scale));
  border-top: 1px solid rgba(199, 212, 234, 0.12);
}
.header-contacts-tg a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.header-social-icon,
.header-telegram-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}
.header-contacts .container { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

section { padding: 18px 0; }
.hero { padding-top: 40px; }
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-heavy);
  padding: 28px;
  border: 1px solid #d4ddea;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.4px;
  font-weight: 780;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  color: #1a3357;
  letter-spacing: 0.25px;
  font-weight: 760;
}

h3 {
  letter-spacing: 0.2px;
  font-weight: 700;
}
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.badge {
  font-size: 14px;
  border: 1px solid #d2dce9;
  background: #edf2f8;
  color: #324a69;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, #2a466b 0%, #355983 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 63, 94, 0.28);
}
.btn-secondary {
  background: linear-gradient(90deg, #3d4f67 0%, #4a607d 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(33, 48, 70, 0.22);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cards-contacts-layout { grid-template-columns: 1fr 1fr; }
.card {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid #d4ddea;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; }

label { font-size: 14px; font-weight: 600; }

.form-telegram-hint {
  margin: -2px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #0c4a6e;
}

.form-telegram-hint a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.form-telegram-hint a:hover {
  text-decoration: underline;
}

input, textarea, select {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #c4cfdf;
  border-radius: 10px;
  background: #fcfdff;
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2f4f78;
  box-shadow: 0 0 0 3px rgba(47, 79, 120, 0.14);
}
textarea { resize: vertical; min-height: 84px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--muted); margin: 4px 0 10px; }
.consent input[type="checkbox"] { width: auto; margin: 3px 0 0; }
.ok { color: #15803d; font-weight: 700; display: none; }
.err { color: #b91c1c; font-weight: 700; display: none; }

.footer {
  margin-top: 24px;
  border-top: 1px solid #304a67;
  padding: 24px 0 34px;
  color: #ced8e7;
  background: linear-gradient(90deg, #182a41 0%, #233954 100%);
}
.footer a { color: #ffffff; text-decoration: none; }

@media (max-width: 950px) {
  :root {
    --header-height-scale: 1;
  }
  h1 {
    max-width: 100%;
    font-size: clamp(22px, 5.2vw, 42px);
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
  }
  .cards, .cards-4 { grid-template-columns: 1fr; }
  .cards.cards-contacts-layout { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: calc(12px * var(--header-height-scale)) 0; }
  .nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .header-video {
    display: none;
  }
  .header-bg-shade {
    background: linear-gradient(90deg, #182a41 0%, #233954 100%);
    opacity: 1;
  }
}
