/* ============================================================
   Крымская Федерация гонок дронов (КФГД)
   Стиль по брендбуку ФГДР
   Фирменные цвета: белый #FFFFFF, тёмно-синий #16447B, голубой #4C92CF
   Шрифт: Montserrat (Light — текст, SemiBold — подзаголовки,
          Bold — заголовки 1 уровня, Black — крупные акцентные заголовки)
   ============================================================ */

:root {
  --navy: #16447b;          /* основной тёмно-синий */
  --blue: #4c92cf;          /* голубой акцент */
  --blue-light: #7fb2e0;
  --blue-soft: #eaf2fa;     /* светло-голубой фон секций */
  --white: #ffffff;
  --bg: #ffffff;            /* основной фон — белый */
  --bg-alt: #eaf2fa;        /* альтернативный фон секций — светло-голубой */
  --bg-card: #ffffff;
  --panel: #ffffff;
  --border: #d7e4f2;        /* светлая рамка */
  --border-strong: #c2d8ec;
  --text: #16447b;          /* основной текст — тёмно-синий */
  --text-muted: #2e5a8f;    /* приглушённый текст (достаточный контраст на белом) */
  --text-dim: #4a6d97;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22,68,123,.10);
}

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

/* Фирменный шрифт Montserrat (брендбук ФГДР) */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 88% -8%, rgba(76,146,207,.14), transparent 60%),
    radial-gradient(900px 540px at -4% 30%, rgba(76,146,207,.08), transparent 55%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-weight: 700; color: var(--navy); line-height: 1.2; }
p { color: var(--text-muted); }

/* ===== Header / Nav ===== */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .3px; white-space: nowrap; color: var(--navy); }
.logo img.logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; display: block; flex: 0 0 auto; }

nav.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; font-size: .95rem;
  transition: .2s;
}
nav.main-nav > ul > li > a:hover { color: var(--navy); background: var(--blue-soft); }
nav.main-nav > ul > li > a.active { color: var(--navy); font-weight: 600; }
nav.main-nav .has-sub > a::after { content: "▾"; margin-left: 6px; font-size: .7rem; color: var(--text-dim); }
nav.main-nav .has-sub .caret { display: none; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .15s;
}
nav.main-nav > ul > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); font-size: .92rem; }
.dropdown a:hover { background: var(--navy); color: #fff; }
.nav-cta { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: .2s; text-align: center;
}
.btn-accent { background: var(--navy); color: #fff; box-shadow: 0 6px 20px rgba(22,68,123,.25); }
.btn-accent:hover { transform: translateY(-2px); background: var(--blue); box-shadow: 0 10px 28px rgba(76,146,207,.35); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--blue); }
.btn-ghost:hover { border-color: var(--navy); background: var(--blue-soft); }

/* burger */
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; padding: 110px 0 90px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(76,146,207,.28), transparent 60%),
    radial-gradient(800px 460px at 0% 100%, rgba(76,146,207,.16), transparent 55%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22,68,123,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,68,123,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 30px;
  border: 1px solid var(--border-strong); color: var(--blue);
  font-size: .82rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--blue-soft);
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero-logo {
  display: block; width: min(500px, 100%); height: auto; object-fit: contain;
  margin: 0 0 22px;
}
.hero-art {
  width: min(760px, 100%); border-radius: 22px;
  box-shadow: 0 26px 60px -28px rgba(15, 48, 90, .55);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: .5px;
  line-height: 1.02; margin: 22px 0 6px; color: var(--navy);
}
.hero h1 .grad { color: var(--blue); }
.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem); font-weight: 600; color: var(--navy);
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-lead { max-width: 640px; margin: 18px 0 32px; color: var(--text-muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta .stat b { font-size: 2rem; display: block; color: var(--navy); }
.hero-meta .stat span { color: var(--text-muted); font-size: .9rem; }

/* ===== Sections ===== */
section.block { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.sec-label { color: var(--blue); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.sec-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; color: var(--navy); }
.sec-link { color: var(--blue); font-weight: 600; }
.sec-link:hover { text-decoration: underline; }

/* cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .25s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  opacity: 0; transition: .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 14px 34px rgba(22,68,123,.12); }
.card:hover::before { opacity: 1; }
.card-body { padding: 24px; }
.card .tag { font-size: .76rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.card h3 { margin: 10px 0 8px; font-size: 1.1rem; color: var(--navy); }
.card p { color: var(--text-muted); font-size: .92rem; }
.card-ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft);
  border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

/* projects */
.project-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 32px; }
.project-card .nb { font-size: .8rem; color: var(--blue); font-weight: 600; }
.project-card h3 { font-size: 1.35rem; margin: 10px 0 12px; color: var(--navy); }
.project-card:hover h3 { color: var(--blue); }
.arrow-link { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.arrow-link::after { content: "→"; transition: .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: var(--bg-card); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--navy);
  padding: 20px 24px; font-size: 1.02rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--blue); transition: .2s; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-in { padding: 0 24px 20px; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 500px; }

/* ===== News list ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card .thumb { height: 190px; background: linear-gradient(135deg, #dcebf8, #b8d7f0); position: relative; }
.news-card .thumb::after { content: "FPV"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: rgba(22,68,123,.25); letter-spacing: 2px; }
.news-card .date { font-size: .8rem; color: var(--text-dim); margin-bottom: 6px; }

/* ===== Contact / page ===== */
.page-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--navy); }
.breadcrumb { color: var(--text-dim); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--blue); }
.article { max-width: 860px; }
.article h2 { font-size: 1.5rem; margin: 30px 0 12px; color: var(--navy); }
.article p { margin: 12px 0; color: var(--text-muted); }
.article ul, .article ol { margin: 12px 0 12px 22px; color: var(--text-muted); }
.article li { margin: 6px 0; }
.doc-list { list-style: none; margin-left: 0 !important; }
.doc-list li { margin: 10px 0; }
.doc-list a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 500; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card);
  transition: .2s;
}
.doc-list a:hover { border-color: var(--blue); background: var(--blue-soft); box-shadow: var(--shadow); }
.doc-list .doc-badge {
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--blue);
  padding: 3px 8px; border-radius: 6px; letter-spacing: .5px;
}

