/* ==========================================================================
   garminexpressupdate.com — шаблон «навигационная консоль»
   Палитра: ink/navy база, cerulean акцент, amber — только CTA поддержки.
   ========================================================================== */

:root {
  --ink: #071726;
  --navy: #0d2740;
  --navy-2: #123653;
  --navy-3: #16416a;
  --blue: #1583d4;
  --blue-deep: #0c63a5;
  --blue-glow: rgba(21, 131, 212, 0.28);
  --sky: #e9f4fc;
  --sky-2: #f5fafe;
  --amber: #ffad1f;
  --amber-deep: #e08e00;
  --text: #1e2c38;
  --muted: #587083;
  --line: #d9e5ef;
  --white: #fff;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px rgba(13, 39, 64, 0.12);
  --shadow-sm: 0 6px 18px rgba(13, 39, 64, 0.09);
  --container: 1160px;
}

/* ---------- база ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.mono { font-family: var(--font-mono); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
span.btn { cursor: default; }

.btn-cta {
  background: linear-gradient(180deg, var(--amber) 0%, #f79c00 100%);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 173, 31, 0.36);
}
.btn-cta:hover { box-shadow: 0 14px 30px rgba(255, 173, 31, 0.46); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px var(--blue-glow);
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- верхняя полоса ---------- */

.topbar {
  background: var(--ink);
  color: #b9cbdb;
  font-size: 13.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 5px 24px;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfdde9;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.topbar .ico { width: 14px; height: 14px; color: var(--blue); }

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px 3px 9px;
  border-radius: 999px;
  background: rgba(255, 173, 31, 0.14);
  border: 1px solid rgba(255, 173, 31, 0.4);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.topbar-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 173, 31, 0.55); }
  55% { box-shadow: 0 0 0 6px rgba(255, 173, 31, 0); }
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px rgba(4, 15, 26, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.brand-logo svg { width: 24px; height: 24px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7fa4c2;
  margin-top: 3px;
}

/* навигация */

.site-nav { margin-right: 6px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 9px;
  color: #d4e3f0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); text-decoration: none; }

.nav-link .caret {
  width: 10px; height: 10px;
  transition: transform 0.18s ease;
}
.has-sub:hover .caret,
.has-sub.is-open .caret { transform: rotate(180deg); }

.nav-item.is-active > .nav-link {
  color: var(--white);
  background: rgba(21, 131, 212, 0.22);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.has-sub { position: relative; }

.subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}
.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav,
.has-sub.is-open > .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.subnav::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}

.subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}
.subnav a:hover { background: var(--sky); color: var(--blue-deep); text-decoration: none; }
.subnav a .ico { width: 15px; height: 15px; color: var(--blue); flex: none; }

.header-cta { white-space: nowrap; padding: 9px 14px; font-size: 13px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- герой (главная) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(52% 88% at 84% 8%, rgba(21, 131, 212, 0.32) 0%, transparent 62%),
    linear-gradient(158deg, var(--navy-2) 0%, var(--navy) 46%, var(--ink) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(76% 100% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(76% 100% at 70% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-route {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-route svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
  padding: 78px 24px 86px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9cc4e4;
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--blue);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: #c3d6e6;
  max-width: 54ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #9cc4e4;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { width: 15px; height: 15px; color: var(--amber); }

/* SVG-иллюстрация «навигатор» */

.hero-art { position: relative; display: grid; place-items: center; }

.device {
  width: min(400px, 100%);
  filter: drop-shadow(0 30px 50px rgba(3, 12, 22, 0.55));
}

.hero-pin {
  position: absolute;
  animation: float 5s ease-in-out infinite;
}
.hero-pin-a { top: 4%; right: 12%; animation-delay: 0.6s; }
.hero-pin-b { bottom: 10%; left: 4%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pin, .topbar-pill .dot { animation: none; }
}

/* ---------- шапка внутренней страницы ---------- */

.page-head {
  position: relative;
  background:
    radial-gradient(46% 120% at 88% 0%, rgba(21, 131, 212, 0.26) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 62%);
  color: var(--white);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 110% at 82% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 110% at 82% 10%, #000 20%, transparent 75%);
  pointer-events: none;
}

.page-head-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: end;
  padding: 46px 24px 50px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8fb6d6;
  margin-bottom: 16px;
}
.breadcrumb a { color: #b9d5ea; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.55; }
.breadcrumb [aria-current] { color: var(--amber); }

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9cc4e4;
  margin-bottom: 14px;
}
.page-kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue); }

.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

/* ---------- секции ---------- */

.section { padding: 62px 0; }
.section-tight { padding: 46px 0 62px; }
.section-sky { background: var(--sky-2); }
.section-head { max-width: 760px; margin-bottom: 34px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: var(--navy);
  margin: 0 0 14px;
}

.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- карточки сервисов ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue-deep);
}
.card-icon .ico { width: 25px; height: 25px; }

