@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   PBM Agency — styles.css
   Palette: --blue #1A35F5 | --dark #0d0d0d | --white #ffffff
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --blue:       #1A35F5;
  --blue-hover: #0f25e0;
  --dark:       #0d0d0d;
  --card-bg:    #111111;
  --card-bg-2:  #0a0a0a;
  --white:      #ffffff;
  --muted:      rgba(255, 255, 255, 0.55);
  --border:     rgba(255, 255, 255, 0.08);
  --gap:        2px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1280px;
  --pad: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(1.5rem, 3vw, 2.5rem);
  --radius: 4px;
  --t: 0.2s ease;
  /* Top padding for ALL page hero sections — единый стандарт, не менять */
  --hero-pt: clamp(0.75rem, 1.625vw, 1.375rem);
}

/* === REDUCED MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* === RESET ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* === SKIP LINK ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* === FOCUS ================================================= */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === CONTAINER ============================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* === TYPOGRAPHY UTILITIES ================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.section-header {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.section-header .section-label { justify-content: center; }

/* === BUTTONS =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--white:hover,
.btn--white:focus-visible {
  background: rgba(255, 255, 255, 0.88);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* === TAGS ================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
a.tag {
  text-decoration: none;
  transition: color var(--t), border-color var(--t);
}
a.tag:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  /* backdrop-filter moved to ::before so fixed descendants (mobile menu)
     are positioned relative to viewport, not this element */
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.nav__logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}
.nav__logo-dot { color: var(--blue); }

.nav__logo-p {
  position: relative;
  display: inline-block;
  letter-spacing: 0; /* reset parent -1px so ::after width = visual P width */
}
.nav__logo-p::after {
  content: '';
  position: absolute;
  bottom: 5px; /* raised to sit just below P glyph, not at em-box floor */
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1A35F5;
  border-radius: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  flex: 1;
}
.nav__menu li { list-style: none; }
.nav__menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
}
.nav__menu a:hover,
.nav__menu a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  order: 3;
  background: transparent;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  pointer-events: none;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — MAIN PAGE
   ============================================================ */
.hero {
  padding: var(--hero-pt) 0 clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 5% 50%, rgba(26, 53, 245, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2.5px;
  max-width: 920px;
  margin-bottom: 1.75rem;
}
.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.75rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   CLIENTS TICKER
   ============================================================ */
.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  overflow: hidden;
}
.clients__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.5rem;
}
.clients__overflow { overflow: hidden; }
.clients__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.clients__item {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
  cursor: default;
}
.clients__item:hover { color: rgba(255, 255, 255, 0.65); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES GRID — MAIN PAGE (2×2)
   ============================================================ */
.services {
  padding: var(--section-pad) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.service-card {
  background: var(--card-bg);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  transition: background var(--t);
  text-decoration: none;
  color: inherit;
}
.service-card:hover { background: #161616; }
.service-card__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}
.service-card__title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.15;
}
.service-card__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  flex: 1;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.5rem;
  transition: gap var(--t);
}
.service-card:hover .service-card__more { gap: 0.875rem; }
.service-card__more::after { content: '→'; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  background: var(--blue);
  padding: var(--section-pad) 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact__title {
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.contact__text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--white);
  width: 100%;
  transition: border-color var(--t), background var(--t);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.2);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}
.form-success {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
}
.form-success.is-visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--card-bg-2);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.footer__copy {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
  min-width: 160px;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--white); }

/* ============================================================
   INNER PAGE — SHARED COMPONENTS
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

/* Page hero */
.page-hero {
  padding: var(--hero-pt) 0 clamp(1rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--border);
}
.page-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.04;
  max-width: 820px;
  margin-bottom: 1.25rem;
}
.page-hero__desc {
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 580px;
  line-height: 1.72;
}
.page-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

/* Services list (inner pages) */
.services-list {
  padding: var(--section-pad) 0;
}
.services-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
}
.svc-item {
  background: var(--card-bg);
  padding: 1.75rem;
  border-left: 3px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.svc-item:hover {
  border-color: var(--blue);
  background: #161616;
}
.svc-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.svc-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   CASES — team page carousel
   ============================================================ */
.cases {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
  overflow: hidden;
}

/* Header row: title left, arrows right */
.cases__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Arrow nav group */
.cases__nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cases__nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), opacity var(--t);
}
.cases__nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.cases__nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Scroll container — full viewport width, hidden scrollbar */
.cases__scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Align first card with container content edge */
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
.cases__scroll::-webkit-scrollbar { display: none; }

