/* ===========================================================
   ТОВ «СКАЙАРМС» — стильова база сайту
   =========================================================== */

:root {
  --bg: #0a1120;
  --bg-alt: #0f1a2e;
  --surface: #12203a;
  --surface-2: #16273f;
  --border: #223350;
  --border-soft: #1a2842;
  --text: #e7edf7;
  --text-muted: #93a4c2;
  --text-dim: #6c7c9a;
  --accent: #23d5ff;
  --accent-dim: #0f8fb8;
  --accent-2: #ffb020;
  --danger: #ff5c5c;
  --ok: #35d68f;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", "SFMono-Regular", monospace;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

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

.section {
  padding: 88px 0;
  position: relative;
}

.section--tight {
  padding: 56px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-head p {
  font-size: 1.05rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Circuit-board decorative background ---------- */

.circuit-bg {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, var(--accent-dim) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px, 46px 46px;
  background-position: center;
}

.circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(35, 213, 255, 0.14), transparent 55%),
              radial-gradient(ellipse at 85% 100%, rgba(255, 176, 32, 0.08), transparent 50%);
  pointer-events: none;
}

.circuit-bg > * {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #05131f;
}

.btn-primary:hover {
  background: #5be2ff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 17, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1340px;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  max-width: 208px;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
  background: var(--surface);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta .btn-outline {
  padding: 11px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: #fff;
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(53, 214, 143, 0.15);
  margin-right: 6px;
}

.hero-panel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.hero-panel-row:last-child {
  border-bottom: none;
}

.hero-panel-row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-panel-row b {
  display: block;
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.hero-panel-row span {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card {
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

.card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(35, 213, 255, 0.1);
  border: 1px solid rgba(35, 213, 255, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-row .tag {
  margin-bottom: 0;
}

/* ---------- Feature list (icon + text row) ---------- */

.feature-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-row h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.feature-row p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ---------- Steps / timeline ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-num {
  counter-increment: step;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---------- Case cards (applications) ---------- */

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-head {
  padding: 26px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
}

.case-head .tag {
  margin-bottom: 12px;
}

.case-head h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.case-body {
  padding: 26px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-col b {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.case-col p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ---------- Table (specs) ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
}

.spec-table td {
  color: var(--text-muted);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

/* ---------- Photo feature ---------- */

.photo-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-feature h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 0;
  max-width: 480px;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.faq-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.faq-item h4::before {
  content: "?";
  color: var(--accent);
  font-family: var(--font-mono);
}

.faq-item p {
  font-size: 14.5px;
  margin-bottom: 0;
  padding-left: 22px;
}

/* ---------- Contacts page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-info-card h3 {
  font-size: 1.15rem;
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row b {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 3px;
}

.info-row span,
.info-row a {
  font-size: 14px;
  color: var(--text-muted);
}

.info-row a:hover {
  color: var(--accent);
}

.map-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
  background: var(--surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

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

.footer-col a,
.footer-col span,
.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-brand p {
  font-size: 13.5px;
  max-width: 300px;
  margin-top: 14px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  padding: 56px 0 60px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  max-width: 760px;
}

.page-hero p {
  max-width: 640px;
  font-size: 1.05rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .photo-feature {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    max-width: 480px;
  }

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

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

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

  .case-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 24px;
  }
}
