/* ============================================================
   GT-Solutions — сайт-визитка
   Дизайн-система: светлая база, ультра-современно.
   Manrope (заголовки) + Inter (текст), self-hosted.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Design tokens ---------- */
:root {
  /* base — light, ultra-modern */
  --bg: #f7f8fc;
  --bg-2: #eef1f9;
  --surface: #ffffff;
  --ink: #0b1020;
  --ink-2: #3a4160;
  --muted: #6b7391;
  --line: rgba(18, 24, 48, 0.08);
  --line-strong: rgba(18, 24, 48, 0.14);

  /* accent — electric indigo → violet, cyan support */
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-3: #06b6d4;
  --accent-ink: #ffffff;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 20px 60px -20px rgba(29, 33, 74, 0.28);

  /* geometry */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* type scale (fluid) */
  --fs-display: clamp(2.6rem, 6.4vw, 5.2rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-top: 18px; }
.text-grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Background fluid blobs ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: radial-gradient(circle at 30% 30%, #6d5cf5, transparent 70%); }
.blob--2 { width: 40vw; height: 40vw; right: -12vw; top: 12vw; background: radial-gradient(circle at 60% 40%, #16b6d4, transparent 70%); opacity: 0.4; }
.blob--3 { width: 38vw; height: 38vw; left: 18vw; top: 120vh; background: radial-gradient(circle at 40% 60%, #a855f7, transparent 70%); opacity: 0.32; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.98rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.6);
}
.btn--primary:hover { box-shadow: 0 18px 40px -10px rgba(79, 70, 229, 0.7); }
.btn--ghost { color: var(--ink); background: rgba(255,255,255,0.6); border-color: var(--line-strong); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(247, 248, 252, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-size: 0.92rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 8px 20px -6px rgba(79,70,229,0.6);
}
.brand__mark span { transform: translateY(-0.5px); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 500; color: var(--ink-2); font-size: 0.96rem; transition: color 0.25s; }
.nav a:hover { color: var(--accent); }
.header__cta { display: inline-flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(130px, 18vh, 190px); padding-bottom: clamp(70px, 10vw, 120px); position: relative; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 28px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 4px rgba(6,182,212,0.18); }
.hero h1 { font-size: var(--fs-display); max-width: 15ch; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 54ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: 56px; padding: 26px 30px; border-radius: var(--r-lg); }
.hero__stat .num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.hero__stat .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.hero__stat .num .suffix { color: var(--accent); }

/* ---------- Cards grid (directions) ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 34px 32px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(79,70,229,0.1), transparent 45%);
  transition: opacity 0.5s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(29,33,74,0.35); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--accent); background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.12));
  border: 1px solid rgba(79,70,229,0.16);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__num { position: absolute; top: 26px; right: 30px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 0.9rem; color: var(--line-strong); }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* ---------- Industry focus ---------- */
.industry { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.industry:hover { transform: translateX(6px); border-color: var(--accent); }
.industry__ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.industry__ic svg { width: 22px; height: 22px; }
.industry h3 { font-size: 1.1rem; margin-bottom: 4px; }
.industry p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 30px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.step__n {
  counter-increment: step; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  color: var(--accent); background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(124,58,237,0.1)); border: 1px solid rgba(79,70,229,0.16);
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -12px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 9px);
}

/* ---------- Metrics band ---------- */
.metrics { border-radius: var(--r-xl); padding: clamp(40px, 6vw, 68px); overflow: hidden; position: relative; }
.metrics__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 48px); position: relative; z-index: 1; }
.metric .num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.metric .num .suffix { color: var(--accent); }
.metric .lbl { color: var(--ink-2); margin-top: 12px; font-size: 0.98rem; }

/* ---------- Marquee (partners / tech) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.marquee__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__info p { color: var(--muted); font-size: var(--fs-lead); margin-top: 18px; }
.contact__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.contact__list a, .contact__list li > span { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); }
.contact__list .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--bg-2); border: 1px solid var(--line); flex: none; }
.contact__list .ic svg { width: 20px; height: 20px; }
.contact__list small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.form { padding: clamp(28px, 4vw, 40px); border-radius: var(--r-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; font-family: "Manrope", sans-serif; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.7); font: inherit; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.field textarea { resize: vertical; min-height: 110px; }
.form__note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form__note a { color: var(--accent); }
.form__ok { display: none; text-align: center; padding: 20px 0; }
.form__ok.is-visible { display: block; }
.form__ok .check { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 40px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer__legal { color: var(--muted); font-size: 0.9rem; max-width: 42ch; margin-top: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links a { color: var(--ink-2); font-size: 0.94rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Hidden state applies ONLY when JS is active (.js on <html>), so no-JS
   users and crawlers see all content. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .steps, .metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.6); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .header__cta { display: block; }
  /* mobile nav panel */
  .nav.is-open {
    display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    padding: 18px var(--gutter) 26px; background: rgba(247,248,252,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--glass-shadow);
  }
  .nav.is-open a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .grid--3, .grid--2, .steps, .metrics__inner, .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .metrics { padding: 30px 22px; }
}

/* ---- Language switch ---- */
.lang-switch { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; line-height: 1; white-space: nowrap; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Centered contact (no form) ---- */
.contact__info--center { max-width: 640px; margin-inline: auto; text-align: center; }
.contact__info--center .eyebrow { justify-content: center; }
.contact__info--center > p { margin-inline: auto; }
.contact__info--center .contact__list { max-width: 460px; margin-inline: auto; text-align: left; }
