/* Kuna — стилистика в духе референса TERRA / ZROBIM: нейтральная палитра, стекло, геометрия */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500;1,600&family=Inter:wght@400;500;600&family=Montserrat:wght@500;600;700&display=swap");
@import url("theme-light.css");

:root {
  --charcoal: #1a1a1a;
  --anthracite: #2c2c2e;
  --graphite: #3a3a3e;
  --muted: #6e6e73;
  --fog: #b4b2ad;
  --surface: #efeee9;
  --surface-2: #e4e2dc;
  --white: #faf9f7;
  --pure: #ffffff;
  --line: rgba(26, 26, 26, 0.1);
  --line-soft: rgba(26, 26, 26, 0.06);
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(28, 28, 30, 0.55);
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-heading: "Montserrat", Inter, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
  --max: 1180px;
  /* совместимость со старыми переменными */
  --primary: var(--charcoal);
  --accent: var(--graphite);
  --dark: var(--charcoal);
  --light-bg: var(--surface);
  --font: var(--font-body);
  --line-on-dark: rgba(255, 255, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--surface);
  letter-spacing: 0.01em;
}

body.page-home {
  background: var(--charcoal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

/* ——— Шапка (тёмная, «студийная») ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  min-height: 76px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-self: start;
}

.logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
}
.logo::before {
  content: "";
  width: 22px;
  height: 22px;
  background: linear-gradient(
      to right,
      var(--on-dark) 33%,
      transparent 0 66%,
      var(--on-dark) 0
    )
    0 0 / 100% 33% repeat-y,
    linear-gradient(
      to right,
      var(--on-dark) 33%,
      transparent 0 66%,
      var(--on-dark) 0
    )
    0 33% / 100% 33% repeat-y,
    linear-gradient(
      to right,
      var(--on-dark) 33%,
      transparent 0 66%,
      var(--on-dark) 0
    )
    0 66% / 100% 33% repeat-y;
  opacity: 0.85;
}
.logo span {
  color: var(--on-dark-muted);
  font-weight: 500;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  border: 1px solid var(--line-on-dark);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    opacity 0.2s ease;
}
.nav-link:hover,
.nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  opacity: 1;
}
.nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: rgba(36, 36, 38, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--line-on-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 90;
}
.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu,
.nav-item.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--on-dark);
  border: none;
}
.nav-submenu a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding: 8px 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.header-link:hover {
  color: var(--on-dark);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--pure);
  color: var(--charcoal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  opacity: 0.92;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  background: var(--pure);
  text-decoration: none;
}

.btn-arrow::after {
  content: "→";
  font-size: 1rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after {
  transform: translateX(3px);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
}

/* ——— Мобильное меню ——— */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.mobile-drawer.is-open {
  pointer-events: auto;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 340px);
  height: 100%;
  background: var(--anthracite);
  color: var(--on-dark);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 24px 18px;
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.mobile-submenu {
  padding-left: 12px;
  margin-bottom: 10px;
}
.mobile-submenu a {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  padding: 8px 10px;
  color: var(--on-dark-muted);
}

/* ——— Подвал ——— */
.site-footer {
  margin-top: 72px;
  padding: 56px 0 40px;
  background: var(--charcoal);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-on-dark);
}
.site-footer a {
  color: var(--on-dark);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-brand .logo {
  color: var(--on-dark);
}
.footer-brand .logo span {
  color: var(--on-dark-muted);
}
.footer-meta {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 14px;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-row a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-on-dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.social-row a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ——— Типографика страниц ——— */
.page-hero {
  padding: 48px 0 36px;
}
.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--charcoal);
}
.lead {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 56ch;
}

.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--surface-2);
}
.section-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.section-sub {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 58ch;
}

.grid {
  display: grid;
  gap: 20px;
}
.cards-3,
.cards-4 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--pure);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.card .icon {
  width: 40px;
  height: 40px;
  color: var(--graphite);
}

/* ——— Hero TERRA-style (только главная) ——— */
.hero-terra {
  position: relative;
  min-height: min(92vh, 900px);
  margin-top: -76px;
  padding: 120px 0 clamp(52px, 6vh, 80px);
  padding-bottom: max(clamp(52px, 6vh, 80px), env(safe-area-inset-bottom, 0px) + 40px);
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Главная: ровно один экран, без растягивания контентом */
.page-home .hero-terra {
  min-height: 100dvh;
  max-height: 100dvh;
  height: 100dvh;
  padding-top: calc(76px + clamp(12px, 2vh, 22px));
  padding-bottom: clamp(16px, 2.5vh, 28px);
  overflow: hidden;
}
.hero-terra__bg {
  position: absolute;
  inset: 0;
  background-color: #2a2826;
  background-image: linear-gradient(
      105deg,
      rgba(12, 12, 14, 0.75) 0%,
      rgba(26, 26, 28, 0.45) 45%,
      rgba(18, 18, 20, 0.55) 100%
    ),
    url("images/hero/kuna-hero-desktop.webp");
  background-size: cover;
  background-position: 60% 55%;
}

.page-home .hero-terra__bg {
  background-image: linear-gradient(
      105deg,
      rgba(10, 10, 12, 0.9) 0%,
      rgba(18, 18, 22, 0.78) 42%,
      rgba(22, 22, 26, 0.55) 68%,
      rgba(18, 18, 20, 0.62) 100%
    ),
    url("images/hero/kuna-hero-desktop.webp");
  background-position: 72% 48%;
}
.hero-terra__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(16px, 2.5vh, 28px);
  min-height: 0;
}