/* Track — horizontal flex row */
.cases__track {
  display: flex;
  gap: 1.25rem;
}

/* ── Case card (portrait, image-first) ──────────────────── */
.case-card {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform var(--t);
  text-decoration: none;
  color: inherit;
}
.case-card:hover { transform: translateY(-4px); }

/* Visual area */
.case-card__visual {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  transition: box-shadow var(--t);
  flex-shrink: 0;
}
.case-card:hover .case-card__visual { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); }

/* "Подробнее" badge below card */
.case-card__more {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  align-self: center;
  margin: 0;
  transition: color var(--t), background var(--t);
}
.case-card:hover .case-card__more {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}
.case-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.case-card:hover .case-card__visual img {
  filter: grayscale(30%) brightness(0.62);
  transform: scale(1.04);
}

/* Gradient overlay: blue hint top, near-black bottom */
.case-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 53, 245, 0.15) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  pointer-events: none;
}

/* Tags: top-left */
.case-card__tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-self: flex-start;
}
.case-card__tags .tag {
  background: rgba(26, 53, 245, 0.8);
  border-color: transparent;
  color: var(--white);
}

/* Info: bottom */
.case-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.case-card__client {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.case-card__result {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

/* ── Case modals — two-column layout ────────────────────── */
.case-modal {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0;
  max-width: min(960px, calc(100vw - 2rem));
  width: 100%;
  max-height: min(88vh, 700px);
  overflow: hidden;
  color: var(--white);
  margin: auto;
}
.case-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.case-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  z-index: 3;
}
.case-modal__close:hover { background: rgba(0, 0, 0, 0.75); }
.case-modal__inner {
  display: grid;
  grid-template-columns: 1fr 42%;
  height: min(88vh, 700px);
}
.case-modal__left {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  overflow-y: auto;
  border-top: 3px solid var(--blue);
  border-radius: 12px 0 0 12px;
}
.case-modal__right {
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
}
.case-modal__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
/* Антиплагиат: контент в центре изображения */
#modal-antiplagiat .case-modal__right img {
  object-position: center top;
}
.case-card[data-modal="modal-antiplagiat"] .case-card__visual img {
  object-position: center top;
}
.case-modal__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.case-modal__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.case-modal__about {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.case-modal__block {
  margin-bottom: 1.125rem;
}
.case-modal__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.3rem;
}
.case-modal__body {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}
.case-modal__results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.case-modal__results li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  padding-left: 1.125rem;
  position: relative;
}
.case-modal__results li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
}

/* ============================================================
   HOME CASES — index page carousel
   (reuses .cases__scroll, .cases__track, .case-card)
   ============================================================ */
.home-cases {
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.home-cases__footer {
  margin-top: 2rem;
  text-align: center;
}

/* Entry product */
.entry-product {
  padding: var(--section-pad) 0;
}
.entry-card {
  background: var(--card-bg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-left: 4px solid var(--blue);
}
.entry-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.875rem;
}
.entry-card__title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}
.entry-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}
.entry-card__price {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
  text-align: right;
  color: var(--white);
}
.entry-card__price-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.375rem;
  text-align: right;
  line-height: 1.5;
}

/* Stats */
.stats {
  padding: var(--section-pad) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
}
.stat-card {
  background: var(--card-bg);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-card__value {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.stat-card__value em { color: var(--blue); font-style: normal; }
.stat-card__label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Process */
.process {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
}
.process-step {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  text-align: center;
}
.process-step__num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.process-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-step__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA section */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
  text-align: center;
}
.cta-section__inner { max-width: 600px; margin-inline: auto; }
.cta-section__title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.cta-section__text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.cta-section__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
  padding: var(--hero-pt) 0 clamp(2rem, 4vw, 3.5rem);
}
.team-intro {
  max-width: 580px;
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.72;
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.team-card {
  background: var(--card-bg);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.team-card__photo {
  aspect-ratio: 1/1;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card__photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5%;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
  z-index: 1;
}
.team-card__initials {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -3px;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
}
.team-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.team-card__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.team-card__exp {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}
.team-card__clients {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  min-height: 3.9rem;
}
.team-card__super {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: auto;
}
.team-card__super-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.375rem;
}
.team-card__super-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
  line-height: 1.55;
}

