/* ============================================================
   МАЯК СОФТ — дизайн-код v1.0 (источник: Design-Studio/brands/mayak-soft.md)
   Тёмный tech-editorial · cyan #00B6C3 · Geologica / Golos Text / JetBrains Mono
   ============================================================ */

@font-face { font-family: 'Geologica'; src: url('../fonts/Geologica.ttf'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/GolosText.ttf'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono.ttf'); font-weight: 400 800; font-display: swap; }

:root {
  --accent: #00B6C3;
  --accent-light: #5CE1EA;
  --accent-deep: #0E5E66;
  --bg: #0A1417;
  --surface: #101C20;
  --text: #EAF2F2;
  --muted: #8AA0A4;
  --border: rgba(255, 255, 255, 0.08);
  --ok: #2FBF71;
  --font-display: 'Geologica', sans-serif;
  --font-body: 'Golos Text', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
  min-height: 100vh;
  position: relative;
}

/* атмосфера: градиент + blueprint-сетка + луч */
.atmosphere {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at top, #10242A 0%, #0A1417 60%);
}
.atmosphere::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 45%, rgba(0,0,0,.4));
}
.atmosphere::after {
  content: ''; position: absolute; top: -30vh; right: -10vw;
  width: 70vw; height: 100vh;
  background: conic-gradient(from 205deg at 78% 18%,
    transparent 0deg, rgba(0,182,195,0.13) 14deg, rgba(92,225,234,0.05) 30deg, transparent 46deg);
  filter: blur(8px);
  pointer-events: none;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo img { height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--text); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  border-radius: 12px; padding: 14px 28px; border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #06282C;
  box-shadow: 0 2px 8px rgba(0,182,195,0.25), 0 10px 32px rgba(0,182,195,0.15);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,182,195,0.35), 0 16px 48px rgba(0,182,195,0.22);
}
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary:disabled {
  background: rgba(0,182,195,0.18); color: rgba(234,242,242,0.45);
  box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-lg { font-size: 18px; padding: 18px 36px; border-radius: 14px; }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 650; line-height: 1.08; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.16; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

.kicker {
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 14px;
}
.underline { width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 20px 0; }
.lead { font-size: 17.5px; color: var(--muted); }
.lead b, .lead strong { color: var(--text); font-weight: 500; }

.mtag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px;
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.mtag.cy { color: var(--accent); border-color: rgba(0,182,195,0.45); }

/* ---------- секции ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 20px; }
.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: 16px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 12px 36px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,182,195,0.35);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 20px 56px rgba(0,0,0,0.4);
}
.card .num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* стеклянная панель */
.glass {
  background: rgba(16, 28, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 16px 48px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,182,195,0.08), transparent 40%);
  pointer-events: none;
}

/* ---------- футер ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 32px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer img { height: 28px; opacity: 0.85; margin-bottom: 14px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-requisites { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- анимации появления ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
  .nav a:not(.btn) { display: none; }
  body { font-size: 16px; }
}