.page-home .hero-terra__inner {
  gap: clamp(8px, 1.4vh, 14px);
  min-height: 0;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-terra__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    align-items: start;
    gap: clamp(12px, 2vh, 20px) 40px;
    flex: 1;
    min-height: 0;
  }

  .page-home .hero-terra__inner {
    grid-template-rows: auto auto auto auto;
    align-content: space-between;
    gap: clamp(6px, 1.2vh, 14px) 32px;
    height: 100%;
  }

  .hero-terra__inner::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 0;
  }

  .page-home .hero-terra__inner::before {
    display: none;
  }

  .hero-terra__meta {
    grid-row: 1;
    grid-column: 1;
  }

  .hero-terra__pillars {
    grid-row: 1;
    grid-column: 2;
  }

  .hero-terra__titles {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .hero-glass {
    grid-row: 4;
    grid-column: 1;
  }

  .page-home .hero-glass {
    grid-row: 3;
    padding: 12px 16px;
    max-width: min(100%, 340px);
    background: rgba(14, 16, 22, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .page-home .hero-glass dl {
    gap: 4px 10px;
  }

  .page-home .hero-glass dt {
    font-size: 0.58rem;
  }

  .page-home .hero-glass dd {
    font-size: 0.78rem;
  }

  .hero-terra__bottom {
    grid-row: 5;
    grid-column: 1 / -1;
  }

  .page-home .hero-terra__bottom {
    grid-row: 4;
  }

  .page-home .hero-terra__mega {
    font-size: clamp(3.2rem, 11vw, 7.5rem);
  }

  .page-home .hero-terra__script {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  }

  .page-home .hero-terra__pillars.hero-terra__pillars--panel {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    align-self: start;
    max-width: min(100%, 360px);
    padding: 14px 18px;
  }

  .page-home .hero-terra__pillars.hero-terra__pillars--panel::before {
    margin-bottom: 10px;
  }

  .page-home .hero-terra__pillars.hero-terra__pillars--panel li {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .page-home .hero-terra__meta,
  .page-home .hero-terra__pillars {
    font-size: 0.64rem;
  }

  .page-home .hero-terra__lead {
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

.hero-terra__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-family: var(--font-heading);
}
.hero-terra__meta strong {
  color: var(--on-dark);
  font-weight: 600;
}

.hero-terra__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
@media (min-width: 900px) {
  .hero-terra__pillars {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .page-home .hero-terra__pillars.hero-terra__pillars--panel {
    text-align: left;
  }
}
.hero-terra__pillars li {
  margin-bottom: 8px;
}
.hero-terra__pillars li::before {
  content: "— ";
  opacity: 0.5;
}

.hero-terra__titles {
  position: relative;
  grid-column: 1 / -1;
  min-height: clamp(140px, 20vw, 240px);
}

.page-home .hero-terra__titles {
  min-height: clamp(72px, 12vh, 130px);
  overflow: visible;
}

.page-home .hero-terra__mega {
  left: 0;
  max-width: 100%;
  font-size: clamp(2.75rem, 12vw, 8rem);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.14);
}

.page-home .hero-terra__script {
  right: 0;
  bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 6px rgba(0, 0, 0, 0.4);
}

.page-home .hero-terra__meta,
.page-home .hero-terra__lead {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.35);
}

.page-home .hero-terra__meta strong {
  color: rgba(255, 255, 255, 0.96);
}

.page-home .hero-terra__lead {
  color: rgba(255, 255, 255, 0.92);
}

.page-home .hero-terra__pillars.hero-terra__pillars--panel {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(14, 16, 22, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-home .hero-terra__pillars.hero-terra__pillars--panel::before {
  content: "Фокус Kuna";
  display: block;
  margin-bottom: 8px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 145, 87, 0.95);
}

.page-home .hero-terra__pillars.hero-terra__pillars--panel li {
  margin-bottom: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(250, 249, 247, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.page-home .hero-terra__pillars.hero-terra__pillars--panel li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(180, 145, 87, 0.85);
  vertical-align: middle;
  opacity: 1;
}

.hero-terra__mega {
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
}
.hero-terra__script {
  position: absolute;
  right: 4%;
  bottom: 8%;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.page-home .hero-glass {
  background: rgba(14, 16, 22, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-glass {
  grid-column: 1 / -1;
  max-width: 380px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-on-dark);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero-glass {
    max-width: 380px;
    justify-self: start;
    align-self: end;
    margin-bottom: 0;
  }
}
.hero-glass dl {
  margin: 0;
  display: grid;
  gap: 10px 16px;
}
.hero-glass dt {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-family: var(--font-heading);
}
.hero-glass dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--on-dark);
}

.hero-terra__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-bottom: 0;
}

@media (min-width: 900px) {
  .hero-terra__bottom {
    margin-top: 0;
    align-self: end;
    padding-bottom: 4px;
  }
}

@media (max-width: 899px) {
  .hero-glass {
    max-width: 100%;
    margin-top: auto;
  }

  .page-home .hero-glass {
    margin-top: 0;
    padding: 12px 14px;
  }

  .page-home .hero-terra__mega {
    font-size: clamp(2.4rem, 14vw, 4.5rem);
  }

  .page-home .hero-terra__script {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }

  .page-home .hero-terra__lead {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero-terra__bottom {
    margin-top: clamp(12px, 2vh, 20px);
  }

  .page-home .hero-terra__bottom {
    margin-top: clamp(8px, 1.2vh, 14px);
  }
}
.hero-terra__lead {
  margin: 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.hero-terra__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@supports not (height: 100dvh) {
  .page-home .hero-terra {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
  }
}

/* старый класс hero-home — оставляем минимально для прочих страниц если встретится */
.hero-home {
  padding: 48px 0;
  background: var(--surface);
}

.stat-cards .stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.stat-cards .stat-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}

.tabs-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tab-btn {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--pure);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-btn.is-active {
  background: var(--charcoal);
  color: var(--pure);
  border-color: var(--charcoal);
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

.steps {
  display: grid;
  gap: 16px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--pure);
}
.step-num {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--charcoal);
  color: var(--pure);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.logo-placeholder {
  width: 120px;
  height: 48px;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.04);
  border: 1px dashed var(--line);
}

.quote-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--pure);
}
.quote-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d5d3ce, #9c9a96);
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--pure);
}
.accordion-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  border: none;
  background: var(--pure);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}
.accordion-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.accordion-item.is-open .accordion-a {
  display: block;
}

.price-cards {
  display: grid;
  gap: 18px;
}
.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  padding: 24px;
  background: var(--pure);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.price-tag {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
}
.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--pure);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
}
table.compare th,
table.compare td {
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
}
table.compare th {
  background: var(--surface);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--pure);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn.is-active {
  background: var(--charcoal);
  color: var(--pure);
  border-color: var(--charcoal);
}

.portfolio-card {
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
  overflow: hidden;
}
.portfolio-card:hover {
  transform: translateY(-4px);
}
.portfolio-thumb {
  height: 140px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: grid;
  place-items: center;
  color: var(--pure);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.portfolio-card h3,
.portfolio-card p {
  padding: 0 18px;
}
.portfolio-card h3 {
  margin-top: 16px;
}
.portfolio-card p:last-child {
  margin-bottom: 18px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-root.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.65);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--pure);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--charcoal);
}

.modal-kicker {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-meta-tags {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.modal-project-link {
  margin-top: 22px;
}

.modal-project-link .btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .modal-project-link .btn {
    width: auto;
  }
}

.form-grid {
  display: grid;
  gap: 14px;
}
label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--pure);
  color: var(--charcoal);
}

/* macOS/Safari: нативный список option при color-scheme: dark на html */
select {
  color-scheme: light;
  appearance: auto;
  -webkit-appearance: menulist;
}

select option {
  background-color: #faf9f7;
  color: #1a1a1a;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.field-error {
  color: #8a2f2f;
  font-size: 0.8rem;
  margin-top: 4px;
}
.form-success {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #e8ebe6;
  border: 1px solid #c5c9c0;
  color: var(--charcoal);
  font-weight: 600;
}

.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(138, 47, 47, 0.35);
  background: rgba(138, 47, 47, 0.08);
  color: #8a2f2f;
  font-size: 0.9rem;
}

.contact-form {
  position: relative;
}

.contact-form-note {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.phone-field__row {
  display: grid;
  grid-template-columns: minmax(108px, 34%) 1fr;
  gap: 8px;
  margin-top: 6px;
}

.phone-field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-family: var(--font-body);
}

html[data-theme="dark"] body.page-contacts .phone-field__hint,
html[data-theme="dark"] body.page-contacts .contact-form-note {
  color: var(--on-dark-muted);
}

