:root {
  --bg: #f6f8fb;
  --surface: #fcfdfe;
  --tint: #e8f0f7;
  --text: #0e1d30;
  --muted: #475a70;
  --line: #d5dfea;
  --accent: #16699a;
  --accent-ink: #0f4f78;
  --on-accent: #f6fbfe;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1622;
    --surface: #112031;
    --tint: #152a40;
    --text: #e5edf5;
    --muted: #9db0c3;
    --line: #233649;
    --accent: #5fb8e2;
    --accent-ink: #8bd0ee;
    --on-accent: #08141f;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand svg, .brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 0.97rem; }
.nav a:hover { color: var(--text); background: var(--tint); }
.nav a.lang { border: 1px solid var(--line); color: var(--text); margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.kicker { margin: 0 0 18px; color: var(--accent-ink); font-weight: 650; font-size: 0.97rem; }
h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 22px 0 30px; max-width: 54ch; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 32px 28px;
}
.hero-card .mark { width: 132px; height: 132px; margin: 0 0 28px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0; font-weight: 650; }

/* Sections */
section { scroll-margin-top: 84px; }
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
.prose { max-width: 66ch; color: var(--muted); }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.product-visual {
  background: var(--tint); border-radius: 18px; min-height: 280px;
  display: grid; place-items: center; padding: 40px;
}
.product-visual img { width: min(100%, 360px); height: auto; }
.product h3 { margin: 0 0 6px; font-size: 1.5rem; }
.product .tag { margin: 0 0 16px; color: var(--accent-ink); font-weight: 600; }
.product p { color: var(--muted); max-width: 52ch; }
.product .btn { margin-top: 10px; }

.more-title { margin: 56px 0 4px; font-size: 1.15rem; }
.prod-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prod-rows li {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) 13rem; gap: 6px 28px;
  align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.prod-rows h4 { margin: 0; font-size: 1.05rem; }
.prod-rows p { margin: 0; color: var(--muted); max-width: 60ch; }
.prod-rows a { overflow-wrap: anywhere; }
.prod-rows .note { color: var(--muted); font-size: 0.95rem; }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.svc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.svc-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.svc-list li:first-child { border-top: 0; padding-top: 4px; }
.svc-list h3 { margin: 0 0 6px; font-size: 1.15rem; }
.svc-list p { margin: 0; color: var(--muted); max-width: 56ch; }

/* Company info */
.info-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px; }
.panel h3 { margin: 22px 0 4px; font-size: 1rem; color: var(--muted); font-weight: 600; }
.defs { margin: 0; display: grid; }
.defs > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.defs > div:first-child { border-top: 0; }
.defs-stack > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.defs dt { color: var(--muted); font-size: 0.95rem; }
.defs dd { margin: 0; overflow-wrap: anywhere; }

/* Contact */
.contact-mail { display: inline-block; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .product, .services, .info-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding: 56px 0; }
  .hero-card .mark { width: 96px; height: 96px; margin-bottom: 20px; }
  .nav a:not(.lang):not(.nav-contact) { display: none; }
  .defs > div { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 4px 20px; }
  .prod-rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .more-title { margin-top: 40px; }
}

@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
