/* ============================================================
   RAUZA-PV — дизайн-система (чистый CSS, без зависимостей)
   Токены сняты с оригинала rauzapv.kz (DevTools).
   Правь переменные в :root — оформление наследуется отсюда.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Фоновые тёмные тона */
  --ink: #090f1e;
  --ink-2: #0c1428;
  --ink-3: #101b33;
  --navy: #001955;
  --navy-2: #143076;
  --navy-3: #061542;

  /* Акценты */
  --accent: #4cb7e6;
  --accent-deep: #0090c0;
  --accent-soft: #95d2ed;

  /* Фирменные цвета логотипа RAUZA */
  --brand-red: #e4131a;
  --brand-blue: #08355c;

  /* Текст */
  --fg: #ffffff;
  --muted: #a6b6dd;
  --muted-2: #90a3bc;

  /* Светлые секции */
  --paper: #f5f5f3;
  --paper-2: #ffffff;
  --graphite: #141416;
  --graphite-2: #33373f;
  --graphite-3: #5b6068;

  /* Линии */
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-dark: rgba(20, 20, 22, 0.12);

  /* Радиусы / тени / тайминги */
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);

  --header-h: 76px;
  --maxw: 1280px;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
::selection {
  background: var(--accent);
  color: #001022;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:target {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}
@media (min-width: 1280px) {
  .container {
    padding-inline: 2.5rem;
  }
}
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section-sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.sec-dark {
  background: var(--ink);
  color: var(--fg);
}
.sec-panel {
  background: var(--ink-2);
  color: var(--fg);
}
.sec-navy {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  color: var(--fg);
}
.sec-light {
  background: var(--paper);
  color: var(--graphite);
}
.sec-white {
  background: var(--paper-2);
  color: var(--graphite);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.sec-light .eyebrow,
.sec-white .eyebrow {
  color: var(--accent-deep);
}
.display {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
}
.h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  line-height: 1.1;
}
.h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}
.sec-light .lead,
.sec-white .lead {
  color: var(--graphite-3);
}
.muted {
  color: var(--muted);
}
.sec-light .muted,
.sec-white .muted {
  color: var(--graphite-3);
}
.accent {
  color: var(--accent);
}
.upper {
  text-transform: uppercase;
}
.balance {
  text-wrap: balance;
}
.block-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--r);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--accent-soft);
  color: var(--graphite);
}
.btn-primary:hover {
  background: #a9dbf0;
}
.btn-outline {
  border: 1px solid var(--line);
  color: var(--fg);
}
.sec-light .btn-outline,
.sec-white .btn-outline {
  border-color: var(--line-dark);
  color: var(--graphite);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-dark {
  background: var(--graphite);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Плейсхолдер изображения ---------- */
.img-ph {
  background: linear-gradient(135deg, #16233f 0%, #0c1428 60%, #101b33 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(166, 182, 221, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.img-ph::after {
  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: 28px 28px;
  pointer-events: none;
}
.img-ph span {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Карточка вакансии */
.vacancy-card {
  border-left: 3px solid var(--accent);
}
.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vacancy-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.vacancy-meta .v-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.vacancy-meta li > span:last-child {
  color: var(--fg);
  font-weight: 500;
}

/* Рамка для контентных изображений */
.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(9, 15, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-2);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo .mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer .logo-img {
  height: 46px;
}
.brand-slogan {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover .nav-link,
.nav-link.active {
  color: var(--fg);
}
.nav-link .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.nav-item:hover .nav-link .chev {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: rgba(12, 20, 40, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    visibility 0.22s var(--ease);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: var(--r);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Desktop hide burger, mobile hide nav */
@media (max-width: 1100px) {
  .nav,
  .header-actions .btn,
  .header-actions .icon-btn {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 12, 26, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mobile-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.mobile-close svg {
  width: 26px;
  height: 26px;
}
.m-acc {
  border-bottom: 1px solid var(--line-2);
}
.m-acc > a,
.m-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0.25rem;
  font-size: 1.15rem;
  color: var(--fg);
  text-align: left;
}
.m-acc-head .chev {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.m-acc.open .m-acc-head .chev {
  transform: rotate(180deg);
}
.m-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.m-acc.open .m-acc-body {
  max-height: 500px;
}
.m-acc-body a {
  display: block;
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(9, 15, 30, 0.92) 0%,
      rgba(9, 15, 30, 0.72) 45%,
      rgba(9, 15, 30, 0.55) 100%
    ),
    linear-gradient(0deg, rgba(9, 15, 30, 0.9) 0%, transparent 40%);
}
.hero-bg.ph {
  background: radial-gradient(
      120% 100% at 80% 10%,
      #16264a 0%,
      #0b1122 55%,
      #070c18 100%
    );
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  font-weight: 600;
}
.hero .sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--muted);
  max-width: 56ch;
}
.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.scroll-ind {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-ind .mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.scroll-ind .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ============================================================
   PAGE HERO / BREADCRUMBS
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero.ph-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 85% 0%, #16264a 0%, #0a1020 60%, #070c18 100%);
  z-index: 0;
}
.page-hero > .container {
  position: relative;
  z-index: 1;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .sep {
  opacity: 0.5;
}

/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}
.card-media {
  position: relative;
  overflow: hidden;
}
.card-media .img-ph {
  transition: transform 0.6s var(--ease);
}
.card:hover .card-media .img-ph {
  transform: scale(1.05);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .card-media img {
  transform: scale(1.05);
}
.card-body {
  padding: 1.4rem;
}

/* Stat cards */
.stat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  color: #fff;
  isolation: isolate;
}
.stat-card .img-ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  z-index: -1;
}
.stat-card .stat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}
.stat-card:hover .stat-bg {
  transform: scale(1.05);
}
.card .card-media {
  aspect-ratio: 16 / 10;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 12, 26, 0.92), rgba(6, 12, 26, 0.25));
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Service list (home) */
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.svc-row:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-row:hover {
  padding-left: 0.75rem;
}
.svc-row .num {
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.svc-row .title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  transition: color 0.3s var(--ease);
}
.svc-row:hover .title {
  color: var(--accent);
}
.svc-row .note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 26ch;
  text-align: right;
}
.svc-row .arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
  flex: none;
}
.svc-row:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #001022;
}
@media (max-width: 720px) {
  .svc-row {
    grid-template-columns: auto 1fr;
  }
  .svc-row .note {
    display: none;
  }
}