html[data-theme="dark"] body.page-contacts .form-error {
  border-color: rgba(255, 180, 180, 0.35);
  background: rgba(255, 120, 120, 0.1);
  color: #f0c4c4;
}

.two-col {
  display: grid;
  gap: 28px;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  min-height: 280px;
}
.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ——— 404 ——— */
body.page-error {
  background: var(--charcoal);
  color: var(--on-dark-muted);
}

body.page-error .page-error-hero {
  position: relative;
  isolation: isolate;
  margin-top: -76px;
  padding: clamp(100px, 17vh, 140px) 0 clamp(52px, 9vh, 72px);
  overflow: hidden;
}

body.page-error .page-error-hero__code {
  position: absolute;
  right: clamp(-2%, 2vw, 6%);
  top: 58%;
  transform: translateY(-52%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

body.page-error .page-error-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52ch;
}

body.page-error .page-error-hero .section-kicker {
  color: var(--fog);
}

body.page-error .page-error-hero h1 {
  color: var(--on-dark);
  margin-bottom: 14px;
}

body.page-error .page-error-hero .lead {
  color: var(--on-dark-muted);
  max-width: 48ch;
}

body.page-error .page-error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.page-error .btn-outline {
  border-color: var(--line-on-dark);
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
}

body.page-error .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  text-decoration: none;
}

body.page-error .section-title {
  color: var(--on-dark);
}

body.page-error .section-kicker {
  color: var(--fog);
}

body.page-error .section-sub {
  color: var(--on-dark-muted);
  max-width: 56ch;
}

body.page-error .section-alt {
  background: var(--anthracite);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-error .page-error-links .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
}

body.page-error .page-error-links .card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

body.page-error .page-error-links .card h3 {
  color: var(--on-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

body.page-error .page-error-links .card p {
  color: var(--on-dark-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.page-error .site-breadcrumbs a,
body.page-error .site-breadcrumbs li[aria-current="page"] {
  color: var(--on-dark-muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.page-error .site-breadcrumbs a:hover {
  color: var(--on-dark);
}

body.page-error .site-footer {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.blog-grid {
  display: grid;
  gap: 18px;
}

/* Блог: сетка «брусчатка» — широкие карточки с обложкой + компактные заметки */
.blog-grid--masonry {
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 16px;
}

.blog-card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--pure);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card--compact .blog-card__body {
  padding: 20px 22px 22px;
}

.blog-card--compact h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.blog-card--compact p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.blog-grid article {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--pure);
  box-shadow: var(--shadow-soft);
}
.blog-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.prose {
  max-width: 68ch;
}
.prose p {
  margin: 0 0 14px;
}

body.page-legal .legal-doc__meta {
  margin: 16px 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

body.page-legal .legal-doc h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: 0.02em;
}

body.page-legal .legal-doc ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

body.page-legal .legal-doc li {
  margin-bottom: 6px;
}

body.page-legal .legal-doc__note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 14px;
}

.footer-legal a {
  font-size: 0.82rem;
  opacity: 0.85;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  max-width: 52ch;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--charcoal);
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pure);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
}
.price-table th,
.price-table td {
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
}
.price-table th {
  background: var(--surface);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-rows {
  display: grid;
  gap: 14px;
  max-width: 440px;
}

.pc-calc-card {
  max-width: 560px;
}
.calc-total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 8px;
}

body.page-personal .calc-rows label {
  display: grid;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

body.page-personal .calc-rows select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
  /* Светлая системная раскраска списка — иначе option наследуют белый текст */
  color-scheme: light;
}

body.page-personal .calc-rows select option {
  background-color: #ffffff;
  color: #1a1a1a;
}

body.page-personal .calc-total {
  color: var(--on-dark);
}

/* ——— Служебные страницы (контакты, политика): обе темы ——— */
html[data-theme="dark"] body.page-contacts,
html[data-theme="dark"] body.page-utility {
  background: var(--charcoal);
  color: var(--on-dark-muted);
}

html[data-theme="dark"] body.page-contacts .page-hero h1,
html[data-theme="dark"] body.page-contacts .section-title,
html[data-theme="dark"] body.page-utility h1,
html[data-theme="dark"] body.page-utility h2 {
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts .lead,
html[data-theme="dark"] body.page-contacts p,
html[data-theme="dark"] body.page-utility p {
  color: var(--on-dark-muted);
}

html[data-theme="dark"] body.page-contacts main a,
html[data-theme="dark"] body.page-utility main a {
  color: var(--fog);
}

html[data-theme="dark"] body.page-contacts main a:hover,
html[data-theme="dark"] body.page-utility main a:hover {
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts .section-alt,
html[data-theme="dark"] body.page-utility .section-alt {
  background: var(--anthracite);
}

html[data-theme="dark"] body.page-contacts input,
html[data-theme="dark"] body.page-contacts select,
html[data-theme="dark"] body.page-contacts textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts label,
html[data-theme="dark"] body.page-utility label {
  color: var(--on-dark-muted);
}

html[data-theme="dark"] body.page-contacts .form-success {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts .map-wrap {
  border-color: var(--line-on-dark);
}

.team-grid {
  display: grid;
  gap: 20px;
}
.team-card {
  text-align: center;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--pure);
}
.team-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #d5d3ce, #8e8c88);
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.principles {
  display: grid;
  gap: 16px;
}
.principle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.page-business .team-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-business .team-card strong {
  color: var(--on-dark);
}

body.page-business .team-card__role {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

body.page-business .team-card__skills {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(250, 249, 247, 0.72);
}

body.page-business .principle .icon {
  color: var(--fog);
  flex-shrink: 0;
}

body.page-business .principle strong {
  color: var(--on-dark);
}

body.page-business .principle p {
  margin: 4px 0 0;
  color: var(--on-dark-muted);
}

body.page-business .blog-grid .blog-card,
body.page-business .blog-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.page-business .blog-grid .blog-card h2,
body.page-business .blog-grid article h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.page-business .blog-grid .blog-card h2,
body.page-business .blog-grid .blog-card h2 a,
body.page-business .blog-grid article h2 a {
  color: var(--on-dark);
  text-decoration: none;
}

body.page-business .blog-card--compact:hover h2,
body.page-business .blog-grid article h2 a:hover {
  color: var(--pure);
}

body.page-business .blog-grid .blog-card p,
body.page-business .blog-grid article p {
  margin: 0;
  color: var(--on-dark-muted);
}

body.page-business .blog-card--compact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

body.page-business .blog-card--wide:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

body.page-business .blog-meta {
  color: var(--on-dark-muted);
}

body.page-business .cat-links,
body.page-business .cat-links span {
  color: var(--on-dark-muted);
}

body.page-business .cat-links a {
  color: var(--fog);
  text-decoration: none;
}

body.page-business .cat-links a:hover {
  color: var(--on-dark);
}

body.page-business .prose h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--on-dark);
}

body.page-business .prose h3 {
  margin: 28px 0 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
}

body.page-business .prose ul,
body.page-business .prose ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
  color: var(--on-dark-muted);
}

body.page-business .prose li {
  margin-bottom: 8px;
}

body.page-business .prose li strong {
  color: var(--on-dark);
}

.blog-article-cover {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.blog-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}

.blog-article-cover__cap {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card--wide {
  padding: 0;
}

.blog-card--wide .blog-card__cover {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card--wide .blog-card__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 0.45s ease;
}

.blog-card--wide:hover .blog-card__cover img {
  transform: scale(1.03);
}

.blog-card--wide .blog-card__body {
  padding: 20px 22px 22px;
}

.blog-card--wide h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--on-dark);
}

.blog-card--wide p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

html[data-theme="light"] body.page-business .blog-card--wide h2,
html[data-theme="light"] body.page-business .blog-card--compact h2 {
  color: var(--charcoal);
}

html[data-theme="light"] body.page-business .blog-card--wide p,
html[data-theme="light"] body.page-business .blog-card--compact p {
  color: var(--muted);
}

html[data-theme="light"] body.page-business .blog-card--compact:hover {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="light"] body.page-business .blog-card--wide,
html[data-theme="light"] body.page-business .blog-card--compact {
  background: var(--pure);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  body.page-blog .blog-grid--masonry {
    grid-template-columns: repeat(6, 1fr);
  }
  body.page-blog .blog-grid--masonry .blog-card--wide {
    grid-column: span 6;
  }
  body.page-blog .blog-grid--masonry .blog-card--compact {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  body.page-blog .blog-grid--masonry {
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
  }
  body.page-blog .blog-grid--masonry .blog-card--wide {
    grid-column: span 6;
  }
  body.page-blog .blog-grid--masonry .blog-card--compact {
    grid-column: span 3;
  }
}

/* На широких экранах оставляем wide = 6 колонок (две «плитки» в ряд), иначе три обложки в линию выглядят как колонна */

.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.pagination .btn-outline.disabled,
.pagination .btn-outline:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Появление блоков при скролле */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Главная: светлые секции после тёмного hero */
/* ——— Главная: editorial после hero (тёмный модульный лендинг) ——— */
body.page-home main > .section {
  background: #0a0a0a;
  color: rgba(250, 249, 247, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-home .section-alt,
body.page-home .section.section--editorial-alt {
  background: #101014;
}

body.page-home main > .section .section-title {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.12;
  color: rgba(250, 249, 247, 0.94);
  max-width: 18ch;
}

body.page-home main > .section .section-kicker {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.55);
}

body.page-home main > .section .section-sub {
  color: rgba(250, 249, 247, 0.58);
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.75;
}

body.page-home main > .section .section-sub--tight {
  margin-bottom: 22px;
}

body.page-home main > .section .card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(250, 249, 247, 0.94);
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.page-home main > .section .card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18);
}

body.page-home main > .section .card h3 {
  color: rgba(250, 249, 247, 0.94);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.78rem;
}

body.page-home main > .section .card p {
  color: rgba(250, 249, 247, 0.58);
}

body.page-home main > .section .card .icon {
  color: rgba(250, 249, 247, 0.55);
}

body.page-home main > .section .tab-btn {
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(250, 249, 247, 0.55);
}

body.page-home main > .section .tab-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(250, 249, 247, 0.94);
  border-color: rgba(255, 255, 255, 0.35);
}