/* Values */
.values {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.value-card {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  border-top: 3px solid transparent;
  transition: border-color var(--t);
}
.value-card:hover { border-color: var(--blue); }
.value-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}
.value-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Legal / Contacts section */
.legal-section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.legal-block__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.legal-block__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.legal-block__list li,
.legal-block__list a {
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
}
.legal-block__list a:hover { color: var(--blue); }
.legal-block__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-hero {
  padding: var(--hero-pt) 0 clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}
.blog-placeholder {
  padding: clamp(5rem, 14vw, 11rem) 0;
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}
.blog-placeholder__icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}
.blog-placeholder__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.blog-placeholder__text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   PRIVACY / LEGAL
   ============================================================ */
.legal {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}
.legal__content { max-width: 740px; }
.legal__date {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.legal__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.25px;
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  padding-top: 0.5rem;
}
.legal__content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal__content p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal__content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal__content ul li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  margin-bottom: 0.375rem;
}
.legal__content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   EVENT PAGE
   ============================================================ */
.event-highlight {
  padding: var(--section-pad) 0;
}
.event-highlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.event-highlight__card {
  background: var(--card-bg);
  padding: clamp(2rem, 4vw, 3rem);
}
.event-highlight__card--accent {
  background: var(--blue);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .entry-card {
    grid-template-columns: 1fr;
  }
  .entry-card__price,
  .entry-card__price-note { text-align: left; }
  .event-highlight__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — HAMBURGER NAV (900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Push toggle to the right side */
  .nav { justify-content: space-between; }

  /* Mobile nav overlay */
  .nav__menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.75rem var(--pad) 2rem;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 199;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { width: 100%; }
  .nav__menu a:not(.btn) {
    font-size: 1.125rem;
    padding: 1rem 0.25rem;
    width: 100%;
    color: var(--white);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
  }
  .nav__menu a:not(.btn):hover,
  .nav__menu a:not(.btn)[aria-current="page"] {
    background: none;
    color: var(--blue);
  }
  .nav__cta-mobile {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
  }
  .nav__cta-mobile .btn {
    width: 100%;
    justify-content: center;
  }
  .nav__toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nav__cta-desktop { display: none; }
  /* Hide carousel arrows on mobile — users swipe */
  .cases__nav { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (768px)
   ============================================================ */
@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { flex: none; }

  .team-grid { grid-template-columns: 1fr; }
  .founders__grid { grid-template-columns: 1fr 1fr; }
  .case-card { flex: 0 0 260px; width: 260px; }
  .case-card__visual { height: 347px; }
  /* Modal: stack to single column on tablet */
  .case-modal__inner { grid-template-columns: 1fr; height: auto; max-height: 88vh; overflow-y: auto; }
  .case-modal { max-height: 88vh; overflow-y: auto; }
  .case-modal__right { display: none; }
  .case-modal__left { border-radius: 12px; padding: 1.75rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .services-list__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .case-card { flex: 0 0 80vw; width: 80vw; }
  .case-card__visual { height: calc(80vw * 4 / 3); }
  .cases__scroll { padding-left: var(--pad); padding-right: var(--pad); }
  .case-modal__left { padding: 1.25rem; }
}

/* =============================================
   EXPERTISE HUB
   ============================================= */

.articles-section {
  padding-block: var(--section-pad);
}

.articles-category {
  margin-bottom: 3.5rem;
}

.articles-category:last-child {
  margin-bottom: 0;
}

.articles-category__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.article-card__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.article-card__title {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.article-card__excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.article-card__meta {
  font-size: .775rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: .25rem;
}

.article-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .625rem;
  border-top: 1px solid var(--border);
}

.article-card__read {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .825rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--t);
}

.article-card:hover .article-card__read {
  gap: .55rem;
}

/* =============================================
   ARTICLE PAGES
   ============================================= */

.article-hero {
  padding-block: var(--hero-pt) clamp(1rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.article-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.article-hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.175rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 700px;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.38);
}

.article-hero__meta span + span::before {
  content: "·";
  margin-right: 1.25rem;
}

.article-body {
  /* top: 0 — текст начинается сразу после черты hero-секции */
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
  max-width: 740px;
}

/* Первый элемент статьи — небольшой отступ сверху */
.article-body > *:first-child {
  margin-top: 1rem;
}

.article-body h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--white);
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
}

