/* GABSOFT.IO — main stylesheet
   Design tokens extracted from the approved design canvas
   (Дизайн нового сайта/Gabsoft IO.dc.html). Do not hand-edit generated
   HTML for style changes — edit this file, values are shared across
   all 18 pages. */

/* ---------- Fonts (self-hosted, replaces Plus Jakarta Sans — no Cyrillic) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #00203E;
  --teal: #00D3DD;
  --teal-text: #00BEC7;
  --text: #212529;
  --bg: #FFFFFF;
  --line: #E4E4E4;
  --tldr-bg: #F5FCFD;
  --dark: #060606;
  --dark-line: #26292C;
  --dark-border: #3A3D40;
  --dark-muted: #C7CDD3;
  --dark-muted-2: #8B9299;
  --shadow-sm: 0 2px 12px rgba(0, 32, 62, 0.05);
  --shadow-md: 0 8px 28px rgba(0, 32, 62, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 32, 62, 0.10);
  --radius-pill: 30px;
  --radius-card: 12px;
  --radius-card-lg: 14px;
  --container: 1240px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; color: var(--navy); letter-spacing: -0.02em; text-wrap: pretty; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--teal-text); text-decoration: none; }
a:hover { color: var(--navy); }
input, textarea, select, button { font-family: inherit; }
::selection { background: var(--teal); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .container { padding-left: 20px; padding-right: 20px; } }
.section { padding-top: 104px; }
.section-tight { padding-top: 64px; }
.section-first { padding-top: 88px; }
@media (max-width: 780px) {
  .section { padding-top: 72px; }
  .section-tight { padding-top: 48px; }
  .section-first { padding-top: 56px; }
}
.grid { display: grid; gap: 20px; }
.grid-autofit-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-autofit-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-autofit-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-autofit-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; order: 1; }
.site-header .logo img { height: 34px; width: auto; }
.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; order: 2; }
.site-nav a { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--navy); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-text); }
.site-nav-extra { display: flex; align-items: center; gap: 14px; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; order: 3; }
.nav-toggle-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 26px; height: 20px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle-btn span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }
.nav-toggle-input:focus-visible ~ .header-actions .nav-toggle-btn { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 4px 6px; color: var(--navy); border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--teal-text); }
.lang-switch span { color: var(--line); }
.contact-link { font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.contact-link:hover { color: var(--teal-text); }

@media (max-width: 900px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle-btn { display: flex; }
  .site-nav {
    display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 2px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  }
  .site-nav a { width: 100%; padding: 10px 2px; }
  .site-nav-extra {
    display: none; flex-direction: column; align-items: flex-start; gap: 12px;
    width: 100%; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  }
  .site-nav-extra .contact-link { padding: 2px; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .nav-toggle-input:checked ~ .site-nav .site-nav-extra { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; padding: 16px 30px;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  white-space: nowrap; line-height: 1;
}
.btn-sm { font-size: 15px; padding: 14px 24px; }
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-text); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: var(--navy); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--teal-text); color: var(--teal-text); }
.btn-nav {
  background: var(--teal); color: #FFFFFF; font-size: 15px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius-pill); white-space: nowrap;
}
.btn-nav:hover { background: var(--teal-text); color: #FFFFFF; }
.btn-dark { background: var(--teal); color: var(--dark); }
.btn-dark:hover { background: #FFFFFF; color: var(--dark); }
.btn-outline-dark { background: transparent; color: #FFFFFF; border: 1px solid var(--dark-border); }
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; text-align: center; }
@media (max-width: 520px) {
  .flex-wrap-gap { flex-direction: column; align-items: stretch; }
  .flex-wrap-gap .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ---------- Pills / badges ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 18px;
}
.pill-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: block; flex-shrink: 0; }
.pill-badge .label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--text); }
.pill-nav {
  font-size: 14px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 18px;
}
.pill-nav:hover { border-color: var(--teal-text); color: var(--teal-text); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px; background: var(--bg); box-shadow: var(--shadow-sm);
}
.card-lg { border-radius: var(--radius-card-lg); padding: 32px; }
.card-raised { box-shadow: var(--shadow-md); }
.stat-num { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { margin-top: 8px; font-size: 14px; line-height: 1.5; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--teal-text); }

/* ---------- TL;DR callout ---------- */
.tldr {
  margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--text);
  background: var(--tldr-bg); border-left: 3px solid var(--teal);
  padding: 18px 22px; border-radius: 0 12px 12px 0; max-width: 68ch;
}
.tldr-inline { border-left: 3px solid var(--teal); padding: 14px 0 14px 18px; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; line-height: 1.08; max-width: 15ch; }
.page-h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.1; max-width: 18ch; }
.hero .lede { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--text); max-width: 60ch; }
.hero .accent { color: var(--teal-text); }