body.page-home main > .section .step {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(250, 249, 247, 0.94);
}

body.page-home main > .section .step strong {
  color: rgba(250, 249, 247, 0.94);
}

body.page-home main > .section .step-num {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 249, 247, 0.94);
}

body.page-home main > .section .quote-card {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-home main > .section .quote-card p {
  color: rgba(250, 249, 247, 0.58);
}

body.page-home main > .section .quote-head span {
  color: rgba(250, 249, 247, 0.55) !important;
}

body.page-home main > .section .stat-cards .stat-num {
  color: rgba(250, 249, 247, 0.94);
}

body.page-home main > .section .stat-cards .stat-label {
  color: rgba(250, 249, 247, 0.58);
}

body.page-home main > .section .logo-placeholder {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-home main > .section .btn-primary {
  background: transparent;
  color: rgba(250, 249, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

body.page-home main > .section .btn-primary:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.editorial-split {
  display: grid;
  gap: 28px 40px;
  margin-bottom: 36px;
  align-items: start;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .editorial-split--invert {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .editorial-split--invert .editorial-split__copy {
    order: 0;
  }

  .editorial-split--invert .editorial-split__media {
    order: 1;
  }
}

.editorial-split__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.editorial-split__media--stagger {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.editorial-photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.45)),
    url("images/editorial/kuna-editorial-directions-left.webp");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-split__media:not(.editorial-split__media--stagger) .editorial-photo:first-child {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5)),
    url("images/editorial/kuna-editorial-directions-right.webp");
}

.editorial-photo--tall {
  aspect-ratio: 3 / 5;
  min-height: 220px;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.55)),
    url("images/editorial/kuna-editorial-results-tall.webp");
}

.editorial-photo--mid {
  aspect-ratio: 2 / 3;
  min-height: 180px;
  margin-top: 36px;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.55)),
    url("images/editorial/kuna-editorial-results-mid.webp");
}

.editorial-tabs-wrap {
  margin-top: 8px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.94);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 4px;
  margin-top: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.link-arrow::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  opacity: 0.85;
  border-bottom-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.editorial-cta {
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

.editorial-cta .section-title {
  max-width: none;
}

.editorial-cta__sub {
  margin-top: 16px;
  margin-bottom: 28px;
}

@media (min-width: 480px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .burger {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
  .price-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid:not(.blog-grid--masonry) {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .blog-grid:not(.blog-grid--masonry) {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .team-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 920px;
    margin-inline: auto;
  }
  .team-grid--lead {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
    margin-inline: auto;
  }
  .team-grid--eng {
    grid-template-columns: repeat(3, 1fr);
    max-width: 920px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .nav-desktop {
    display: none;
  }
  .logo {
    grid-column: 1;
    justify-self: start;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Кнопка закрытия и нижние действия в мобильном меню */
.mobile-drawer-panel {
  padding-top: 52px;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mobile-drawer-panel .header-link {
  color: var(--on-dark-muted);
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 500;
}

.mobile-drawer-panel .header-link:hover {
  color: var(--on-dark);
  text-decoration: none;
}
/* Логотип: images/logo/kuna-logo-for-*-header.* */
.logo.logo--brand {
  gap: 0;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
}

.logo.logo--brand::before {
  display: none;
}

.logo__img {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(52vw, 220px);
  object-fit: contain;
}

.logo__img--on-light {
  display: none;
}

html[data-theme="light"] .logo__img--on-dark {
  display: none;
}

html[data-theme="light"] .logo__img--on-light {
  display: block;
}

.site-header .logo__img,
.site-footer .logo__img {
  opacity: 0.94;
}

.site-header .logo:hover .logo__img,
.site-footer .logo:hover .logo__img {
  opacity: 1;
}
body.page-home main > .section .btn-primary.btn-arrow::after {
  color: rgba(250, 249, 247, 0.9);
}

/* ——— Внутренние страницы «Бизнес» (модульный dark editorial, палитра Kuna) ——— */
body.page-business {
  background: var(--charcoal);
  color: var(--on-dark-muted);
}

body.page-business main a:not(.btn):not(.card) {
  color: var(--fog);
}

body.page-business main a:not(.btn):not(.card):hover {
  color: var(--on-dark);
}

body.page-business .site-footer {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.page-business .page-hero--biz {
  position: relative;
  isolation: isolate;
  margin-top: -76px;
  padding-top: clamp(100px, 17vh, 140px);
  padding-bottom: clamp(44px, 9vh, 72px);
  min-height: min(74vh, 760px);
  display: flex;
  align-items: flex-end;
}

body.page-business .page-hero--biz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.92) 0%,
      rgba(26, 26, 28, 0.72) 52%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/hero/kuna-hero-desktop.webp");
  background-size: cover;
  background-position: 55% 45%;
}

body.page-business.case-misa .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/misa-preventive.webp");
  background-size: cover;
  background-position: 50% 22%;
}

body.page-business.case-capello .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/capello-misaclinic-1.webp");
  background-size: cover;
  background-position: 50% 18%;
}

body.page-business.case-uds .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/misa-uds.web-1.webp");
  background-size: cover;
  background-position: 50% 20%;
}

body.page-business.case-ldm .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/ldm-misaclinic-1.webp");
  background-size: cover;
  background-position: 50% 18%;
}

body.page-business.case-cosme .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/cosmeceuticals-misaclinic-1.webp");
  background-size: cover;
  background-position: 50% 22%;
}

body.page-business.case-janus .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/januspro-misaclinic-1.webp");
  background-size: cover;
  background-position: 50% 20%;
}