.article-body h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}

.article-body p {
  font-size: clamp(.9rem, 1.2vw, 1.025rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  font-size: clamp(.9rem, 1.2vw, 1.025rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: .6rem;
}

.article-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  color: var(--white);
  font-style: italic;
  margin-bottom: 0;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--white);
}

.article-body strong {
  color: var(--white);
  font-weight: 700;
}

.article-checklist {
  list-style: none;
  padding-left: 0;
}

.article-checklist li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .75rem;
}

.article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.article-author {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2.5rem;
}

.article-author__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: .25rem;
}

.article-author__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.article-author__name:hover {
  color: var(--blue);
}

.article-author__role {
  font-size: .85rem;
  color: var(--muted);
}

.article-cta {
  background: var(--blue);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2rem;
}

.article-cta .article-cta__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .625rem;
  letter-spacing: -.3px;
}

.article-cta__text {
  font-size: clamp(.875rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.related-articles {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.related-articles__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .related-articles__grid { grid-template-columns: 1fr; }
  .article-hero__meta { gap: .75rem; }
}

/* FAQ section on homepage */
.faq-section {
  padding: var(--section-pad) 0;
}

.home-faq {
  max-width: 800px;
  margin-top: 2.5rem;
}

/* FAQ section inside articles */
.article-faq {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.article-faq > h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .625rem;
  line-height: 1.35;
}

.faq-item p {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── 404 page ─────────────────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px - 80px); /* viewport minus header & footer */
}

.error-page__inner {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.error-page__code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  margin: 0 0 1rem;
  letter-spacing: -4px;
}

.error-page__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .75rem;
}

.error-page__text {
  font-size: clamp(.9rem, 1.5vw, 1.125rem);
  color: var(--muted);
  margin: 0 0 2.5rem;
}

/* .stats section uses direct h2, not .section-header wrapper */
.stats { text-align: center; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--t);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 12px; height: 2px; }
.faq-item__icon::after  { width: 2px; height: 12px; transition: transform var(--t), opacity var(--t); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item .faq-item__answer {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  padding-bottom: 1.25rem;
}

/* ============================================================
   FOUNDERS BLOCK (index.html)
   ============================================================ */
.founders {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.founders__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 2.5rem;
}
.founder-card {
  background: var(--card-bg);
  border-radius: 25px;
  overflow: hidden;
}
.founder-card__photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.founder-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-card__photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5%;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
  z-index: 1;
}
.founder-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.founder-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white);
}
.founder-card__role {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.625rem;
}
.founder-card__exp {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}
.founders__cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .founders__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .founders__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STRATEGY PAGE — новые секции
   ============================================================ */

/* Hero outcomes */
.page-hero__outcomes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.page-hero__outcome {
  background: rgba(26, 53, 245, 0.12);
  border: 1px solid rgba(26, 53, 245, 0.35);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--white);
  font-weight: 600;
}

