/* ============================================================
   ARTEM POLYAKOV — design system
   Dark base · acid lime accent · electric violet secondary
   Display: Unbounded · Body: Manrope (both with Cyrillic)
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --light: #ececea;
  --lime: #c6f52e;
  --lime-dark: #a8d31f;
  --violet: #5d2de6;
  --violet-2: #6f42ff;
  --text: #f6f6f4;
  --muted: rgba(246, 246, 244, 0.76);
  --muted-2: rgba(246, 246, 244, 0.56);
  --border: rgba(255, 255, 255, 0.1);
  --dark-on-lime: #101202;
  --dark-on-light: #131316;
  /* акцент для текста, иконок и линий: лайм на тёмном, фиолетовый на светлом (.theme-light) */
  --accent: var(--lime);
  --accent-soft: rgba(198, 245, 46, 0.08);
  --accent-line: rgba(198, 245, 46, 0.45);
  --danger: #ff7a61;

  --font-display: "Unbounded", "Unbounded Fallback", "Arial Black", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 104px;

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

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  /* clip не делает body областью прокрутки — иначе position: sticky внутри страницы не работает */
  overflow-x: clip;
  min-height: 100vh;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul[class],
ol[class] {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.65rem, 5.4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
}

.accent {
  color: var(--accent);
}

.accent-violet {
  color: var(--violet-2);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-head .lead {
  margin-top: 14px;
}

/* ---------- Glow decorations ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow--lime {
  background: radial-gradient(circle, rgba(198, 245, 46, 0.5), transparent 65%);
}

.glow--violet {
  background: radial-gradient(circle, rgba(93, 45, 230, 0.55), transparent 65%);
}

/* ---------- Stickers / pills ---------- */
.sticker {
  display: inline-block;
  padding: 7px 16px 8px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--tilt, -3deg));
}

.sticker--lime {
  background: var(--lime);
  color: var(--dark-on-lime);
}

.sticker--white {
  background: #fff;
  color: var(--dark-on-light);
}

.sticker--violet {
  background: var(--violet);
  color: #fff;
}

.sticker--ghost {
  border: 1px solid var(--border);
  color: var(--muted);
  transform: none;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn svg {
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--lime {
  background: var(--lime);
  color: var(--dark-on-lime);
  box-shadow: 0 0 0 rgba(198, 245, 46, 0);
}

.btn--lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(198, 245, 46, 0.55);
}

.btn--violet {
  background: var(--violet);
  color: #fff;
}

.btn--violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(111, 66, 255, 0.6);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--dark {
  background: var(--dark-on-light);
  color: #fff;
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1.5px solid currentColor;
  transition: color 0.2s, gap 0.2s var(--ease-out);
  cursor: pointer;
}

.arrow-link:hover {
  color: var(--accent);
  gap: 16px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* Размытие фона — на псевдоэлементе: backdrop-filter на самой шапке
   запирал бы внутри неё полноэкранное мобильное меню (position: fixed). */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header.is-scrolled {
  border-color: var(--border);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.logo span {
  color: var(--lime);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--lime);
}

.header .btn {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.85rem;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 130;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s, top 0.3s var(--ease-out);
}

.burger span:nth-child(1) {
  top: 17px;
}

.burger span:nth-child(2) {
  top: 23px;
}

.burger span:nth-child(3) {
  top: 29px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px));
  padding-bottom: clamp(64px, 9vw, 130px);
  overflow: hidden;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 18.3em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .indent-1 {
  padding-left: clamp(0px, 6vw, 120px);
}

.hero h1 .indent-2 {
  padding-left: clamp(0px, 3vw, 60px);
}

.hero__stickers {
  position: relative;
  z-index: 3;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(36px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.hero__meta .lead {
  max-width: 48ch;
}

.hero__badge-inline {
  display: inline-block;
  transform: translateY(-0.4em);
}

/* Rotating round CTA */
.rotor {
  position: relative;
  width: 148px;
  height: 148px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark-on-lime);
  transition: transform 0.3s var(--ease-out);
}

.rotor:hover {
  transform: scale(1.06) rotate(6deg);
}

.rotor svg.ring {
  position: absolute;
  inset: 0;
  animation: spin 14s linear infinite;
}

.rotor .arr {
  width: 34px;
  height: 34px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: 18px;
  background: var(--bg-2);
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee__item::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}

.card--lime {
  background: var(--lime);
  color: var(--dark-on-lime);
  border: none;
}

.card--violet {
  background: linear-gradient(135deg, var(--violet) 0%, #4a1fd0 100%);
  color: #fff;
  border: none;
}

.card--light {
  background: var(--light);
  color: var(--dark-on-light);
  border: none;
}

.card--lime .lead,
.card--violet .lead,
.card--light .lead {
  color: inherit;
  opacity: 0.75;
}

/* ---------- Service cards ---------- */
.service-card .sticker {
  white-space: normal;
  line-height: 1.35;
  max-width: 100%;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
}

.card--lime .service-card__icon,
.card--light .service-card__icon {
  background: rgba(16, 18, 2, 0.08);
}


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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.service-card__top h3 {
  overflow-wrap: anywhere;
}

.service-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  white-space: nowrap;
}

.service-card p {
  font-size: 0.98rem;
  opacity: 0.8;
  flex: 1;
}

.service-card .arrow-link {
  align-self: flex-start;
}

.service-card--violet:hover {
  box-shadow: 0 24px 60px -20px rgba(93, 45, 230, 0.55);
}

.service-card--lime:hover {
  box-shadow: 0 24px 60px -20px rgba(198, 245, 46, 0.4);
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-on-lime);
}

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

.work-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card__media img {
  transform: scale(1.04);
}

.work-card__media .sticker {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.work-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 26px;
}

.work-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.work-card__tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px 5px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  white-space: nowrap;
}

.work-card__body h3 {
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.work-card__body p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.work-card__arr {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.work-card:hover .work-card__arr {
  background: var(--lime);
  color: var(--dark-on-lime);
  transform: rotate(45deg);
  border-color: var(--lime);
}

/* placeholder cover for projects without screenshot */
.work-card__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1c1c20 0%, #26262c 100%);
}

.work-card__ph span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: rgba(246, 246, 244, 0.22);
  text-align: center;
  padding: 0 20px;
}

/* ---------- Benefit / big statement ---------- */
.statement h2 {
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  max-width: 22.0em;
}

.statement h2 .shift {
  display: inline-block;
  padding-left: clamp(0px, 8vw, 160px);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  background: var(--surface);
}

.stat > svg {
  color: var(--accent);
  margin-bottom: 14px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s, transform 0.5s var(--ease-out);
}

.team-card:hover img {
  filter: grayscale(0.2);
  transform: scale(1.03);
}

.team-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 22px 22px;
  background: linear-gradient(to top, rgba(8, 8, 9, 0.92), transparent);
}

.team-card__overlay strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* усиленная подложка для светлых фото (контактный блок) */
.team-card__overlay--strong {
  background: linear-gradient(to top, rgba(8, 8, 9, 0.97) 30%, rgba(8, 8, 9, 0.55) 70%, transparent);
  padding-top: 90px;
}

.team-card__overlay--strong strong,
.team-card__overlay--strong span {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.team-card__overlay--strong span {
  color: rgba(255, 255, 255, 0.75);
}

.team-card__overlay span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.team-card .sticker {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  white-space: normal;
  line-height: 1.35;
  max-width: calc(100% - 44px);
}

.team-card--empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  background: transparent;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}

.step:hover {
  border-color: var(--accent-line);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: #9d82ff;
  font-size: 1.1rem;
}

.step h3 {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.step h3 svg {
  display: inline-block;
  vertical-align: -4px;
  margin-right: 10px;
  color: var(--accent);
}

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

/* ---------- Quiz ---------- */
.quiz-wrap {
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--violet) 0%, #3f16c4 100%);
  color: #fff;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.quiz-wrap::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 245, 46, 0.35), transparent 60%);
  pointer-events: none;
}

.quiz {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.quiz-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.quiz-art {
  justify-self: center;
  max-width: 420px;
  width: 100%;
}

.quiz-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .quiz-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-art {
    display: none;
  }
}

.quiz__opt svg {
  flex: none;
  opacity: 0.85;
}

.quiz__progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 26px 0 30px;
  overflow: hidden;
}

.quiz__bar {
  height: 100%;
  width: 25%;
  background: var(--lime);
  border-radius: 99px;
  transition: width 0.4s var(--ease-out);
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
  animation: fadeUp 0.4s var(--ease-out);
}

.quiz__q {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  color: #fff;
}

.quiz__opt:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.quiz__opt.is-selected {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-on-lime);
}

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.quiz__back {
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.7;
  cursor: pointer;
}

.quiz__back:hover {
  opacity: 1;
}

.quiz__back[disabled] {
  visibility: hidden;
}

.quiz__final {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.quiz__final input {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  color: #fff;
}

.quiz__final input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.quiz__final input:focus {
  outline: none;
  border-color: var(--lime);
}

.quiz__gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Forms ---------- */
.contact-panel {
  border-radius: var(--r-xl);
  background: var(--light);
  color: var(--dark-on-light);
  padding: clamp(28px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(19, 19, 22, 0.18);
}

.form-row label {
  font-weight: 800;
  font-size: 1.02rem;
}

.form-row input,
.form-row textarea {
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 1rem;
  width: 100%;
  resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(19, 19, 22, 0.4);
}

.form-error {
  color: #c0271c;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 1.2em;
}

.form-consent {
  font-size: 0.82rem;
  color: rgba(19, 19, 22, 0.55);
  max-width: 46ch;
}

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

.contact-aside {
  position: relative;
}

.contact-aside .team-card {
  aspect-ratio: 3 / 3.4;
}

.contact-aside .sticker {
  position: absolute;
  right: 12px;
  top: 42%;
  z-index: 3;
}

.form-success {
  display: none;
  padding: 40px 0;
  text-align: center;
}

.form-success.is-visible {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

.form-success h3 {
  margin-bottom: 12px;
}

/* ---------- Tables (packages, comparison) ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.ptable {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

.ptable th,
.ptable td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ptable thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  white-space: nowrap;
}

.ptable thead th.hl {
  color: var(--accent);
}

.ptable tbody tr:last-child td {
  border-bottom: 0;
}

.ptable td:first-child {
  color: var(--muted);
}

.ptable .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.check {
  color: var(--accent);
  font-weight: 800;
}

.dash {
  color: var(--muted-2);
}

/* ---------- Offer cards (AI solutions) ---------- */
.offer-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.offer-card:hover {
  border-color: rgba(111, 66, 255, 0.5);
  transform: translateY(-4px);
}

.offer-card .sticker {
  align-self: flex-start;
}

.offer-card p {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}

.offer-card__price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.offer-card__price em {
  font-style: normal;
  color: var(--accent);
}

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

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

/* ---------- Split card (service detail) ---------- */
.split-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.split-card__cta {
  text-align: center;
}

@media (max-width: 860px) {
  .split-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-card__cta {
    text-align: left;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 800;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
}

.faq__q::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  flex: none;
}

.faq__item.is-open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-in {
  overflow: hidden;
}

.faq__a p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 90px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.page-hero .lead {
  margin-top: 20px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-xl);
  background: var(--lime);
  color: var(--dark-on-lime);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: inherit;
  max-width: 20.2em;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.cta-band p {
  margin-top: 10px;
  opacity: 0.75;
  max-width: 52ch;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0 36px;
  background: var(--bg-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer__col :is(h2, h4) {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.footer__col ul {
  display: grid;
  gap: 12px;
}

.footer__col a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--lime);
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 36ch;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer__socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.2s;
}

.footer__socials a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-on-lime);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer__bottom a:hover {
  color: var(--lime);
}

/* ---------- Reveal animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ---------- Entrance animations (мягкие появления) ---------- */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(var(--tilt, -3deg));
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(var(--tilt, -3deg));
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* герой главной: строки заголовка выезжают по очереди */
.hero h1 .line {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero h1 .line:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.15s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.25s; }
.hero h1 .line:nth-child(4) { animation-delay: 0.35s; }

.hero h1 .sticker {
  opacity: 0;
  animation: popIn 0.5s var(--ease-out) forwards;
}

.hero h1 .line:nth-child(1) .sticker { animation-delay: 0.55s; }
.hero h1 .line:nth-child(3) .sticker { animation-delay: 0.7s; }

.hero__meta {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.45s forwards;
}

/* внутренние страницы: контент page-hero появляется каскадом */
.page-hero .container > * {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

.page-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.13s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.21s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.29s; }
.page-hero .container > *:nth-child(5) { animation-delay: 0.37s; }
.page-hero .container > *:nth-child(6) { animation-delay: 0.45s; }

/* иллюстрация квиза мягко парит */
.quiz-art svg {
  animation: floaty 7s ease-in-out infinite;
}

/* картинки в карточках проектов проявляются с лёгким наездом */
.work-card.reveal .work-card__media img {
  transform: scale(1.06);
  transition: transform 0.9s var(--ease-out);
}

.work-card.reveal.is-in .work-card__media img {
  transform: scale(1);
}

.work-card.reveal.is-in:hover .work-card__media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero h1 .line,
  .hero h1 .sticker,
  .hero__meta,
  .page-hero .container > * {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .step p {
    grid-column: 2;
  }

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

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--text);
  }

  .header .btn {
    display: none;
  }

  .burger {
    display: block;
  }

  .works-grid,
  .grid-2,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .services-grid,
  .grid-3,
  .team-grid,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 0;
  }

  .rotor {
    width: 120px;
    height: 120px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }
}

/* ============================================================
   v3 — навигация с подменю, тарифы, сравнение, форма заказа, блог
   ============================================================ */