body.page-business.case-dermadrop .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/dermadrop-misaclinic-1.webp");
  background-size: cover;
  background-position: 50% 22%;
}

body.page-business.case-smas .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/smas-misaclinic-1.jpg");
  background-size: cover;
  background-position: 50% 24%;
}

body.page-business.case-heleo4 .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/heleo4-misaclinic-1.jpg");
  background-size: cover;
  background-position: 50% 22%;
}

body.page-business.case-quantum-trader .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(8, 10, 16, 0.9) 0%,
      rgba(12, 18, 32, 0.72) 45%,
      rgba(6, 8, 14, 0.92) 100%
    ),
    url("images/portfolio/quantum-trader-ai-1.webp");
  background-size: cover;
  background-position: 50% 28%;
}

body.page-business.case-misa-digital .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.66) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/portfolio/misa-digital-1.webp");
  background-size: cover;
  background-position: 50% 30%;
}

/* Внутренние страницы — кадры из image-generation-prompts.txt §6 */
body.page-business.page-internal-consulting .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.86) 0%,
      rgba(26, 26, 28, 0.62) 50%,
      rgba(14, 14, 16, 0.88) 100%
    ),
    url("images/internal/kuna-internal-consulting.webp");
  background-position: 55% 42%;
}

body.page-business.page-internal-web .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.86) 0%,
      rgba(26, 26, 28, 0.62) 50%,
      rgba(14, 14, 16, 0.88) 100%
    ),
    url("images/internal/kuna-internal-web.webp");
  background-position: 50% 48%;
}

body.page-business.page-internal-it .page-hero--biz::before {
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.86) 0%,
      rgba(26, 26, 28, 0.58) 48%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/internal/kuna-internal-it-business.webp");
  background-size: cover;
  background-position: 58% 42%;
}

body.page-personal {
  background: var(--charcoal);
  color: var(--on-dark-muted);
}

body.page-personal .page-hero--visual {
  position: relative;
  isolation: isolate;
  margin-top: -76px;
  padding-top: clamp(100px, 17vh, 140px);
  padding-bottom: clamp(44px, 9vh, 72px);
  min-height: min(74vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}

body.page-personal .page-hero--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      118deg,
      rgba(10, 10, 12, 0.88) 0%,
      rgba(26, 26, 28, 0.68) 50%,
      rgba(14, 14, 16, 0.9) 100%
    ),
    url("images/internal/kuna-internal-home-it.webp");
  background-size: cover;
  background-position: 50% 45%;
}

body.page-personal .page-hero--visual .container {
  position: relative;
  z-index: 1;
}

body.page-personal .page-hero--visual h1 {
  color: var(--on-dark);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

body.page-personal .page-hero--visual .lead {
  color: var(--on-dark-muted);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  max-width: 52ch;
}

body.page-personal .page-hero--visual__actions {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.page-personal .site-footer {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.page-personal .section {
  padding: clamp(48px, 8vw, 72px) 0;
  background: transparent;
  color: var(--on-dark-muted);
}

body.page-personal .section-alt {
  background: rgba(255, 255, 255, 0.035);
}

body.page-personal .section-title {
  color: var(--on-dark);
}

body.page-personal .section-sub {
  color: var(--on-dark-muted);
}

body.page-personal .section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

body.page-personal .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--on-dark-muted);
}

body.page-personal a.card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  text-decoration: none;
}

body.page-personal .card h3 {
  color: var(--on-dark);
}

body.page-personal .card p {
  color: var(--on-dark-muted);
}

body.page-personal .card .icon {
  color: var(--fog);
}

body.page-personal .btn-outline {
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}

body.page-personal .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure);
  text-decoration: none;
}

body.page-personal ul,
body.page-personal ol {
  color: var(--on-dark-muted);
}

body.page-personal .biz-prose p {
  color: var(--on-dark-muted);
  max-width: 58ch;
}

body.page-personal .biz-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  max-width: 52ch;
}

body.page-personal .biz-checklist li {
  position: relative;
  padding-left: 1.25em;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

body.page-personal .biz-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fog);
}

body.page-personal .accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-personal .accordion-q {
  background: transparent;
  color: var(--on-dark);
}

body.page-personal .accordion-a {
  color: var(--on-dark-muted);
}

body.page-personal .price-table {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.page-personal .price-table th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-personal .price-table td {
  color: var(--on-dark-muted);
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-personal .biz-stat-board {
  display: grid;
  gap: 14px;
}

body.page-personal .biz-stat {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
}

body.page-personal .biz-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--fog);
  margin-bottom: 8px;
}

body.page-personal .biz-stat__lbl {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.page-personal .biz-trust-stats__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  body.page-personal .biz-trust-stats__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
}

body.page-personal .biz-cta-band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.page-personal .biz-cta-band__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  body.page-personal .biz-cta-band__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
}

body.page-personal .biz-cta-band__visual {
  min-height: 220px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(
      160deg,
      rgba(14, 14, 16, 0.5) 0%,
      rgba(26, 26, 28, 0.35) 100%
    ),
    url("images/editorial/kuna-editorial-directions-left.webp");
  background-size: cover;
  background-position: 50% 50%;
}

body.page-personal .biz-cta-band__copy h2 {
  color: var(--on-dark);
  margin: 0 0 12px;
}