/* Кому нужна стратегия */
.needs-section {
  padding: var(--section-pad) 0;
}
.needs-section__sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
@media (max-width: 1024px) {
  .needs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .needs-grid { grid-template-columns: 1fr; }
}
.need-card {
  background: var(--card-bg);
  padding: 1.75rem;
  border-left: 3px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.need-card:hover {
  border-color: var(--blue);
  background: #161616;
}
.need-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
}
.need-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.needs-section__conclusion {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Что получит клиент */
.outcomes-section {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.outcomes-col__title {
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.outcomes-list {
  margin: 0;
}
.outcomes-list li {
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 640px) {
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* Кейсы стратегии */
.strat-cases {
  padding: var(--section-pad) 0;
}
.strat-cases__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.strat-case {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  min-width: 0;
  background: var(--card-bg);
  padding: 2rem;
  border-left: 3px solid transparent;
  transition: border-color var(--t);
}
@media (max-width: 1024px) {
  .strat-case { flex: 0 0 calc((100% - var(--gap)) / 2); }
}
@media (max-width: 600px) {
  .strat-case { flex: 0 0 100%; }
}
.strat-case:hover {
  border-color: var(--blue);
}
.strat-case__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.strat-case__result {
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.strat-case__row {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.strat-case__label {
  color: var(--white);
  font-weight: 600;
}
.strat-cases__more {
  margin-top: 2rem;
  text-align: center;
}
@media (max-width: 640px) {
  .strat-cases__grid { grid-template-columns: 1fr; }
}

/* Process CTA */
.process__cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Process 7-col variant (strategy page) */
.process__grid--7 {
  grid-template-columns: repeat(7, 1fr);
}
.process__grid--7 .process-step {
  padding: 1.5rem 0.875rem;
}
.process__grid--7 .process-step__num {
  font-size: 2rem;
}
.process__grid--7 .process-step__title {
  font-size: 0.875rem;
}
.process__grid--7 .process-step__desc {
  font-size: 0.8rem;
}
@media (max-width: 1200px) {
  .process__grid--7 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .process__grid--7 { grid-template-columns: repeat(2, 1fr); }
}

/* Почему мы */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
  justify-content: center;
}
.why-card {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  text-align: center;
}
.why-card__stat {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 0.625rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.why-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Стоимость */
.pricing-section {
  padding: var(--section-pad) 0;
}
.pricing-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.pricing-col {
  background: var(--card-bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
}
.pricing-col--pro {
  border-top-color: var(--blue);
}
.pricing-col__name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.625rem;
}
.pricing-col--pro .pricing-col__name {
  color: var(--blue);
}
.pricing-col__price {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.375rem;
  white-space: nowrap;
}
.pricing-col__period {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pricing-features li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.55;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.pricing-feature--no {
  color: rgba(255, 255, 255, 0.2) !important;
}
.pricing-feature--no::before {
  content: "—" !important;
  color: rgba(255, 255, 255, 0.2) !important;
}
@media (max-width: 720px) {
  .pricing-cols { grid-template-columns: 1fr; }
}

/* Бонус */
.bonus-section {
  padding: var(--section-pad) 0;
  background: var(--card-bg-2);
}
.bonus-card {
  background: var(--card-bg);
  border-left: 4px solid var(--blue);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.bonus-card__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0.375rem 0 1rem;
  line-height: 1.25;
}
.bonus-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bonus-card__list li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.25rem;
  position: relative;
}
.bonus-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.bonus-card__note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.bonus-card__action {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .bonus-card { grid-template-columns: 1fr; }
}

/* FAQ CTA */
.faq-section__cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ============================================================
   CASES HUB (/cases)
   ============================================================ */
.cases-hub {
  padding: var(--hero-pt) 0 clamp(2rem, 4vw, 3.5rem);
}
.cases-hub__intro {
  max-width: 560px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.cases-hub__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.75rem;
}
.cases-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .cases-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cases-hub-grid { grid-template-columns: 1fr; }
}

/* Hub card */
.ch-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--t);
}
.ch-card:hover { transform: translateY(-4px); }

.ch-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.ch-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.48);
  transition: filter 0.4s ease, transform 0.4s ease;
  display: block;
}
.ch-card:hover .ch-card__img img {
  filter: grayscale(25%) brightness(0.6);
  transform: scale(1.04);
}
.ch-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 53, 245, 0.12) 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  pointer-events: none;
}
.ch-card__tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-self: flex-start;
}
.ch-card__tags .tag {
  background: rgba(26, 53, 245, 0.8);
  border-color: transparent;
  color: var(--white);
}
.ch-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ch-card__client {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.ch-card__result {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}
.ch-card__action {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.375rem;
  pointer-events: auto;
  transition: color var(--t);
}
.ch-card:hover .ch-card__action { color: rgba(255, 255, 255, 0.75); }

/* ============================================================
   CASE DETAIL PAGE
   ============================================================ */
.case-hero {
  padding: var(--hero-pt) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}
.case-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.case-hero__breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t);
}
.case-hero__breadcrumb a:hover { color: var(--white); }
.case-hero__breadcrumb span { color: rgba(255, 255, 255, 0.3); }
.case-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.case-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.case-hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 680px;
}
.case-hero__kpis {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.kpi__value {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.kpi__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Case body */
.case-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.case-section {
  margin-bottom: 2.5rem;
}
.case-section__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.625rem;
}
.case-section h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.case-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.case-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.case-section ul li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 1.25rem;
  position: relative;
}
.case-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.85rem;
}

