:root {
  --bg: #0b1220;
  --bg-soft: #111b2e;
  --text: #10213c;
  --text-muted: #5f6f89;
  --white: #ffffff;
  --line: rgba(14, 39, 78, 0.12);
  --primary: #1e5aa8;
  --primary-2: #3679cf;
  --accent: #63b3ff;
  --surface: #f6f8fc;
  --card: rgba(255,255,255,0.9);
  --shadow: 0 20px 50px rgba(12, 34, 74, 0.12);
  --radius: 22px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef3fb 0%, #f9fbff 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-title {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 90, 168, 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* можно 48 */
  height: 40px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.brand-text strong { display: block; font-size: 16px; }
.brand-text span { display: block; font-size: 12px; opacity: .78; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item { position: relative; }
.nav-link,
.drop-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font: inherit;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  transition: .25s ease;
}
.nav-link:hover,
.drop-toggle:hover,
.nav-item.open > .drop-toggle {
  background: rgba(255,255,255,.08);
}
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(10, 22, 42, .96);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .25s ease;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,.9);
}
.dropdown a span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.58);
  margin-top: 4px;
}
.dropdown a:hover { background: rgba(255,255,255,.07); }
.cta-small {
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 30px rgba(30, 90, 168, .28);
}
.mobile-toggle { display: none; }


.hero.hero-image,
.page-hero.hero-image {
  background-size: cover;
  background-position: center;
}
.hero.hero-image::after,
.page-hero.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,15,30,.82), rgba(13,35,70,.78));
}
.hero.hero-image .container,
.page-hero.hero-image .container { position: relative; z-index: 1; }
.media-card {
  overflow: hidden;
  padding: 0;
}
.media-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.media-card .media-body {
  padding: 22px 24px 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.image-panel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(14,39,78,.08);
  box-shadow: var(--shadow);
  background: #fff;
}
.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.person-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: 0 12px 28px rgba(16,33,60,.12);
}
.contact-map {
  width: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}
.note-soft {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 120px 0 90px;
  background:
    radial-gradient(circle at 15% 20%, rgba(99,179,255,.20), transparent 20%),
    radial-gradient(circle at 85% 0%, rgba(54,121,207,.28), transparent 22%),
    linear-gradient(135deg, rgba(6,15,30,.92), rgba(13,35,70,.88));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.35));
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  max-width: 760px;
}
.hero p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 720px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  transition: .25s ease;
  font-weight: 600;
}
.btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 35px rgba(29, 89, 168, .32);
}
.btn:hover { transform: translateY(-2px); }
.btn-secondary {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.metric strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}
.metric span { color: rgba(255,255,255,.7); line-height: 1.45; font-size: 14px; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(14,39,78,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card h3 {
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}
.card p { color: var(--text-muted); line-height: 1.75; margin: 0; }
.card .link-arrow {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(99,179,255,.18), rgba(30,90,168,.12));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.visual {
  min-height: 360px;
  border-radius: 30px;
  border: 1px solid rgba(14,39,78,.08);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(99,179,255,.4), transparent 30%),
    linear-gradient(135deg, #10213c, #244a82 50%, #112643);
  position: relative;
  overflow: hidden;
}
.visual::before,
.visual::after {
  content: url(../assets/img/drone-project.JPG);
  position: absolute;
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}
.visual::before { width: 220px; height: 140px; top: 28px; right: 34px; }
.visual::after { width: 180px; height: 180px; bottom: 24px; left: 30px; }
.visual-label {
  position: absolute;
  left: 28px;
  top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.visual-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .55;
}

.check-list,
.bullet-list { padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.check-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 8px 18px rgba(52,125,223,.25);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 7px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.bullet-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.stats-band {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1f39, #17386a);
  color: var(--white);
  box-shadow: var(--shadow);
}
.stats-band .grid-4 { gap: 18px; }
.stats-band strong {
  display: block;
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 6px;
}
.stats-band span { color: rgba(255,255,255,.72); line-height: 1.5; }

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(30, 90, 168, .12));
}
.timeline-item {
  position: relative;
  padding: 8px 0 8px 56px;
}
.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(30,90,168,.24);
}
.timeline-item h4 { margin: 0 0 8px; font-size: 20px; }
.timeline-item p { margin: 0; color: var(--text-muted); line-height: 1.7; }

.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #10213c, #173a6f);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-panel p { color: rgba(255,255,255,.76); line-height: 1.7; }

.contact-box {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(14,39,78,.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-list { margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  line-height: 1.7;
}
.map-card {
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(14,39,78,.08);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.75) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.65) 1px, transparent 1px),
    linear-gradient(135deg, #dfe8f6, #eff5fc);
  background-size: auto, 42px 42px, 42px 42px, auto;
  position: relative;
}
.map-card::before {
  content: "Самара, ул. Первомайская, д. 1";
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 12px 16px;
  background: rgba(16,33,60,.9);
  color: #fff;
  border-radius: 16px;
}
.map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  left: 55%;
  top: 46%;
  box-shadow: 0 14px 25px rgba(30,90,168,.28);
}
.map-pin::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  left: 6px;
  top: 6px;
}

.team-card { text-align: center; }
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(99,179,255,.24), rgba(30,90,168,.16));
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--primary);
}
.role { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

.form-grid {
  display: grid;
  gap: 16px;
}
.input,
textarea.input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14,39,78,.12);
  background: rgba(255,255,255,.86);
  color: var(--text);
  font: inherit;
}
.input:focus { outline: 2px solid rgba(54,121,207,.18); border-color: var(--primary-2); }
textarea.input { min-height: 140px; resize: vertical; }
.form-note { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.site-footer {
  padding: 28px 0 42px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--primary); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 110px 0 74px;
  background: linear-gradient(135deg, #08182f, #173b6f);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(99,179,255,.20), transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 16px; letter-spacing: -0.04em; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.7; margin: 0; }

.notice {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(30, 90, 168, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(30,90,168,.12);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content,
  .split,
  .cta-panel,
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .nav {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .nav-links.show { display: flex; }
  .nav-item { width: 100%; }
  .nav-link, .drop-toggle, .cta-small { width: 100%; text-align: left; }
  .dropdown {
    position: static;
    margin-top: 8px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 98px; }
}

.form-success {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(30, 90, 168, 0.08);
  border: 1px solid rgba(30, 90, 168, 0.18);
  color: var(--primary);
  font-weight: 600;
}