.card-title {
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.card-text { font-size: 14.8px; color: var(--muted); margin: 0; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-deep);
}
.card-link:hover { text-decoration: none; color: var(--navy); }
.card-link .ico { width: 15px; height: 15px; transition: transform 0.18s ease; }
.card:hover .card-link .ico { transform: translateX(4px); }

/* ---------- контентная колонка ---------- */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.content-layout > * { min-width: 0; }

.prose { max-width: 72ch; }

.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.2vw, 25.5px);
  line-height: 1.25;
  color: var(--navy);
  margin: 44px 0 14px;
  letter-spacing: -0.005em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-head);
  font-size: 19.5px;
  color: var(--navy-2);
  margin: 30px 0 10px;
}

.prose p { margin: 0 0 16px; }

.prose .lead-in {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}

.prose strong { color: var(--navy-2); }

.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line));
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 26px 0 12px;
}
.os-chip .ico { width: 14px; height: 14px; }
.os-chip:first-child { margin-top: 0; }

/* шаги */

.steps {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 58px;
  margin: 0;
}
.steps li:last-child { padding-bottom: 4px; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -1px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(13, 39, 64, 0.22);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 2px;
  width: 2px;
  background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 12px);
  opacity: 0.4;
}
.steps li:last-child::after { display: none; }

.steps-note {
  border-left: 3px solid var(--amber);
  background: var(--sky-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* списки с галочками */

.checks {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding: 11px 14px 11px 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--sky) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230c63a5" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 12px no-repeat;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line));
}

/* требования — сетка чипов */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.spec {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.spec-icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue-deep);
}
.spec-icon .ico { width: 20px; height: 20px; }

/* ---------- боковая панель ---------- */

.sidebar { position: sticky; top: 104px; display: grid; gap: 18px; }

.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.side-card h3 {
  font-family: var(--font-head);
  font-size: 16.5px;
  color: var(--navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.side-card h3 .ico { width: 17px; height: 17px; color: var(--blue); }

.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14.3px;
  color: var(--text);
}
.side-nav a:hover { background: var(--sky); color: var(--blue-deep); text-decoration: none; }
.side-nav a .ico { width: 13px; height: 13px; color: var(--muted); flex: none; }
.side-nav a.is-current {
  background: var(--navy);
  color: var(--white);
}
.side-nav a.is-current .ico { color: var(--amber); }

.side-cta {
  background: linear-gradient(158deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: center;
}
.side-cta p {
  font-size: 14px;
  color: #b9cdde;
  margin: 0 0 14px;
}
.side-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
  margin: 0;
  overflow-wrap: anywhere;
}
.side-cta-phone svg { width: 16px; height: 16px; flex: none; }

/* ---------- полоса поддержки + рейтинг ---------- */

.support-band {
  background:
    radial-gradient(60% 130% at 12% 0%, rgba(21, 131, 212, 0.3) 0%, transparent 58%),
    linear-gradient(140deg, var(--navy-2), var(--ink));
  color: var(--white);
  border-radius: 20px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.rating-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
  margin: 0 0 7px;
}

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 19px; height: 19px; fill: var(--amber); }

.rating-text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #a9c4da;
}

/* ---------- дисклеймер ---------- */

.disclaimer {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--sky);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.3px;
  line-height: 1.6;
  color: var(--muted);
}

.disclaimer .ico { width: 21px; height: 21px; color: var(--blue-deep); flex: none; margin-top: 2px; }
.disclaimer strong { color: var(--navy-2); }

/* ---------- контакт ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  text-align: center;
}

.info-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue-deep);
}
.info-icon .ico { width: 25px; height: 25px; }

.info-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 7px;
}
.info-card p,
.info-card .mono-contact {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.info-card .mono-contact { font-family: var(--font-mono); font-size: 13.5px; }

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 820px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 22px 0 6px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-2);
}
.field label .req { color: #d05000; }

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sky-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 131, 212, 0.14);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: #d05000; background: #fff8f4; }

.field-error {
  font-size: 12.8px;
  color: #c04600;
  display: none;
}
.field.is-invalid .field-error { display: block; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form-note { font-size: 13px; color: var(--muted); margin: 0; }

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #e9f9ef;
  border: 1px solid #b7e4c7;
  color: #1d6b3c;
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }

/* ---------- футер ---------- */

.site-footer {
  background: var(--ink);
  color: #a7bccd;
  margin-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.35fr;
  gap: 38px;
  padding: 54px 24px 44px;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--blue);
}