/* Inline images inside case body */
.case-img {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.case-img img {
  width: 100%;
  display: block;
}
.case-img--half {
  max-width: 60%;
}

/* Media heading inside case */
.case-media-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--border);
}
.case-media-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.case-media-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  margin: 2rem 0 1rem;
}

/* Horizontal video 16:9 */
.video-wrap {
  margin: 1.5rem 0;
}
.video-wrap__inner {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.video-wrap__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vertical video grid 9:16 */
.video-grid-v {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 900px) {
  .video-grid-v { grid-template-columns: repeat(2, 1fr); }
}
.video-grid-v__item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.video-grid-v__item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo gallery masonry */
.photo-gallery {
  columns: 3;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 900px) {
  .photo-gallery { columns: 2; }
}
@media (max-width: 480px) {
  .photo-gallery { columns: 1; }
}
.photo-gallery__item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}
.photo-gallery__item img {
  width: 100%;
  display: block;
}

/* Case CTA block */
.case-cta {
  background: var(--card-bg);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  margin: 3rem 0 0;
}
.case-cta__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.case-cta__text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Narrow horizontal video (letovo) */
.video-wrap--narrow {
  max-width: 78%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) {
  .video-wrap--narrow { max-width: 100%; }
}

/* Hero image inside case-hero (under h1, above lead) */
.case-hero__img-block {
  max-width: 780px;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.case-hero__img-block img {
  width: 100%;
  display: block;
}

/* Inline photos in case body (2-3 small photos) */
.case-inline-photos {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
  flex-wrap: wrap;
}
.case-inline-photos img {
  flex: 1;
  min-width: 0;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
@media (max-width: 600px) {
  .case-inline-photos img { height: 140px; }
}

/* CGI vertical video mini-grid (3 cols in решение) */
.video-grid-v--cgi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}
.video-grid-v--cgi .video-grid-v__item {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.video-grid-v--cgi .video-grid-v__item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .video-grid-v--cgi { grid-template-columns: 1fr; }
}

/* Photo lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

/* ============================================================
   LIGHT THEME — статьи и страница Экспертиза
   Применяется через класс .page--light на <body>
   ============================================================ */
.page--light {
  /* --- переменные ------------------------------------------ */
  --dark:     #ffffff;
  --white:    #111111;
  --card-bg:  #f4f4f6;
  --card-bg-2:#ebebee;
  --muted:    rgba(0, 0, 0, 0.5);
  --border:   rgba(0, 0, 0, 0.1);

  background: #ffffff;
  color: #111111;
}

/* Текст-подпись на хабе «Экспертиза» */
.page--light .page-hero__desc {
  color: rgba(0, 0, 0, 0.6);
}

/* Мета статьи (автор, дата, время) */
.page--light .article-hero__meta {
  color: rgba(0, 0, 0, 0.45);
}
.page--light .article-hero__meta span + span::before {
  color: rgba(0, 0, 0, 0.25);
}

/* Сетка статей — bento grid */
.page--light .articles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.page--light .article-card {
  grid-column: span 2;
}
/* Широкие карточки (ряды по 2): 1, 2, 6, 7, 11, 12 */
.page--light .article-card:nth-child(1),
.page--light .article-card:nth-child(2),
.page--light .article-card:nth-child(6),
.page--light .article-card:nth-child(7),
.page--light .article-card:nth-child(11),
.page--light .article-card:nth-child(12) {
  grid-column: span 3;
}
@media (max-width: 900px) {
  .page--light .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page--light .article-card,
  .page--light .article-card:nth-child(1),
  .page--light .article-card:nth-child(2),
  .page--light .article-card:nth-child(6),
  .page--light .article-card:nth-child(7),
  .page--light .article-card:nth-child(11),
  .page--light .article-card:nth-child(12) {
    grid-column: span 1;
  }
}
@media (max-width: 560px) {
  .page--light .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Шапка */
.page--light .site-header::before {
  background: rgba(255, 255, 255, 0.92);
}
.page--light .site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Пункты меню */
.page--light .nav__menu a {
  color: #111111;
}
.page--light .nav__menu a:hover,
.page--light .nav__menu a[aria-current="page"] {
  color: #111111;
  background: rgba(0, 0, 0, 0.05);
}

/* Кнопка «Оставить заявку» — синяя, текст всегда белый */
.page--light .btn--primary {
  color: #ffffff;
}
.page--light .btn--primary:hover,
.page--light .btn--primary:focus-visible {
  color: #ffffff;
}

/* Кнопка .btn--white (в CTA статьи) → синяя с белым текстом */
.page--light .btn--white {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}
.page--light .btn--white:hover,
.page--light .btn--white:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #ffffff;
}

/* Хлебная крошка */
.page--light .breadcrumb a {
  color: rgba(0, 0, 0, 0.5);
}
.page--light .breadcrumb a:hover {
  color: #111111;
}
.page--light .breadcrumb__sep {
  color: rgba(0, 0, 0, 0.3);
}

/* Тело статьи — хардкоженые цвета */
.page--light .article-body p {
  color: rgba(0, 0, 0, 0.75);
}
.page--light .article-body li {
  color: rgba(0, 0, 0, 0.75);
}
.page--light .article-body a:hover {
  color: var(--blue-hover);
}
.page--light .article-body blockquote {
  background: #eef1ff;
}
.page--light .article-body blockquote p {
  color: rgba(0, 0, 0, 0.75);
}

/* CTA-блок статьи */
.page--light .article-cta {
  background: #eef1ff;
  border: 1px solid rgba(26, 53, 245, 0.18);
}
.page--light .article-cta__title {
  color: #111111;
}
.page--light .article-cta__text {
  color: rgba(0, 0, 0, 0.65);
}
.page--light .article-cta a,
.page--light .article-cta .btn--white {
  text-decoration: none;
}

/* Карточки статей */
.page--light .article-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}
.page--light .article-card__meta {
  color: rgba(0, 0, 0, 0.4);
}