body.page-personal .biz-cta-band__copy p {
  color: var(--on-dark-muted);
  margin: 0 0 20px;
  max-width: 48ch;
}

body.page-personal .biz-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.page-personal main a:not(.btn):not(.card) {
  color: var(--fog);
}

body.page-personal main a:not(.btn):not(.card):hover {
  color: var(--pure);
}

body.page-personal .biz-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.page-personal .personal-price-callout {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 22px 24px;
  margin: 0 0 28px;
}

body.page-personal .personal-price-callout h3 {
  margin: 0 0 10px;
  color: var(--on-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

body.page-personal .personal-price-callout p {
  margin: 0;
  color: var(--on-dark-muted);
  max-width: 62ch;
  line-height: 1.55;
}

body.page-personal .personal-price-callout strong {
  color: var(--on-dark);
  font-weight: 600;
}

body.page-personal .personal-visit-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  body.page-personal .personal-visit-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.page-personal .personal-visit-cards .card h3 {
  font-size: 0.95rem;
}

body.page-personal .personal-service-catalog {
  display: grid;
  gap: 10px;
}

body.page-personal .personal-service-group {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

body.page-personal .personal-service-group summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-personal .personal-service-group summary::-webkit-details-marker {
  display: none;
}

body.page-personal .personal-service-group summary::after {
  content: "+";
  color: var(--fog);
  font-size: 1.1rem;
  font-weight: 400;
}

body.page-personal .personal-service-group[open] summary::after {
  content: "−";
}

body.page-personal .personal-service-group__body {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-personal .personal-service-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body.page-personal .personal-service-list li {
  position: relative;
  padding-left: 1em;
  line-height: 1.45;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

body.page-personal .personal-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fog);
}

body.page-personal .personal-service-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  opacity: 0.9;
}

body.page-personal .grid.personal-trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

body.page-business .page-hero--biz .container {
  position: relative;
  z-index: 1;
}

body.page-business .page-hero--biz h1 {
  color: var(--on-dark);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

body.page-business .page-hero--biz .lead {
  color: var(--on-dark-muted);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}

body.page-business .page-hero--biz__actions {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.page-business .section {
  padding: clamp(48px, 8vw, 72px) 0;
  background: transparent;
  color: var(--on-dark-muted);
}

body.page-business .section-alt {
  background: rgba(255, 255, 255, 0.035);
}

body.page-business .section-title {
  color: var(--on-dark);
}

body.page-business .section-sub {
  color: var(--on-dark-muted);
}

body.page-business .section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

body.page-business .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--on-dark-muted);
}

body.page-business a.card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  text-decoration: none;
}

body.page-business .card h3 {
  color: var(--on-dark);
}

body.page-business .card p {
  color: var(--on-dark-muted);
}

body.page-business .card .icon {
  color: var(--fog);
}

body.page-business .btn-outline {
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}

body.page-business .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure);
  text-decoration: none;
}

body.page-business ul,
body.page-business ol {
  color: var(--on-dark-muted);
}

body.page-business .section-sub--tight,
body.page-personal .section-sub--tight {
  margin-bottom: 18px;
}

body.page-business .biz-prose p {
  color: var(--on-dark-muted);
  max-width: 58ch;
}

body.page-business .biz-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  max-width: 52ch;
}

body.page-business .biz-checklist li {
  position: relative;
  padding-left: 1.25em;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

body.page-business .biz-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fog);
}

body.page-business .biz-case-links a.card {
  text-decoration: none;
  color: inherit;
}

body.page-business .biz-case-links a.card .portfolio-card__more {
  margin: 4px 18px 18px;
}

body.page-business .biz-stat-board--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  body.page-business .biz-stat-board--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  body.page-business .biz-stat-board--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.page-business .prose p {
  color: var(--on-dark-muted);
}

body.page-business .accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-business .accordion-q {
  background: transparent;
  color: var(--on-dark);
}

body.page-business .accordion-a {
  color: var(--on-dark-muted);
}

body.page-business .price-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-dark-muted);
}

body.page-business .price-card h3 {
  color: var(--on-dark);
}

body.page-business .price-tag {
  color: var(--white);
}

body.page-business .price-card ul {
  color: var(--on-dark-muted);
}