.footer-about .brand { margin-bottom: 14px; }
.footer-about p { font-size: 14.3px; line-height: 1.65; margin: 0 0 18px; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
}
.footer-links a { color: #a7bccd; }
.footer-links a:hover { color: var(--white); }
.footer-links .ico { width: 13px; height: 13px; color: var(--blue); flex: none; margin-top: 5px; }

.footer-address { font-style: normal; font-size: 14.3px; line-height: 1.7; display: grid; gap: 10px; }
.footer-address li { display: flex; gap: 10px; align-items: flex-start; }
.footer-address .addr-text { flex: 1; min-width: 0; }
.footer-address .ico { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--blue); }
.footer-tagline .ico { width: 15px; height: 15px; }
.mono-contact { font-family: var(--font-mono); font-size: 13.5px; overflow-wrap: anywhere; }
.footer-address .mono-contact { color: #cfdde9; white-space: nowrap; }

.footer-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0;
  font-size: 13px;
  color: #7d93a7;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 90px 24px 100px; }
.notfound-code {
  font-family: var(--font-mono);
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 8px;
}
.notfound-code span { color: var(--blue); }
.notfound h1 { font-family: var(--font-head); color: var(--navy); margin: 0 0 14px; font-size: 26px; }
.notfound p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- адаптив ---------- */

@media (max-width: 1060px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
}

/* меню схлопывается в гамбургер раньше, чем ряд «лого+меню+кнопка»
   перестаёт помещаться в контейнер (1112px) */
@media (max-width: 1216px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px rgba(4, 15, 26, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .site-nav.is-open { max-height: 640px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
  }

  .nav-link { width: 100%; justify-content: space-between; padding: 12px 8px; }

  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    margin: 2px 0 6px;
    padding: 4px 0 4px 10px;
    display: none;
  }
  .has-sub.is-open > .subnav { display: block; }

  .subnav a { color: #c6d9e8; padding: 10px 12px; }
  .subnav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); text-decoration: none; }
  .subnav a .ico { color: var(--blue); }
}

@media (max-width: 980px) {
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 62px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .hero-art-frame { padding: 18px; }
  .hero-art-frame img { width: 100%; }

  .page-head-inner { grid-template-columns: 1fr; align-items: start; padding: 38px 24px 42px; }

  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .side-nav { display: none; }

  .topbar-inner { justify-content: center; }
  .topbar-contacts { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 15.8px; }
  .cards-grid,
  .contact-grid,
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-address .mono-contact { white-space: normal; overflow-wrap: anywhere; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 20px; }
  .support-band { padding: 24px 22px; }
  .section { padding: 46px 0; }
  .topbar-pill { display: none; }
}

/* ---------- служебное ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-family: var(--font-head);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.disclaimer { margin: 22px 0 0; }

/* ---------- таблицы данных и FAQ ---------- */

.table-wrap {
  margin: 16px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.6px;
  line-height: 1.55;
}

.data-table th {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--white);
  background: var(--navy);
  padding: 12px 16px;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) { background: var(--sky-2); }
.data-table tbody tr:hover { background: var(--sky); }

.td-price { font-family: var(--font-mono); font-size: 12.8px; color: var(--blue-deep); }
.th-price { color: var(--amber); }

.faq-list { display: grid; gap: 12px; margin: 18px 0 8px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--sky-2); }

.faq-item h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.faq-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--sky);
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--blue-deep);
}
.faq-mark::before { width: 10px; height: 2px; border-radius: 2px; }
.faq-mark::after { width: 2px; height: 10px; border-radius: 2px; transition: transform 0.18s ease, opacity 0.18s ease; }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.faq-body { padding: 0 18px 16px; }
.faq-body p { margin: 0; font-size: 15px; }

/* ---------- графика референса ---------- */

/* герой: коллаж с прозрачным фоном на светящемся тайле */
.hero-art-frame {
  position: relative;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(62% 62% at 50% 38%, rgba(21, 131, 212, 0.38) 0%, rgba(21, 131, 212, 0.10) 58%, transparent 78%);
}
.hero-art-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  pointer-events: none;
}
.hero-art-frame img {
  position: relative;
  width: min(396px, 100%);
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(3, 12, 22, 0.55));
}

/* оригинальные плоские иконки в карточках и требованиях */
.card-icon img { width: 34px; height: 34px; }
.spec-icon img { width: 24px; height: 24px; }

/* секции «текст + картинка» */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 52px;
  align-items: center;
}
.media-row.reverse { grid-template-columns: 380px minmax(0, 1fr); }
.media-row.reverse .media-fig { order: -1; }

.media-fig {
  margin: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.media-fig img { width: 100%; height: auto; border-radius: 12px; display: block; }
.media-fig figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* иллюстрация в сайдбаре */
.side-art {
  padding: 8px;
  background: linear-gradient(165deg, var(--sky), var(--white) 70%);
  text-align: center;
}
.side-art img { width: 100%; height: auto; }

@media (max-width: 1060px) {
  .media-row, .media-row.reverse { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
}

@media (max-width: 980px) {
  .media-row, .media-row.reverse { grid-template-columns: 1fr; gap: 30px; }
  .media-row.reverse .media-fig { order: 0; }
  .media-fig { max-width: 440px; margin: 0 auto; }
}