/* ---------- Nav: подменю «Услуги» и акцентный пункт ---------- */
.nav__group {
  position: relative;
}

.nav__group > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav__drop {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 250px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 5;
}

.nav__drop-in {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}

.nav__drop a {
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav__drop a:hover {
  background: var(--surface-2);
}

.nav__group:hover .nav__drop,
.nav__group:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav a.nav__hot {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav a.nav__hot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 245, 46, 0.18);
}

@media (max-width: 860px) {
  .nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-h) + 8px) 20px calc(20px + env(safe-area-inset-bottom));
  }

  .nav > a,
  .nav__group > a {
    display: flex;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid var(--border);
  }

  .nav a.nav__hot {
    display: flex;
    gap: 12px;
  }

  .nav__group > a {
    border-bottom: 0;
  }

  .nav__group {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }

  .nav__group > a::after {
    display: none;
  }

  .nav__drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    min-width: 0;
  }

  .nav__drop-in {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .nav .nav__drop a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-body);
    text-transform: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    padding: 0;
    white-space: normal;
    border-radius: 0;
  }

  .nav .nav__drop a:hover {
    background: none;
    color: var(--text);
  }

  .logo {
    position: relative;
    z-index: 130;
  }
}

/* ---------- Offer hero facts ---------- */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
}

.hero-fact {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(8px);
}

.hero-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.hero-fact span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Pain cards ---------- */
.pain-card {
  border: 1px solid rgba(255, 99, 71, 0.22);
  background: linear-gradient(180deg, rgba(255, 99, 71, 0.06), transparent 70%), var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pain-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 99, 71, 0.12);
  color: var(--danger);
}

.pain-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Comparison (двухколоночный «как обычно / как у нас») ---------- */
.vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vs__col {
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}

.vs__col--bad {
  background: var(--surface);
  border: 1px solid var(--border);
}

.vs__col--good {
  background: var(--lime);
  color: var(--dark-on-lime);
}

.vs__col h3 {
  margin-bottom: 20px;
}

.vs__list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.vs__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 600;
  font-size: 0.98rem;
}

.vs__col--bad .vs__list li {
  color: var(--muted);
}

.vs__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.vs__col--bad .vs__mark {
  background: rgba(255, 99, 71, 0.14);
  color: var(--danger);
}

.vs__col--good .vs__mark {
  background: var(--dark-on-lime);
  color: var(--lime);
}

/* ---------- Comparison table ---------- */
.cmp th.us,
.cmp td.us {
  background: var(--accent-soft);
}

.cmp thead th.us {
  color: var(--accent);
}

.cmp td.them {
  color: var(--muted);
}

.cmp .ico {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 8px;
}

.cmp .ico--no {
  color: var(--danger);
}

.cmp .ico--yes {
  color: var(--accent);
}

/* ---------- Plans (тарифы) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.plan:hover {
  transform: translateY(-6px);
}

.plan--hl {
  background: linear-gradient(160deg, var(--violet) 0%, #3f16c4 100%);
  border: none;
  box-shadow: 0 30px 70px -30px rgba(93, 45, 230, 0.8);
}

.plan__badge {
  position: absolute;
  top: -14px;
  right: 22px;
}

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

.plan__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.2;
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  white-space: nowrap;
}

.plan__price small {
  font-size: 0.45em;
  font-weight: 600;
  opacity: 0.7;
}

.plan__term {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.plan--hl .plan__term {
  color: #fff;
}

.plan__for {
  font-size: 0.95rem;
  color: var(--muted);
}

.plan--hl .plan__for {
  color: rgba(255, 255, 255, 0.8);
}

.plan__list {
  list-style: none;
  display: grid;
  gap: 11px;
  flex: 1;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.plan--hl .plan__list {
  border-color: rgba(255, 255, 255, 0.2);
}

.plan__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.plan__list svg {
  color: var(--accent);
  margin-top: 2px;
}

.plan .btn {
  width: 100%;
}

.plans-note {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Guarantee cards ---------- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guarantee {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee svg {
  color: var(--accent);
}

.guarantee h3 {
  font-size: 1rem;
}

.guarantee p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Timeline 10 дней ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: tl;
}

.tl-step {
  position: relative;
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tl-step__day {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-on-lime);
  background: var(--lime);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.tl-step:last-child {
  background: var(--lime);
  color: var(--dark-on-lime);
  border: none;
}

.tl-step:last-child .tl-step__day {
  background: var(--dark-on-lime);
  color: var(--lime);
}

.tl-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tl-step p {
  font-size: 0.92rem;
  color: var(--muted);
}

.tl-step:last-child p {
  color: rgba(16, 18, 2, 0.75);
  font-weight: 600;
}

/* ---------- Order form ---------- */
.order {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--light);
  color: var(--dark-on-light);
  padding: clamp(26px, 4.5vw, 60px);
}

.order__form {
  display: grid;
  gap: 18px;
}

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

.field > span,
.field legend {
  font-weight: 800;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid rgba(19, 19, 22, 0.14);
  background: #fff;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--dark-on-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(93, 45, 230, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(19, 19, 22, 0.4);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

fieldset.field legend {
  margin-bottom: 8px;
}

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

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(19, 19, 22, 0.16);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip span:hover {
  border-color: rgba(19, 19, 22, 0.4);
}

.chip input:checked + span {
  background: var(--dark-on-light);
  border-color: var(--dark-on-light);
  color: var(--lime);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.order__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--r-lg);
  background: var(--dark-on-light);
  color: var(--text);
  padding: clamp(22px, 3vw, 34px);
}

.order__aside ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.order__aside li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.order__aside li b {
  color: var(--text);
}

.order__aside svg {
  color: var(--lime);
  margin-top: 2px;
}

.order__contacts {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order__contacts a {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.order__contacts a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.order .form-success h3 {
  color: var(--dark-on-light);
}

/* ---------- Offer band (главная) ---------- */
.offer-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4.5vw, 60px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(198, 245, 46, 0.18), transparent 50%), var(--surface);
  border: 1px solid var(--border);
}

.offer-band__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ---------- Blog: список ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
  flex: 1;
}

.post-card__body h2,
.post-card__body h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.post-card__body p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--muted-2);
  font-weight: 600;
}

.post-meta .work-card__tag {
  font-size: 0.64rem;
}

.post-card__more {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* обложки статей — фирменные, без внешних картинок */
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 22px;
}

.post-cover::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  border: 36px solid currentColor;
  opacity: 0.12;
}

.post-cover__num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  opacity: 0.9;
}

.post-cover__icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.post-cover--lime {
  background: var(--lime);
  color: var(--dark-on-lime);
}

.post-cover--lime .post-cover__icon {
  background: rgba(16, 18, 2, 0.08);
}

.post-cover--violet {
  background: linear-gradient(140deg, var(--violet), #3a14b8);
  color: #fff;
}

.post-cover--light {
  background: var(--light);
  color: var(--dark-on-light);
}

.post-cover--light .post-cover__icon {
  background: rgba(19, 19, 22, 0.07);
}

.post-cover--dark {
  background: radial-gradient(120% 120% at 100% 0%, rgba(198, 245, 46, 0.22), transparent 55%), #1d1d21;
  color: var(--lime);
}

/* ---------- Blog: статья ---------- */
.article-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  max-width: 22.0em;
}

.article-hero .lead {
  margin-top: 20px;
  max-width: 64ch;
}

.article-hero .post-meta {
  margin-top: 22px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: var(--surface);
}

.toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 9px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 22px 1fr;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--violet-2);
  padding-top: 2px;
}

.toc a {
  color: var(--muted);
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--accent);
}

.aside-cta {
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--lime);
  color: var(--dark-on-lime);
  display: grid;
  gap: 12px;
}

.aside-cta h3 {
  font-size: 1rem;
}