.contact-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 30px; }
.info-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-block h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.info-block h3 .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.info-block p { color: var(--text-muted); }
.info-block a { color: var(--blue); }
.info-block a:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; }
.socials a { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--text-muted); transition: .2s; }
.socials a:hover { color: var(--navy); border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }

/* ===== Guide cards ===== */
.guide-card { text-align: center; padding: 28px 20px; }
.guide-card .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; border: 2px solid var(--border-strong); object-fit: cover; }
.guide-card h3 { font-size: 1.1rem; color: var(--navy); }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
table.data thead th { color: var(--blue); font-weight: 600; text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; }
table.data tbody tr:hover { background: var(--blue-soft); }
table.data td a { color: var(--blue); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .gi { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #dcebf8, #b8d7f0); position: relative; }
.gallery .gi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(76,146,207,.12), rgba(22,68,123,.12)); }
.gallery .gi .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(22,68,123,.4); font-weight: 700; z-index: 1; }

/* ===== Footer ===== */
footer.site-footer { border-top: 1px solid var(--border); background: var(--navy); color: #fff; padding: 60px 0 30px; }
.footer-brand-row { display: flex; align-items: flex-start; gap: 40px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand-row .logo img.logo-img { height: 52px; filter: brightness(0) invert(1); }
.footer-brand-row p { color: #d3e3f3; font-size: .95rem; max-width: 560px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-links h4 { color: var(--blue-light); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin: 9px 0; }
.footer-links ul a { color: #e6eef7; font-size: .93rem; font-weight: 300; }
.footer-links ul a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #cddcf0; font-size: .85rem; }
footer.site-footer .socials a { border-color: rgba(255,255,255,.2); color: #d3e3f3; }
footer.site-footer .socials a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(320px, 85vw); height: 100vh; height: 100dvh;
    min-height: 0; max-width: 320px;
    background: var(--panel); color: var(--navy);
    transform: translateX(100%); transition: transform .3s ease;
    padding: 84px 20px 32px; overflow-y: auto; z-index: 200;
    box-shadow: -10px 0 30px rgba(0,0,0,.2);
    border-left: 1px solid var(--border);
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  nav.main-nav > ul > li > a { padding: 14px 16px; font-size: 1rem; color: var(--navy); }
nav.main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--blue); margin: 2px 0 4px 12px; padding: 0; background: transparent; }
  .nav-inner .nav-cta { display: inline-flex; padding: 10px 16px; font-size: .84rem; margin-left: auto; white-space: nowrap; }
  .burger { display: block; position: relative; z-index: 201; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 10px; height: 64px; }
  .nav-inner .nav-cta { font-size: .78rem; padding: 8px 12px; }
  .logo img.logo-img { height: 32px; max-width: 120px; }
}

@media (max-width: 640px) {
  .grid-3, .news-grid, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  section.block { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { margin-top: 16px; }
  .hero-meta { gap: 20px; margin-top: 34px; }
  .hero-meta .stat { flex: 1 1 40%; }
  .hero-meta .stat b { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo img.logo-img { height: 36px; max-width: 150px; }
  .card-body { padding: 20px; }
  .article h2 { font-size: 1.3rem; }
  .wrap { padding: 0 16px; }
  .hero-logo { width: min(320px, 100%); margin-bottom: 16px; }
  .hero-logo.hero-art { width: 100%; margin-bottom: 20px; border-radius: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .sec-head { margin-bottom: 28px; }
  .project-card { min-height: auto; padding: 24px; }
  .info-block { padding: 22px; }
  .footer-brand-row { flex-direction: column; gap: 20px; }
  .page-hero { padding: 48px 0 28px; }
}

/* Малые телефоны */
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-tagline { font-size: 1rem; letter-spacing: 1.5px; }
  .hero-lead { font-size: .95rem; }
  .faq-q { padding: 16px 18px; font-size: .95rem; }
  .faq-a-in { padding: 0 18px 16px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.data th, table.data td { padding: 10px 12px; font-size: .85rem; }
  .doc-list a { width: 100%; font-size: .9rem; }
  .news-card .thumb { height: 150px; }
}

/* ============================================================
   Модальное окно «Стать пилотом» — форма заявки
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(22,68,123,.55);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--panel); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(22,68,123,.35);
  width: 100%; max-width: 640px; padding: 32px 36px 28px;
  position: relative; max-height: calc(100vh - 48px); overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-box h3 { font-size: 1.6rem; margin-bottom: 6px; color: var(--navy); }
.modal-sub { margin-bottom: 22px; color: var(--text-muted); font-size: .93rem; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--text-dim); cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: .15s;
}
.modal-close:hover { color: var(--navy); background: var(--blue-soft); }

#pilotForm .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#pilotForm .form-field { margin-bottom: 16px; }
#pilotForm label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
#pilotForm label .req { color: #d64545; }
#pilotForm label .hint { font-weight: 400; color: var(--text-dim); font-size: .8rem; }
#pilotForm input,
#pilotForm select,
#pilotForm textarea {
  width: 100%; padding: 11px 13px; font-size: .95rem; font-family: inherit;
  border: 1.5px solid var(--border-strong); border-radius: 9px; color: var(--text);
  background: var(--bg-card); outline: none; transition: border-color .15s, box-shadow .15s;
}
#pilotForm textarea { resize: vertical; min-height: 80px; }
#pilotForm input:focus,
#pilotForm select:focus,
#pilotForm textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,146,207,.18);
}
#pilotForm .form-field.invalid input,
#pilotForm .form-field.invalid select,
#pilotForm .form-field.invalid textarea { border-color: #d64545; }
.field-error { display: block; min-height: 16px; color: #d64545; font-size: .78rem; margin-top: 4px; }
.char-count { font-size: .78rem; color: var(--text-dim); margin-top: 4px; text-align: right; }
#pilotForm select { cursor: pointer; }

.form-consent { margin: 6px 0 14px; border-top: 1px solid var(--border); padding-top: 16px; }
.form-consent .check {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 400;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; cursor: pointer; line-height: 1.45;
}
.form-consent .check input { width: auto; margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--navy); }
.form-consent .check a { color: var(--blue); text-decoration: underline; }
.form-consent .check a:hover { color: var(--navy); }
.form-consent .check.invalid span { color: #d64545; }
.form-consent .field-error { margin-bottom: 4px; }

.form-msg { padding: 0; border-radius: 9px; margin-bottom: 14px; font-size: .9rem; }
.form-msg.error { background: #fdecec; color: #b33636; padding: 11px 14px; }
.form-msg.success { background: #e6f4ea; color: #1e7d45; padding: 11px 14px; }
.modal-submit { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 640px) {
  .modal-box { padding: 24px 20px 20px; }
  #pilotForm .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Dark control-panel skin inspired by flytry.ru
   ============================================================ */
:root {
  --navy: #eef2fb;
  --blue: #4f8cff;
  --blue-light: #a78bfa;
  --blue-soft: rgba(79,140,255,.13);
  --bg: #070d16;
  --bg-alt: #0b1420;
  --bg-card: #101b2c;
  --panel: #101b2c;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);
  --text: #eef2fb;
  --text-muted: #93a1bd;
  --text-dim: #5c6a8a;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(0,0,0,.35);
}

body {
  background:
    radial-gradient(720px 420px at 88% -8%, rgba(79,140,255,.18), transparent 64%),
    radial-gradient(680px 460px at -10% 42%, rgba(167,139,250,.10), transparent 62%),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%);
  z-index: -1;
}

h1, h2, h3, h4 { color: var(--text); }
p { color: var(--text-muted); }

header.site-header {
  background: rgba(7,13,22,.78);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
}
.logo { color: var(--text); }
nav.main-nav > ul > li > a { color: var(--text-muted); }
nav.main-nav > ul > li > a:hover { color: var(--text); background: var(--blue-soft); }
.dropdown {
  background: rgba(16,27,44,.96);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.dropdown a { color: var(--text); }
.dropdown a:hover { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #07101f; }

.btn-accent {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #07101f;
  box-shadow: 0 10px 26px -8px rgba(79,140,255,.62);
}
.btn-accent:hover { background: linear-gradient(135deg, #6ea1ff, #b9a4ff); box-shadow: 0 14px 32px -8px rgba(167,139,250,.5); }
.btn-ghost { background: rgba(255,255,255,.045); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,.09); }
.burger { border-color: var(--border); background: rgba(255,255,255,.04); }
.burger span { background: var(--text); }

.hero {
  background:
    radial-gradient(720px 420px at 82% 8%, rgba(79,140,255,.23), transparent 64%),
    radial-gradient(540px 360px at 5% 84%, rgba(167,139,250,.13), transparent 62%),
    var(--bg);
}
.hero::before { opacity: .75; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); }
.hero-art {
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px -28px rgba(79,140,255,.55), 0 0 0 1px rgba(167,139,250,.08);
}
.hero h1 .grad { color: var(--blue); }
.hero-tagline { color: var(--text); }
.hero-meta .stat b { color: var(--text); }
.hero-meta .stat span { color: var(--text-muted); }

section.block.alt { background: rgba(11,20,32,.72); }
.sec-label, .sec-link { color: var(--blue); }
.sec-link:hover { color: var(--blue-light); }
.card, .faq-item, .info-block {
  background: rgba(16,27,44,.84);
  border-color: var(--border);
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
.card:hover, .info-block:hover { border-color: var(--border-strong); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.card::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.card h3, .project-card h3, .faq-q, .info-block h3, .guide-card h3 { color: var(--text); }
.card p, .faq-a-in, .info-block p { color: var(--text-muted); }
.card-ico, .info-block h3 .ic { background: rgba(79,140,255,.13); border-color: var(--border); }
.project-card .nb { color: var(--blue); }
.arrow-link { color: var(--blue); }
.faq-q::after { color: var(--blue); }
.news-card .thumb, .gallery .gi { background: linear-gradient(135deg, #142c4c, #241b4b); }
.news-card .thumb::after, .gallery .gi .ph { color: rgba(160,190,255,.3); }
.news-card .date { color: var(--text-dim); }

table.data thead th { color: var(--blue); }
table.data th, table.data td { border-bottom-color: var(--border); }
table.data tbody tr:hover { background: rgba(79,140,255,.08); }
table.data td a { color: var(--blue); }
.page-hero { border-bottom-color: var(--border); }
.breadcrumb { color: var(--text-dim); }
.doc-list a { background: rgba(16,27,44,.84); border-color: var(--border); color: var(--text); }
.doc-list a:hover { border-color: var(--blue); background: rgba(79,140,255,.1); box-shadow: var(--shadow); }
.doc-list .doc-badge { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #07101f; }

footer.site-footer { background: #050a12; border-top-color: var(--border); }
footer.site-footer .footer-links h4 { color: var(--blue-light); }
footer.site-footer .footer-links ul a { color: var(--text-muted); }
footer.site-footer .footer-links ul a:hover { color: var(--text); }

#pilotForm input, #pilotForm select, #pilotForm textarea { background: rgba(255,255,255,.045); color: var(--text); border-color: var(--border); }
#pilotForm input:focus, #pilotForm select:focus, #pilotForm textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,140,255,.2); }
#pilotForm label { color: var(--text); }
.modal-overlay { background: rgba(2,6,14,.72); }
.modal-box { background: rgba(16,27,44,.96); border: 1px solid var(--border); box-shadow: var(--shadow); }
.modal-box h3 { color: var(--text); }
.modal-sub { color: var(--text-muted); }
.modal-close { color: var(--text-muted); }

@media (max-width: 992px) {
  nav.main-nav { background: rgba(7,13,22,.97); border-left-color: var(--border); box-shadow: -18px 0 42px rgba(0,0,0,.45); }
  nav.main-nav > ul > li > a { color: var(--text); }
  nav.main-nav .dropdown a { color: var(--text-muted); }
}
