/* Pay4ook — shared styles for the RU/EN home pages */

:root {
  --bg: #f4f2ec;
  --bg-deep: #ece9e1;
  --surface: #fcfbf7;
  --ink: #1c1e21;
  --muted: #5f646b;
  --line: rgba(28, 30, 33, 0.13);
  --line-strong: rgba(28, 30, 33, 0.24);
  --accent: #2d4ab8;
  --accent-deep: #223a92;
  --accent-soft: #e6e9f6;
  --on-accent: #f7f8fd;
  --ok: #2f684c;
  --shadow-sm: 0 1px 2px rgba(28, 30, 33, 0.05);
  --shadow-md: 0 28px 60px -44px rgba(28, 30, 33, 0.55);
  --radius: 18px;
  --radius-lg: 24px;
  --wrap: 1120px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus-visible { transform: none; }

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.lang-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
  padding: 9px 13px;
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--accent-deep);
}
.lang-hint a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lang-hint a:hover { color: var(--ink); }

h1, h2, h3 { text-wrap: balance; }

h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 .accent { color: var(--accent); }

h2 {
  margin-top: 14px;
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.62;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 9vw, 108px) 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 48px;
  margin-bottom: clamp(30px, 4.4vw, 52px);
}
.section-head__text { max-width: 640px; }
.section-head__aside {
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 27px; height: 27px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.16s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="true"] { color: var(--ink); }
.nav-link[aria-current="true"]::after { transform: scaleX(1); }

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