/* ---------- Numbered service / step cards ---------- */
.num-badge { font-size: 13px; font-weight: 800; color: var(--teal-text); }
.step-num-lg { font-size: 44px; font-weight: 800; color: var(--teal); line-height: 1; }
.step-row {
  display: grid; grid-template-columns: minmax(0, 90px) 1fr; gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-row {
  display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { font-size: 18px; font-weight: 800; color: var(--navy); }
.how-step { border-top: 3px solid var(--teal); padding-top: 20px; }
.how-step.is-muted { border-top-color: var(--line); }
.you-get { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--teal-text); }

/* ---------- Lists with left rule ---------- */
.rule-list { display: grid; gap: 14px; }
.rule-list li { font-size: 16px; line-height: 1.55; padding-left: 22px; border-left: 2px solid var(--line); }
.rule-list.rule-list-accent li { padding-left: 20px; border-left: 3px solid var(--teal); }
.rule-list.rule-list-muted li { padding-left: 20px; border-left: 3px solid var(--line); }

/* ---------- Anchor pill nav (Services page) ---------- */
.anchor-nav { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pricing cards ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.is-featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -13px; left: 32px; background: var(--teal); color: #FFFFFF;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 6px 14px; border-radius: var(--radius-pill);
}
.price-amount { margin-top: 22px; font-size: 34px; font-weight: 800; color: var(--navy); }
.price-amount .unit { font-size: 15px; font-weight: 600; color: var(--text); }
.price-features { margin-top: 24px; display: grid; gap: 12px; flex: 1; }
.price-features li { font-size: 15px; line-height: 1.5; }

/* ---------- Forms ---------- */
.form-field { display: grid; gap: 8px; }
.form-field label,
.form-field .field-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  font-size: 15px; color: var(--text); background: #FFFFFF; width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal-text); outline: none; }
.form-field textarea { resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; line-height: 1.4; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.form-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-size: 17px; font-weight: 700; color: var(--navy); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--teal-text); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--text); max-width: 68ch; }

/* ---------- Footer / dark CTA band ---------- */
.footer-band {
  background: var(--dark); border-radius: 24px; padding: 72px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 56px;
}
@media (max-width: 720px) { .footer-band { grid-template-columns: 1fr; padding: 48px 28px; } }
.footer-band h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: #FFFFFF; line-height: 1.12; max-width: 16ch; }
.footer-band .lede { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--dark-muted); max-width: 46ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 36px; align-content: start; }
.footer-cols h3 { font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.04em; }
.footer-cols ul { margin-top: 18px; display: grid; gap: 12px; }
.footer-cols a { font-size: 15px; color: var(--dark-muted); }
.footer-cols a:hover { color: var(--teal); }
.footer-cols p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--dark-muted); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--dark-line); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.footer-bottom img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-bottom-links span, .footer-bottom-links a { font-size: 14px; color: var(--dark-muted-2); }
.footer-bottom-links a:hover { color: var(--teal); }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; } .mt-44 { margin-top: 44px; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.max-52 { max-width: 52ch; } .max-62 { max-width: 62ch; } .max-68 { max-width: 68ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
