:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-elev: #ffffff;
  --text: #373737;
  --muted: #373737;
  --primary: #058fdb;
  --primary-dark: #0478b8;
  --accent: #bc42c9;
  --border: rgba(55, 55, 55, 0.16);
  --shadow: 0 18px 40px rgba(55, 55, 55, 0.1);
  --radius: 18px;
  --heading-font: "Unbounded", "IBM Plex Sans", sans-serif;
  --body-font: "IBM Plex Sans", sans-serif;
  --body-text-size: 1rem;
  --primary-rgb: 5, 143, 219;
}

@font-face {
  font-family: "AA Ordinar I";
  src:
    local("AA Ordinar I Bold"),
    local("AA Ordinar I");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: light dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--body-text-size);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] {
  --bg: #0c1119;
  --surface: #131a25;
  --surface-elev: #182132;
  --text: #edf3ff;
  --muted: #9badcc;
  --border: rgba(187, 200, 227, 0.2);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

html[data-accent="orange"] {
  --primary: #f24500;
  --primary-dark: #ca3900;
  --accent: #f24500;
  --primary-rgb: 242, 69, 0;
}

html[data-accent="blue"] {
  --primary: #058fdb;
  --primary-dark: #0478b8;
  --accent: #058fdb;
  --primary-rgb: 5, 143, 219;
}

html[data-accent="purple"] {
  --primary: #bc42c9;
  --primary-dark: #9a34a5;
  --accent: #bc42c9;
  --primary-rgb: 188, 66, 201;
}

html[data-accent="neon"] {
  --primary: #0a9f0a;
  --primary-dark: #088408;
  --accent: #0a9f0a;
  --primary-rgb: 10, 159, 10;
}

html[data-accent="dark-yellow"] {
  --primary: #ff7b00;
  --primary-dark: #d76700;
  --accent: #ff7b00;
  --primary-rgb: 255, 123, 0;
}

html[data-accent="graphite"] {
  --primary: #000000;
  --primary-dark: #1a1a1a;
  --accent: #000000;
  --primary-rgb: 0, 0, 0;
}

html[data-theme="dark"][data-accent="graphite"] {
  --primary: #ffffff;
  --primary-dark: #e8e8e8;
  --accent: #ffffff;
  --primary-rgb: 255, 255, 255;
}

html[data-theme="light"][data-accent="graphite"] :is(.btn-primary, .btn-invert) {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"][data-accent="graphite"] :is(.btn-primary, .btn-invert):hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

html[data-theme="dark"][data-accent="graphite"] :is(.btn-primary, .btn-invert) {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"][data-accent="graphite"] :is(.btn-primary, .btn-invert):hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
}

html[data-theme="dark"][data-accent="graphite"] :is(.btn-ghost, .btn-secondary) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background-image:
    linear-gradient(rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:where(a, button, select, input):focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.72);
  outline-offset: 3px;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Унифицируем читаемую ширину обычного контента (не карточек). */
main .container > :is(p, .section-intro, .text-block, .benefits-list, .process-result, .portfolio-description) {
  max-width: 72ch;
}

.section {
  padding: 80px 0;
  background: var(--surface);
}

main > .section:nth-of-type(odd) {
  background: var(--surface);
}

main > .section:nth-of-type(even) {
  background: rgba(var(--primary-rgb), 0.14);
}

html[data-theme="dark"] .section {
  background: #0f1622;
}

html[data-theme="dark"] main > .section:nth-of-type(odd) {
  background: #0f1622;
}

html[data-theme="dark"] main > .section:nth-of-type(even) {
  background: rgba(var(--primary-rgb), 0.2);
}

/* Аурора: только blur + transform (без SVG feTurbulence — он давал лаги), два слоя, пауза вне экрана — script.js */
:is(section#about, section#directions, section#process).section-light-pillar {
  --aurora-top: rgba(0, 0, 0, 0.55);
  --aurora-mid: rgba(var(--primary-rgb), 0.62);
  --aurora-bottom: rgba(255, 255, 255, 0.22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html[data-theme="light"] :is(section#about, section#directions, section#process).section-light-pillar {
  --aurora-top: rgba(255, 255, 255, 0.85);
  --aurora-mid: rgba(var(--primary-rgb), 0.38);
  --aurora-bottom: rgba(255, 255, 255, 0.55);
}

:is(section#about, section#directions, section#process).section-light-pillar .section-light-pillar__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

:is(section#about, section#directions, section#process).section-light-pillar > .container {
  position: relative;
  z-index: 1;
}

:is(section#about, section#directions, section#process).section-light-pillar .section-light-pillar__aurora {
  position: absolute;
  mix-blend-mode: screen;
  border-radius: 55% 45% 48% 52%;
  opacity: 0.55;
  /* один filter: blur дешевле цепочки url()+blur; размытие уменьшено для FPS */
  filter: blur(22px);
  transform: translateZ(0);
}

html[data-theme="light"]
  :is(section#about, section#directions, section#process).section-light-pillar
  .section-light-pillar__aurora {
  mix-blend-mode: soft-light;
  filter: blur(18px);
}

/* Оба слоя на весь блок (inset); «перетекание» — сдвиг background-position + лёгкий transform */
:is(section#about, section#directions, section#process).section-light-pillar .section-light-pillar__aurora--left {
  inset: -10%;
  width: auto;
  min-height: 120%;
  background:
    radial-gradient(ellipse 100% 55% at 25% 40%, rgba(var(--primary-rgb), 0.38), transparent 52%),
    radial-gradient(ellipse 100% 50% at 75% 55%, rgba(var(--primary-rgb), 0.3), transparent 50%),
    linear-gradient(
      188deg,
      var(--aurora-top) 0%,
      rgba(var(--primary-rgb), 0.22) 38%,
      var(--aurora-mid) 52%,
      var(--aurora-bottom) 82%,
      transparent 100%
    ),
    repeating-linear-gradient(
      102deg,
      rgba(var(--primary-rgb), 0) 0 36px,
      rgba(var(--primary-rgb), 0.04) 36px 72px,
      rgba(var(--primary-rgb), 0.1) 72px 108px,
      rgba(var(--primary-rgb), 0.04) 108px 144px,
      rgba(var(--primary-rgb), 0) 144px 180px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 220% 220%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
  animation:
    aurora-sway-left 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
    aurora-flow-left 16s linear infinite,
    aurora-pulse 18s ease-in-out infinite;
}

:is(section#about, section#directions, section#process).section-light-pillar .section-light-pillar__aurora--right {
  inset: -10%;
  width: auto;
  min-height: 120%;
  background:
    radial-gradient(ellipse 100% 55% at 72% 38%, rgba(var(--primary-rgb), 0.35), transparent 52%),
    radial-gradient(ellipse 100% 50% at 22% 62%, rgba(var(--primary-rgb), 0.28), transparent 50%),
    linear-gradient(
      168deg,
      transparent 0%,
      rgba(var(--primary-rgb), 0.12) 40%,
      var(--aurora-mid) 55%,
      var(--aurora-bottom) 88%,
      transparent 100%
    ),
    repeating-linear-gradient(
      78deg,
      rgba(var(--primary-rgb), 0) 0 40px,
      rgba(var(--primary-rgb), 0.035) 40px 80px,
      rgba(var(--primary-rgb), 0.09) 80px 120px,
      rgba(var(--primary-rgb), 0.035) 120px 160px,
      rgba(var(--primary-rgb), 0) 160px 200px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 240% 240%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
  animation:
    aurora-sway-right 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
    aurora-flow-right 19s linear infinite,
    aurora-pulse 22s ease-in-out infinite;
  /* сдвиг фаз: перетекание и пульс не совпадают между слоями */
  animation-delay: -6s, -4s, -11s;
}

/* Вне вьюпорта анимация на паузе (класс вешает script.js) */
:is(section#about, section#directions, section#process).section-light-pillar.section-light-pillar--aurora-off
  .section-light-pillar__aurora {
  animation-play-state: paused !important;
}

@keyframes aurora-sway-left {
  0%,
  100% {
    transform: translate3d(0, 0.8%, 0) rotate(-5deg) scaleY(1);
  }
  25% {
    transform: translate3d(5%, -1.8%, 0) rotate(-3deg) scaleY(1.04);
  }
  50% {
    transform: translate3d(1%, -3.2%, 0) rotate(-7deg) scaleY(0.99);
  }
  75% {
    transform: translate3d(-4.5%, 1.2%, 0) rotate(-4.5deg) scaleY(1.02);
  }
}

@keyframes aurora-sway-right {
  0%,
  100% {
    transform: translate3d(0, -0.8%, 0) rotate(5deg) scaleY(1);
  }
  25% {
    transform: translate3d(-5%, 1.5%, 0) rotate(3.2deg) scaleY(1.04);
  }
  50% {
    transform: translate3d(-1.2%, 3%, 0) rotate(7deg) scaleY(0.99);
  }
  75% {
    transform: translate3d(4.2%, -1%, 0) rotate(4.2deg) scaleY(1.02);
  }
}

/* Сдвиг полосатого слоя: бесшовный цикл (период 180px / 200px совпадает с шагом repeating-linear-gradient) */
@keyframes aurora-flow-left {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
  }
  100% {
    /* период полос = 180px вдоль градиента — сдвиг на один период, цикл без рывка */
    background-position: 0% 0%, 0% 0%, 0% 0%, 180px 0;
  }
}

@keyframes aurora-flow-right {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
  }
  100% {
    background-position: 0% 0%, 0% 0%, 0% 0%, -200px 0;
  }
}

/* Медленная пульсация: тускнеет → снова ярче (лёгкий «дыхание» сияния) */
@keyframes aurora-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(section#about, section#directions, section#process).section-light-pillar .section-light-pillar__aurora {
    animation: none !important;
    filter: blur(20px);
    opacity: 0.42;
  }

  html[data-theme="light"]
    :is(section#about, section#directions, section#process).section-light-pillar
    .section-light-pillar__aurora {
    filter: blur(16px);
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.95rem, 3.8vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-family: var(--heading-font);
  font-weight: 700;
}

h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(27, 36, 51, 0.08);
}

html[data-theme="dark"] .site-header {
  background: rgba(12, 17, 25, 0.84);
  border-bottom-color: rgba(187, 200, 227, 0.16);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-weight: 600;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.settings-toggle:hover {
  transform: rotate(18deg);
  border-color: var(--primary);
}

.settings-panel {
  position: absolute;
  right: 4vw;
  top: 84px;
  width: min(320px, 92vw);
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 120;
}

.settings-panel[hidden] {
  display: none;
}

.settings-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.settings-group + .settings-group {
  margin-top: 12px;
}

.settings-label {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.option-btn.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.settings-colors {
  gap: 10px;
}

.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

.color-btn[data-accent-option="orange"] { background: #f24500; }
.color-btn[data-accent-option="blue"] { background: #058fdb; }
.color-btn[data-accent-option="purple"] { background: #bc42c9; }
.color-btn[data-accent-option="neon"] { background: #0a9f0a; }
.color-btn[data-accent-option="dark-yellow"] { background: #ff7b00; }
html[data-theme="light"] .color-btn[data-accent-option="graphite"] {
  background: #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .color-btn[data-accent-option="graphite"] {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.color-btn.is-active {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.lead {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 64ch;
}

.hero-description {
  margin-top: 16px;
  color: var(--muted);
  max-width: 64ch;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost,
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--primary);
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), 0.07);
}

.btn-invert {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-invert:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-card {
  width: min(440px, 100%);
  min-height: 410px;
  border-radius: 28px;
  position: relative;
  background: #e8eaef;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(27, 36, 51, 0.12);
}

html[data-theme="dark"] .portrait-card {
  background: rgba(255, 255, 255, 0.06);
}

.portrait-image {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Без цветного отлива: только нейтральное затемнение снизу под подпись */
.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.portrait-ring {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
}

.portrait-content {
  position: absolute;
  inset: auto 28px 30px;
  display: grid;
  gap: 6px;
  color: #ffffff;
}

.portrait-name {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
}

.portrait-role {
  opacity: 0.9;
}

.split-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: block;
}

.split-card p {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 10px;
}

.about-action {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.price-note {
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-5,
.cards-7,
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-7 {
  grid-auto-rows: 1fr;
}

.card,
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover,
.service-card:hover,
.project-card:hover,
.steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.45);
  background: var(--surface);
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .steps li:hover {
  background: var(--surface);
  border-color: rgba(var(--primary-rgb), 0.65);
}

.service-card {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
}

.service-card h3 {
  font-size: 1.03rem;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-page .service-card > p:first-of-type {
  min-height: 4.8em;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .service-card h3 {
  color: var(--text);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .service-card:hover p,
html[data-theme="dark"] .service-card:hover h3 {
  color: var(--text);
}

.services-page .cards-7 {
  margin-top: 18px;
}

.cost-card {
  max-width: 760px;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
}

.center-action {
  margin-top: 24px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.steps span {
  color: var(--primary);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-block {
  display: grid;
  gap: 12px;
}

.text-block p {
  color: var(--muted);
}

.benefits-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.process-result {
  margin-top: 18px;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(27, 36, 51, 0.08);
}

.project-card h3 {
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card p {
  color: var(--muted);
}

.project-card .meta {
  margin-top: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.price-hints {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.final-cta {
  text-align: left;
}

.final-cta p {
  margin: 14px 0 0;
  max-width: 76ch;
  color: var(--muted);
}

.centered {
  justify-content: flex-start;
}

.contact-lines {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.contact-lines a:hover {
  color: var(--primary);
}

.final-cta .contact-lines .contact-icon--logo img {
  width: 36px;
  height: 36px;
}

.contact-lines--icons-only {
  gap: 20px;
}

.contact-lines--icons-only a {
  text-decoration: none;
  color: inherit;
}

.contact-lines--icons-only a:hover {
  color: inherit;
}

.social-link--icon-only {
  gap: 0;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link--icon-only:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.social-link--icon-only:hover {
  transform: translateY(-3px);
}

.social-link--icon-only:hover .contact-icon--logo img {
  filter: brightness(1.05);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contacts-grid {
  margin-top: 22px;
  grid-template-columns: 1fr;
  max-width: 620px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-icon.contact-icon--logo {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.contact-icon--logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.contact-meta {
  display: grid;
  gap: 2px;
}

.contact-meta strong {
  font-family: var(--heading-font);
  font-size: 0.95rem;
}

.contact-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-item {
  max-width: none;
}

.game-preview-link {
  display: inline-block;
  width: 100%;
}

.portfolio-preview-link {
  display: inline-block;
  width: 100%;
  color: inherit;
}

.game-preview-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.game-preview-square::after {
  content: "Открыть игру";
  position: absolute;
  inset: auto 12px 12px auto;
  background: rgba(15, 23, 39, 0.72);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.game-preview-square iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.portfolio-preview-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.portfolio-preview-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-square {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.06);
}

.portfolio-description {
  margin-top: 12px;
  color: var(--muted);
}

.test-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.test-menu a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--surface);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  color: var(--primary-dark);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

.calc-form,
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.calc-form {
  display: grid;
  gap: 14px;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field span {
  font-weight: 600;
}

.calc-field select,
.calc-field input[type="range"] {
  width: 100%;
}

.calc-checks {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}

.calc-checks legend {
  padding: 0 6px;
  font-weight: 700;
}

.calc-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-result h3 {
  margin: 0 0 8px;
}

.calc-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0 12px;
}

.calc-time {
  font-weight: 700;
  margin: 4px 0 12px;
}

.calc-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  background: #f0f4fb;
  color: #30425f;
  padding: 44px 0;
  border-top: 1px solid rgba(27, 36, 51, 0.1);
}

html:not([data-theme="dark"]) .site-footer {
  background: #000000;
  color: #e8eef0;
  border-top-color: transparent;
}

html[data-theme="dark"] .site-footer {
  background: #000000;
  color: #e8eef0;
  border-top-color: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9fb0b5;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links-list a {
  color: #e8eef0;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social .social-link--icon-only {
  width: 42px;
  height: 42px;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
  margin-top: 10px;
  color: #5f6f85;
  max-width: 48ch;
}

html:not([data-theme="dark"]) .footer-note {
  color: #c8d6d9;
}

html[data-theme="dark"] .footer-note {
  color: #c8d6d9;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #30425f;
}

html:not([data-theme="dark"]) .footer-links a {
  color: #e8eef0;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: #6f809d;
  font-size: 0.94rem;
}

html:not([data-theme="dark"]) .footer-copy {
  color: #b3c3c8;
}

html[data-theme="dark"] .footer-copy {
  color: #b3c3c8;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.65s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.22s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.38s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page {
  --home-bg: #f7f8fb;
  --home-section: #ffffff;
  --home-section-alt: #f3f6fa;
  --home-card: #ffffff;
  --home-border: rgba(55, 55, 55, 0.1);
  --home-shadow: 0 12px 28px rgba(25, 34, 52, 0.07);
  --home-muted: #5d6675;
  background: var(--home-bg);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-page::before {
  opacity: 0.045;
}

.home-page .icon,
.home-page .icon-mask {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.home-page .icon-mask {
  display: inline-block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.home-page .icon {
  fill: currentColor;
  stroke: none;
}

.home-page .icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.09);
  color: var(--primary);
}

.home-page .icon-box .icon,
.home-page .icon-box .icon-mask {
  width: 28px;
  height: 28px;
}

.home-page main > .section {
  padding: 92px 0;
  background: var(--home-section);
  border-top: 1px solid rgba(25, 34, 52, 0.06);
}

.home-page main > .section:first-child {
  border-top: 0;
}

.home-page main > .section:nth-of-type(even) {
  background: var(--home-section-alt);
}

.home-page .hero {
  padding: 96px 0 88px;
  background: var(--home-section);
}

.home-page .section-light-pillar__fx {
  display: none;
}

.home-page .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 72px);
}

.home-page .hero-content {
  max-width: 720px;
}

.home-page .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  letter-spacing: 0.04em;
}

.home-page h1 {
  max-width: 12.5em;
  font-size: clamp(1.88rem, 3.05vw, 3.15rem);
  line-height: 1.06;
}

.home-page--journal .journal-cover h1 {
  max-width: none;
}

.home-page .hero h1 {
  font-family: "AA Ordinar I", "Arian", var(--heading-font);
  font-size: clamp(1.75rem, 2.85vw, 2.85rem);
  font-weight: 900;
  line-height: 1.06;
  max-width: 12em;
}

.home-page h2 {
  max-width: 820px;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.home-page .lead {
  max-width: 68ch;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.home-page .hero-description,
.home-page .section-intro,
.home-page .text-block p,
.home-page .split-card p,
.home-page .steps p,
.home-page .benefits-list,
.home-page .final-cta p,
.home-page .service-card p {
  color: var(--home-muted);
}

.home-page .hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-page .hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-card);
  color: var(--home-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.home-page .hero-points .icon,
.home-page .hero-points .icon-mask {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.home-page .portrait-card {
  width: min(380px, 100%);
  min-height: 430px;
  border-radius: 22px;
  border-color: var(--home-border);
  box-shadow: var(--home-shadow);
}

.home-page .portrait-image {
  min-height: 430px;
}

.home-page .portrait-ring {
  inset: 14px;
  border-radius: 18px;
}

.home-page .btn {
  min-height: 46px;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: none;
}

.home-page .btn-primary,
.home-page .btn-invert {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.18);
}

.home-page .btn-primary:hover,
.home-page .btn-invert:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.home-page .center-action {
  margin-top: 30px;
}

.home-page .section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.home-page .section-heading--wide {
  max-width: 920px;
}

.home-page .section-heading h2 {
  margin-bottom: 0;
}

.home-page .section-heading .section-intro {
  margin-top: 10px;
  margin-bottom: 0;
}

.home-page .grid {
  gap: 22px;
}

.home-page .mini-grid,
.home-page .insight-grid {
  display: grid;
  gap: 18px;
}

.home-page .mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .insight-grid {
  max-width: 980px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .cards-5,
.home-page .cards-7 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .cards-7 {
  grid-auto-rows: auto;
}

.home-page .card,
.home-page .service-card,
.home-page .steps li,
.home-page .mini-card,
.home-page .insight-card {
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
}

.home-page .mini-card,
.home-page .insight-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.home-page .mini-card p,
.home-page .insight-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.6;
}

.home-page .service-card {
  gap: 16px;
  padding: 24px;
  min-height: 100%;
}

.home-page .service-card h3 {
  min-height: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.home-page .service-card p {
  font-size: 0.98rem;
  line-height: 1.58;
}

.home-page .card:hover,
.home-page .service-card:hover,
.home-page .project-card:hover,
.home-page .steps li:hover {
  transform: none;
  border-color: rgba(var(--primary-rgb), 0.24);
  background: var(--home-card);
}

.home-page .text-block {
  max-width: 820px;
  gap: 14px;
}

.home-page .about-text-block .text-block {
  max-width: 820px;
}

.home-page .about-action {
  margin-top: 28px;
}

.home-page .benefits-list {
  max-width: 820px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.home-page .benefit-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
}

.home-page .benefits-list li {
  position: relative;
  padding-left: 22px;
}

.home-page .benefit-cards li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: var(--home-card);
  box-shadow: var(--home-shadow);
  color: var(--home-muted);
}

.home-page .benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.home-page .benefit-cards li::before {
  content: none;
}

.home-page .benefit-cards .icon,
.home-page .benefit-cards .icon-mask {
  width: 22px;
  height: 22px;
  margin-top: 0.18em;
  color: var(--primary);
}

.home-page .steps {
  max-width: 900px;
  gap: 14px;
}

.home-page .steps li {
  padding: 20px 22px;
  gap: 18px;
}

.home-page .steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.home-page .steps span .icon,
.home-page .steps span .icon-mask {
  width: 25px;
  height: 25px;
}

.home-page .steps strong {
  font-size: 1.02rem;
}

.home-page .process-result {
  max-width: 820px;
}

.home-page .final-cta {
  padding-bottom: 98px;
}

.home-page .final-cta p {
  max-width: 72ch;
}

.cost-page .cost-hero-card,
.cost-page .cost-note-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  max-width: 900px;
  padding: 30px;
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  box-shadow: var(--home-shadow);
}

.cost-page .cost-hero-card h1 {
  max-width: none;
}

.cost-page .cost-hero-card .lead,
.cost-page .cost-hero-card .section-intro,
.cost-page .cost-note-card p {
  max-width: 70ch;
}

.cost-page .cost-hero-card .section-intro {
  margin-top: 14px;
}

.cost-page .cost-details {
  background: var(--home-section-alt);
}

.cost-page .cost-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cost-page .cost-note-card h2 {
  margin-bottom: 12px;
}

.cost-page .cost-note-card p {
  margin: 0;
  color: var(--home-muted);
}

html[data-theme="dark"] .home-page {
  --home-bg: #0c1119;
  --home-section: #101722;
  --home-section-alt: #131c2a;
  --home-card: #182132;
  --home-border: rgba(187, 200, 227, 0.14);
  --home-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  --home-muted: #aebbd2;
}

html[data-theme="dark"] .home-page .site-header {
  background: rgba(12, 17, 25, 0.88);
}

html[data-theme="dark"] .home-page .eyebrow,
html[data-theme="dark"] .home-page .steps span {
  background: rgba(var(--primary-rgb), 0.16);
}

html[data-theme="dark"] .home-page .service-card h3 {
  color: var(--text);
}

.landing-page .landing-hero {
  background: var(--home-section);
}

.landing-page .landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 68px);
  align-items: start;
}

.landing-page .landing-hero-copy {
  max-width: 760px;
}

.landing-page .landing-hero-copy h1 {
  max-width: 13.5em;
}

.landing-page .landing-hero-copy p:not(.eyebrow) {
  max-width: 70ch;
  margin-top: 14px;
  color: var(--home-muted);
  font-size: 1.04rem;
}

.landing-page .landing-summary-card,
.landing-page .landing-card,
.landing-page .landing-final-panel {
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  box-shadow: var(--home-shadow);
}

.landing-page .landing-summary-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 26px;
}

.landing-page .icon-box--large {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.landing-page .icon-box--large .icon,
.landing-page .icon-box--large .icon-mask {
  width: 34px;
  height: 34px;
}

.landing-page .landing-summary-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.landing-page .landing-summary-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--home-muted);
}

.landing-page .landing-summary-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.landing-page .landing-summary-card li .icon,
.landing-page .landing-summary-card li .icon-mask {
  width: 21px;
  height: 21px;
  margin-top: 0.2em;
  color: var(--primary);
}

.landing-page .landing-details {
  background: var(--home-section-alt);
}

.landing-page .landing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.landing-page .landing-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
}

.landing-page .landing-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
}

.landing-page .landing-card p {
  margin: 0;
  color: var(--home-muted);
}

.landing-page .landing-final {
  background: var(--home-section);
}

.landing-page .landing-final-panel {
  max-width: 760px;
  margin: 0;
  padding: 30px;
  text-align: left;
}

.landing-page .landing-final-panel .icon-box {
  margin: 0 0 16px;
}

.landing-page .landing-final-panel h2 {
  margin-bottom: 12px;
}

.landing-page .landing-final-panel p {
  max-width: 58ch;
  margin: 0;
  color: var(--home-muted);
}

.services-catalog-page .catalog-hero {
  padding-bottom: 70px;
}

.services-catalog-page .catalog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.services-catalog-page .catalog-hero-copy {
  max-width: 760px;
}

.services-catalog-page .catalog-hero h1 {
  max-width: none;
}

.services-catalog-page .catalog-hero .lead {
  max-width: 74ch;
}

.services-catalog-page .catalog-hero .section-intro {
  max-width: 74ch;
  margin-top: 14px;
}

.services-catalog-page .catalog-hero-image {
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: var(--home-card);
  box-shadow: var(--home-shadow);
}

.services-catalog-page .catalog-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.services-catalog-page .catalog-section {
  background: var(--home-section-alt);
}

.services-catalog-page .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services-catalog-page .catalog-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
}

.services-catalog-page .catalog-card__media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #101722;
}

.services-catalog-page .catalog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.services-catalog-page .catalog-card:hover .catalog-card__media img {
  transform: scale(1.025);
}

.services-catalog-page .catalog-card__body {
  padding: 20px 22px 0;
}

.services-catalog-page .catalog-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.services-catalog-page .catalog-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.58;
}

.services-catalog-page .catalog-card .btn {
  justify-self: start;
  margin: 20px 22px 22px;
}

body :is(main, footer) :is(
  p,
  li,
  .lead,
  .section-intro,
  .hero-description,
  .footer-note,
  .portfolio-description,
  .service-list,
  .benefits-list,
  .price-hints,
  .catalog-card p,
  .landing-card p,
  .landing-hero-copy p,
  .landing-final-panel p,
  .include-item,
  .steps p,
  .mini-card p,
  .insight-card p,
  .service-card p
) {
  font-family: var(--body-font);
  font-size: var(--body-text-size) !important;
  line-height: 1.6;
}

.landing-page .include-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-page .include-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 15px 16px;
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  box-shadow: var(--home-shadow);
  color: var(--home-muted);
  line-height: 1.45;
}

.landing-page .include-item .icon,
.landing-page .include-item .icon-mask {
  width: 22px;
  height: 22px;
  margin-top: 0.18em;
  color: var(--primary);
}

@media (max-width: 960px) {
  .hero-grid,
  .projects-grid,
  .cards-5,
  .cards-7,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }

  .split-card {
    flex-direction: column;
  }

  .home-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero-content {
    max-width: none;
  }

  .home-page h1 {
    max-width: 13em;
  }

  .home-page .hero-visual {
    justify-content: flex-start;
  }

  .home-page .cards-5,
  .home-page .cards-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .mini-grid,
  .home-page .insight-grid,
  .home-page .benefit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .landing-hero-grid,
  .landing-page .landing-card-grid {
    grid-template-columns: 1fr;
  }

  .services-catalog-page .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-catalog-page .catalog-hero-grid {
    grid-template-columns: 1fr;
  }

  .landing-page .include-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-page .cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .landing-summary-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 62px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .settings-panel {
    right: 4vw;
    left: 4vw;
    width: auto;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 4vw 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  html[data-theme="dark"] .site-nav {
    background: #101722;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .projects-grid,
  .cards-5,
  .cards-7,
  .why-grid,
  .contacts-grid,
  .calc-layout,
  .portfolio-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .portrait-card {
    min-height: 290px;
  }

  .portrait-image {
    min-height: 290px;
  }

  .split-card {
    padding: 24px;
  }

  .home-page main > .section {
    padding: 66px 0;
  }

  .home-page .hero {
    padding: 56px 0 66px;
  }

  .home-page h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .home-page .hero h1 {
    font-size: clamp(1.55rem, 7.8vw, 2.1rem);
    line-height: 1.08;
  }

  .home-page h2 {
    margin-bottom: 18px;
  }

  .home-page .cards-5,
  .home-page .cards-7 {
    grid-template-columns: 1fr;
  }

  .home-page .mini-grid,
  .home-page .insight-grid,
  .home-page .benefit-cards {
    grid-template-columns: 1fr;
  }

  .home-page .grid {
    gap: 16px;
  }

  .home-page .service-card,
  .home-page .mini-card,
  .home-page .insight-card {
    padding: 20px;
  }

  .home-page .steps li {
    padding: 18px;
  }

  .home-page .portrait-card,
  .home-page .portrait-image {
    min-height: 320px;
  }

  .home-page .split-card {
    padding: 0;
  }

  .landing-page .landing-card,
  .landing-page .landing-summary-card,
  .landing-page .landing-final-panel {
    padding: 20px;
  }

  .services-catalog-page .catalog-grid,
  .landing-page .include-grid,
  .cost-page .cost-grid {
    grid-template-columns: 1fr;
  }

  .services-catalog-page .catalog-card {
    padding: 20px;
  }

  .cost-page .cost-hero-card,
  .cost-page .cost-note-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .home-page--journal .journal-article__grid,
  .home-page--journal .journal-spread__grid,
  .home-page--journal .journal-feature__grid,
  .home-page--journal .journal-closing__grid {
    grid-template-columns: 1fr;
  }

  .home-page--journal .journal-rubric__link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .home-page--journal .journal-rubric__thumb {
    width: 72px;
    height: 72px;
  }

  .home-page--journal .journal-steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .home-page--journal .journal-steps__num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ——— Journal homepage (editorial + landing structure) ——— */

.home-page--journal {
  --journal-serif: "Literata", Georgia, "Times New Roman", serif;
  --journal-rule: rgba(25, 34, 52, 0.1);
}

html[data-theme="dark"] .home-page--journal {
  --journal-rule: rgba(187, 200, 227, 0.14);
}

.home-page--journal main > .section,
.home-page--journal main > .section:nth-of-type(even),
html[data-theme="dark"] .home-page--journal main > .section,
html[data-theme="dark"] .home-page--journal main > .section:nth-of-type(even) {
  background: var(--home-section);
  border-top: 1px solid var(--journal-rule);
}

.home-page--journal main > .section.section-muted {
  background: var(--home-section-alt);
}

.home-page--journal main > .section:first-child {
  border-top: 0;
}

.home-page--journal .journal-kicker,
.home-page--journal .journal-rubric-label {
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page--journal .journal-lead {
  margin-top: 18px;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
  line-height: 1.62;
}

.home-page--journal .journal-prose {
  display: grid;
  gap: 1.05em;
  max-width: 62ch;
  font-family: var(--journal-serif);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text);
}

.home-page--journal .journal-prose p {
  margin: 0;
  color: inherit;
}

.home-page--journal .journal-section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.home-page--journal .journal-section-head h2 {
  margin-bottom: 12px;
}

.home-page--journal .journal-section-head .section-intro {
  margin: 0;
  max-width: 58ch;
  color: var(--home-muted);
}

.home-page--journal .journal-cover {
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 8vw, 92px);
}

.home-page--journal .journal-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.home-page--journal .journal-cover__copy {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
  width: 100%;
}

.home-page--journal .journal-cover__intro {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-page--journal .journal-cover__intro h1 {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.home-page--journal .journal-cover__intro .journal-lead {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 18px;
  margin-inline: 0;
  overflow-wrap: break-word;
}

.home-page--journal .journal-cover h1 {
  font-family: "AA Ordinar I", "Arian", var(--heading-font);
  font-size: clamp(1.75rem, 2.85vw, 2.85rem);
  font-weight: 900;
  line-height: 1.08;
  max-width: none;
  text-wrap: balance;
}

.home-page--journal .journal-cover .cta-row {
  margin-top: 0;
}

.home-page--journal .journal-cover__figure {
  margin: 0;
  width: 280px;
  max-width: 100%;
  justify-self: end;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  background: var(--home-card);
}

.home-page--journal .journal-cover__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2010 / 2560;
  object-fit: cover;
}

.home-page--journal .journal-cover__figure figcaption {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-top: 1px solid var(--home-border);
  background: var(--home-card);
}

.home-page--journal .journal-cover__name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
}

.home-page--journal .journal-cover__role {
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-page--journal .journal-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.home-page--journal .journal-article__main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.home-page--journal .journal-article__main .journal-prose {
  max-width: none;
  width: 100%;
}

.home-page--journal .journal-article__main :is(h2, .journal-prose) {
  max-width: none;
  width: 100%;
}

.home-page--journal .journal-article__header h2 {
  margin-bottom: 0;
}

.home-page--journal .journal-dropcap::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--heading-font);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--primary);
}

.home-page--journal .journal-pullquote {
  margin: 0.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--primary);
}

.home-page--journal .journal-pullquote p {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text);
}

.home-page--journal .journal-inline-link {
  display: inline-flex;
  margin-top: 0.35em;
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.home-page--journal .journal-inline-link:hover {
  color: var(--primary-dark);
}

.home-page--journal .journal-media {
  margin: 0;
}

.home-page--journal .journal-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  background: var(--home-card);
}

.home-page--journal .journal-media figcaption {
  margin-top: 12px;
  color: var(--home-muted);
  font-family: var(--body-font);
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-page--journal .journal-media--portrait img {
  aspect-ratio: 1;
  object-fit: cover;
}

.home-page--journal .journal-media--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-page--journal .journal-media--square img {
  aspect-ratio: 1;
  object-fit: cover;
}

.home-page--journal .journal-media--closing img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-page--journal .journal-spread__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.home-page--journal .journal-spread__copy h2 {
  margin-bottom: 16px;
}

.home-page--journal .journal-spread__copy .btn {
  margin-top: 24px;
}

.home-page--journal .journal-rubrics__list {
  display: grid;
  border-top: 1px solid var(--journal-rule);
}

.home-page--journal .journal-rubric {
  border-bottom: 1px solid var(--journal-rule);
}

.home-page--journal .journal-rubric__link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.home-page--journal .journal-rubric__link:hover {
  background: rgba(var(--primary-rgb), 0.04);
}

.home-page--journal .journal-rubric__link:hover .journal-rubric__more {
  color: var(--primary-dark);
}

.home-page--journal .journal-rubric__num {
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.home-page--journal .journal-rubric__thumb {
  margin: 0;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  background: var(--home-card);
}

.home-page--journal .journal-rubric__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page--journal .journal-rubric__body h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.home-page--journal .journal-rubric__body p {
  margin: 0;
  color: var(--home-muted);
  font-family: var(--body-font);
  font-size: 0.96rem;
  line-height: 1.55;
}

.home-page--journal .journal-rubric__more {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 0.88rem;
  font-weight: 600;
}

.home-page--journal .journal-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-page--journal .journal-note {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-card);
  box-shadow: var(--home-shadow);
}

.home-page--journal .journal-note h3 {
  font-size: 1.02rem;
}

.home-page--journal .journal-note p {
  margin: 0;
  color: var(--home-muted);
  font-family: var(--body-font);
  line-height: 1.58;
}

.home-page--journal .journal-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.home-page--journal .journal-checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}

.home-page--journal .journal-checklist li {
  position: relative;
  padding-left: 1.35em;
  color: var(--home-muted);
  font-family: var(--body-font);
  line-height: 1.55;
}

.home-page--journal .journal-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.home-page--journal .journal-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 820px;
  border-top: 1px solid var(--journal-rule);
}

.home-page--journal .journal-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--journal-rule);
}

.home-page--journal .journal-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
}

.home-page--journal .journal-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.home-page--journal .journal-steps p {
  margin: 0;
  color: var(--home-muted);
  font-family: var(--body-font);
  line-height: 1.55;
}

.home-page--journal .journal-process__result {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--home-muted);
  font-family: var(--journal-serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

.home-page--journal .journal-closing {
  padding-bottom: clamp(72px, 10vw, 108px);
}

.home-page--journal .journal-closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.62fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.home-page--journal .journal-closing h2 {
  margin-bottom: 16px;
}

.home-page--journal .journal-closing .journal-prose {
  color: var(--home-muted);
}

.home-page--journal .journal-closing .contact-lines--icons-only {
  justify-content: flex-start;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .home-page--journal .journal-cover__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-page--journal .journal-cover__copy {
    width: 100%;
    max-width: 640px;
  }

  .home-page--journal .journal-cover__figure {
    order: -1;
    width: min(100%, 240px);
    justify-self: center;
    margin-inline: auto;
  }

  .home-page--journal .journal-notes__grid {
    grid-template-columns: 1fr;
  }

  .home-page--journal .journal-spread__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-page--journal .journal-article__grid {
    grid-template-columns: 1fr;
  }

  .home-page--journal .journal-media--portrait {
    max-width: 320px;
  }
}