/* Project card */
.project-card {
  cursor: pointer;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}
.project-card .card-media {
  aspect-ratio: 16 / 10;
}
.project-card .card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.project-card .p-client {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.project-card .p-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Team card */
.team-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}
.team-card .card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.team-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}
.team-card:hover .card-media img {
  transform: scale(1.05);
}
.team-card .card-body {
  padding: 1.1rem 1.2rem 1.4rem;
}
.team-card .t-name {
  font-size: 1.05rem;
  font-weight: 600;
}
.team-card .t-title {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Filter tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tab {
  padding: 0.6rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.tab:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.tab.active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--graphite);
}

/* Feature blocks with numbers */
.feature {
  display: flex;
  gap: 1.25rem;
}
.feature .fnum {
  font-size: 0.95rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
  flex: none;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Numbered slogan pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Finance figures */
.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fin-cell {
  background: var(--ink-2);
  padding: 1.5rem;
}
.fin-cell .fin-label {
  font-size: 0.82rem;
  color: var(--muted);
}
.fin-cell .fin-value {
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--accent-soft);
}

/* Partners grid */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) {
  .partners {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .partners {
    grid-template-columns: repeat(2, 1fr);
  }
}
.partner-cell {
  background: var(--paper-2);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.72rem;
  color: #8a8f98;
  text-align: center;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.partner-cell:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Licenses gallery */
.licenses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .licenses {
    grid-template-columns: repeat(2, 1fr);
  }
}
.license {
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-2);
  background: #fff;
}
.license img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
}
.license:hover img {
  transform: scale(1.04);
}

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.sec-light .field input,
.sec-light .field textarea,
.sec-white .field input,
.sec-white .field textarea {
  background: #fff;
  border-color: var(--line-dark);
  color: var(--graphite);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field.error input,
.field.error textarea {
  border-color: #e5484d;
}
.field .err-msg {
  font-size: 0.75rem;
  color: #ff6b6f;
  display: none;
}
.field.error .err-msg {
  display: block;
}
.form-status {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.ok {
  background: rgba(76, 183, 230, 0.12);
  border: 1px solid rgba(76, 183, 230, 0.4);
  color: var(--accent-soft);
}
.form-status.bad {
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #ff8a8d;
}

/* ============================================================
   МОДАЛКА / ЛАЙТБОКС
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal.open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.8);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
}
.modal-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 8, 18, 0.94);
}
.lightbox.open {
  display: flex;
}
.lightbox .lb-inner {
  max-width: 92vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .lb-inner .img-ph {
  width: min(80vw, 700px);
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
}
.lightbox .lb-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-prev {
  left: 1.5rem;
}
.lb-next {
  right: 1.5rem;
}
.lb-count {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-2);
  position: relative;
}
.footer-cta {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.social:hover {
  color: #001022;
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.social svg {
  width: 19px;
  height: 19px;
}
.footer-bottom {
  border-top: 1px solid var(--line-2);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.to-top:hover {
  color: var(--accent);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover {
  transform: scale(1.08);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.stack > * + * {
  margin-top: 1.25rem;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 65ch; }
.maxw-narrow { max-width: 52ch; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Slider (reviews/team) */
.slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.slider > * {
  scroll-snap-align: start;
  flex: 0 0 min(85%, 380px);
}
.review-card {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card .quote {
  font-size: 1.02rem;
  line-height: 1.55;
}
.review-card .r-author {
  font-weight: 600;
}
.review-card .r-company {
  font-size: 0.85rem;
  color: var(--accent);
}
.review-card .r-project {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-top: 0.25rem;
}

/* Contact info list */
.contact-list {
  display: grid;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: none;
}
.contact-item .ci-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item .ci-label {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-item .ci-value {
  font-size: 1.05rem;
  margin-top: 0.15rem;
}
.contact-item .ci-value a:hover {
  color: var(--accent);
}
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  height: 100%;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

/* TODO badge */
.todo-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(229, 180, 76, 0.15);
  border: 1px solid rgba(229, 180, 76, 0.4);
  color: #e5b44c;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.preloader .pl-logo,
.preloader .pl-logo-img {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.4rem;
  animation: pl-pulse 1.4s var(--ease) infinite;
}
.preloader .pl-logo-img {
  width: 150px;
  height: auto;
}
@keyframes pl-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 404 */
.err-page {
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
}
.err-code {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