/* «Читать ещё» заголовок */
.page--light .related-articles__title {
  color: rgba(0, 0, 0, 0.45);
}
.page--light .related-articles {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* FAQ внутри статьи */
.page--light .article-faq {
  border-top-color: rgba(0, 0, 0, 0.1);
}
.page--light .faq-item:first-of-type {
  border-top-color: rgba(0, 0, 0, 0.1);
}
.page--light .faq-item {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Футер */
.page--light .site-footer {
  background: #f0f0f2;
  border-top-color: rgba(0, 0, 0, 0.1);
}
.page--light .footer__copy {
  color: rgba(0, 0, 0, 0.45);
}
.page--light .footer__links a {
  color: rgba(0, 0, 0, 0.6);
}
.page--light .footer__links a:hover {
  color: #111111;
}
.photo-gallery__item img { cursor: zoom-in; }

/* =============================================
   LIKES
   ============================================= */

/* Кнопка лайка (универсальная) */
.likes-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: .8rem;
  font-family: var(--font);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--t);
}
.likes-btn svg {
  width: 1rem;
  height: 1rem;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
  flex-shrink: 0;
  transition: stroke var(--t), fill var(--t);
}
.likes-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}
.likes-btn:hover svg {
  stroke: rgba(255, 255, 255, 0.7);
}
.likes-btn--liked {
  color: #e0425a;
}
.likes-btn--liked svg {
  stroke: #e0425a;
  fill: #e0425a;
}

/* Крупная кнопка под статьёй */
.likes-btn--lg {
  font-size: .95rem;
  gap: .5rem;
}
.likes-btn--lg svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Строка с кнопкой лайка под статьёй */
.article-like-row {
  display: flex;
  align-items: center;
  padding-block: 1.5rem 0;
}

/* Лайк в мета-строке героя (read-only, без кнопки) */
.article-hero__likes {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.article-hero__likes svg {
  width: .875rem;
  height: .875rem;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* Кнопка лайка в карточке на expertise.html */
.article-card .likes-btn {
  flex-shrink: 0;
}

/* ── light theme overrides ── */
.page--light .likes-btn {
  color: rgba(0, 0, 0, 0.4);
}
.page--light .likes-btn svg {
  stroke: rgba(0, 0, 0, 0.4);
}
.page--light .likes-btn:hover {
  color: rgba(0, 0, 0, 0.65);
}
.page--light .likes-btn:hover svg {
  stroke: rgba(0, 0, 0, 0.65);
}
.page--light .likes-btn--liked {
  color: #e0425a;
}
.page--light .likes-btn--liked svg {
  stroke: #e0425a;
  fill: #e0425a;
}
.page--light .article-card__bottom {
  border-top-color: rgba(0, 0, 0, 0.1);
}