body.page-business .price-card--featured {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

body.page-business .price-card__badge {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

body.page-business table.compare {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-dark-muted);
}

body.page-business table.compare th,
body.page-business table.compare td {
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-business table.compare th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

body.page-business .cards-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  body.page-business .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.page-business .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.page-business .biz-pillars {
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  body.page-business .biz-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.page-business .biz-pillar {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.page-business .biz-pillar:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

body.page-business .biz-pillar__visual {
  height: min(200px, 28vw);
  background-color: #2a2826;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(
      145deg,
      rgba(58, 58, 62, 0.75) 0%,
      rgba(26, 26, 26, 0.95) 55%,
      rgba(44, 44, 46, 0.85) 100%
    ),
    radial-gradient(
      circle at 30% 20%,
      rgba(239, 238, 233, 0.12) 0%,
      transparent 55%
    );
}

/* Три опоры проекта — business/index.html (.biz-pillars--project) */
body.page-business .biz-pillars--project .biz-pillar:nth-child(1) .biz-pillar__visual {
  background-image: linear-gradient(
      145deg,
      rgba(10, 10, 12, 0.55) 0%,
      rgba(26, 26, 28, 0.35) 100%
    ),
    url("images/pillars/kuna-pillar-diagnosis.webp");
}

body.page-business .biz-pillars--project .biz-pillar:nth-child(2) .biz-pillar__visual {
  background-image: linear-gradient(
      145deg,
      rgba(10, 10, 12, 0.55) 0%,
      rgba(26, 26, 28, 0.35) 100%
    ),
    url("images/pillars/kuna-pillar-roadmap.webp");
}

body.page-business .biz-pillars--project .biz-pillar:nth-child(3) .biz-pillar__visual {
  background-image: linear-gradient(
      145deg,
      rgba(10, 10, 12, 0.55) 0%,
      rgba(26, 26, 28, 0.35) 100%
    ),
    url("images/pillars/kuna-pillar-support.webp");
}

body.page-business .biz-pillar__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

body.page-business .biz-pillar__body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
}

body.page-business .biz-pillar__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

body.page-business .biz-pillar__more {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

body.page-business .biz-trust-stats__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  body.page-business .biz-trust-stats__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

body.page-business .biz-stat-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  body.page-business .biz-stat-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.page-business .biz-stat {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

body.page-business .biz-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

body.page-business .biz-stat__lbl {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

body.page-business .biz-cta-band__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  body.page-business .biz-cta-band__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

body.page-business .biz-cta-band__visual {
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-image: linear-gradient(
      160deg,
      rgba(36, 36, 40, 0.9) 0%,
      rgba(20, 20, 22, 0.95) 100%
    ),
    url("images/editorial/kuna-editorial-results-tall.webp");
  background-size: cover;
  background-position: 50% 40%;
}

body.page-business .biz-cta-band__copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
}

body.page-business .biz-cta-band__copy p {
  margin: 0 0 20px;
  color: var(--on-dark-muted);
  max-width: 48ch;
}

body.page-business .biz-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.page-business .biz-kpi-showcase__grid {
  display: grid;
  gap: 28px 36px;
  align-items: center;
}

@media (min-width: 900px) {
  body.page-business .biz-kpi-showcase__grid {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 40px 48px;
  }
}

body.page-business .biz-kpi-showcase__copy .section-title {
  margin-bottom: 12px;
}

body.page-business .biz-kpi-showcase__copy .section-sub {
  margin-bottom: 0;
  max-width: 36ch;
}

body.page-business .biz-inset-chart {
  border-radius: var(--radius);
  border: none;
  background: transparent;
  padding: 0;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-inline: 0;
}

body.page-business .biz-inset-chart__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}

body.page-business .biz-inset-chart__img--light {
  display: none;
}

body.page-business .biz-inset-chart__fallback {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  color: var(--fog);
}

body.page-business .biz-inset-chart--placeholder .biz-inset-chart__img {
  display: none !important;
}

body.page-business .biz-inset-chart--placeholder .biz-inset-chart__fallback {
  display: block;
}

body.page-business .biz-inset-chart__fallback {
  background: transparent !important;
  border: none !important;
}

/* Портфолио на тёмном фоне (как «Бизнес») */
body.page-business .filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--on-dark-muted);
}

body.page-business .filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

body.page-business .filter-btn.is-active {
  background: var(--pure);
  color: var(--charcoal);
  border-color: var(--pure);
}

body.page-business .portfolio-thumb {
  background-image: linear-gradient(
    145deg,
    rgba(58, 58, 62, 0.95) 0%,
    rgba(22, 22, 24, 0.98) 100%
  );
  color: rgba(250, 249, 247, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-business .portfolio-card[data-cat="site"] .portfolio-thumb {
  background-image: linear-gradient(
    145deg,
    rgba(78, 76, 72, 0.95) 0%,
    rgba(36, 35, 34, 0.98) 100%
  );
}

body.page-business .portfolio-card[data-cat="it"] .portfolio-thumb {
  background-image: linear-gradient(
    145deg,
    rgba(48, 52, 62, 0.95) 0%,
    rgba(20, 22, 28, 0.98) 100%
  );
}

body.page-business .portfolio-card strong {
  color: var(--fog);
  font-weight: 600;
}

body.page-business .card.portfolio-card,
body.page-business a.card.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #121214;
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-business .card.portfolio-card .portfolio-thumb {
  flex-shrink: 0;
}

body.page-business .card.portfolio-card h3,
body.page-business .card.portfolio-card p,
body.page-business .card.portfolio-card .portfolio-card__more {
  min-width: 0;
  max-width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

body.page-business .card.portfolio-card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.35;
  color: var(--on-dark);
}

/* Кейсы со скриншотом: название на фото, текст — отдельным блоком под кадром */
body.page-business .portfolio-card__cover {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

body.page-business .portfolio-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0) 58%,
    rgba(8, 8, 10, 0.18) 78%,
    rgba(8, 8, 10, 0.38) 100%
  );
  transition: opacity 0.25s ease;
}

body.page-business .portfolio-card--case-link:hover .portfolio-card__cover::after {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0) 52%,
    rgba(8, 8, 10, 0.22) 78%,
    rgba(8, 8, 10, 0.46) 100%
  );
}

body.page-business .portfolio-card__cover .portfolio-thumb {
  border-bottom: none;
  border-radius: 0;
}