.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang a {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn svg { flex: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn--light {
  background: var(--on-accent);
  color: var(--accent-deep);
}
.btn--light:hover { background: #ffffff; }

.btn--outline-light {
  background: transparent;
  color: var(--on-accent);
  border-color: rgba(247, 248, 253, 0.45);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--on-accent); }

.header-cta { padding: 10px 18px; font-size: 13px; }

/* mobile menu: native details, works without JS */
.mobile-nav { display: none; position: relative; }
.mobile-nav > summary {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > summary::before {
  content: "";
  width: 16px; height: 10px;
  border-top: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transition: transform 0.2s ease;
}
.mobile-nav[open] > summary::before {
  height: 16px;
  border-bottom: 0;
  transform: rotate(45deg) translateY(-1px);
}
.mobile-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: min(300px, calc(100vw - 40px));
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 50px -28px rgba(28, 30, 33, 0.5);
}
.mobile-panel ul { list-style: none; display: grid; }
.mobile-panel a {
  display: block;
  padding: 11px 10px;
  border-radius: 9px;
  font-size: 15px;
}
.mobile-panel a:hover { background: var(--bg); }
.mobile-panel .btn { width: 100%; margin-top: 8px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 74px) 0 clamp(46px, 6vw, 76px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 30, 33, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 30, 33, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 72% 70% at 68% 38%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 68% 38%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* entrance: CSS only, so it works without JS */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: heroIn 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-visual { animation: heroIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 3D scene card ---------- */

.hero-visual { min-width: 0; }

.scene-card {
  position: relative;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.scene-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 6px 13px;
}
.scene-head b { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.scene-head span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scene-stage {
  position: relative;
  height: clamp(286px, 31vw, 392px);
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(45, 74, 184, 0.1), transparent 55%),
    linear-gradient(160deg, #f7f6f1 0%, #eeebe4 100%);
  touch-action: pan-y;
  cursor: grab;
  outline-offset: 2px;
}
.scene-stage.is-dragging { cursor: grabbing; }
.scene-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* static fallback, visible by default and when WebGL is unavailable */
.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.scene-card.is-live .scene-fallback { display: none; }

.fsheet {
  position: absolute;
  width: min(64%, 268px);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(252, 251, 247, 0.9);
  box-shadow: 0 10px 30px -22px rgba(28, 30, 33, 0.4);
}
.fsheet--1 {
  transform: translate(-26px, 20px) rotate(-7deg);
  background: rgba(252, 251, 247, 0.55);
  border-style: dashed;
}
.fsheet--2 {
  transform: translate(-12px, 10px) rotate(-3.5deg);
  background:
    linear-gradient(to right, transparent 49.4%, rgba(45, 74, 184, 0.18) 49.4%, rgba(45, 74, 184, 0.18) 50.6%, transparent 50.6%),
    linear-gradient(to bottom, transparent 49.4%, rgba(45, 74, 184, 0.18) 49.4%, rgba(45, 74, 184, 0.18) 50.6%, transparent 50.6%),
    rgba(252, 251, 247, 0.78);
}
.fsheet--3 {
  transform: translate(4px, 0) rotate(0deg);
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
}
.fsheet--3 span { display: block; border-radius: 3px; background: rgba(28, 30, 33, 0.18); }
.fsheet--3 span:nth-child(1) { width: 34%; height: 7px; background: rgba(28, 30, 33, 0.5); }
.fsheet--3 span:nth-child(2) { width: 72%; height: 4px; }
.fsheet--3 span:nth-child(3) { width: 58%; height: 4px; }
.fsheet--3 span:nth-child(4) { width: 26%; height: 9px; margin-top: 4px; background: var(--accent); }
.fsheet--3 span:nth-child(5) { width: 88%; height: 22px; margin-top: 2px; background: rgba(45, 74, 184, 0.12); }
.fsheet--4 {
  transform: translate(18px, -12px) rotate(3.5deg);
  border-color: rgba(45, 74, 184, 0.6);
  background: transparent;
  box-shadow: none;
}
.scene-fallback__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(252, 251, 247, 0.85);
  padding: 3px 8px;
  border-radius: 999px;
}

.scene-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 6px 4px;
  list-style: none;
}
.scene-stages li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.scene-stages span {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.scene-stages li::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transition: background 0.2s ease;
}
.scene-stages li:last-child::after { display: none; }
.scene-stages li.is-active { color: var(--ink); }
.scene-stages li.is-active span { color: var(--accent); }
.scene-stages li.is-done::after { background: var(--accent); }

.scene-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 6px 2px;
}
.scene-controls .btn {
  padding: 9px 16px;
  font-size: 12.5px;
}
.scene-controls .btn[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.scene-status {
  flex: 1 1 150px;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}
.scene-hint {
  margin: 8px 6px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- services ---------- */

.services { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.9fr) minmax(0, 1.4fr) auto;
  align-items: start;
  gap: 18px 28px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.service-row .num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.service-row p {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.service-row .tag {
  padding-top: 2px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- works ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 44px -34px rgba(28, 30, 33, 0.5);
}
.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transform-origin: 50% 60%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.work-card:hover .work-media {
  transform: perspective(1100px) rotateX(1.6deg) rotateY(-1.8deg) translateY(-2px);
}
.work-card:hover .work-media img { transform: scale(1.035); }

.work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 19px 20px 20px;
}
.work-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.work-body p {
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--muted);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  list-style: none;
}
.work-tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--accent);
}
.work-link svg { transition: transform 0.18s ease; }
.work-card:hover .work-link svg,
.work-link:focus-visible svg { transform: translate(3px, -3px); }

.works-note {
  margin-top: 26px;
  max-width: 70ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.process-step {
  position: relative;
  padding: 24px 22px 0 0;
}
.process-step + .process-step { padding-left: 22px; border-left: 1px solid var(--line); }
.process-step .num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { margin-top: 12px; font-size: 16px; }
.process-step p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.58;
  color: var(--muted);
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.price-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-card--featured {
  border-color: rgba(45, 74, 184, 0.4);
  box-shadow: inset 0 3px 0 var(--accent);
}
.price-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.price-top h3 { font-size: 19px; }
.price-value {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.price-value small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.price-card > p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.price-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.price-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 1px; top: 7px;
  width: 8px; height: 4px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.pricing-note {
  margin-top: 22px;
  max-width: 76ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.pricing-note b { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */

.contact-section { padding: clamp(40px, 7vw, 84px) 0 clamp(58px, 8vw, 96px); }
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.16), transparent 46%),
    var(--accent);
  color: var(--on-accent);
}
.contact::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 320px; height: 320px;
  border: 1px solid rgba(247, 248, 253, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.contact .eyebrow { color: rgba(247, 248, 253, 0.7); }
.contact .eyebrow::before { background: rgba(247, 248, 253, 0.7); }
.contact h2 { color: var(--on-accent); }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
  margin-top: 30px;
}
.contact-copy p {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(247, 248, 253, 0.82);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}
.contact-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(247, 248, 253, 0.64);
}

.brief {
  padding: 20px;
  border: 1px solid rgba(247, 248, 253, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.brief h3 { font-size: 15px; color: var(--on-accent); }
.brief p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(247, 248, 253, 0.72);
}
.brief .btn { width: 100%; margin-top: 15px; }
.brief-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(247, 248, 253, 0.78);
}
.brief-status.is-error { color: #ffd9d9; }
.brief-fallback { margin-top: 12px; }
.brief-fallback textarea {
  width: 100%;
  min-height: 148px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 248, 253, 0.4);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
.brief-fallback small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(247, 248, 253, 0.7);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 30px;
}
.footer-brand { font-size: 14px; font-weight: 600; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-note {
  max-width: 72ch;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- reveal (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in {
    animation: revealIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: 2; }
  .scene-stage { height: clamp(300px, 52vw, 420px); }
  .service-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .service-row p { grid-column: 2 / 4; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card:last-child { grid-column: 1 / -1; }
  .work-card:last-child .work-media { aspect-ratio: 16 / 8; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .process-step:nth-child(4) { border-top: 1px solid var(--line); margin-top: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .brief { max-width: 480px; }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .brand small { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .services { border-top: 1px solid var(--line-strong); }
  .service-row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 14px; padding: 22px 0; }
  .service-row .tag { grid-column: 2; padding-top: 0; }
  .service-row p { grid-column: 2; }
  .works { grid-template-columns: 1fr; }
  .work-card:last-child .work-media { aspect-ratio: 4 / 3; }
  .process { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
  .process-step { padding: 20px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); margin-top: 0 !important; }
  .process-step:first-child { border-top: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact { padding: 24px 20px; }
  .scene-stages { grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
  .scene-stages li:nth-child(2)::after { display: none; }
  .scene-status { text-align: left; flex-basis: 100%; order: 3; }
  .scene-controls .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .lang a { padding: 4px 7px; }
  .hero-meta { gap: 7px 14px; }
}

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

/* ========================================
   DARK SECTION: WHAT'S INCLUDED
   ======================================== */

.dark-section {
  background: #16181d;
  color: #e8e8ec;
  padding: clamp(64px, 10vw, 120px) 0;
}

.dark-section__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px;
}

.dark-section__head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.dark-section__title {
  color: #ffffff;
  margin-top: 14px;
}

.dark-section__subtitle {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(232, 232, 236, 0.55);
  max-width: 58ch;
  margin-inline: auto;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.include-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px 18px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.include-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.include-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #f7f8fd;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.include-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.include-card p {
  font-size: 12.5px;
  line-height: 1.58;
  color: rgba(232, 232, 236, 0.5);
}

.dark-section__cta {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 24px 48px;
}

.dark-section__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.price-big {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.price-label {
  font-size: 13px;
  color: rgba(232, 232, 236, 0.45);
  line-height: 1.45;
}

/* ========================================
   FORMAT BLOCK
   ======================================== */

.section--compact {
  padding: clamp(48px, 7vw, 84px) 0;
}

.format-block {
  max-width: 900px;
  margin-inline: auto;
}

.format-block__head {
  margin-bottom: 36px;
}

.format-block__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.format-item {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.format-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.format-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}

/* ========================================
   PROJECTS LIST (numbered rows)
   ======================================== */

.projects-list {
  list-style: none;
  counter-reset: project-counter;
}

.project-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: project-counter;
  transition: background 0.15s ease;
}
.project-row:last-child {
  border-bottom: none;
}
.project-row:hover {
  background: var(--surface);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 12px;
}

.project-row__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.project-row__info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.project-row__type {
  font-size: 12.5px;
  color: var(--muted);
}

.project-row__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
}

.project-row__stack {
  color: var(--muted);
  font-size: 11.5px;
}

.project-row__link {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.project-row:hover .project-row__link {
  transform: translate(3px, -1px);
}

/* ========================================
   NOTEBOOK SECTION
   ======================================== */

.notebook-section {
  padding: clamp(56px, 8vw, 96px) 0;
  overflow: hidden;
}

.notebook-section__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.notebook-section__title {
  margin-bottom: 0;
}

.notebook {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  min-height: 320px;
  padding: 40px 32px;
  background:
    linear-gradient(to bottom, #fefdf8 0%, #fdf9ee 100%);
  border: 1px solid #e5ddd0;
  border-radius: 12px;
  box-shadow:
    0 2px 0 #d6cfc2,
    0 4px 0 #d6cfc2,
    0 6px 0 #d6cfc2,
    0 8px 24px -8px rgba(28, 30, 33, 0.15);
}

/* Линовка блокнота */
.notebook__sheet {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 31px,
      #d6cfc2 31px,
      #d6cfc2 32px
    );
  background-position-y: 12px;
  mask-image: linear-gradient(to bottom, #000 15%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, #000 100%);
}

.notebook__sheet + .notebook__sheet::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  bottom: 0;
  border-left: 2px solid rgba(220, 130, 130, 0.25);
  pointer-events: none;
}

/* Пункты блокнота */
.notebook__items {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

.notebook__item {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
}
.notebook__item:last-child {
  margin-bottom: 0;
}

.notebook__item-text {
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 32px;
  color: transparent;
  transition: color 0.4s ease;
  position: relative;
  z-index: 2;
}

.notebook__item.is-written .notebook__item-text {
  color: #1c1e21;
}

.notebook__item-line {
  height: 32px;
  position: relative;
  overflow: visible;
}

.notebook__item-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.notebook__item.is-written .notebook__item-line::after {
  transform: scaleX(1);
}

/* Ручка */
.notebook__pen {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 28px;
  width: 60px;
  height: 20px;
  pointer-events: none;
  transition: top 0.6s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.notebook__pen-svg {
  color: #1c1e21;
  transform: rotate(-15deg);
}

.notebook__pen.is-down {
  opacity: 0;
}

.notebook__hint {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet: 4→2 includes */
@media (max-width: 980px) {
  .includes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .format-block__content {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .includes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dark-section__cta {
    flex-direction: column;
    gap: 16px;
  }
  .dark-section__price {
    justify-content: center;
  }
  .project-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .project-row__meta {
    grid-column: 2;
    flex-wrap: wrap;
  }
  .notebook {
    padding: 28px 18px;
    min-height: 260px;
  }
  .notebook__item-text {
    font-size: 19px;
  }
}

/* Reduced motion — notebook */
@media (prefers-reduced-motion: reduce) {
  .notebook__item .notebook__item-text {
    color: #1c1e21;
  }
  .notebook__item .notebook__item-line::after {
    transform: scaleX(1);
  }
  .notebook__pen {
    display: none;
  }
}