.aside-cta p {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

.aside-cta .btn {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* типографика длинного текста */
.prose {
  max-width: 72ch;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(246, 246, 244, 0.86);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: var(--text);
  margin-top: 2em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--text);
  margin-top: 1.6em;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55em;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ol {
  counter-reset: ol;
}

.prose ol li {
  counter-increment: ol;
  position: relative;
  padding-left: 36px;
}

.prose ol li::before {
  content: counter(ol);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(111, 66, 255, 0.22);
  color: #c8b8ff;
}

.prose blockquote,
.prose .callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  color: var(--text);
}

.prose .table-scroll {
  margin-top: 1.4em;
}

.prose .ptable {
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose .ptable td:first-child {
  color: var(--text);
}

.article-cta {
  margin-top: 2.4em;
}

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

/* ---------- Responsive для новых блоков ---------- */
@media (max-width: 1024px) {
  .plans,
  .posts,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    position: static;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .vs,
  .order,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .plans,
  .posts,
  .related,
  .guarantees,
  .timeline,
  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Согласие на обработку данных ---------- */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(19, 19, 22, 0.6);
  max-width: 52ch;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--violet);
  cursor: pointer;
}
.consent a { text-decoration: underline; }
.consent.is-error span { color: #c0271c; }
.quiz__final .consent { color: rgba(255, 255, 255, 0.7); }
.quiz__final .consent input[type="checkbox"] { border: 0; background: none; accent-color: var(--lime); }
.quiz__final .form-error:empty { display: none; }

/* Незаполненные реквизиты в юридических документах — видно сразу */
.fill { background: #fff3a8; color: #131316; padding: 0 4px; border-radius: 4px; }

.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Уведомление о cookie ---------- */
.cookie-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #131316;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cookie-note a { color: var(--lime); text-decoration: underline; }
.cookie-note button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--lime);
  color: #131316;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 520px) {
  .cookie-note { left: 10px; right: 10px; bottom: 10px; gap: 10px; padding: 10px 12px; font-size: 0.76rem; }
  .cookie-note button { padding: 8px 14px; }
}

/* ---------- Сравнение «агентство / мы» на телефоне: карточки вместо таблицы ---------- */
@media (max-width: 720px) {
  .cmp { min-width: 0; background: transparent; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 16px 16px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp td { padding: 0; border: 0; }
  .cmp td:first-child {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .cmp td.them { font-size: 0.9rem; margin-bottom: 8px; }
  .cmp td.us { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
  .table-scroll:has(.cmp) { overflow: visible; }
}

/* ---------- Первый экран страниц тарифов: текст + реальные проекты ---------- */
.hero-split { position: relative; }
.hero-visual { display: none; }
@media (min-width: 1100px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
  }
  .hero-split .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-visual {
    display: block;
    position: relative;
    height: 440px;
  }
}
.hv-win {
  position: absolute;
  margin: 0;
  width: 88%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.hv-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hv-win--back { top: 0; right: 0; transform: rotate(3deg); opacity: 0.85; }
.hv-win--front { bottom: 0; left: 0; transform: rotate(-2deg); }
.hv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #ececea;
  color: #4a4a4a;
  font-size: 0.72rem;
}
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcfcb; }
.hv-bar span { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fff; }
.hv-sticker { position: absolute; right: 4%; bottom: 10%; z-index: 2; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

/* ---------- Команда на страницах тарифов ---------- */
.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.team-mini {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.team-mini img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}
.team-mini:hover img { filter: none; }
.team-mini figcaption { padding: 12px 14px 16px; display: grid; gap: 4px; }
.team-mini b { font-family: var(--font-display); font-size: 0.95rem; }
.team-mini span { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) {
  .team-mini-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .team-mini { scroll-snap-align: start; }
}

/* ---------- Блок заявки: живой человек ---------- */
.order__person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.order__person img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid var(--lime);
}
.order__person div { display: grid; gap: 2px; }
.order__person b { font-family: var(--font-display); font-size: 0.95rem; }
.order__person span { font-size: 0.82rem; opacity: 0.7; line-height: 1.35; }

/* ---------- Реквизиты в подвале ---------- */
.footer__req { margin-top: 14px; font-size: 0.8rem; opacity: 0.9; }
@media (min-width: 1100px) {
  .hero-split h1 { font-size: clamp(2.3rem, 3.7vw, 3.6rem); }
  .hero-split .hero-visual { height: 400px; }
}
@media (min-width: 1100px) {
  .hero-split .hero-fact b { font-size: clamp(1.1rem, 1.6vw, 1.45rem); white-space: nowrap; }
}
/* Разделитель и перед ссылками в цепочке из трёх уровней */
.breadcrumbs a + a::before { content: "/"; margin-right: 8px; color: var(--muted-2); }

/* Заголовок CTA внутри статьи блога — тёмный на лаймовом фоне */
.prose .cta-band h2, .prose .cta-band p { color: var(--dark-on-lime); }

/* ---------- Обложки статей (если есть картинка в assets/blog) ---------- */
.post-cover--img { padding: 0; display: block; }
.post-cover--img::before { display: none; }
.post-cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.post-card:hover .post-cover--img img { transform: scale(1.03); }
.article-cover { margin: 28px 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ==================================================================
   Читаемость: светлые секции для длинных текстов
   ================================================================== */
p, li { line-height: 1.65; }
.lead { line-height: 1.6; }

.theme-light {
  --bg: #f3f3ef;
  --bg-2: #ebebe6;
  --surface: #ffffff;
  --surface-2: #f7f7f4;
  --text: #131316;
  --muted: rgba(19, 19, 22, 0.74);
  --muted-2: rgba(19, 19, 22, 0.6);
  --border: rgba(19, 19, 22, 0.1);
  background: var(--bg);
  color: var(--text);
  border-radius: clamp(24px, 4vw, 48px);
  margin-inline: clamp(8px, 1.4vw, 20px);
}
.section.theme-light { padding-block: clamp(56px, 8vw, 104px) !important; margin-block: clamp(24px, 4vw, 48px); }
.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4 { color: var(--text); }
.theme-light .accent { color: var(--violet); }
.theme-light .lead, .theme-light .section-head p { color: var(--muted); }
.theme-light .step, .theme-light .card:not(.card--violet), .theme-light .faq__item {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 8px 24px rgba(19, 19, 22, 0.05);
}
.theme-light .step__num { color: var(--violet); }
.theme-light .step h3 svg, .theme-light .faq__q::after { color: var(--violet); }
.theme-light .faq__q { color: var(--text); }
.theme-light .faq__a, .theme-light .faq__a p { color: var(--muted); }
.theme-light .arrow-link { color: var(--text); }
.theme-light .sticker--white { background: var(--text); color: #fff; }

/* Статья блога на «бумаге» */
.article-body .prose { color: var(--muted); font-size: 1.06rem; }
.article-body .prose h2, .article-body .prose h3, .article-body .prose strong { color: var(--text); }
.article-body .prose a { color: var(--violet); }
.article-body .callout { background: #fff; border-color: var(--violet); color: var(--text); }
.article-body .callout a { color: var(--violet); }
.article-body .toc { background: #fff; border-color: var(--border); }
.article-body .toc a { color: var(--muted); }
.article-body .toc a:hover { color: var(--violet); }
.article-body table th { color: var(--text); }
.article-body .prose .cta-band h2, .article-body .prose .cta-band p { color: var(--dark-on-lime); }

/* ---------- Отзывы ---------- */
.review { position: relative; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--muted); }
.review mark { background: rgba(198, 245, 46, 0.55); color: var(--text); font-weight: 600; padding: 0 2px; border-radius: 3px; }
.review__lead { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--text); font-size: 1.12rem; }
.review__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(93, 45, 230, 0.1);
  color: var(--violet);
}
.review__who { display: flex; gap: 12px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--border); }
.review__ava {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  background: var(--violet); color: #fff;
}
.review__meta { display: grid; gap: 2px; font-size: 0.82rem; line-height: 1.4; }
.review__meta b { font-family: var(--font-display); font-size: 0.9rem; color: var(--text); }
.review__meta > span { color: var(--muted); }
.review__meta a { color: var(--violet); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; justify-self: start; margin-top: 4px; }
.review__meta a svg { width: 12px; height: 12px; }

.review--card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 10px 30px rgba(19, 19, 22, 0.06);
}

.review--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: var(--violet);
  color: #fff;
  margin-bottom: 24px;
  overflow: hidden;
}
.review--featured .review__col { position: relative; display: flex; flex-direction: column; gap: 16px; }
.review--featured .review__lead { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.18; }
.review--featured blockquote p { color: rgba(255, 255, 255, 0.86); font-size: 1.02rem; }
.review--featured mark { background: var(--lime); color: var(--dark-on-lime); }
.review--featured .review__tag { background: rgba(255, 255, 255, 0.16); color: #fff; }
.review--featured .review__who { border-color: rgba(255, 255, 255, 0.2); }
.review--featured .review__ava { background: var(--lime); color: var(--dark-on-lime); }
.review--featured .review__meta b { color: #fff; }
.review--featured .review__meta > span { color: rgba(255, 255, 255, 0.78); }
.review--featured .review__meta a { color: var(--lime); }
.review__mark {
  position: absolute; left: -6px; top: -64px;
  font-family: Georgia, serif; font-size: 200px; line-height: 1;
  color: var(--lime); opacity: 0.35; pointer-events: none;
}
.review--featured .review__tag { margin-top: 40px; }

/* Слайдер */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  margin: -4px -4px 0;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.slider-btn:hover { background: var(--violet); color: #fff; border-color: transparent; }
.slider-btn:disabled { opacity: 0.35; cursor: default; background: var(--surface); color: var(--text); }

@media (max-width: 1000px) {
  .review--card { flex-basis: calc((100% - 16px) / 2); }
  .review--featured { grid-template-columns: minmax(0, 1fr); }
  .review--featured .review__tag { margin-top: 24px; }
}
@media (max-width: 640px) {
  .review--card { flex-basis: 88%; padding: 22px; }
  .review__mark { font-size: 150px; top: -48px; }
}

/* ---------- ИИ: блок «Почему это перестало быть экспериментом» ---------- */
.ai-ctx { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
.ai-ctx__big {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--lime);
  color: var(--dark-on-lime);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.ai-ctx__big b { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7rem); line-height: 0.9; }
.ai-ctx__big span { font-size: 1.1rem; font-weight: 700; line-height: 1.4; max-width: 24ch; }
.ai-gap {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(19, 19, 22, 0.06);
  display: grid; gap: 18px; align-content: start;
}
.ai-gap__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; color: var(--text); }
.ai-gap__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.ai-gap__row span { font-size: 0.95rem; color: var(--muted); }
.ai-gap__row b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--text); grid-row: span 2; align-self: center; }
.ai-gap__bar { height: 14px; border-radius: 999px; background: rgba(19, 19, 22, 0.07); overflow: hidden; }
.ai-gap__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--violet); }
.ai-gap__bar--alt i { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(19, 19, 22, 0.08); }
.ai-gap__note { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 1rem; }
.ai-gap__note strong { color: var(--text); }
.ai-pay { margin-top: 20px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--violet); color: #fff; }
.ai-pay h3 { color: #fff; margin: 0 0 22px; font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.ai-pay__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-pay__grid > div { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); display: grid; gap: 6px; align-content: start; }
.ai-pay__n {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--dark-on-lime);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 6px;
}
.ai-pay__grid b { font-family: var(--font-display); font-size: 1.05rem; }
.ai-pay__grid p { margin: 0; color: rgba(255, 255, 255, 0.94); }
.ai-pay__foot { margin: 20px 0 0; font-weight: 700; color: #fff; }
@media (max-width: 900px) {
  .ai-ctx, .ai-pay__grid { grid-template-columns: minmax(0, 1fr); }
}
.article-body .prose ol li::before { background: var(--violet); color: #fff; }
.article-body .prose ul li::before { background: var(--violet); }

/* ---------- CRM: с какими системами работаем ---------- */
.crm-systems {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.crm-systems__text h2 { margin: 16px 0 14px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.crm-systems__text p { color: var(--muted); max-width: 52ch; }
.crm-systems__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crm-systems__list li {
  padding: 18px;
  border-radius: 18px;
  background: var(--light);
  color: var(--dark-on-light);
  display: grid;
  gap: 4px;
}
.crm-systems__list b { font-family: var(--font-display); font-size: 1rem; }
.crm-systems__list span { font-size: 0.82rem; color: rgba(19, 19, 22, 0.66); }
.crm-systems__list .crm-systems__more { background: var(--lime); }
@media (max-width: 900px) {
  .crm-systems { grid-template-columns: minmax(0, 1fr); }
  .crm-systems__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Услуги: скриншот реального проекта в карточке тарифа ---------- */
.svc-shot {
  margin: 0 0 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}
.split-card:hover .svc-shot { transform: rotate(0deg) scale(1.02); }
.svc-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__copy { max-width: 60ch; }
.hero__copy .lead { margin: 0; }

/* ==================================================================
   v12 — ритм светлых и тёмных секций, единая типографика текстов,
   визуал услуг, цифры и сравнение расходов на главной
   ================================================================== */

/* ---------- Светлая тема: акцент и компоненты ---------- */
.theme-light {
  --accent: var(--violet);
  --accent-soft: rgba(93, 45, 230, 0.07);
  --accent-line: rgba(93, 45, 230, 0.4);
  --danger: #c2341c;
}
/* тёмные и цветные плашки внутри светлой секции живут по своим цветам */
.theme-light :is(.card--violet, .plan--hl, .quiz-wrap, .review--featured, .ai-pay, .order__aside, .viz) {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.86);
  --muted-2: rgba(255, 255, 255, 0.66);
  --border: rgba(255, 255, 255, 0.2);
  --accent: var(--lime);
  --accent-soft: rgba(198, 245, 46, 0.12);
  --accent-line: rgba(198, 245, 46, 0.45);
}
.theme-light :is(.card--lime, .vs__col--good, .cta-band, .ai-ctx__big) {
  --text: var(--dark-on-lime);
  --muted: rgba(16, 18, 2, 0.78);
  --border: rgba(16, 18, 2, 0.16);
  --accent: var(--dark-on-lime);
}
.theme-light .glow { display: none; }
.theme-light :is(.offer-card, .guarantee, .pain-card, .tl-step, .stat, .vs__col--bad, .hero-fact, .crm-systems, .cost, .incl) {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 8px 24px rgba(19, 19, 22, 0.05);
}
.theme-light .table-scroll { box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 8px 24px rgba(19, 19, 22, 0.05); }
.theme-light .tl-step:last-child { background: var(--lime); }
.theme-light .pain-card {
  background: linear-gradient(180deg, rgba(194, 52, 28, 0.06), transparent 70%), var(--surface);
  border-color: rgba(194, 52, 28, 0.2);
}
.theme-light .pain-card__icon,
.theme-light .vs__col--bad .vs__mark { background: rgba(194, 52, 28, 0.1); }
.theme-light .offer-band {
  background: radial-gradient(120% 140% at 100% 0%, rgba(93, 45, 230, 0.12), transparent 55%), var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 8px 24px rgba(19, 19, 22, 0.05);
}
.theme-light .offer-card:hover { border-color: var(--accent-line); }
.theme-light .btn--outline { border-color: rgba(19, 19, 22, 0.28); }
.theme-light .cmp td.us { color: var(--text); font-weight: 600; }
.theme-light .ptable td:first-child { color: var(--text); font-weight: 600; }
.theme-light .ptable td { color: var(--muted); }
.theme-light .ptable .price,
.theme-light .ptable td .check { color: var(--accent); }
.theme-light .vs__col--bad .vs__list li b { color: var(--text); }
.theme-light .offer-card__price { color: var(--text); }
/* после светлого «острова» тёмной секции нужен воздух сверху */
.section.theme-light + .section:not(.theme-light) { padding-top: clamp(40px, 6vw, 80px) !important; }
/* две светлые секции подряд читаются как один разворот */
.section.theme-light + .section.theme-light { margin-top: calc(16px - clamp(24px, 4vw, 48px)); }

/* ---------- Единая типографика текстовых блоков ---------- */
:root {
  --fs-text: 1rem;      /* 17px на десктопе, 16px на телефоне (см. body) */
  --fs-small: 0.9rem;
  --lh-text: 1.65;
  --measure: 68ch;
}
:is(.service-card, .offer-card, .pain-card, .guarantee, .tl-step, .step, .card, .faq__a, .review blockquote) p:not([class]),
:is(.plan__list, .vs__list, .ticks, .deflist) li {
  font-size: var(--fs-text);
  line-height: var(--lh-text);
}
:is(.card, .faq__a, .step, .offer-card, .legal) p:not([class]),
.ai-gap__note,
.ai-pay__foot { max-width: var(--measure); }
.prose { max-width: var(--measure); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
:is(.card, .faq__a, .legal, .offer-card) p:not([class]) + p:not([class]) { margin-top: 0.95em; }
.lead { max-width: 60ch; }
.lead strong,
.deflist strong,
.legal strong { color: var(--text); }

/* текст в карточках: приглушённый на нейтральных, наследуемый на цветных */
.card > p:not([class]) { color: var(--muted); }
:is(.card--lime, .card--violet, .card--light) > p:not([class]) { color: inherit; opacity: 0.86; }
.card > p.card-statement {
  color: inherit;
  opacity: 1;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 62ch;
}
.card > .card-note { font-size: var(--fs-small); font-weight: 600; opacity: 0.78; margin-top: 18px; }
.card > h3 + p,
.card > h3 + ul { margin-top: 12px; }
.card > h2 + p { margin-top: 16px; }
.card > p + .arrow-link { margin-top: 18px; }
.card--center { display: flex; flex-direction: column; justify-content: center; }
.card__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: baseline; }

/* отступы вместо инлайн-стилей */
.sticker + h2 { margin-top: 16px; }
.sticker + h1 { margin-top: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.stack > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }
.h-narrow { max-width: 20.2em; }
.h-mid { max-width: 27.5em; }
.price-xl { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.price-lg { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.split-note { margin: 8px 0 20px; font-size: var(--fs-small); line-height: 1.5; color: inherit; opacity: 0.78; }
.split-card > div > h2 + p { margin-top: 16px; opacity: 0.88; max-width: 60ch; font-size: var(--fs-text); line-height: var(--lh-text); }
.split-card:not(.card--violet):not(.card--lime) > div > h2 + p { color: var(--muted); opacity: 1; }
.services-stack { display: grid; gap: 24px; }

/* списки с галочками вместо «→ пункт» */
.ticks { --tick: var(--accent); list-style: none; display: grid; gap: 10px; margin-top: 18px; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-weight: 600; }
.ticks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 0.18em;
  background: var(--tick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.card--violet .ticks { --tick: var(--lime); }
.card--lime .ticks { --tick: var(--dark-on-lime); }
.deflist { list-style: none; display: grid; gap: 12px; padding: 0; color: var(--muted); }
.plan__list--wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; border: 0; padding: 0; }

/* юридические страницы */
.legal { display: grid; gap: 1em; color: var(--muted); font-size: var(--fs-text); line-height: 1.7; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal__small { font-size: var(--fs-small); }
.page-hero--legal h1 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); }

/* ---------- Услуги: «Что входит во все тарифы» ---------- */
.incl {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.incl h2 { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.25; }
.incl__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.incl__list li { display: grid; gap: 12px; align-content: start; font-weight: 700; font-size: 0.94rem; line-height: 1.35; }
.incl__ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
@media (max-width: 1100px) {
  .incl { grid-template-columns: minmax(0, 1fr); }
  .incl__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 520px) {
  .incl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Услуги: мини-схемы в карточках CRM и ИИ ---------- */
.viz {
  position: relative;
  border-radius: 18px;
  padding: 22px 18px 18px;
  margin-bottom: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 100%,
    #101013;
  color: #fff;
  overflow: hidden;
}
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.flow__node { display: grid; justify-items: center; gap: 10px; text-align: center; }
.flow__tile {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.flow__tile svg { width: 56%; height: auto; }
.flow__node b { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; }
.flow__node small { display: block; font-size: 0.78rem; line-height: 1.3; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.flow__arrow { position: relative; width: clamp(18px, 4vw, 54px); height: 2px; margin-bottom: 46px; background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 10px); color: rgba(255, 255, 255, 0.4); }
.flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--flow, var(--lime));
  border-right: 2px solid var(--flow, var(--lime));
  transform: translateY(-50%) rotate(45deg);
}
.flow__arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--flow, var(--lime));
  animation: flow-dot 2.4s var(--ease-out) infinite;
}
.flow__arrow:nth-of-type(4)::before { animation-delay: 1.2s; }
@keyframes flow-dot {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(calc(clamp(18px, 4vw, 54px) - 10px)); opacity: 0; }
}
.flow--violet { --flow: #a58bff; }
.flow--violet .flow__node:last-child .flow__tile { background: var(--violet); border-color: transparent; }
.flow--lime .flow__node:last-child .flow__tile { background: var(--lime); border-color: transparent; color: var(--dark-on-lime); }
@media (prefers-reduced-motion: reduce) {
  .flow__arrow::before { animation: none; opacity: 1; left: 30%; }
}

/* ---------- Главная: цифры ---------- */
.stats--xl { gap: 16px; }
.stats--xl .stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats--xl .stat > svg { position: absolute; right: 22px; top: 22px; width: 26px; height: 26px; margin: 0; opacity: 0.9; }
.stats--xl .stat b {
  margin-top: auto;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stats--xl .stat b small { font-size: max(0.36em, 0.875rem); letter-spacing: 0; font-weight: 600; margin-left: 0.2em; }
.stats--xl .stat span:not([data-count]) { font-size: 0.98rem; line-height: 1.45; margin-top: 14px; max-width: 26ch; }
.stats--xl .stat b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.stats--xl .stat--lime { background: var(--lime); border-color: transparent; color: var(--dark-on-lime); }
.stats--xl .stat--lime b,
.stats--xl .stat--lime > svg { color: var(--dark-on-lime); }
.stats--xl .stat--lime > span { color: rgba(16, 18, 2, 0.78); font-weight: 600; }
.stats--xl .stat--violet { background: linear-gradient(140deg, var(--violet), #3f16c4); border-color: transparent; }
.stats--xl .stat--violet b,
.stats--xl .stat--violet > svg { color: #fff; }
.stats--xl .stat--violet > span { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 1024px) {
  .stats--xl .stat { min-height: 180px; }
}
@media (max-width: 560px) {
  .stats--xl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats--xl .stat { min-height: 168px; padding: 18px; border-radius: var(--r-md); }
  .stats--xl .stat > svg { right: 16px; top: 16px; width: 22px; height: 22px; }
  .stats--xl .stat b { font-size: clamp(1.35rem, 6.2vw, 2.1rem); }
  .stats--xl .stat span:not([data-count]) { font-size: 0.875rem; margin-top: 10px; }
}

/* ---------- Главная: из чего складывается экономия ---------- */
.statement__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.statement__head .lead { margin: 0; }
.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.cost {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 32px);
}
.cost h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.cost > p { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; margin-top: -8px; }
.cost__list { list-style: none; padding: 0; display: grid; gap: 0; flex: 1; }
.cost__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.35;
}
.cost__tag {
  flex: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.cost__tag--pay { background: rgba(194, 52, 28, 0.1); color: var(--danger); }
.cost__tag--free { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cost__list li.is-off > span:first-child { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.cost__sum { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.2; }
.cost__sum:empty { display: none; }
.cost--us { background: var(--violet); border-color: transparent; color: #fff; --text: #fff; --muted: rgba(255, 255, 255, 0.86); --muted-2: rgba(255, 255, 255, 0.62); --border: rgba(255, 255, 255, 0.2); box-shadow: 0 24px 60px -24px rgba(93, 45, 230, 0.7) !important; }
.theme-light .cost--us { background: var(--violet); border-color: transparent; }
.theme-light .cost--us h3 { color: #fff; }
.cost--us .cost__tag--pay { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cost--us .cost__tag--free { background: var(--lime); color: var(--dark-on-lime); box-shadow: none; }
.cost--us .cost__sum { color: var(--lime); }
@media (max-width: 900px) {
  .statement__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .costs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Мелкие классы вместо инлайн-стилей ---------- */
.section--flush { padding-top: 0; }
.subsection { margin-top: clamp(40px, 6vw, 72px); }
h2 + .lead { margin-top: 14px; }
.plan__more { align-self: center; font-size: 0.8rem; }
.order__title { margin: 16px 0 26px; }
.order__form > .btn,
.contact-form > .btn { justify-self: start; }
.contact-form > .btn { margin-top: 10px; }
.form-success p { opacity: 0.72; }
.form-success a { text-decoration: underline; }
.contact-panel .form-success h3 { color: var(--dark-on-light); }
.filters { margin-bottom: 36px; }
.article-hero__in { position: relative; z-index: 1; }
.article-cta h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.prose .article-cta .btn--dark { text-decoration: none; color: #fff; }
.service-card.card:not(.card--violet):not(.card--lime) > p:not([class]) { opacity: 1; }
.service-card > .sticker { align-self: flex-start; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.h-xs { max-width: 18.3em; }
.section--snug { padding-top: 24px; }
.btn-row--flat { margin-top: 0; gap: 12px; }
.offer-band__top--solo { margin-bottom: 0; }
.quiz__title { margin-top: 18px; max-width: 22.0em; }
.quiz__lead { margin-top: 12px; opacity: 0.86; max-width: 52ch; }
.quiz__count { font-size: 0.875rem; opacity: 0.75; }
.contact-panel h2 { margin-bottom: 8px; }
.statement__head h2 { font-size: clamp(1.55rem, 3.3vw, 2.8rem); max-width: none; }
.statement__head h2 .shift { display: inline; padding-left: 0; }
.offer-card > .arrow-link { align-self: flex-start; }

/* ---------- Телефон: читаемый текст, зоны нажатия, длинные слова ---------- */
h1, h2, h3 { overflow-wrap: break-word; }
.filter-btn { min-height: 46px; }
.form-row input,
.form-row textarea { min-height: 44px; }
@media (max-width: 560px) {
  /* текст не мельче 14px; плашки-ярлыки заглавными — 13px */
  .breadcrumbs,
  .footer__col :is(h2, h4),
  .footer__req,
  .footer__bottom,
  .plan__more,
  .post-meta,
  .post-card__more,
  .filter-btn,
  .review__meta,
  .ptable thead th,
  .cmp td:first-child,
  .hero-fact span,
  .team-mini span,
  .crm-systems__list span,
  .work-card__body p,
  .consent,
  .consent span,
  .form-consent,
  .stat span { font-size: 0.875rem; }
  .sticker { font-size: 0.8125rem; letter-spacing: 0.06em; white-space: normal; max-width: 100%; line-height: 1.3; }
  .hero__badge-inline.sticker { white-space: nowrap; }
  .work-card__tag,
  .post-meta .work-card__tag,
  .review__tag,
  .tl-step__day,
  .cost__tag,
  .flow__node b,
  .flow__node small { font-size: 0.8125rem; }
  /* длинные слова в заголовках гротеском: чуть меньше кегль вместо обрезки */
  .step h3 { font-size: 0.95rem; }
  .step h3 svg { display: none; }
  .plan__name,
  .service-card__top h3 { font-size: 1rem; }
  .split-card h2 { font-size: clamp(1.3rem, 6.6vw, 1.7rem); }
  .viz { padding: 16px 10px 14px; }
  .flow { gap: 2px; }
  .flow__arrow { margin-bottom: 52px; }
  .cost__list li { font-size: 0.94rem; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  .statement__head h2 { font-size: 1.4rem; }
}
.footer__col :is(h2, h4) { line-height: 1.3; }

/* ---------- Первый экран: текст виден с первого кадра ----------
   Раньше заголовок стартовал с opacity:0 — браузер не засчитывал его как главный элемент страницы (LCP).
   Теперь он лишь досветляется и подтягивается. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes riseIn {
    from { opacity: 0.4; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .hero h1 .line,
  .hero__meta,
  .page-hero .container > * { opacity: 1; animation-name: riseIn; animation-fill-mode: both; }
}
.team-mini img { height: auto; }
@media (max-width: 560px) {
  .step h3,
  .plan__name,
  .service-card__top h3,
  .cost h3 { -webkit-hyphens: auto; hyphens: auto; }
}
@media (max-width: 380px) {
  .step h3 { font-size: 0.875rem; }
}
@media (max-width: 560px) {
  .order__person span { font-size: 0.875rem; }
}

/* ============================================================
   v13 — заявка в любой момент: попап, нижняя кнопка на телефоне,
   блок с кнопкой в мобильном меню
   ============================================================ */

/* ---------- Низ мобильного меню ---------- */
.nav__foot { display: none; }

@media (max-width: 860px) {
  .nav__foot {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 28px;
  }
  .nav .nav__foot .btn {
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: none;
    color: var(--dark-on-lime);
    min-height: 56px;
  }
  .nav .nav__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.01em;
  }
  .nav__phone svg { color: var(--lime); }
}

/* ---------- Блокировка прокрутки под попапом ---------- */
html.is-locked { overflow: hidden; }
html.is-locked body,
html.is-locked .header { padding-right: var(--sbw, 0px); }

/* ---------- Попап заявки ---------- */
.lead-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--dark-on-light);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lead-modal[open] { display: flex; }
.lead-modal::backdrop {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lead-modal__box {
  position: relative;
  width: min(100%, 520px);
  margin: auto;
  padding: 36px 36px 30px;
  border-radius: var(--r-lg);
  background: var(--light);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-on-light);
  background: rgba(19, 19, 22, 0.07);
  transition: background 0.2s;
}
.lead-modal__close:hover { background: rgba(19, 19, 22, 0.14); }
.lead-modal :focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.lead-modal__title {
  margin: 16px 0 8px;
  padding-right: 40px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  color: var(--dark-on-light);
  outline: none;
}
.lead-modal__lead {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(19, 19, 22, 0.72);
}
.lead-modal__tariff {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--dark-on-light);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}
.lead-modal__tariff[hidden] { display: none; }
.lead-modal__tariff b { color: var(--lime); }
.lead-modal__form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.lead-modal__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lead-modal__form .btn { width: 100%; }
.lead-modal__form .form-error:empty { display: none; }
.lead-modal__form .form-error a { text-decoration: underline; }
.lead-modal__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(19, 19, 22, 0.12);
  font-size: 0.9rem;
  color: rgba(19, 19, 22, 0.72);
}
.lead-modal__alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  color: var(--dark-on-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead-modal .form-success { padding: 28px 0 6px; }
.lead-modal .form-success h3 { color: var(--dark-on-light); }
.lead-modal .form-success .btn { margin-top: 22px; }

@media (max-width: 560px) {
  .lead-modal { padding: 12px 0 0; }
  .lead-modal__box {
    width: 100%;
    margin: auto 0 0;
    padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }
  .lead-modal__box::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: rgba(19, 19, 22, 0.18);
  }
  .lead-modal__close { top: 12px; right: 12px; }
  .lead-modal__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* на телефоне окно должно помещаться в экран без прокрутки: убираем второстепенное */
  .lead-modal .sticker,
  .lead-modal__alt span { display: none; }
  .lead-modal__title { margin-top: 6px; }
  .lead-modal__form { gap: 12px; margin-top: 16px; }
  .lead-modal .field { gap: 6px; }
  .lead-modal .field input { padding-block: 13px; }
  .lead-modal__alt { justify-content: center; gap: 0 28px; margin-top: 10px; padding-top: 6px; }
  .lead-modal .chip { flex: 1 1 auto; }
  .lead-modal .chip span { width: 100%; justify-content: center; }
}

/* невысокие экраны ноутбуков: окно целиком помещается без прокрутки */
@media (min-width: 561px) and (max-height: 720px) {
  .lead-modal { padding-block: 8px; }
  .lead-modal__box { padding: 24px 32px 14px; }
  .lead-modal__title { margin-top: 12px; }
  .lead-modal__form { gap: 12px; margin-top: 16px; }
  .lead-modal__alt { margin-top: 12px; padding-top: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes leadIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes leadSheetIn { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
  .lead-modal[open] .lead-modal__box { animation: leadIn 0.28s var(--ease-out) both; }
  .lead-modal[open]::backdrop { animation: leadFade 0.25s ease-out both; }
  .lead-modal.is-closing .lead-modal__box { animation: leadIn 0.16s ease-in reverse both; }
  .lead-modal.is-closing::backdrop { animation: leadFade 0.16s ease-in reverse both; }
  @media (max-width: 560px) {
    .lead-modal[open] .lead-modal__box { animation-name: leadSheetIn; animation-duration: 0.32s; }
    .lead-modal.is-closing .lead-modal__box { animation-name: leadSheetIn; }
  }
}

/* ---------- Кнопка заявки внизу экрана (телефон и планшет) ---------- */
.cta-bar { display: none; }

@media (max-width: 860px) {
  .cta-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 12, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .cta-bar.is-visible {
    transform: none;
    visibility: visible;
  }
  .cta-bar .btn {
    flex: 1;
    min-height: 52px;
    padding-inline: 18px;
  }
  .cta-bar__call {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: var(--text);
  }
  body.has-cta-bar .cookie-note { bottom: calc(108px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .cta-bar { transition: none; }
}
.lead-modal .form-success:focus { outline: none; }

/* ============================================================
   v14 — мобильные правки: подвал, формы на всю ширину, картинка
   в первом экране тарифов, фильтры в одну строку, обложка статьи
   ============================================================ */

/* ---------- Подвал: без маркеров, на телефоне компактно ---------- */
.footer__col ul { list-style: none; }

@media (max-width: 640px) {
  .footer { padding-top: 36px; }
  .footer__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px 20px;
    margin-bottom: 28px;
  }
  .footer__brand,
  .footer__col--contacts { grid-column: 1 / -1; }
  .footer__brand p { margin-top: 12px; max-width: none; }
  .footer__socials { margin-top: 16px; }
  .footer__col :is(h2, h4) { margin-bottom: 12px; }
  .footer__col ul { gap: 10px; }
  .footer__col a { font-size: 0.9rem; line-height: 1.35; }
  .footer__col--contacts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .footer__bottom { padding-top: 18px; gap: 8px; }
  .footer__req { margin-top: 10px; }
}

/* ---------- Формы-плашки на телефоне: почти во всю ширину экрана, как светлые секции ---------- */
@media (max-width: 640px) {
  .order,
  .contact-panel,
  .quiz-wrap {
    margin-inline: -12px;
    padding: 28px 20px;
    border-radius: var(--r-lg);
  }
}

/* ---------- Первый экран тарифов: проекты видны и на телефоне ---------- */
@media (max-width: 1099px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy { display: contents; }
  .hero-copy > .sticker { justify-self: start; }
  .hero-visual {
    display: block;
    position: relative;
    order: 2;
    width: 100%;
    max-width: 560px;
    height: clamp(250px, 74vw, 420px);
    margin-top: 36px;
  }
  .hero-split .hero-facts { order: 3; }
  .hv-sticker { right: 0; bottom: 6%; }
}

/* ---------- Фильтры на телефоне: одна строка с прокруткой вбок ---------- */
@media (max-width: 640px) {
  .filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    margin-bottom: 24px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: none;
    min-height: 44px;
    padding: 8px 16px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

/* ---------- Обложка статьи: по ширине текста, а не на весь экран ---------- */
.article-cover { max-width: 860px; }
.article-cover img { aspect-ratio: 2 / 1; }

/* ============================================================
   v15 — страницы проектов портфолио, абонентское обслуживание,
   мобильные правки по итогам проверки
   ============================================================ */

/* ---------- Страница проекта ---------- */
.case-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.case-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: 14em; }
.case-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transform: rotate(1.2deg);
}
.case-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.case-fact {
  padding: 22px 22px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(19, 19, 22, 0.05);
}
.case-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--accent);
}
.case-fact span { display: block; margin-top: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.case-about h2 { margin: 16px 0 16px; }
.case-about p { font-size: 1.06rem; line-height: 1.65; color: var(--muted); max-width: 56ch; }
.case-about .arrow-link { margin-top: 22px; }
.case-done h3 { margin-bottom: 16px; }
.case-done { padding: clamp(24px, 3vw, 36px); }

@media (max-width: 960px) {
  .case-hero__in,
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-shot { transform: none; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .case-facts { gap: 10px; }
  .case-fact { padding: 16px 14px; }
}

/* ---------- Абонентское обслуживание: пример расчёта часов ---------- */
.hero-visual--plain { height: auto !important; }
.hours {
  --cell: var(--lime);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.hours__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hours__row {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.hours__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hours__head b { font-family: var(--font-display); font-size: 0.95rem; }
.hours__head span,
.hours__sum span { font-size: var(--fs-small); color: var(--muted); }
.hours__cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.hours i { display: block; height: 22px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, 0.18); }
.hours i.is-used { background: var(--lime); border-color: var(--lime); }
.hours i.is-carried { background: var(--violet-2); border-color: var(--violet-2); }
.hours i.is-extra { border: 1.5px dashed var(--lime); background: rgba(198, 245, 46, 0.14); }
.hours__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hours__sum b { font-family: var(--font-display); font-size: 1.15rem; color: var(--lime); white-space: nowrap; }
.hours__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; font-size: 0.85rem; color: var(--muted); }
.hours__legend span { display: inline-flex; align-items: center; gap: 8px; }
.hours__legend i { width: 16px; height: 16px; border-radius: 5px; }
@media (max-width: 1099px) {
  .hero-visual--plain { max-width: 560px; }
}
.guarantees--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-row--center { justify-content: center; }
.offer-card > .incl__ico { margin-bottom: 4px; }
@media (max-width: 1024px) {
  .guarantees--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Подвал: разделитель юридических ссылок ---------- */
.footer__legal i { font-style: normal; }
@media (max-width: 640px) {
  .footer__legal { flex-direction: column; gap: 6px; }
  .footer__legal i { display: none; }
}

/* ---------- Выделенная мысль и примечание ---------- */
.punchline {
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--violet) 0%, #3f16c4 100%);
  color: #fff;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}
.note-line {
  margin-top: 24px;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- Телефон: таблицы ---------- */
@media (max-width: 640px) {
  /* «параметр — значение» без шапки: помещается в экран, без прокрутки вбок */
  .ptable:not(:has(thead)) { min-width: 0; }
  .ptable:not(:has(thead)) td { padding: 12px 14px; width: 50%; }
  /* сравнительные таблицы: первая колонка закреплена, остальные листаются */
  .ptable:has(thead):not(.cmp) { min-width: 560px; font-size: 0.875rem; }
  .ptable:has(thead):not(.cmp) :is(th, td) { padding: 12px 14px; }
  .ptable:has(thead):not(.cmp) :is(th, td):first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    white-space: normal;
    background: var(--surface-2);
    box-shadow: 1px 0 0 var(--border);
  }
}

/* ---------- Телефон: команда на главной листается вбок ---------- */
@media (max-width: 640px) {
  .team-grid {
    display: flex;
    gap: 12px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > .team-card {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }
}

/* ---------- Услуги: широкая карточка дополнительной услуги ---------- */
.offer-card--wide { grid-column: 1 / -1; }
.offer-card__in { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 900px) {
  .offer-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: center;
  }
}

/* ---------- Телефон: круглая кнопка в первом экране не нужна — внизу есть кнопка заявки ---------- */
@media (max-width: 640px) {
  .rotor { display: none; }
}
.hours__legend { font-size: 0.875rem; }
.hours__title { font-size: 0.8125rem; }

/* ============================================================
   v17 — подвал на телефоне, первый экран обслуживания,
   «Как устроен проект», листалка проектов
   ============================================================ */

/* ---------- Подвал на телефоне: блоки разделены линиями, колонки совпадают ---------- */
@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
    margin-bottom: 0;
  }
  .footer__brand { padding-bottom: 26px; }
  .footer__col:not(.footer__brand) {
    border-top: 1px solid var(--border);
    padding: 22px 0 26px;
  }
  .footer__col:nth-child(2) { padding-right: 20px; }
  .footer__col :is(h2, h4) { color: var(--lime); margin-bottom: 14px; }
  .footer__col--contacts ul {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 10px 0;
  }
  .footer__col--contacts li:first-child a { font-size: 1.05rem; font-weight: 800; color: var(--text); }
  .footer__bottom { padding-top: 20px; }
}

/* ---------- Абонентское обслуживание: первый экран ---------- */
.h-support { font-size: clamp(1.6rem, 3.3vw, 2.9rem); max-width: 16em; }
.page-hero h1.h-support { font-size: clamp(1.6rem, 3.3vw, 2.9rem); }
.plan-card,
.hours {
  --text: #f6f6f4;
  --muted: rgba(246, 246, 244, 0.76);
  --muted-2: rgba(246, 246, 244, 0.56);
  --border: rgba(255, 255, 255, 0.1);
  --accent: var(--lime);
  background: #18181b;
  color: var(--text);
}
.plan-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.plan-card__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.plan-card__price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--lime);
  white-space: nowrap;
}
.plan-card__price small { font-size: 0.34em; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.hours__cells--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.hours__cells--5 i { height: 30px; border-radius: 8px; }
.plan-card i { display: block; background: var(--lime); }
.plan-card__hours { margin-top: 12px; font-weight: 800; font-size: 1.05rem; }
.plan-card .ticks { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.plan-card .ticks li { font-weight: 600; color: var(--muted); }
@media (max-width: 1099px) {
  .hero-split--support .hero-visual { height: auto; margin-top: 32px; }
}

/* пример на три месяца — в разделе «Условия», три колонки */
.hours { margin-top: 24px; box-shadow: none; }
.hours__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 6px; }
.hours__rows .hours__row { border-bottom: 0; align-content: start; }
.hours__legend { border-top: 1px solid var(--border); }
@media (max-width: 860px) {
  .hours__rows { grid-template-columns: minmax(0, 1fr); }
  .hours__rows .hours__row { border-bottom: 1px solid var(--border); }
  .hours__rows .hours__row:last-child { border-bottom: 0; }
}

/* ---------- Страница проекта: «Как устроен проект» ---------- */
.case-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.4fr);
  gap: 20px clamp(24px, 4vw, 56px);
  padding: clamp(26px, 3.2vw, 40px) 0;
  border-top: 1px solid var(--border);
}
.case-block:last-child { border-bottom: 1px solid var(--border); }
.case-block__head { display: flex; align-items: baseline; gap: 14px; }
.case-block__num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.case-block h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.2; }
.case-feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(20px, 2.6vw, 36px); }
.case-feats li { display: grid; gap: 8px; align-content: start; }
.case-feats b { font-size: 1.02rem; line-height: 1.35; color: var(--text); }
.case-feats span { font-size: 0.98rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) {
  .case-block { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .case-feats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .case-block { padding: 24px 0; }
}

/* ---------- Телефон: проекты листаются вбок (главная, тарифы, страницы проектов) ---------- */
@media (max-width: 640px) {
  .works-grid--slider {
    display: flex;
    gap: 12px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .works-grid--slider::-webkit-scrollbar { display: none; }
  .works-grid--slider > .work-card { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ============================================================
   v18 — графика в текстовых блоках, кнопки на телефоне
   ============================================================ */

/* ---------- Иконка-плашка и шапка карточки «иконка + заголовок» ---------- */
.ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.ico--bad { background: rgba(255, 99, 71, 0.1); border-color: rgba(255, 99, 71, 0.3); color: var(--danger); }
.card--lime .ico { background: rgba(16, 18, 2, 0.08); border-color: rgba(16, 18, 2, 0.22); color: var(--dark-on-lime); }
.card--violet .ico { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head h3 { margin: 0; }
.card > .card-head { margin-bottom: 14px; }
.offer-card > .card-head + p { margin-top: 2px; }

/* ---------- Иконки в первой колонке таблиц ---------- */
.tcell { display: flex; align-items: center; gap: 12px; }
.tico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.ptable:has(.tico) td { vertical-align: middle; }

/* ---------- Крупная графика в карточке: цифра или «часы» ---------- */
.card-fig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  min-height: 64px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.fig-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.fig-cap { font-size: var(--fs-small); color: var(--muted); }
.fig-cells { display: flex; align-items: center; gap: 6px; align-self: center; }
.fig-cells i { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border); }
.fig-cells i.on { background: var(--accent); border-color: var(--accent); }
.fig-cells i.next { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.fig-cells b { margin: 0 4px; font-size: 1.3rem; line-height: 1; color: var(--accent); }

/* ---------- Кнопка с обводкой заметнее на тёмном и на светлом ---------- */
.btn--outline { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.05); }
.theme-light .btn--outline { border-color: rgba(19, 19, 22, 0.34); background: rgba(19, 19, 22, 0.03); }
.theme-light :is(.card--violet, .plan--hl, .quiz-wrap, .order__aside, .viz) .btn--outline { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }

@media (max-width: 640px) {
  /* парные кнопки — во всю ширину, одна под другой */
  .btn-row,
  .hero__btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn,
  .hero__btns .btn,
  .cta-band > .btn { width: 100%; }

  .card-head { gap: 12px; align-items: flex-start; }
  .ico { width: 42px; height: 42px; border-radius: 12px; }
  .ico svg { width: 20px; height: 20px; }
  .tico { display: none; }
  .fig-cells i { width: 26px; height: 26px; }

  /* плитки CRM: названия не упираются в край */
  .crm-systems__list { gap: 10px; }
  .crm-systems__list li { min-width: 0; padding: 14px 12px; }
  .crm-systems__list b { font-size: 0.8rem; line-height: 1.25; overflow-wrap: anywhere; }
  .crm-systems__list span { font-size: 0.875rem; line-height: 1.35; }
}
.card > .ico--note { margin-bottom: 14px; }
.cost--us .ico { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.cost .card-head h3 { margin: 0; }
.card-head h3 { min-width: 0; }
@media (max-width: 640px) {
  .card-head h3 { hyphens: auto; overflow-wrap: anywhere; }
  .crm-systems__list b { font-family: var(--font-body); font-weight: 800; font-size: min(1rem, 4.1vw); overflow-wrap: normal; }
}

/* ============================================================
   v19 — партнёрство и технологии, мобильные приложения
   ============================================================ */
.tech {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tech__partner h2 { margin: 16px 0 16px; max-width: 16em; }
.tech__partner .lead { max-width: 54ch; color: var(--muted); }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.cert {
  display: grid;
  gap: 12px;
  padding: 12px 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.cert:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.cert img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.cert span { display: grid; gap: 2px; padding: 0 4px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.cert b { font-size: 0.98rem; color: var(--text); }
.tech__stack { display: grid; gap: 16px; }
.tech__stack .card { padding: clamp(22px, 2.6vw, 30px); }
.tech__stack .card > p { margin-top: 0; }
.tech__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; }
.tech__chips li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.tech__chips li.more { border-style: dashed; background: none; color: var(--muted); }
.tech__stack .card--violet .arrow-link { margin-top: 16px; color: #fff; }
.footer__partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.footer__partner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.footer__brand .footer__partner { max-width: none; }
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.partner-badge span { display: grid; font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.partner-badge b { font-size: 0.95rem; color: var(--text); }

/* ---------- Мобильные приложения ---------- */
.mobile-app {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: radial-gradient(90% 120% at 100% 0%, rgba(93, 45, 230, 0.28), transparent 60%), var(--surface);
}
.mobile-app h2 { margin: 16px 0 16px; max-width: 14em; }
.mobile-app .lead { color: var(--muted); max-width: 56ch; }
.mobile-app__feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 28px; padding: 0; }
.mobile-app__feats li { display: flex; gap: 14px; align-items: flex-start; }
.mobile-app__feats div { display: grid; gap: 4px; }
.mobile-app__feats b { font-size: 1.02rem; line-height: 1.3; }
.mobile-app__feats div span { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.mobile-app__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-app__price { display: grid; gap: 2px; }
.mobile-app__price b { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--lime); }
.mobile-app__price span { font-size: var(--fs-small); color: var(--muted); max-width: 34ch; }
.mobile-app__visual { position: relative; display: grid; justify-items: center; padding: 10px 0; }
.phone {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 38px;
  background: #0b0b0c;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.03);
  transform: rotate(4deg);
}
.phone__notch { position: absolute; top: 16px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: 10px; background: #0b0b0c; z-index: 2; }
.phone__screen { height: 100%; display: flex; flex-direction: column; gap: 9px; padding: 34px 12px 12px; border-radius: 28px; background: #f3f3ef; color: #131316; overflow: hidden; }
.phone__top { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; }
.phone__top i { width: 22px; height: 22px; border-radius: 50%; background: #dcdcd6; }
.phone__hero { display: grid; gap: 2px; padding: 14px 12px; border-radius: 14px; background: var(--violet); color: #fff; }
.phone__hero b { font-family: var(--font-display); font-size: 0.82rem; line-height: 1.2; }
.phone__hero span { font-size: 0.68rem; opacity: 0.85; }
.phone__row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; background: #fff; }
.phone__row > i { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #e4e4de; }
.phone__row > span { flex: 1; display: grid; gap: 6px; }
.phone__row b { height: 7px; width: 78%; border-radius: 4px; background: #c9c9c2; }
.phone__row em { height: 6px; width: 48%; border-radius: 4px; background: #e2e2dc; }
.phone__row u { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); }
.phone__cta { margin-top: auto; padding: 11px; border-radius: 999px; background: #131316; color: var(--lime); text-align: center; font-size: 0.78rem; font-weight: 800; }
.phone__tabs { display: flex; justify-content: space-around; padding-top: 4px; }
.phone__tabs i { width: 20px; height: 5px; border-radius: 4px; background: #d5d5cf; }
.phone__tabs i.on { background: #131316; }
.push {
  position: absolute;
  left: -4%;
  bottom: 22%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(31, 31, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transform: rotate(-3deg);
}
.push .ico { width: 38px; height: 38px; border-radius: 12px; }
.push div { display: grid; gap: 1px; }
.push b { font-size: 0.88rem; }
.push div span { font-size: 0.78rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pushIn { 0%, 12% { opacity: 0; transform: translateY(-10px) rotate(-3deg); } 22%, 88% { opacity: 1; transform: rotate(-3deg); } 100% { opacity: 0; transform: translateY(-6px) rotate(-3deg); } }
  .mobile-app__visual.is-in .push { animation: pushIn 6s var(--ease-out) infinite; }
}

@media (max-width: 960px) {
  .tech,
  .mobile-app { grid-template-columns: minmax(0, 1fr); }
  .mobile-app__visual { order: -1; }
  .phone { width: 210px; transform: rotate(3deg); }
  .push { left: 2%; }
}
@media (max-width: 640px) {
  .certs { gap: 10px; }
  .cert { padding: 8px 8px 12px; }
  .mobile-app { padding: 24px 18px; margin-inline: -12px; border-radius: var(--r-lg); }
  .mobile-app__feats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mobile-app__foot { flex-direction: column; align-items: stretch; }
  .mobile-app__foot .btn { width: 100%; }
  .phone { width: 180px; }
  .push { max-width: 210px; left: 0; }
}

/* ============================================================
   v20 — вкладки «Как устроен проект», дополнительные скриншоты,
   индивидуальные проекты вне тарифов
   ============================================================ */

/* ---------- Вкладки на странице проекта ---------- */
.case-tabs__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.case-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 20px 8px 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.case-tab .ico { width: 44px; height: 44px; border-radius: 12px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.case-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.case-tab.is-active { color: var(--dark-on-lime); background: var(--lime); border-color: var(--lime); }
.case-tab.is-active .ico { background: var(--dark-on-lime); border-color: var(--dark-on-lime); color: var(--lime); }
.case-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.case-panel { margin-top: 20px; }
.case-tabs.is-ready .case-panel:not(.is-active) { display: none; }
.case-tabs.is-ready .case-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case-panel__title { margin: 28px 0 14px; font-size: 1.1rem; }
.case-feats { gap: 16px; }
.case-feats li {
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feat-ico {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--dark-on-lime) !important;
}
.case-feats b { font-size: 1.08rem; }
@media (prefers-reduced-motion: no-preference) {
  .case-tabs.is-ready .case-panel.is-active .case-feats li { animation: fadeUp 0.45s var(--ease-out) both; }
  .case-tabs.is-ready .case-panel.is-active .case-feats li:nth-child(2) { animation-delay: 0.06s; }
  .case-tabs.is-ready .case-panel.is-active .case-feats li:nth-child(3) { animation-delay: 0.12s; }
}
@media (max-width: 640px) {
  .case-tabs__nav {
    flex-wrap: nowrap;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
  }
  .case-tabs__nav::-webkit-scrollbar { display: none; }
  .case-tab { flex: none; scroll-snap-align: start; min-height: 56px; padding-right: 16px; font-size: 0.8125rem; }
  .case-tab .ico { width: 40px; height: 40px; }
  .case-feats li { padding: 18px; }
}

/* ---------- Дополнительные скриншоты проекта ---------- */
.case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.case-shot--flat { transform: none; box-shadow: 0 20px 50px -24px rgba(19, 19, 22, 0.35); border-color: var(--border); }
.case-shot--flat figcaption { padding: 12px 16px 14px; background: #fff; color: #131316; font-size: var(--fs-small); line-height: 1.4; font-weight: 600; }
@media (max-width: 640px) {
  .case-shots { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- Индивидуальные проекты ---------- */
.custom-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.custom-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.custom-card:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.custom-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.custom-card__body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.custom-card__body b { font-family: var(--font-display); font-size: 0.86rem; line-height: 1.25; text-transform: uppercase; }
.custom-card__body span { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.custom-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.custom-foot__label { font-weight: 800; }
.custom-foot .tech__chips { margin-top: 12px; }
@media (max-width: 1100px) {
  .custom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .custom-grid.works-grid--slider > .custom-card { flex: 0 0 72%; scroll-snap-align: start; }
  .custom-foot { flex-direction: column; align-items: stretch; }
  .custom-foot .btn { width: 100%; }
}
@media (max-width: 640px) {
  .custom-grid.works-grid--slider { display: flex; }
}
@media (max-width: 640px) {
  .custom-card__body b { font-size: 0.875rem; }
}

/* ============================================================
   v21 — таблица сравнения, меню, партнёрство на телефоне,
   отзывы, плашка «На обслуживании», окно просмотра сертификата
   ============================================================ */

/* ---------- Таблица сравнения: значки «нет / да» — маленькие кружки, а не плашки ---------- */
.cmp .ico {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  vertical-align: -6px;
  margin-right: 10px;
}
.cmp .ico svg { width: 13px; height: 13px; }
.cmp .ico--no { background: rgba(194, 52, 28, 0.1); color: var(--danger); }
.cmp .ico--yes { background: var(--accent); color: #fff; }
:not(.theme-light) > .container .cmp .ico--yes { color: var(--dark-on-lime); }
.theme-light .cmp .ico--yes { color: #fff; }

/* ---------- Меню на телефоне: поверх меню остаётся только логотип шапки ---------- */
@media (max-width: 860px) {
  .logo { position: static; z-index: auto; }
  .header .logo { position: relative; z-index: 130; }
}

/* ---------- Партнёрство: блоки не сливаются ---------- */
.cert { background: #f3f3ef; border-color: transparent; }
.cert span { color: rgba(19, 19, 22, 0.7); }
.cert b { color: #131316; }
.theme-light .cert { background: #fff; border-color: var(--border); box-shadow: 0 8px 24px rgba(19, 19, 22, 0.05); }
.tech__stack .card:not(.card--violet) {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface);
}
@media (max-width: 960px) {
  .tech { gap: 36px; }
  .tech__stack { padding-top: 36px; border-top: 1px solid var(--border); }
}

/* ---------- Проекты: плашка «На обслуживании» ---------- */
.work-card__tag--support { border-color: transparent; background: var(--violet); color: #fff; }
.case-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.case-hero__tags + h1 { margin-top: 18px; }

/* ---------- Отзывы: скриншот проекта, полный текст — по клику ---------- */
.review--card { padding: 0 0 26px; overflow: hidden; gap: 16px; }
.review--card > :not(.review__shot) { margin-inline: 26px; }
.review__shot { display: block; overflow: hidden; background: var(--surface-2); }
.review__shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease-out); }
.review__shot:hover img { transform: scale(1.03); }
.review--card .review__lead { font-size: 1.05rem; }
.review--card .review__who { margin-top: auto; }
.review__full { font-size: var(--fs-small); }
.review__full summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  color: var(--violet);
  cursor: pointer;
  list-style: none;
}
.review__full summary::-webkit-details-marker { display: none; }
.review__full summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.review__full[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.review__full blockquote { margin: 4px 0 6px; }
.review--featured { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.review--featured .review__full summary { color: var(--lime); }
.review--featured .review__who { margin-top: 8px; }
.review__col--shot { justify-content: center; }
.review__shot--big {
  position: relative;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
}
.review__shot--big img { aspect-ratio: 16 / 10; }
.review__shot--big .hv-bar { display: flex; }
.review__shot-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--dark-on-lime);
  font-size: 0.875rem;
  font-weight: 800;
}
.reviews-section .slider__track { gap: 20px; }
@media (min-width: 1001px) {
  .review--card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 1000px) {
  .review--featured { grid-template-columns: minmax(0, 1fr); }
  .review__shot--big { transform: none; }
}
@media (max-width: 640px) {
  .review--card { padding: 0 0 20px; }
  .review--card > :not(.review__shot) { margin-inline: 20px; }
  .review--featured { gap: 22px; }
}

/* ---------- Окно просмотра картинки ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 5, 6, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 48px));
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #131316;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.lightbox__close:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: leadIn 0.25s var(--ease-out) both; }
  .lightbox[open]::backdrop { animation: leadFade 0.25s ease-out both; }
}

/* ---------- v22: отзывы на телефоне — цитата мельче, карточки без пустот ---------- */
@media (max-width: 640px) {
  .reviews-section .slider__track { align-items: flex-start; }
  .review--card { gap: 12px; }
  .review--card .review__lead { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; line-height: 1.4; }
  .review--card .review__who { margin-top: 4px; }
  .review--featured .review__lead { font-size: 1.25rem; line-height: 1.25; }
}

/* ---------- v22: никаких переносов слов с дефисом ----------
   Слова не рвутся нигде; если заголовок не помещается на узком экране — уменьшаем шрифт, а не делим слово. */
html { -webkit-hyphens: manual; hyphens: manual; }
h1, h2, h3, h4,
.card-head h3,
.cost h3,
.step h3 { -webkit-hyphens: manual !important; hyphens: manual !important; overflow-wrap: normal !important; word-break: normal !important; }
@media (max-width: 380px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .card-head h3 { font-size: 0.92rem; }
}

/* ---------- v22: сравнительные таблицы на телефоне — карточки без прокрутки вбок ----------
   Класс is-stack ставит скрипт: он же подписывает каждую ячейку названием колонки. */
@media (max-width: 640px) {
  .table-scroll:has(.ptable.is-stack) { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .ptable.is-stack { display: block; min-width: 0 !important; background: none; font-size: 0.95rem; }
  .ptable.is-stack thead { display: none; }
  .ptable.is-stack tbody { display: grid; gap: 10px; }
  .ptable.is-stack tr {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 10px 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .ptable.is-stack td { display: block; padding: 0 !important; border: 0 !important; }
  .ptable.is-stack td:first-child {
    position: static !important;
    grid-column: 1 / -1;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    background: none !important;
    box-shadow: none !important;
    font-weight: 800;
    color: var(--text);
  }
  .ptable.is-stack td:not(:first-child) { display: grid; gap: 3px; align-content: start; line-height: 1.35; }
  .ptable.is-stack td:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .ptable.is-stack td.is-hl::before { color: var(--accent); }
  .ptable.is-stack .price { font-size: 1rem; }
  .ptable.is-stack .tico { display: none; }
  /* две длинные колонки — друг под другом */
  .ptable.is-stack[data-cols="2"] tr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ptable.is-stack tr { gap: 10px 8px; }
  .ptable.is-stack td:not(:first-child)::before { letter-spacing: 0; }
  .ptable.is-stack .price { font-size: 0.9rem; }
}

/* ---------- v22: телефон — меньше текста на экране ----------
   1) длинные вводные абзацы свёрнуты до нескольких строк, остальное — по «Читать дальше»;
   2) в сетках карточек виден заголовок, описание раскрывается по нажатию.
   Классы clamp и acc ставит скрипт; на компьютере всё показано целиком. */
.clamp-more { display: none; }
.acc__mark { display: none; }
@media (max-width: 640px) {
  .clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines, 4);
    overflow: hidden;
  }
  .clamp-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 2px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent);
  }
  .clamp-more::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .page-hero .clamp-more + .btn-row,
  .clamp-more + .btn-row { margin-top: 18px; }

  .acc { position: relative; cursor: pointer; padding-right: 54px !important; }
  .acc:not(.is-open) > p:not([class]) { display: none; }
  .acc__mark {
    position: absolute;
    top: 18px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--accent);
    transition: transform 0.25s var(--ease-out), background 0.2s;
  }
  .acc.is-open .acc__mark { transform: rotate(45deg); background: var(--accent-soft); }
  .acc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .acc.is-open > p:not([class]) { animation: fadeUp 0.3s var(--ease-out) both; }
  .card--lime.acc .acc__mark,
  .tl-step.acc:last-child .acc__mark { border-color: rgba(16, 18, 2, 0.25); color: var(--dark-on-lime); }
  .card--violet.acc .acc__mark { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
}
@media (max-width: 640px) {
  .ptable.is-stack td:not(:first-child)::before { font-family: var(--font-body); }
}
@media (max-width: 640px) {
  .acc .card-head h3 { font-size: 0.92rem; }
}
@media (max-width: 380px) {
  .acc h3 { font-size: 0.9rem; }
  .acc .card-head h3 { font-size: 0.85rem; }
}

/* ---------- v23: закрытое мобильное меню не перехватывает нажатия ----------
   Подменю внутри меню имело visibility: visible и оставалось кликабельным, хотя меню скрыто:
   нажатие по странице попадало в невидимую ссылку меню. */
@media (max-width: 860px) {
  .nav:not(.is-open) { pointer-events: none; }
  .nav:not(.is-open) .nav__drop,
  .nav:not(.is-open) .nav__drop a { visibility: hidden; pointer-events: none; }
}

/* ---------- v24: сравнение «они / мы» на телефоне читается с одного взгляда ---------- */
.versus-legend { display: none; }
@media (max-width: 640px) {
  .table-scroll:has(.ptable.is-stack) { border: 0; }
  .versus-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 14px;
    font-size: 0.9rem;
    font-weight: 800;
  }
  .versus-legend span { display: inline-flex; align-items: center; gap: 8px; }
  .versus-legend .no { color: var(--muted); }
  .versus-legend .yes { color: var(--text); }
  .versus-legend span::before,
  .ptable.is-versus td:not(:first-child)::before {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
  }
  .versus-legend .no::before,
  .ptable.is-versus td:nth-child(2)::before { content: "✕"; background: rgba(255, 122, 97, 0.16); color: var(--danger); }
  .versus-legend .yes::before,
  .ptable.is-versus td:nth-child(3)::before { content: "✓"; background: var(--accent); color: var(--dark-on-lime); }
  .theme-light .versus-legend .yes::before,
  .theme-light .ptable.is-versus td:nth-child(3)::before { color: #fff; }

  .ptable.is-versus tr { gap: 8px; padding: 14px; }
  .ptable.is-versus td:first-child {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .ptable.is-versus td:not(:first-child) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
  }
  .ptable.is-versus td:nth-child(2) { color: var(--muted); padding: 0 12px !important; }
  .ptable.is-versus td:nth-child(3) {
    padding: 11px 12px !important;
    border-radius: 12px;
    background: var(--accent-soft);
    font-weight: 700;
    color: var(--text);
  }
  .ptable.is-versus .price { font-size: 1rem; }
}

/* ---------- v25: сравнение «агентство / мы» на телефоне — значки на одной линии, текст не уходит под значок ---------- */
@media (max-width: 720px) {
  .cmp td.them,
  .cmp td.us {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    line-height: 1.4;
  }
  .cmp td.them { margin-bottom: 4px; }
  .cmp .ico { flex: none; margin: 0; vertical-align: 0; }
}
/* числа с тире («2–3», «50–100%») и суммы не рвутся посреди */
.nb { white-space: nowrap; }
/* значок в таблице сравнения стоит по центру первой строки текста */
.cmp .ico { vertical-align: middle; position: relative; top: -2px; }
@media (max-width: 720px) {
  .cmp .ico { position: static; }
}

/* ============================================================
   v27 — контакты в форме заказа, форма по шагам на телефоне,
   разделы проекта на телефоне плиткой
   ============================================================ */

/* ---------- Контакты под «Что будет после заявки»: заметная рамка, MAX помещается ---------- */
.order__contacts a {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .order__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .order__contacts a:first-child { grid-column: 1 / -1; font-size: 1rem; }
}

/* ---------- Форма заказа по шагам (только телефон) ---------- */
.order__steps,
.order__next,
.order__add { display: none; }
@media (max-width: 640px) {
  .order__form.is-steps .order__steps {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(19, 19, 22, 0.7);
  }
  .order__steps-count { flex: none; }
  .order__steps-line { flex: 1; height: 6px; border-radius: 6px; background: rgba(19, 19, 22, 0.12); overflow: hidden; }
  .order__steps-line i { display: block; width: 50%; height: 100%; border-radius: 6px; background: var(--violet); transition: width 0.3s var(--ease-out); }
  .order__form[data-step="2"] .order__steps-line i { width: 100%; }
  .order__back {
    flex: none;
    min-height: 44px;
    padding: 0 4px;
    font-weight: 800;
    color: var(--violet);
    visibility: hidden;
  }
  .order__form[data-step="2"] .order__back { visibility: visible; }

  .order__form.is-steps[data-step="1"] > :not(.order__steps):not(.order__step1) { display: none !important; }
  .order__form.is-steps[data-step="2"] > .order__step1 { display: none !important; }
  .order__form.is-steps .order__next { display: inline-flex; width: 100%; }
  .order__form.is-steps .order__step1 .chips { display: grid; gap: 10px; }
  .order__form.is-steps .order__step1 .chip span { width: 100%; min-height: 54px; padding-inline: 18px; font-size: 1rem; }
  /* способ связи — три равные кнопки в ряд */
  .order__form fieldset:not(.order__step1) .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .order__form fieldset:not(.order__step1) .chip span { width: 100%; justify-content: center; padding-inline: 8px; }
  .order__form .form-error:empty { display: none; }
  .order__form[data-step="2"] > * { animation: fadeUp 0.3s var(--ease-out) both; }

  .order__form .order__add {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 44px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--violet);
  }
  .order__form:not(.has-comment) .order__comment { display: none; }
  .order__form.has-comment .order__add { display: none; }
  .order__form > .btn[type="submit"] { width: 100%; justify-self: stretch; }
}

/* ---------- Разделы проекта на телефоне: плитка, все видны сразу ---------- */
@media (max-width: 640px) {
  .case-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .case-tab {
    min-height: 60px;
    padding: 8px 10px 8px 8px;
    gap: 10px;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
  }
  .case-tab .ico { width: 38px; height: 38px; border-radius: 11px; }
  .case-tab .ico svg { width: 19px; height: 19px; }
  .case-tabs__nav > .case-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- v27: «Что обычно выходит за рамки тарифа» на телефоне — строки во всю ширину ---------- */
@media (max-width: 640px) {
  .custom-foot .tech__chips { display: grid; gap: 8px; }
  .custom-foot .tech__chips li { width: 100%; padding: 12px 16px; border-radius: 14px; }
}

/* ---------- v28: ленты, которые листаются вбок, не перехватывают вертикальную прокрутку страницы ----------
   У блока с overflow-x: auto браузер сам включает и вертикальную прокрутку. Стоит содержимому вылезти
   хоть на пиксель (тень, сдвиг при наведении) — палец «застревает» внутри ленты. Вертикаль отключаем явно,
   а место под тени оставляем внутренними отступами. */
.works-grid--slider,
.team-grid,
.team-mini-grid,
.slider__track,
.filters,
.table-scroll {
  overflow-y: hidden;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
}
@media (max-width: 640px) {
  .works-grid--slider,
  .team-grid,
  .custom-grid.works-grid--slider {
    padding-block: 8px 14px;
    margin-block: -8px -14px;
  }
  /* карточки в ленте не подпрыгивают при касании — иначе их обрезает сверху */
  .works-grid--slider > *,
  .team-grid > *,
  .slider__track > * { transform: none !important; }
  .works-grid--slider > .reveal:not(.is-in) { opacity: 0; }
}
.table-scroll:has(.ptable.is-stack) { overflow-y: visible; }

/* ---------- v29: длинные заголовки на телефоне ---------- */
@media (max-width: 640px) {
  .page-hero--legal h1 { font-size: clamp(1.15rem, 5.5vw, 2rem); }
}

/* ---------- v30: таблицы «параметр — значение» на телефоне: подпись сверху, значение крупно под ней ---------- */
@media (max-width: 640px) {
  .ptable:not(:has(thead)),
  .ptable:not(:has(thead)) tbody { display: block; }
  .ptable:not(:has(thead)) tr {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .ptable:not(:has(thead)) tr:last-child { border-bottom: 0; }
  .ptable:not(:has(thead)) td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .ptable:not(:has(thead)) td:first-child { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
  .ptable:not(:has(thead)) td:last-child { font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: var(--text); }
  .ptable:not(:has(thead)) .price { font-size: 1.15rem; }
  /* итоговая строка расчёта — акцентом */
  .ptable:not(:has(thead)) tr:last-child td:last-child.price,
  .ptable:not(:has(thead)) tr:last-child td:last-child .price { color: var(--accent); }
}

/* ---------- v31: кнопки на телефоне — во всю ширину своего блока ---------- */
@media (max-width: 640px) {
  .btn-row,
  .hero__btns { width: 100%; flex: 1 1 100%; }
  .offer-band__top { flex-direction: column; align-items: stretch; }
  .split-card__cta { display: grid; justify-items: stretch; }
  main .btn:not(.order__next) { width: 100%; }
}

/* ============================================================
   v32 — короткая посадочная под рекламу, состав команды
   ============================================================ */

/* ---------- Шапка посадочной: логотип, телефон, кнопка — без меню ---------- */
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  font-weight: 800;
  white-space: nowrap;
}
.header__phone svg { color: var(--lime); }
@media (max-width: 860px) {
  .header--lp .header__phone {
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.9rem;
  }
}
@media (max-width: 380px) {
  .header--lp .logo { font-size: 0.85rem; }
  .header--lp .header__phone { padding: 0 10px; font-size: 0.82rem; gap: 6px; }
}

/* ---------- Строка доверия под первым экраном ---------- */
.lp-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.lp-trust li { display: inline-flex; align-items: center; gap: 10px; }
.lp-trust svg { color: var(--lime); flex: none; }
@media (max-width: 640px) {
  .lp-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: 0.875rem; }
  .lp-trust li { align-items: flex-start; line-height: 1.35; }
}

/* ---------- Тарифы коротко: три главных пункта ---------- */
.plans--compact .plan__list { flex: 0 0 auto; }
.plans--compact .plan { gap: 14px; }
.plans--compact + .plans-note { margin-top: 20px; }


/* ---------- Короткий подвал ---------- */
.footer--slim { padding-top: 28px; }
.footer--slim .footer__bottom { border-top: 0; padding-top: 0; }

/* ---------- Команда: основной состав и специалисты под задачи ---------- */
.team-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 20px;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: var(--surface);
}
.team-extra__num { display: flex; align-items: baseline; gap: 10px; }
.team-extra__num b { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--lime); }
.team-extra__num span { font-weight: 700; color: var(--muted); }
.team-extra__title { font-weight: 800; }
.team-extra .tech__chips { margin-top: 10px; }
#team .section-head .lead { margin-top: 14px; color: var(--muted); max-width: 56ch; }
/* посадочная на телефоне: короче первый экран и форма */
@media (max-width: 860px) {
  .header--lp .header__in { gap: 10px; }
  .header--lp .logo { font-size: 0.9rem; }
  .header--lp .header__phone { padding: 0 12px; font-size: 0.85rem; gap: 7px; }
  .header--lp .header__phone svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .header--lp .logo { font-size: 0.8rem; }
  .header--lp .header__phone { padding: 0 9px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .lp .hero-visual { height: clamp(200px, 58vw, 320px); margin-top: 28px; }
  .lp .lp-trust { margin-top: 24px; }
}
@media (max-width: 640px) {
  .plans--compact .plan { padding: 20px 18px; gap: 10px; }
  .plans--compact .plan__for { margin: 0; }
}

/* ---------- v33: проекты на посадочной — четыре в ряд и плитка с призывом ---------- */
@media (min-width: 641px) {
  .works-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1100px) {
  .works-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works-grid--4 .work-card__body { padding: 16px 16px 18px; }
  .works-grid--4 .work-card__body p { font-size: 0.9rem; }
  .works-grid--4 .work-card__arr { display: none; }
}
.work-card--cta {
  justify-content: center;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-on-lime);
}
.work-card--cta:hover { border-color: var(--lime); }
.work-card__cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; text-transform: uppercase; }
.work-card__cta-text { font-size: 0.95rem; line-height: 1.45; color: rgba(16, 18, 2, 0.8); }
.work-card--cta .btn { align-self: flex-start; margin-top: 6px; min-height: 46px; padding: 10px 20px; }
@media (max-width: 640px) {
  .work-card--cta .btn { align-self: stretch; }
}

/* ---------- v34: короткие карточки тарифов на телефоне — больше воздуха ---------- */
@media (max-width: 640px) {
  .plans--compact { gap: 30px; }
  .plans--compact .plan { padding: 28px 24px 26px; gap: 0; }
  .plans--compact .plan__head { margin-bottom: 18px; }
  .plans--compact .plan__price { margin-bottom: 12px; }
  .plans--compact .plan__term { margin-bottom: 18px; }
  .plans--compact .plan__for { margin: 0 0 24px; line-height: 1.55; }
  .plans--compact .plan .btn { margin-bottom: 18px; }
  .plans--compact .plan__more { margin: 0 auto; }
  .plans--compact + .plans-note { margin-top: 28px; }
}

/* ============================================================
   v35 — посадочная под индивидуальные проекты
   ============================================================ */
.task-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(19, 19, 22, 0.05);
}
.task-card h3 { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.2; margin-top: 4px; }
.task-card__text { font-size: var(--fs-text); line-height: var(--lh-text); color: var(--muted); flex: 1; }
.task-card .arrow-link { font-size: 0.8125rem; margin-top: 4px; }

.integ {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.integ h2 { margin: 16px 0 16px; max-width: 14em; }
.integ .lead { color: var(--muted); max-width: 54ch; }
.integ .ticks { margin-top: 22px; }
.integ__visual .viz { padding: 30px 22px 26px; margin-bottom: 22px; }
.integ__label { font-weight: 800; margin-bottom: 4px; }
.integ__visual .tech__chips { margin-top: 12px; }
@media (max-width: 960px) {
  .integ { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .task-grid { gap: 12px; }
  .task-card { padding: 20px; gap: 10px; }
  .integ__visual .viz { padding: 22px 12px 18px; }
}
.work-card--cta { display: flex; flex-direction: column; align-items: flex-start; }
.work-card--cta > span { display: block; }
.work-card--cta > .btn { display: inline-flex; }

/* ============================================================
   v37 — посадочная для ресторанов: карта зон доставки, три проекта в ряд
   ============================================================ */
.zones-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.zones-card div { display: grid; gap: 6px; }
.zones-card b { font-family: var(--font-display); font-size: 0.9rem; text-transform: uppercase; line-height: 1.25; }
.zones-card span { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.zones { width: 100%; height: auto; border-radius: 12px; background: #101013; }
.zones .z3 { fill: rgba(93, 45, 230, 0.22); stroke: var(--violet-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.zones .z2 { fill: rgba(93, 45, 230, 0.38); stroke: var(--violet-2); stroke-width: 1.5; }
.zones .z1 { fill: rgba(198, 245, 46, 0.3); stroke: var(--lime); stroke-width: 1.5; }
.zones .pin { fill: var(--lime); stroke: #101013; stroke-width: 3; }
.zones text { fill: #fff; font: 700 11px var(--font-body); }
@media (min-width: 900px) {
  .works-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zones-card { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}

/* ============================================================
   v38 — правки по боевому сайту на iPhone
   ============================================================ */

/* ---------- Шапка и нижняя кнопка на телефонах ---------- */
@media (hover: none), (max-width: 860px) {
  /* Размытие фона у закреплённых блоков на телефонах даёт сбои отрисовки — здесь фон сплошной */
  .header::before {
    background: rgba(11, 11, 12, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 860px) {
  .cta-bar {
    background: #0e0e10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Продолжение фона вниз: если браузер всё же поставит кнопку выше края экрана,
     под ней не будет просвечивать страница */
  .cta-bar::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 200px;
    background: inherit;
  }
}

/* ---------- Попап: без рамки вокруг заголовка, окно не меняет высоту после отправки ---------- */
.lead-modal .lead-modal__title:focus,
.lead-modal .lead-modal__title:focus-visible,
.lead-modal .form-success:focus-visible { outline: none; }
.lead-modal__box.is-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-modal__box.is-success .form-success { padding: 8px 0; }
.form-success__ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark-on-lime);
}
@media (prefers-reduced-motion: no-preference) {
  .lead-modal__box { transition: min-height 0.35s var(--ease-out); }
}
.lead-modal__box.is-success .form-success .btn { width: 100%; }
@media (min-width: 561px) {
  .lead-modal__box.is-success { min-height: 300px; }
}
@media (max-width: 560px) {
  .lead-modal__box.is-success { min-height: 260px; padding-top: 44px; }
}

/* ---------- Подвал на телефоне: всё в одну колонку, по левому краю ---------- */
@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer__legal { gap: 10px; }
  .footer__legal a { display: inline-block; padding-block: 2px; }
  .footer__req { margin-top: 16px; line-height: 1.55; }
  .footer--slim { padding: 26px 0 30px; }
}

/* ============================================================
   v39 — на телефоне нет закреплённых блоков во весь экран
   ============================================================
   Safari и Chrome на iPhone, встретив закреплённый (position: fixed) блок высотой с экран,
   увеличивают область, от которой отсчитываются ВСЕ закреплённые блоки страницы. После этого
   шапка пропадает при прокрутке вниз, нижняя кнопка повисает, а само окно прыгает при открытии.
   Поэтому всплывающие окна занимают только свою высоту, а закрытое меню — нулевую. */

/* ---------- Попап заявки: окно размером с содержимое ---------- */
.lead-modal {
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lead-modal[open] { display: block; }
.lead-modal__box {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (hover: none) {
  .lead-modal { max-height: 88vh; max-height: 88dvh; }
}
@media (max-width: 560px) {
  .lead-modal {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: none;
  }
  .lead-modal__box { border-radius: 0; }
}
@media (min-width: 561px) and (max-height: 720px) {
  .lead-modal { padding: 0; }
}
/* появление — у самого окна, а не у его содержимого */
@media (prefers-reduced-motion: no-preference) {
  .lead-modal[open] .lead-modal__box,
  .lead-modal.is-closing .lead-modal__box { animation: none; }
  .lead-modal[open] { animation: leadIn 0.28s var(--ease-out) both; }
  .lead-modal.is-closing { animation: leadIn 0.16s ease-in reverse both; }
  @media (max-width: 560px) {
    .lead-modal[open] { animation-name: leadSheetIn; animation-duration: 0.32s; }
    .lead-modal.is-closing { animation-name: leadSheetIn; }
  }
}

/* ---------- Окно с сертификатом: не во всю высоту экрана ---------- */
.lightbox {
  margin: auto 0;
  height: 86vh;
  height: 86dvh;
}

/* ---------- Закрытое меню на телефоне не занимает места ---------- */
@media (max-width: 860px) {
  .nav:not(.is-open) {
    height: 0;
    padding-block: 0;
    overflow: hidden;
    /* высота убирается после того, как меню погасло */
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s, height 0s 0.3s, padding 0s 0.3s;
  }
}

/* ============================================================
   v40 — нижняя кнопка и попап дотягиваются до края экрана
   ============================================================
   Chrome на iPhone после сворачивания своих панелей оставляет внизу полосу, куда закреплённые
   (position: fixed) блоки не попадают, а сама страница — попадает: под кнопкой и под попапом
   просвечивал сайт. Поэтому кнопка стоит в «доке» — блоке нулевой высоты, который прилипает
   к низу экрана и рисуется вместе со страницей; фон под его линией закрывает полосу. */
.dock { display: none; }

@media (max-width: 860px) {
  .dock {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 90;
    height: 0;
  }
  .cta-bar { position: absolute; inset: auto 0 0; }
  .cta-bar::after { display: none; }
  .dock__skirt { display: none; }

  @supports (overflow: clip) {
    /* низ страницы обрезает то, что выступает под док, когда он стоит в самом конце */
    body { overflow-y: clip; }
    .cta-bar::after { display: block; height: 240px; }
    /* светлое продолжение попапа — только пока он открыт на телефоне */
    .dock__skirt {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 240px;
      background: var(--light);
    }
  }
}
@media (max-width: 560px) {
  html.has-sheet .dock__skirt { display: block; }
}

/* ============================================================
   v41 — нижняя кнопка заявки закреплена всегда (кроме первого экрана)
   ============================================================ */
@media (max-width: 860px) {
  /* место под кнопку, чтобы она не закрывала последние строки подвала */
  .footer { padding-bottom: calc(36px + 73px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .footer--slim { padding-bottom: calc(30px + 73px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   v42 — подпись «Меню» у кнопки, блок «Почему мы» на странице ИИ
   ============================================================ */

/* ---------- Подпись «Меню» слева от кнопки меню (телефон и планшет) ---------- */
.burger__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.burger[aria-expanded="true"] .burger__label { opacity: 0; }

/* ---------- «Почему мы»: короткий тезис и четыре довода вместо сплошного абзаца ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.why h2 {
  margin: 18px 0 18px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}
.why__text p { line-height: 1.6; opacity: 0.86; }
.why__text p + p { margin-top: 12px; }
.why__text .why__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
  opacity: 1;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why__grid li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.why__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--dark-on-lime);
}
.why__grid b { display: block; font-weight: 800; line-height: 1.3; }
.why__grid div > span {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.45;
  opacity: 0.85;
}
@media (max-width: 960px) {
  .why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .why__grid li { flex-direction: row; align-items: center; padding: 14px; }
}
/* на самых узких экранах подпись не помещается рядом с логотипом */
@media (max-width: 350px) {
  .burger__label { display: none; }
}

/* ============================================================
   v43 — страница 404
   ============================================================ */
.nf { min-height: min(100svh, 860px); display: flex; align-items: center; }
.nf__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 26vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  margin-bottom: clamp(18px, 3vw, 30px);
  user-select: none;
}
.nf__code span { color: var(--lime); -webkit-text-stroke: 0; }
.nf h1 { margin-top: 18px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nf__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 5vw, 56px);
}
.nf__links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s;
}
.nf__links a:hover,
.nf__links a:focus-visible { border-color: var(--lime); background: rgba(198, 245, 46, 0.06); }
.nf__links b { font-weight: 800; }
.nf__links span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) {
  .nf__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .nf__actions .btn { width: 100%; justify-content: center; }
  .nf__links a { padding: 14px; }
}

/* ============================================================
   v44 — скриншоты проекта: свои пропорции и просмотр крупно
   ============================================================ */
.case-shot--flat img { aspect-ratio: auto; object-fit: contain; }
.case-shot__zoom { display: block; cursor: zoom-in; }
.case-shot__zoom:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
/* карточки в ряду одной высоты: подпись занимает остаток */
.case-shot--flat { display: flex; flex-direction: column; }
.case-shot--flat figcaption { flex: 1; }
/* скриншот без пары (один в проекте или последний из нечётного числа) — по центру, а не в левой половине */
.case-shots > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
@media (max-width: 640px) {
  .case-shots > :last-child:nth-child(odd) { width: 100%; }
}

/* ============================================================
   v47 — по итогам аудита
   ============================================================ */
/* Текст только для поисковиков и экранных дикторов */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* «Доводка» карусели отзывов включается после первого касания карусели (класс ставит main.js).
   Пока она включена с самой загрузки, Chrome считает её прокруткой и перестаёт замерять скорость
   первого экрана (LCP): PageSpeed показывает ошибку вместо оценки. */
.slider__track:not(.is-snap) { scroll-snap-type: none; }
/* кнопка-заголовок раскрывающейся карточки на телефоне: выглядит как обычный заголовок */
.acc__btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: inherit; }
.acc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* цены тарифов строкой под заголовком первого экрана */
.hero-prices { margin-top: 16px; font-size: 1.02rem; line-height: 1.5; color: var(--muted); }
.hero-prices b { color: var(--text); font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) {
  .hero-prices { font-size: 0.95rem; }
  .lp .hero-facts { gap: 8px; margin-top: 20px; }
}
/* уведомление о cookie: компактное, две равноценные кнопки; прячется под меню и у формы */
.cookie-note { transition: opacity 0.2s, transform 0.2s; }
.cookie-note.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.cookie-note__btns { display: inline-flex; gap: 8px; flex: none; }
.cookie-note .cookie-note__no { background: transparent; color: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
@media (max-width: 520px) {
  .cookie-note { padding: 8px 8px 8px 12px; gap: 8px; font-size: 0.74rem; line-height: 1.3; }
  .cookie-note button { padding: 8px 12px; font-size: 0.74rem; }
}
/* ориентир цены и срока в карточке задачи («Разработка на заказ») */
.task-card__price { font-size: var(--fs-small); color: var(--muted); }
.task-card__price b { color: var(--text); font-weight: 800; }
/* подпись к статистике на странице ИИ */
.ai-gap__src { font-size: var(--fs-small); color: var(--muted); }

/* ---------- «0 ₽ предоплаты»: плашка на первом экране, строка над кнопкой внизу экрана ---------- */
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px 10px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(198, 245, 46, 0.45);
  background: rgba(198, 245, 46, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}
.pay-badge svg { flex: none; color: var(--lime); }
.pay-badge b { font-weight: 800; }
.hero__copy .pay-badge { margin-top: 16px; }
@media (max-width: 860px) {
  .cta-bar { flex-wrap: wrap; row-gap: 8px; }
  .cta-bar__note { flex-basis: 100%; text-align: center; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
  .cta-bar__note b { color: var(--lime); font-weight: 800; }
}

/* ---------- Квиз посадочных: подписи полей и колонка «что дальше» ---------- */
.quiz__field { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 700; }
.quiz__field input { width: 100%; font-weight: 500; font-size: 1rem; }
.quiz-aside {
  display: grid;
  gap: 16px;
  align-self: start;
  border-radius: var(--r-lg);
  background: rgba(16, 18, 2, 0.32);
  padding: clamp(22px, 3vw, 32px);
}
.quiz-aside h3 { font-size: 1.1rem; }
.quiz-aside ul { list-style: none; display: grid; gap: 14px; }
.quiz-aside li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.quiz-aside li b { color: #fff; }
.quiz-aside li svg { color: var(--lime); margin-top: 2px; }
.quiz-aside .pay-badge { margin-top: 4px; justify-self: start; }
.quiz-wrap .form-success a { color: var(--lime); }