body.page-business .card.portfolio-card .portfolio-card__cover > h3 {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: auto;
  bottom: 12px;
  margin: 0;
  max-width: calc(100% - 28px);
  padding: 9px 13px;
  font-size: clamp(0.9rem, 2.15vw, 1.02rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #faf9f7;
  background: rgba(10, 10, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.page-business .portfolio-card--case-link > p:first-of-type {
  margin-top: 14px;
}

body.page-business .card.portfolio-card > p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

body.page-business .card.portfolio-card > p:first-of-type {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
}

body.page-business .card.portfolio-card > p:last-of-type {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.page-business .card.portfolio-card > p:only-of-type {
  -webkit-line-clamp: 4;
}

body.page-business .card.portfolio-card p:last-of-type {
  margin-bottom: 0;
}

body.page-business .card.portfolio-card .portfolio-card__more {
  display: block;
  margin: 8px 18px 16px;
  padding: 0;
  flex-shrink: 0;
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1.4;
}

body.page-business .portfolio-featured {
  margin-bottom: 28px;
}

body.page-business .portfolio-featured--cases {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  max-width: 100%;
}

@media (min-width: 480px) {
  body.page-business .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body.page-business .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body.page-business .portfolio-featured--cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  body.page-business .portfolio-featured--cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-business .portfolio-featured--cases .portfolio-card--featured {
  max-width: none;
}

body.page-business .portfolio-card--featured {
  max-width: 920px;
}

body.page-business .portfolio-thumb--featured {
  height: min(232px, 42vw);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  background-image: linear-gradient(
    128deg,
    rgba(82, 76, 72, 0.9) 0%,
    rgba(34, 34, 36, 0.96) 48%,
    rgba(48, 46, 44, 0.92) 100%
  );
  color: rgba(250, 249, 247, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-business .portfolio-thumb--photo {
  padding: 0;
  background: #1a1a1c;
  background-image: none;
}

body.page-business .portfolio-thumb--featured.portfolio-thumb--photo {
  background-image: none;
}

body.page-business .portfolio-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

a.portfolio-card--case-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.portfolio-card--case-link:hover {
  color: inherit;
}

body.page-business .case-screenshots {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  body.page-business .case-screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.page-business .case-screenshots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.page-business .case-screenshots--2 {
  max-width: 920px;
}

@media (min-width: 720px) {
  body.page-business .case-screenshots--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

body.page-business .case-screenshot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.page-business .case-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

body.page-business .case-screenshot__cap {
  box-sizing: border-box;
  padding: 12px 16px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--on-dark);
  background: #161618;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.page-business .prose code {
  padding: 0.12em 0.35em;
  border-radius: 6px;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}

body.page-business .biz-inline-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

@media (max-width: 899px) {
  .editorial-split {
    gap: 22px;
  }

  .editorial-photo--mid {
    margin-top: 22px;
  }
}

/* Кнопка переключения темы */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--fog);
  outline-offset: 2px;
}

.theme-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.theme-toggle__icon--moon {
  display: none;
}

.header-actions .theme-toggle {
  margin-right: 2px;
}

.mobile-drawer-theme {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-toggle--drawer {
  width: 100%;
  height: auto;
  min-height: 44px;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-toggle--drawer .theme-toggle__label {
  font-size: inherit;
  letter-spacing: inherit;
}

/* Навигация: активные пункты и крошки */
.nav-link.is-active,
.nav-item.is-active > .nav-link[data-dropdown-btn] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--pure);
}

.nav-submenu a.is-active {
  font-weight: 600;
  color: var(--pure);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav a.is-active {
  font-weight: 600;
  color: var(--pure);
  border-color: rgba(255, 255, 255, 0.35);
}

.site-breadcrumbs--hero {
  position: absolute;
  top: calc(76px + 14px);
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.site-breadcrumbs__inner {
  pointer-events: auto;
}

.site-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero--biz,
.page-hero--visual,
.page-hero:has(.site-breadcrumbs--hero) {
  position: relative;
}

.page-hero:not(.page-hero--biz):not(.page-hero--visual):has(.site-breadcrumbs--hero) {
  padding-top: calc(76px + 44px);
}

.page-hero--biz .site-breadcrumbs a,
.page-hero--biz .site-breadcrumbs li[aria-current="page"],
.page-hero--visual .site-breadcrumbs a,
.page-hero--visual .site-breadcrumbs li[aria-current="page"] {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.site-breadcrumbs a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-breadcrumbs a:hover {
  color: var(--on-dark);
  text-decoration: none;
}

.site-breadcrumbs li[aria-current="page"] {
  color: var(--on-dark);
}

.site-breadcrumbs__sep {
  color: var(--fog);
  opacity: 0.65;
  user-select: none;
}

body.page-business .site-breadcrumbs a,
body.page-personal .site-breadcrumbs a {
  color: var(--on-dark-muted);
}

body.page-business .site-breadcrumbs li[aria-current="page"],
body.page-personal .site-breadcrumbs li[aria-current="page"] {
  color: var(--on-dark);
}

html[data-theme="light"] body:not(.page-business):not(.page-personal):not(.page-home) .site-breadcrumbs a {
  color: var(--muted);
}

html[data-theme="light"] body:not(.page-business):not(.page-personal):not(.page-home) .site-breadcrumbs li[aria-current="page"] {
  color: var(--charcoal);
}

html[data-theme="dark"] body.page-contacts .site-breadcrumbs a,
html[data-theme="dark"] body.page-utility .site-breadcrumbs a,
html[data-theme="dark"] body.page-error .site-breadcrumbs a {
  color: var(--on-dark-muted);
}

html[data-theme="dark"] body.page-contacts .site-breadcrumbs li[aria-current="page"],
html[data-theme="dark"] body.page-utility .site-breadcrumbs li[aria-current="page"],
html[data-theme="dark"] body.page-error .site-breadcrumbs li[aria-current="page"] {
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts .site-breadcrumbs a:hover,
html[data-theme="dark"] body.page-utility .site-breadcrumbs a:hover,
html[data-theme="dark"] body.page-error .site-breadcrumbs a:hover {
  color: var(--on-dark);
}

html[data-theme="dark"] body.page-contacts .site-breadcrumbs__sep,
html[data-theme="dark"] body.page-utility .site-breadcrumbs__sep,
html[data-theme="dark"] body.page-error .site-breadcrumbs__sep {
  color: var(--fog);
  opacity: 0.75;
}

/* Контакты и legal: hero под шапкой, как на бизнес-страницах */
body.page-contacts .page-hero {
  margin-top: -76px;
  position: relative;
  isolation: isolate;
}

body.page-contacts .page-hero:not(.page-hero--biz):not(.page-hero--visual):has(.site-breadcrumbs--hero) {
  padding-top: clamp(96px, 13vh, 118px);
}

body.page-contacts .site-breadcrumbs--hero {
  top: calc(76px + 8px);
}

html[data-theme="light"] .nav-link.is-active,
html[data-theme="light"] .nav-item.is-active > .nav-link[data-dropdown-btn] {
  background: var(--surface-2);
  border-color: var(--graphite);
  color: var(--charcoal);
}

html[data-theme="light"] .nav-submenu a.is-active {
  color: var(--charcoal);
  background: var(--surface-2);
}

html[data-theme="light"] .mobile-nav a.is-active {
  color: var(--charcoal);
  border-color: var(--line);
}

html[data-theme="light"] .site-breadcrumbs a {
  color: var(--muted);
}

html[data-theme="light"] .site-breadcrumbs a:hover,
html[data-theme="light"] .site-breadcrumbs li[aria-current="page"] {
  color: var(--charcoal);
}

html[data-theme="light"] .site-breadcrumbs__sep {
  color: var(--graphite);
}

html[data-theme="light"] .page-hero--biz .site-breadcrumbs a,
html[data-theme="light"] .page-hero--visual .site-breadcrumbs a {
  color: var(--muted);
  text-shadow: 0 1px 10px rgba(250, 249, 247, 0.85);
}

html[data-theme="light"] .page-hero--biz .site-breadcrumbs li[aria-current="page"],
html[data-theme="light"] .page-hero--visual .site-breadcrumbs li[aria-current="page"] {
  color: var(--charcoal);
  text-shadow: 0 1px 10px rgba(250, 249, 247, 0.85);
}

html[data-theme="light"] .page-hero--biz .site-breadcrumbs__sep,
html[data-theme="light"] .page-hero--visual .site-breadcrumbs__sep {
  color: var(--graphite);
}

/* ——— Улучшения: продукты, доверие, geo-nav ——— */
html:not(.kuna-show-personal) .nav-item--personal,
html:not(.kuna-show-personal) .mobile-nav__personal,
html:not(.kuna-show-personal) [data-personal-only] {
  display: none !important;
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.stat-card-link:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.product-band__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .product-band__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.product-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.product-band__visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.product-band__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.client-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.client-trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 249, 247, 0.88);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.client-trust-chip:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.client-trust-chip--muted {
  cursor: default;
  opacity: 0.72;
}

.quote-cards-home {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .quote-cards-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-role {
  font-size: 0.9rem;
  color: rgba(250, 249, 247, 0.55);
}

.quote-card__link {
  display: inline-block;
  margin-top: 14px;
}

.avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 247, 0.9);
  flex-shrink: 0;
}

.portfolio-section-head {
  margin: 28px 0 14px;
}

.portfolio-section-head:first-of-type {
  margin-top: 0;
}

.portfolio-section-head__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.portfolio-featured--products {
  margin-bottom: 8px;
}

.portfolio-card__cover {
  position: relative;
}

.portfolio-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(180, 145, 87, 0.92);
  color: #1a1a1a;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-offer-card {
  position: relative;
  display: block;
  max-width: 640px;
  text-decoration: none;
  color: inherit;
}

.product-offer-card:hover {
  text-decoration: none;
}

.team-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pure);
  background: linear-gradient(145deg, #4a4a50, #2c2c2e);
}

html[data-theme="light"] .client-trust-chip {
  border-color: var(--line);
  background: var(--pure);
  color: var(--charcoal);
}

html[data-theme="light"] .client-trust-chip:hover {
  background: var(--surface);
  border-color: rgba(26, 26, 26, 0.14);
}

html[data-theme="light"] .product-band__visual {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .quote-role {
  color: var(--muted);
}

html[data-theme="light"] .avatar--initials {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--charcoal);
}

html[data-theme="light"] .portfolio-section-head__title {
  color: var(--graphite);
}

html[data-theme="light"] body.page-home main > .section .stat-card-link:hover {
  border-color: rgba(26, 26, 26, 0.14);
}
