@import url('assets/fonts.css');

:root {
  --paper: #FFFFFF;
  --ink: #16181B;
  --muted: #6B7075;
  --line: #E4E6E8;
  --soft: #F4F5F6;
  --anthracite: #22262A;
  --anthracite-2: #2E3338;
  --container: 1360px;
  --pad: 24px;
  --radius: 4px;
  --header-h: 72px;
  --promo-h: 52px;
  --top-h: calc(var(--header-h) + var(--promo-h));
  --transition: 150ms ease;
  --appear: 400ms ease;
  --mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  --lean: 12deg;
  --lean-h: 56px;
  --hatch-dark: repeating-linear-gradient(102deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 14px);
  --hatch-light: repeating-linear-gradient(102deg, rgba(22, 24, 27, .06) 0 2px, transparent 2px 14px);
}

@media (min-width: 1600px) {
  :root {
    --container: 1440px;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.has-mobile-bar {
  padding-bottom: 56px;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 4.4vw, 68px);
  font-weight: 400;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow {
  max-width: 800px;
}

.slash {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
}

.sl {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
}

.section-title .sl {
  margin-right: 0.28em;
}

.section-title--light .sl {
  color: rgba(255, 255, 255, 0.62);
}

.slash-sep {
  font-family: var(--mono);
  color: var(--line);
  font-size: 1.6em;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--paper);
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background-color: var(--anthracite);
  background-image: var(--hatch-dark);
  color: var(--paper);
}

.lean-cut {
  height: var(--lean-h);
  margin-top: -1px;
  pointer-events: none;
}

.lean-cut--into-dark {
  background: var(--anthracite);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.lean-cut--into-soft {
  background: var(--soft);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.lean-cut--into-light {
  background: var(--paper);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.num-nowrap {
  white-space: nowrap;
}

.icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--anthracite);
  color: var(--paper);
  border-color: var(--anthracite);
}

.btn--primary:hover {
  background: var(--paper);
  color: var(--anthracite);
  border-color: var(--anthracite);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--soft);
}

/* Appear on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--appear), transform var(--appear);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Site top */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-top.is-promo-hidden {
  --promo-h: 0px;
}

.promo-bar {
  height: var(--promo-h);
  background-color: var(--anthracite);
  background-image: var(--hatch-dark);
  color: var(--paper);
  overflow: hidden;
  transition: height var(--transition);
}

.promo-bar.is-hidden {
  display: none;
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--promo-h);
  position: relative;
}

.promo-bar__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 0 48px;
}

.promo-bar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.promo-bar__date {
  font-weight: 700;
}

.promo-bar__text--short {
  display: none;
}

.promo-bar__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.promo-bar__close:hover {
  opacity: 1;
}

/* Header */
.header {
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.header__logo img {
  display: block;
}

.header__nav {
  display: flex;
  gap: 20px;
  margin: 0 auto;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--anthracite);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header__phone {
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header__phone--icon {
  display: none;
  color: var(--ink);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.header.is-open .header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  padding: 64px 0 0;
  overflow-x: clip;
}

.hero__age {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero__age .sl {
  margin-right: 0.5em;
}

.hero__h1-light {
  font-weight: 400;
}

.hero__h1-strong {
  font-weight: 700;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 560px;
  margin: 24px 0 0;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__prototype {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 560px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--soft);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.hero__prototype .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--anthracite);
}

.hero__prototype p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.hero__prototype strong {
  font-weight: 700;
}

.hero__trust {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 0;
}

.hero__quiz {
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  overflow: hidden;
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}

.hero__quiz::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hatch-light);
}

.hero__quiz > * {
  position: relative;
}

.hero__quiz-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero__quiz-title {
  font-size: 22px;
  margin: 0 0 20px;
}

.hero__slash-strip {
  width: 100%;
  height: 40px;
  overflow: hidden;
  color: var(--line);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 40px;
  white-space: nowrap;
  margin-top: 48px;
}

.hero__slash-strip::before {
  content: '// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //';
  display: block;
  padding-left: 8px;
  letter-spacing: 0.35em;
}

.hero__quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__quiz-option {
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.hero__quiz-option:hover {
  border-color: var(--anthracite);
  color: var(--anthracite);
}

.hero__quiz-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Facts */
.facts {
  padding: 48px 0;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.facts__item {
  min-width: 0;
}

.facts__num {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  color: var(--paper);
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
}

.facts__label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
}

/* Contract */
.contract {
  padding: 96px 0;
}

.contract__lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}

.contract__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  min-width: 0;
  align-items: start;
}

.contract__col {
  min-width: 0;
}

.contract__col:last-child {
  min-width: 0;
}

.contract__col-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--muted);
}

.contract__col-letter {
  color: var(--anthracite);
  margin-right: 6px;
}

.contract__chain {
  display: flex;
  flex-direction: column;
}

.contract__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
}

.contract__card--gray {
  background: var(--paper);
  color: var(--muted);
}

.contract__gap {
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contract__gap::before {
  display: none;
}

.contract__unified {
  border: 1px solid var(--anthracite);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contract__unified-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.contract__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.contract__service {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}

.contract__service-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contract__service-name {
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 560px) {
  .contract__services { grid-template-columns: 1fr; gap: 10px; }
  .contract__service { padding: 14px 16px; min-height: 0; }
  .contract__service-text { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .contract__service-sub { font-size: 14px; }
}

.contract__service-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.contract__service .icon {
  color: var(--anthracite);
}

.contract__unified-divider {
  height: 1px;
  background: var(--line);
}

.contract__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contract__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.contract__checks .icon {
  color: var(--anthracite);
  width: 16px;
  height: 16px;
}

.contract__unified-total {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.contract__unified-extra {
  font-size: 14px;
  font-weight: 600;
  color: var(--anthracite);
  margin: 0;
}

.contract__docs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.contract__docs-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

.contract__docs-desc {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.55;
}

.contract__document {
  position: relative;
  width: 520px;
  max-width: 100%;
  min-height: 280px;
  padding: 32px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.contract__document-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background:
    linear-gradient(225deg, var(--soft) 0 50%, transparent 50%),
    linear-gradient(315deg, var(--line) 0 1px, transparent 1px);
}

.contract__document-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
}

.contract__document-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contract__document-lines span {
  display: block;
  height: 8px;
  background: var(--soft);
  border-radius: 2px;
}

.contract__document-lines span:nth-child(1) {
  width: 85%;
}

.contract__document-lines span:nth-child(2) {
  width: 100%;
}

.contract__document-lines span:nth-child(3) {
  width: 70%;
}

.contract__document-lines span:nth-child(4) {
  width: 55%;
}

.contract__document-stamp {
  position: absolute;
  right: 32px;
  bottom: 24px;
  width: 88px;
  height: 88px;
  border: 2px solid var(--anthracite);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  opacity: 0.9;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--anthracite);
  text-align: center;
}

/* Prices */
.prices {
  padding: 96px 0;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-left-color var(--transition), border-left-width var(--transition);
}

.price-card:hover {
  transform: translateY(-4px);
  border-left: 3px solid var(--ink);
}

.price-card--featured {
  border-color: var(--anthracite);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--anthracite);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.price-card__head .icon {
  color: var(--anthracite);
}

.price-card__name {
  font-size: 20px;
}

.price-card__sum {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  margin-bottom: 4px;
  white-space: nowrap;
}

.price-card__term {
  color: var(--anthracite);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.price-card__desc {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 16px;
}

.price-card__gift {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 16px;
  padding: 20px 24px;
  background: var(--soft);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.price-card__gift .icon {
  width: 20px;
  height: 20px;
  color: var(--anthracite);
  margin-top: 2px;
}

.price-card__gift-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--anthracite);
  border-radius: 6px;
}

.price-card__gift-text {
  flex: 1 1 100%;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.price-card__btn {
  width: 100%;
  margin-top: auto;
}

.prices__included {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

.prices__included-label {
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.prices__included-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
}

.prices__included-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.prices__included-list .icon {
  color: var(--anthracite);
}

.prices__gifts {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prices__gift {
  margin-bottom: 0;
  padding: 20px 24px;
  background: var(--soft);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.prices__gift-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.prices__gift-head .icon {
  width: 20px;
  height: 20px;
  color: var(--anthracite);
}

.prices__gift-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--anthracite);
  border-radius: 6px;
}

.prices__gift-text {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

/* Quiz */
.quiz {
  padding: 96px 0;
}

.quiz__lead {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

.quiz__box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

.quiz__progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz__progress-bar {
  height: 100%;
  background: var(--anthracite);
  width: 16.66%;
  transition: width var(--appear);
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
}

.quiz__question {
  font-size: 22px;
  margin-bottom: 24px;
}

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

.quiz__option {
  min-height: 44px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.quiz__option:hover {
  border-color: var(--anthracite);
}

.quiz__option.is-selected {
  border-color: var(--anthracite);
  background: rgba(34, 38, 42, 0.08);
}

.quiz__form {
  display: grid;
  gap: 16px;
  max-width: 400px;
}

.quiz__field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

.quiz__field input[type="text"],
.quiz__field input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quiz__field input:focus {
  outline: 2px solid var(--anthracite);
  outline-offset: 1px;
}

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

.quiz__radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
}

.quiz__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.quiz__consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.quiz__nav {
  margin-top: 24px;
}

.quiz__back {
  min-width: 120px;
}

.quiz__result-title {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 12px;
}

.quiz__result-title span {
  color: var(--anthracite);
  font-weight: 700;
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.quiz__result-note {
  color: var(--muted);
  margin-bottom: 16px;
}

.quiz__result-promo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--soft);
}

.quiz__result-promo-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--anthracite);
}

.quiz__result-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz__result-case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--soft);
}

.quiz__result-case h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.quiz__result-case p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.quiz__result-referral {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Cases */
.cases {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 96px 40px;
  overflow-x: clip;
}

.cases__inner {
  width: 100%;
  max-width: none;
}

.cases__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.cases__head-text {
  min-width: 0;
  flex: 1 1 320px;
}

.cases__title {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.cases__subtitle {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
}

.cases__filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 420px;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cases__filters::-webkit-scrollbar {
  display: none;
}

.cases__filter {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cases__filter:hover {
  border-color: var(--ink);
}

.cases__filter.is-active {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: var(--paper);
}

.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.case-tile {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -28px rgba(22, 24, 27, .35);
  overflow: hidden;
  transition: transform var(--transition), border-left-color var(--transition), border-left-width var(--transition);
}

.case-tile:hover {
  transform: translateY(-4px);
  border-left: 3px solid var(--ink);
}

.case-tile.is-hidden {
  display: none;
}

.case-tile__browser {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.case-tile__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.case-tile__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  font-style: normal;
}

.case-tile__domain {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 4px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-tile__shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}

.case-tile__caption {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.case-tile__result {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 16px 20px 20px;
}

.case-tile__stat {
  min-width: 0;
}

.case-tile__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.case-tile__stat-value {
  display: block;
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.case-tile__stat-metric {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.case-tile__growth {
  background: var(--anthracite);
  color: var(--paper);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 120px;
}

.case-tile__growth-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.case-tile__growth-label {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.cases__footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.cases__footer-btn {
  min-width: 220px;
}

.cases__footnote {
  margin: 32px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1025px) {
  .cases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-tile:nth-child(even) {
    margin-top: 88px;
  }
}

@media (max-width: 1024px) {
  .case-tile:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .cases__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cases__head-text { flex: 0 0 auto; }

  .cases__filters {
    width: 100%;
    justify-content: flex-start;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .cases {
    padding-left: 20px;
    padding-right: 20px;
  }

  .case-tile__result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .case-tile__result > .slash-sep {
    display: none;
  }

  .case-tile__stat-value {
    font-size: 26px;
  }

  .case-tile__growth {
    width: 100%;
    min-width: 0;
  }

  .case-tile__shot {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .cases__footer {
    flex-direction: column;
  }

  .cases__footer-btn {
    width: 100%;
  }
}


/* Case modal */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.case-modal[hidden] {
  display: none;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.6);
}

.case-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  background: var(--paper);
  overflow-y: auto;
  max-height: 100vh;
}

.case-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  margin: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.case-modal__body {
  padding: 0 var(--pad) 48px;
  clear: both;
}

.case-modal__section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.case-modal__section:last-child {
  border-bottom: none;
}

.case-modal__section h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.case-modal__about {
  color: var(--muted);
  max-width: 640px;
}

.case-modal__pains li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--muted);
}

.case-modal__pains li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink);
}

.case-modal__old-shot {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.case-modal__solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-modal__solution {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-modal__solution-shot {
  height: 120px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.case-modal__solution p {
  padding: 12px 14px;
  font-size: 14px;
  margin: 0;
}

.case-modal__metric {
  margin-bottom: 16px;
}

.case-modal__metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.case-modal__metric-bar {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.case-modal__metric-fill {
  height: 100%;
  background: var(--anthracite);
  border-radius: 2px;
}

.case-modal__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.case-modal__quote {
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--anthracite);
}

.case-modal__quote p {
  font-style: italic;
  margin-bottom: 12px;
}

.case-modal__quote footer {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

/* Subscriptions */
.subscriptions {
  padding: 96px 0;
}

.subscriptions__lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}

.subscriptions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.sub-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-left-color var(--transition), border-left-width var(--transition);
}

.sub-card:hover {
  transform: translateY(-4px);
  border-left: 3px solid var(--ink);
}

.sub-card--featured {
  border-color: var(--anthracite);
}

.sub-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--anthracite);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.sub-card__name {
  font-size: 20px;
  margin-bottom: 8px;
}

.sub-card__price {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  margin-bottom: 12px;
  white-space: nowrap;
}

.sub-card__desc {
  font-size: 15px;
  color: var(--muted);
}

.subscriptions__compare,
.subscriptions__installment {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.subscriptions__compare {
  border-color: var(--anthracite);
}

.subscriptions__installment {
  background: var(--paper);
  font-weight: 400;
  color: var(--muted);
}

/* Process */
.process {
  padding: 96px 0;
  overflow-x: clip;
}

.process__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 32px;
  position: relative;
}

.process__track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}

.process__step {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
}

.process__num {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--anthracite);
  line-height: 1;
  margin-bottom: 12px;
}

.process__step h3 {
  font-size: 15px;
  margin-bottom: auto;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.process__step p {
  font-size: 14px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
}

/* Guarantees */
.guarantees {
  position: relative;
  color: var(--paper);
  padding: 96px 0;
}

.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 32px 0 24px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
}

.guarantees__card {
  padding: 24px;
  background: var(--anthracite-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.guarantees__card .icon {
  color: var(--paper);
  width: 16px;
  height: 16px;
}

.guarantees__card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guarantees__card-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.45;
}

.guarantees__excluded {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.guarantees__excluded-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--paper);
}

.guarantees__excluded p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.5;
}

/* Team */
.team {
  padding: 96px 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 24px;
}

.team__member {
  margin: 0;
  text-align: center;
}

.team__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

.team__member figcaption {
  font-size: 14px;
  color: var(--muted);
}

.team__note {
  color: var(--muted);
  margin-bottom: 8px;
}

.team__tagline {
  font-size: 13px;
  color: var(--muted);
}

/* Partners band */
.partners-band {
  overflow-x: clip;
}

.partners-band__strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--anthracite);
  background-image: var(--hatch-dark);
  color: var(--paper);
  padding: 40px;
}

.partners-band__wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.partners-band__heading {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.partners-band__row {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 8px;
}

.partners-band__badge {
  flex: 1 1 calc(16.666% - 32px);
  min-width: 120px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
}

.partners-band__sep {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.partners-band__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .partners-band__badge {
    flex: 1 1 calc(33.333% - 24px);
  }
}

@media (max-width: 390px) {
  .partners-band__strip {
    padding: 24px 20px;
  }

  .partners-band__badge {
    flex: 1 1 calc(50% - 24px);
    min-width: 0;
  }
}

/* FAQ */
.faq {
  padding: 96px 0;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  min-height: 44px;
  padding: 24px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  background: var(--paper);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq__question:hover {
  background: var(--soft);
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--anthracite);
  flex-shrink: 0;
}

.faq__item.is-open .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 24px 24px;
}

.faq__answer p {
  color: var(--muted);
  font-size: 15px;
}

/* CTA bar */
.cta-bar {
  background: var(--soft);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-bar__text {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* Referral bar */
.referral-bar {
  position: relative;
  background-color: var(--anthracite);
  background-image: var(--hatch-dark);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.referral-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px var(--pad);
  flex-wrap: wrap;
}

.referral-bar__content {
  flex: 1;
  min-width: 280px;
}

.referral-bar__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--paper);
}

.referral-bar__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  max-width: 560px;
}

.referral-bar__btn {
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: var(--anthracite);
  background-image: var(--hatch-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer__logo img {
  filter: invert(1);
}

.footer__col h3 {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__col ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

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

.footer__social {
  margin-top: 12px;
  font-size: 14px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 56px;
  gap: 8px;
  padding: 8px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.mobile-bar .btn {
  flex: 1;
  font-size: 14px;
  padding: 8px 12px;
}

/* Scroll margin */
.contract,
.prices,
.quiz,
.cases,
.subscriptions,
.process,
.team,
.faq {
  scroll-margin-top: var(--top-h);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__quiz {
    order: 3;
  }

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

  .contract__compare {
    grid-template-columns: 1fr;
  }

  .contract__docs {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contract__document {
    width: 100%;
  }

  .prices__grid,
  .subscriptions__grid {
    grid-template-columns: 1fr;
  }

  .case-modal__solutions {
    grid-template-columns: 1fr;
  }

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

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

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

  .process__track::before {
    display: none;
  }

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

@media (max-width: 620px) {
  .process__track {
    display: flex;
    grid-template-columns: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .process__track::before {
    display: none;
  }

  .process__step {
    flex: 0 0 min(72vw, 200px);
    min-width: min(72vw, 200px);
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  :root {
    --pad: 16px;
    --lean-h: 28px;
  }

  .btn {
    min-height: 52px;
  }

  .promo-bar__text--full {
    display: none;
  }

  .promo-bar__text--short {
    display: inline;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad);
    gap: 0;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__phone--text {
    display: none;
  }

  .header__phone--icon {
    display: inline-flex;
  }

  .header__burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .header__inner {
    position: relative;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero__quiz-options {
    grid-template-columns: 1fr;
  }

  .contract,
  .prices,
  .quiz,
  .team,
  .faq {
    padding: 56px 0;
  }

  .cases {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .facts {
    padding: 40px 0;
  }

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

  .facts__num {
    font-size: 30px;
  }

  .quiz__result-cases {
    grid-template-columns: 1fr;
  }

  .partners-band__strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .quiz__box {
    padding: 24px 16px;
  }

  .guarantees__grid {
    grid-template-columns: 1fr;
  }

  .guarantees__card-title {
    white-space: normal;
  }

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

  .referral-bar__btn {
    width: 100%;
  }

  .contract__docs {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contract__document {
    width: 100%;
  }

  .mobile-bar:not([hidden]) {
    display: flex;
  }

  .case-modal__panel {
    max-height: 100%;
    height: 100%;
  }
}

/* ==== 12.08.2026 — приёмы с разбора победителей Рейтинга Рунета ==== */

/* 1. Первый экран в контейнере со скруглением и отступом от краёв (приём Skadium) */
.hero {
  margin: 10px 10px 0;
  border-radius: 28px;
  background: var(--soft);
  overflow: hidden;
  padding: 56px 0 0;
}
.hero__slash-strip { color: #DCDEE0; }

/* 2. Цифры — сетка на волосяных линиях (приём oxem): огромное число, мелкая подпись, стрелка в углу */
.facts__grid {
  gap: 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.facts__item {
  position: relative;
  padding: 30px 24px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.facts__item:last-child { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.facts__num {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.facts__label {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.facts__item::after {
  content: '';
  position: absolute;
  top: 26px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.34);
  border-right: 1.5px solid rgba(255, 255, 255, 0.34);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .hero { margin: 8px 8px 0; border-radius: 20px; padding-top: 40px; }
  .facts__item { padding: 22px 16px 18px; }
  .facts__item:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
  .facts__item:last-child { border-right: 1px solid rgba(255, 255, 255, 0.14); }
  .facts__item::after { top: 18px; right: 14px; width: 9px; height: 9px; }
  .facts__label { font-size: 11px; }
}

/* правки после визуальной проверки: ячейки цифр не должны налезать друг на друга */
.facts__item { min-width: 0; }
.facts__num {
  font-size: clamp(32px, 4.2vw, 56px);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.facts__label { overflow-wrap: anywhere; }
.facts__grid { border-top-color: rgba(255, 255, 255, 0.22); }
.facts__item { border-left-color: rgba(255, 255, 255, 0.22); border-bottom-color: rgba(255, 255, 255, 0.22); }
.facts__item:last-child { border-right-color: rgba(255, 255, 255, 0.22); }
.facts__item::after {
  width: 14px; height: 14px;
  border-top-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) {
  .facts__item:nth-child(2n) { border-right-color: rgba(255, 255, 255, 0.22); }
}
/* плейсхолдеры вида {{проектов}} — длинный неразрывный токен, режем принудительно */
.facts__item { overflow: hidden; }
.facts__num { max-width: 100%; word-break: break-all; font-size: clamp(30px, 3.4vw, 48px); }
.facts__num { white-space: normal; line-height: 1.02; }
/* приёмка: стрелки не должны подрезаться на мобильном, линии чуть ярче */
.facts__grid { border-top-color: rgba(255, 255, 255, 0.3); }
.facts__item { border-left-color: rgba(255, 255, 255, 0.3); border-bottom-color: rgba(255, 255, 255, 0.3); }
.facts__item:last-child { border-right-color: rgba(255, 255, 255, 0.3); }
.facts__item::after { border-top-color: rgba(255, 255, 255, 0.6); border-right-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) {
  .facts__item { padding-top: 30px; }
  .facts__item::after { top: 14px; right: 14px; }
  .facts__item:nth-child(2n) { border-right-color: rgba(255, 255, 255, 0.3); }
}

/* 3. Тариф-рекомендация выделяется ТРЕМЯ способами сразу (как у aAccent / Skadium / Studio-Expert):
      залитая шапка + бейдж + большая высота карточки */
.price-card--featured {
  border-color: var(--anthracite);
  border-width: 1px;
  box-shadow: 0 24px 60px -34px rgba(22, 24, 27, 0.55);
  transform: translateY(-14px);
  padding-bottom: 38px;
}
.price-card--featured .price-card__head {
  margin: -24px -24px 16px;
  padding: 22px 24px 16px;
  background: var(--anthracite);
  border-radius: var(--radius) var(--radius) 0 0;
}
.price-card--featured .price-card__name { color: var(--paper); }
.price-card--featured .price-card__head .icon { stroke: var(--paper); color: var(--paper); }
.price-card--featured .price-card__badge {
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(22, 24, 27, 0.6);
}
@media (max-width: 900px) {
  .price-card--featured { transform: none; padding-bottom: 24px; }
}

/* 4. Акция живёт В КАРТОЧКЕ услуги, а не общим баннером — этого нет ни у одного конкурента */
.price-card__promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px dashed var(--anthracite);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  background: #FAFAFB;
}
.price-card__promo b { font-weight: 700; white-space: nowrap; }
.price-card--featured .price-card__promo { border-style: solid; }

/* 5. Карточки работ: теги контуром, стрелка в кружке, последняя ячейка — сплошная плитка «Все работы» (oxem) */
.case-tile { box-shadow: none; }
.case-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}
.case-tile__tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.case-tile__caption { position: relative; padding-right: 54px; }
.case-tile__caption::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%) center/11px 11px no-repeat;
}
.cases__all {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 26px;
  border-radius: 16px;
  background: var(--anthracite);
  color: var(--paper);
  text-decoration: none;
}
.cases__all-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; }
.cases__all-note { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 10px; }
.cases__all-arrow {
  align-self: flex-end;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) center/15px 15px no-repeat;
}

/* приёмка блоков: правки по найденным дефектам */
/* дыра в сетке работ — плитка на всю ширину ряда, горизонтальная */
.cases__all {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 26px 30px;
}
.cases__all-note { margin-top: 6px; }
.cases__all-arrow { align-self: center; flex: 0 0 44px; }

/* теги: контраст выше, не липнут к краю */
.case-tile__tag { color: var(--ink); border-color: #C9CDD1; }
.case-tile__tags { padding: 0 18px 20px; }

/* стрелка у подписи — по первой строке, а не по центру двухстрочного заголовка */
.case-tile__caption::after { top: 16px; margin-top: 0; }

/* плашки акций одинаковые во всех карточках */
.price-card__promo { border-style: solid; border-color: #C9CDD1; }
.price-card--featured .price-card__promo { border-color: var(--anthracite); }

/* кнопки тарифов — по одной линии внизу */
.price-card__btn { margin-top: auto; }
/* финальные правки приёмки тарифов */
.price-card--featured { padding-bottom: 24px; }
.price-card__promo, .price-card--featured .price-card__promo { border-color: #C9CDD1; }
.price-card__badge { background: var(--paper); color: var(--anthracite); border: 1px solid var(--anthracite); }

/* ==== 13.08 — акцент КИРПИЧ + схема вместо квиза в первом экране ==== */
:root { --accent: #A63A2B; --accent-soft: rgba(166, 58, 43, 0.12); }

/* акцент только на кликабельном */
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
.header__cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-card__badge { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-card--featured { border-color: var(--accent); }
.price-card--featured .price-card__head { background: var(--accent); }
.cases__all { background: var(--accent); }
.hero__quiz-option:hover, .quiz__option:hover { border-color: var(--accent); color: var(--accent); }
.sl, .slash, .slash-sep { color: var(--accent); }
.case-tile__caption::after {
  border-color: var(--accent);
  background: linear-gradient(45deg, transparent 46%, var(--accent) 46%, var(--accent) 54%, transparent 54%) center/11px 11px no-repeat;
}

/* схема-каркас справа в первом экране (приём ray024 / Chipsa) */
.hero__scheme { align-self: start; }
.hero__scheme-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero__scheme-svg { width: 100%; height: auto; display: block; }
.hero__scheme-cap {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hs-frame { fill: #fff; stroke: #DDE0E3; stroke-width: 1; }
.hs-line { stroke: #E4E6E8; stroke-width: 1; }
.hs-line-a { stroke: var(--accent); stroke-width: 1.5; opacity: 0.6; }
.hs-line-r { fill: none; stroke: #DDE0E3; stroke-width: 1; }
.hs-dot { fill: #C9CDD1; }
.hs-fill-soft { fill: #EDEFF1; }
.hs-fill-strong { fill: #22262A; }
.hs-accent-fill { fill: var(--accent); }
.hs-accent-stroke { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.hs-num { font-family: var(--mono); font-size: 15px; fill: #B9BEC3; letter-spacing: 0.06em; }
.hs-arrow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .hero__scheme { margin-top: 28px; }
  .hero__scheme-svg { max-width: 420px; }
}
/* приёмка: кирпич только на кликабельном — в схеме убираем декоративные акценты */
.hs-arrow { stroke: #C9CDD1; }
.hs-accent-stroke { fill: #F4F5F6; stroke: #DDE0E3; }
/* стык схемы с тёмным блоком и узкие ячейки цифр на телефоне */
@media (max-width: 900px) { .hero { padding-bottom: 18px; } }
@media (max-width: 480px) { .facts__num { font-size: 22px; } }

/* ==== анимация схемы первого экрана: каркас «строится» ==== */
.hero__scheme-svg .hs-frame {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: hs-draw 1.5s ease-out .15s forwards;
}
.hero__scheme-svg .hs-line,
.hero__scheme-svg .hs-line-a {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: hs-draw .7s ease-out forwards;
}
.hero__scheme-svg .hs-line:nth-of-type(1) { animation-delay: .9s; }
.hero__scheme-svg .hs-line { animation-delay: 1.1s; }
.hero__scheme-svg .hs-line-a { animation-delay: 2.4s; }
.hero__scheme-svg .hs-fill-soft,
.hero__scheme-svg .hs-fill-strong,
.hero__scheme-svg .hs-accent-fill,
.hero__scheme-svg .hs-line-r,
.hero__scheme-svg .hs-accent-stroke,
.hero__scheme-svg .hs-dot,
.hero__scheme-svg .hs-num {
  opacity: 0;
  animation: hs-pop .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero__scheme-svg .hs-dot { animation-delay: .55s; }
.hero__scheme-svg .hs-fill-soft:nth-of-type(1) { animation-delay: .65s; }
.hero__scheme-svg .hs-line-r { animation-delay: .8s; }
.hero__scheme-svg .hs-fill-strong { animation-delay: 1.15s; }
.hero__scheme-svg .hs-fill-soft { animation-delay: 1.3s; }
.hero__scheme-svg .hs-accent-fill { animation-delay: 1.5s; }
.hero__scheme-svg .hs-num { animation-delay: 1.9s; }
.hero__scheme-svg .hs-accent-stroke { animation-delay: 2.15s; }
.hero__scheme-svg .hs-arrow {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: hs-draw .6s ease-out 2.6s forwards, hs-nudge 2.6s ease-in-out 3.4s infinite;
}
@keyframes hs-draw { to { stroke-dashoffset: 0; } }
@keyframes hs-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hs-nudge {
  0%, 70%, 100% { transform: translateX(0); }
  80%           { transform: translateX(7px); }
}
.hero__scheme-svg rect, .hero__scheme-svg text, .hero__scheme-svg circle, .hero__scheme-svg path {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero__scheme-svg * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}
/* кнопки первого экрана одной ширины (на мобильном разъезжались) */
.hero__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.hero__buttons .btn { width: 100%; text-align: center; justify-content: center; }
@media (max-width: 520px) { .hero__buttons { grid-template-columns: 1fr; max-width: 100%; } }

/* ==== третий экран: слева список на волосяных линиях, справа тёмный монолит ==== */
/* 1. пятеро подрядчиков — строками, не карточками (приём oxem) */
.contract__chain { display: block; border-top: 1px solid var(--line); }
.contract__card--gray {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 4px 18px 0;
  text-align: left;
  color: var(--muted);
  font-size: 16px;
  box-shadow: none;
}
.contract__gap { display: none; }

/* 2. «у нас» — цельная тёмная плашка */
.contract__unified {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: var(--paper);
}
.contract__unified-title { color: var(--paper); }
.contract__service { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.contract__service-name { color: var(--paper); }
.contract__service-sub { color: rgba(255, 255, 255, 0.6); }
.contract__unified .icon { stroke: var(--paper); color: var(--paper); }
.contract__unified li, .contract__unified p, .contract__unified span { color: rgba(255, 255, 255, 0.85); }
.contract__unified strong, .contract__unified b { color: var(--paper); }
.contract__unified hr { border-color: rgba(255, 255, 255, 0.16); }
/* полировка третьего экрана по приёмке */
.contract__unified .contract__service-sub { color: rgba(255, 255, 255, 0.72); }
.contract__unified p:last-of-type, .contract__unified small { color: rgba(255, 255, 255, 0.78); }
.contract__service { align-items: center; }
.contract__unified hr, .contract__unified .divider { border-color: rgba(255, 255, 255, 0.14); }
.contract__col { align-self: stretch; }
.contract__chain { margin-top: 0; }
.contract__col-title { margin-bottom: 18px; }
/* третий экран: только «как устроено у нас», на всю ширину; заголовки крупнее */
.contract__compare { grid-template-columns: 1fr; gap: 0; }
.contract__unified { padding: 34px 34px 30px; }
.contract__unified-title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 24px; }
.contract__services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contract__service-name { font-size: 17px; }
.contract__bonus {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 15px;
  color: var(--paper);
}
@media (max-width: 900px) {
  .contract__services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract__unified { padding: 24px 20px; }
}
@media (max-width: 560px) { .contract__services { grid-template-columns: 1fr; } }
/* заголовки секций крупнее (просьба Дмитрия) */
.section-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.01em; }
/* бонус — акцентная плашка во всю ширину (приём aAccent: заливка акцентом, а не обводка) */
.contract__bonus {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 26px 0 0;
  padding: 20px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -26px rgba(166, 58, 43, 0.9);
}
.contract__bonus::before {
  content: '+';
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 560px) { .contract__bonus { padding: 16px 18px; font-size: 16px; } }

/* Второй экран — вариант Б: светлая сетка на волосяных линиях (Vide Infra / Wemakefab) */
.facts { background: var(--paper); padding: 64px 0; }
.facts__grid { border-top-color: #E4E6E8; }
.facts__item { border-left-color: #E4E6E8; border-bottom-color: #E4E6E8; padding: 34px 26px 30px; }
.facts__item:last-child { border-right-color: #E4E6E8; }
.facts__num { color: var(--anthracite); font-size: clamp(34px, 4.6vw, 64px); }
.facts__label { color: #6B7075; }
.facts__item::after { border-top-color: #C9CDD1; border-right-color: #C9CDD1; }

@media (max-width: 900px) {
  .facts { padding: 44px 0; }
  .facts__item { padding: 26px 20px 24px; }
}

/* Заголовок и фильтры кейсов — по общей сетке; сама галерея остаётся во всю ширину */
.cases__head {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad);
}

/* Ховер на ячейке цифр: подсветка, цифра подрастает, стрелка уезжает вправо */
.facts__item {
  transition: background-color .28s ease, box-shadow .28s ease;
  cursor: default;
}
.facts__num, .facts__label {
  transition: color .28s ease, transform .32s cubic-bezier(.2,.7,.3,1);
  transform-origin: left center;
}
.facts__item::after { transition: transform .32s cubic-bezier(.2,.7,.3,1), border-color .28s ease; }
@media (hover: hover) {
  .facts__item:hover { background: var(--accent-soft); }
  .facts__item:hover .facts__num { color: var(--accent); transform: translateY(-3px); }
  .facts__item:hover .facts__label { color: var(--anthracite); }
  .facts__item:hover::after { transform: rotate(45deg) translate(4px, -4px); border-color: var(--accent); }
}

/* Цены — вариант А: равные карточки на волосяных линиях, метка-адресат вместо «чаще берут» */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #E4E6E8;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 34px;
  border: 0;
  border-left: 1px solid #E4E6E8;
  border-bottom: 1px solid #E4E6E8;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  transform: none;
  transition: background-color .28s ease;
}
.price-card:last-child { border-right: 1px solid #E4E6E8; }
.price-card:hover { background: rgba(166, 58, 43, .045); }
.price-card__task {
  display: block;
  min-height: 34px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card__head { margin: 6px 0 12px; }
.price-card__name { font-size: 22px; }
.price-card__sum { font-size: clamp(28px, 2.6vw, 36px); margin: 0; }
.price-card__term { margin: 6px 0 16px; }
.price-card__desc { flex: 1; margin: 0 0 18px; }
.price-card__promo { align-self: flex-start; margin: 0 0 20px; }
.price-card__btn { margin-top: 0; }

@media (max-width: 900px) {
  .prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card:last-child { border-right: 0; }
}
@media (max-width: 620px) {
  .prices__grid { grid-template-columns: 1fr; }
  .price-card { padding: 26px 22px 28px; }
  .price-card__task { min-height: 0; margin-bottom: 4px; }
}

/* Кегли: базовый текст был 17, заголовки секций 52 — по просьбе поднято на ступень */
body { font-size: 19px; }
.section-title { font-size: clamp(34px, 4.4vw, 60px); }
.cases__title { font-size: clamp(34px, 4.4vw, 60px); }
.contract__lead, .quiz__lead, .cases__subtitle, .prices__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.price-card__name { font-size: 24px; }
.price-card__sum { font-size: clamp(30px, 2.8vw, 40px); }
.price-card__desc { font-size: 17px; line-height: 1.5; }
.price-card__task { font-size: 14px; }
.price-card__term { font-size: 15px; }
.price-card__btn { font-size: 16px; padding: 16px; }
.quiz__question { font-size: clamp(24px, 2.2vw, 30px); }
.quiz__option { font-size: 17px; padding: 15px 24px; }
.contract__service-name { font-size: 19px; }
.contract__service-text { font-size: 17px; }
.case-tile__caption { font-size: 19px; }
.facts__label { font-size: 15px; }
.prices__included-label, .prices__included li { font-size: 17px; }

/* Квиз в виде переписки (приём Studio-Expert) + компактная карточка руководителя под ним */
.quiz__box { background: var(--paper); padding: 0; overflow: hidden; }
.quiz__steps { display: flex; flex-direction: column; gap: 16px; padding: 28px 30px 26px; }
.quiz__step { display: none; }
.quiz__step.is-active,
.quiz__step.is-done { display: flex; flex-direction: column; gap: 12px; }

.quiz__question {
  align-self: flex-start;
  max-width: 78%;
  margin: 0;
  padding: 15px 20px;
  background: #F1F2F4;
  color: var(--anthracite);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  font-weight: 500;
  line-height: 1.4;
}
.quiz__options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__option { border-radius: 999px; }

/* пройденный шаг: вопрос остаётся, невыбранные варианты уходят, выбранный становится ответом */
.quiz__step.is-done .quiz__options { justify-content: flex-end; }
.quiz__step.is-done .quiz__option { display: none; }
.quiz__step.is-done .quiz__option.is-selected {
  display: inline-flex;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  cursor: default;
}
.quiz__step.is-done .quiz__question { opacity: .82; }

.qmgr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 0;
  padding: 18px 22px;
  border: 1px solid #E4E6E8;
  border-radius: 16px;
  background: var(--paper);
}
.qmgr__photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.qmgr__body { flex: 1; min-width: 0; }
.qmgr__name { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--anthracite); }
.qmgr__role { font-size: 15px; font-weight: 400; color: #6B7075; margin-left: 8px; }
.qmgr__text { margin: 0; font-size: 17px; color: #41464B; line-height: 1.45; }
.qmgr__links { display: flex; gap: 10px; flex: 0 0 auto; }
.qmgr__link {
  padding: 12px 20px;
  border: 1px solid var(--anthracite);
  border-radius: 10px;
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.qmgr__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .qmgr { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .qmgr__links { width: 100%; }
  .qmgr__link { flex: 1; text-align: center; }
}
@media (max-width: 560px) {
  .quiz__steps { padding: 22px 18px 20px; gap: 14px; }
  .quiz__question { max-width: 92%; }
  .qmgr__photo { flex-basis: 72px; width: 72px; height: 72px; }
}

/* В переписке пузыри одного веса: разрыв 30/17 читался как разные интерфейсы */
.quiz__question { font-size: clamp(19px, 1.6vw, 22px); }
.quiz__option { font-size: 19px; padding: 14px 22px; }

/* «Назад» в чат-режиме: бокс потерял паддинг, кнопка липла к краю */
.quiz__nav { margin-top: 0; padding: 0 30px 24px; }
.quiz__back {
  min-width: 0;
  padding: 10px 18px 10px 14px;
  border-color: #E4E6E8;
  color: #6B7075;
  font-size: 16px;
  border-radius: 999px;
}
.quiz__back::before { content: '←'; margin-right: 8px; }
.quiz__back:hover { border-color: var(--anthracite); color: var(--anthracite); background: transparent; }
@media (max-width: 560px) { .quiz__nav { padding: 0 18px 18px; } }

/* Ховер на вариантах ответа квиза */
.quiz__option { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
@media (hover: hover) {
  .quiz__option:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
}

/* Портфолио — приём e-b agency: работа = кадр, теги и подпись поверх фото */
.cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.case-tile {
  position: relative;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #101215;
  aspect-ratio: 16 / 10;
  box-shadow: none;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.case-tile__browser { display: none; }
.case-tile__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .82;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .35s ease;
}
.case-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,21,.42) 0%, rgba(16,18,21,0) 34%, rgba(16,18,21,.12) 55%, rgba(16,18,21,.82) 100%);
  pointer-events: none;
}
.case-tile__tags {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 3;
  padding: 0;
  gap: 8px;
}
.case-tile__tag {
  padding: 7px 15px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(16,18,21,.28);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: lowercase;
}
.case-tile__caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 84px;
  z-index: 3;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  line-height: 1.28;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.case-tile__caption::after { display: none; }
.case-tile__result {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.case-tile__stat, .case-tile__growth { display: flex; flex-direction: column; gap: 2px; }
.case-tile__stat-label, .case-tile__growth-label { font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.case-tile__stat-value { font-size: 19px; font-weight: 700; color: #fff; }
.case-tile__stat-metric { display: none; }
.case-tile__growth { margin-left: auto; text-align: right; align-items: flex-end; }
.case-tile__growth-value {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.case-tile .slash-sep { color: rgba(255,255,255,.4); }

@media (hover: hover) {
  .case-tile:hover { transform: translateY(-4px); }
  .case-tile:hover .case-tile__shot { transform: scale(1.045); opacity: .68; }
}

/* плитка «Все работы» остаётся сплошной кирпичной */
.cases__all { aspect-ratio: auto; background: var(--accent); }
.cases__all::after { display: none; }

@media (max-width: 860px) {
  .cases__grid { grid-template-columns: 1fr; gap: 20px; }
  .case-tile__caption { bottom: 78px; }
}

/* Низ карточки — потоком, а не двумя абсолютами: подпись налезала на цифры */
.case-tile { display: flex; flex-direction: column; justify-content: flex-end; }
.case-tile__shot { position: absolute; inset: 0; z-index: 0; }
.case-tile__caption { position: static; z-index: 3; margin: 0 22px 10px; left: auto; right: auto; bottom: auto; }
.case-tile__result { position: static; z-index: 3; margin: 0 22px 20px; left: auto; right: auto; bottom: auto; }
.case-tile { aspect-ratio: 16 / 10; min-height: 300px; }
@media (max-width: 860px) {
  .case-tile { aspect-ratio: auto; min-height: 290px; }
  .case-tile__caption { margin: 0 18px 8px; }
  .case-tile__result { margin: 0 18px 18px; flex-wrap: wrap; gap: 10px; }
}

/* ПОРТФОЛИО по ТЗ 13.08: шахматка картинка/текст, полоса масштабов, финальный CTA */
.works-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: var(--container);
  margin: 0 auto 56px;
  padding: 0 var(--pad);
  border-top: 1px solid #E4E6E8;
  border-bottom: 1px solid #E4E6E8;
}
.works-scale__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px 24px;
  border-left: 1px solid #E4E6E8;
  min-width: 0;
}
.works-scale__item:first-child { border-left: 0; }
.works-scale__item .icon { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.5; fill: none; margin-bottom: 6px; }
.works-scale__num { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; color: var(--anthracite); letter-spacing: -.02em; line-height: 1.05; }
.works-scale__label { font-size: 15px; color: #6B7075; line-height: 1.4; }

.works {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid #E4E6E8;
  border-radius: 20px;
  overflow: hidden;
}
.work.is-right .work__shot { order: 2; }
.work.is-right .work__body { order: 1; }
.work__shot { position: relative; min-width: 0; background: #101215; }
.work__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 16 / 10; }
.work__kind {
  position: absolute; top: 16px; left: 18px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .93); color: var(--anthracite);
  font-size: 13px; letter-spacing: .01em;
}
.work__body { display: flex; flex-direction: column; padding: 32px 34px; min-width: 0; }
.work__title { margin: 0 0 6px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; color: var(--anthracite); }
.work__domain { margin: 0 0 18px; font-size: 15px; color: #9AA0A6; }
.work__task { margin: 0 0 auto; font-size: 17px; line-height: 1.55; color: #41464B; }
.work__task-label { color: var(--anthracite); font-weight: 600; }
.work__results { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.work__res {
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 16px; font-weight: 700; white-space: nowrap;
}

.works-cta {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 46px var(--pad);
  border-radius: 20px;
  background: var(--anthracite);
  text-align: center;
}
.works-cta__title { margin: 0 0 12px; font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--paper); text-transform: uppercase; letter-spacing: -.01em; }
.works-cta__text { margin: 0 auto 26px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .72); line-height: 1.5; }
.works-cta__btn { display: inline-flex; padding: 17px 38px; font-size: 17px; }

@media (max-width: 900px) {
  .works-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-scale__item:nth-child(odd) { border-left: 0; }
  .works-scale__item:nth-child(n+3) { border-top: 1px solid #E4E6E8; }
  .work, .work.is-right { grid-template-columns: 1fr; }
  .work.is-right .work__shot, .work.is-right .work__body { order: initial; }
  .work__body { padding: 24px 22px 26px; }
  .works-cta { margin-top: 40px; padding: 34px 22px; }
}

/* Масштабы: иконка слева в квадрате, цифра и подпись справа (по образцу Дмитрия 13.08) */
.works-scale {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  margin-bottom: 34px;
}
.works-scale__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #E4E6E8;
  border-radius: 16px;
  background: var(--paper);
}
.works-scale__item .icon {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  padding: 11px;
  margin: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.6;
  box-sizing: border-box;
}
.works-scale__num { align-self: end; font-size: clamp(22px, 2vw, 28px); }
.works-scale__label { align-self: start; font-size: 14px; line-height: 1.3; }

/* Фильтры под масштабами */
.cases__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--container);
  margin: 0 auto 26px;
  padding: 0 var(--pad);
}
.cases__filter {
  padding: 11px 20px;
  border: 1px solid #E4E6E8;
  border-radius: 999px;
  background: var(--paper);
  color: #41464B;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cases__filter:hover { border-color: var(--anthracite); color: var(--anthracite); }
.cases__filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 900px) {
  .works-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .works-scale__item { border-top: 1px solid #E4E6E8; padding: 15px 16px; }
}
@media (max-width: 560px) {
  .works-scale { grid-template-columns: 1fr; }
  .cases__filter { font-size: 14px; padding: 10px 16px; }
}

/* скрытие карточек фильтром */
.work.is-hidden { display: none; }

/* CTA портфолио: текст слева, кнопка справа — экономит высоту */
.works-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  text-align: left;
  padding: 34px 40px;
}
.works-cta__title { grid-column: 1; margin: 0 0 8px; }
.works-cta__text { grid-column: 1; margin: 0; max-width: 620px; }
.works-cta__btn { grid-column: 2; grid-row: 1 / 3; white-space: nowrap; }
@media (max-width: 760px) {
  .works-cta { grid-template-columns: 1fr; text-align: left; gap: 20px; padding: 28px 22px; }
  .works-cta__btn { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: center; }
}

/* Длинные скрины работ: карточка листается при наведении (идея Дмитрия 13.08) */
.work__shot { overflow: hidden; }
.work__shot.is-long::before { content: ''; display: block; padding-top: 62.5%; }
.work__shot.is-long img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; aspect-ratio: auto; object-fit: fill;
  will-change: transform;
}

/* Пилюли: текст ровно по центру. display:block сажал глиф ниже середины
   (замер 13.08: сверху 14px, снизу 7px). Центрируем флексом с line-height 1. */
.cases__filter,
.quiz__option,
.work__res,
.work__kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cases__filter { padding: 13px 20px; }
.work__res { padding: 12px 18px; }
.work__kind { padding: 9px 14px; }

/* ===== Абонемент и «Как работаем» — общий язык страницы (13.08) ===== */
.subscriptions__lead { max-width: 720px; font-size: clamp(18px, 1.5vw, 21px); color: #41464B; }
.subscriptions__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin-top: 34px; border-top: 1px solid #E4E6E8;
}
.sub-card {
  display: flex; flex-direction: column; position: relative;
  padding: 32px 30px 34px; border: 0;
  border-left: 1px solid #E4E6E8; border-bottom: 1px solid #E4E6E8;
  border-radius: 0; background: var(--paper);
}
.subscriptions__grid .sub-card:last-child { border-right: 1px solid #E4E6E8; }
.sub-card--featured { background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sub-card__badge {
  position: static; align-self: flex-start; margin-bottom: 12px;
  display: inline-flex; align-items: center; line-height: 1;
  padding: 8px 14px; border-radius: 999px;
  background: var(--anthracite); color: #fff; font-size: 14px; letter-spacing: .02em;
}
.sub-card__name { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--anthracite); }
.sub-card__price { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; color: var(--anthracite); line-height: 1.1; }
.sub-card__per { font-size: 17px; font-weight: 400; color: #6B7075; }
.sub-card__desc { margin: 0 0 22px; font-size: 17px; color: #41464B; }
.sub-card__calc { margin: auto 0 0; padding-top: 18px; border-top: 1px solid #E4E6E8; }
.sub-card__row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 16px; }
.sub-card__row dt { color: #6B7075; }
.sub-card__row dd { margin: 0; color: var(--anthracite); font-weight: 600; }
.sub-card__save {
  margin: 14px 0 0; padding: 13px 16px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 16px; font-weight: 700; text-align: center;
}
.sub-card__save-num { white-space: nowrap; }
.subscriptions__installment { margin-top: 26px; }
.subscriptions__installment p { margin: 0; font-size: 18px; color: #41464B; }
.subscriptions__installment .sl { color: var(--accent); font-weight: 700; margin-right: 6px; }

.process__lead { max-width: 720px; margin: 0 0 34px; font-size: clamp(18px, 1.5vw, 21px); color: #41464B; }
.process__track {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; border-top: 1px solid #E4E6E8;
}
.process__step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 30px; border: 0;
  border-left: 1px solid #E4E6E8; border-bottom: 1px solid #E4E6E8;
  border-radius: 0; background: transparent; min-width: 0;
}
.process__track .process__step:nth-child(3n) { border-right: 1px solid #E4E6E8; }
.process__num { font-size: clamp(30px, 3vw, 42px); font-weight: 700; color: #C9CDD1; line-height: 1; }
.process__name { margin: 0; font-size: 21px; font-weight: 700; color: var(--anthracite); line-height: 1.25; }
.process__term {
  align-self: flex-start; display: inline-flex; align-items: center; line-height: 1;
  padding: 9px 15px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 15px; font-weight: 600;
}
@media (hover: hover) {
  .process__step:hover { background: var(--accent-soft); }
  .process__step:hover .process__num { color: var(--accent); }
}
@media (max-width: 980px) {
  .subscriptions__grid, .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__track .process__step:nth-child(3n) { border-right: 0; }
  .process__track .process__step:nth-child(2n) { border-right: 1px solid #E4E6E8; }
  .subscriptions__grid .sub-card:nth-child(2n) { border-right: 1px solid #E4E6E8; }
}
@media (max-width: 620px) {
  .subscriptions__grid, .process__track { grid-template-columns: minmax(0, 1fr); }
  .sub-card, .process__step { border-right: 1px solid #E4E6E8; }
}

/* Кегли: подтягиваем мелочь под увеличенный базовый (13.08, по замеру страницы) */
.hero__age, .hero__scheme-label, .hero__scheme-cap, .sub-card__badge,
.partners-band__note, .partners-band__heading, .partners-band__badge,
.contract__service-sub, .price-card__promo, .prices__gift-tag,
.quiz__result-referral, .work__kind, .team__tagline { font-size: 15px; }

.hero__trust, .price-card__task, .price-card__term, .quiz__field-label,
.works-scale__label, .referral-bar__note, .footer__social, .facts__label,
.header__phone, .qmgr__role, .cases__filter, .work__domain, .work__res,
.guarantees__card-desc, .guarantees__excluded-title, .promo-bar__text--full,
.promo-bar__text--short, .promo-bar__date, .qmgr__link { font-size: 17px; }

.btn { font-size: 17px; }
figcaption { font-size: 16px; }
.site-header nav a, .footer a, .footer li { font-size: 17px; }

/* Абонемент: бейдж не должен сдвигать заголовок, строки расчёта не переносятся */
.sub-card { padding-top: 34px; }
.sub-card__badge { position: absolute; top: 16px; right: 16px; margin: 0; }
.sub-card--featured .sub-card__name { margin-top: 0; }
.sub-card__row { font-size: 15px; align-items: baseline; }
.sub-card__row dt { white-space: nowrap; }
.sub-card__row dd { white-space: nowrap; text-align: right; }
.sub-card__save { font-size: 15px; white-space: nowrap; padding: 12px 10px; }

@media (max-width: 620px) {
  .sub-card__row { flex-direction: column; gap: 2px; }
  .sub-card__row dd { text-align: left; white-space: normal; }
  .sub-card__save { white-space: normal; }
}

/* Перебиваем старые правила секции «Как работаем» */
.process__track::before { display: none !important; }
.process__step h3.process__name { font-size: 21px; font-weight: 700; color: var(--anthracite); letter-spacing: 0; text-transform: none; }
.process__step .process__term { font-size: 15px; }
.process__step p { font-size: 17px; }
@media (max-width: 980px) { .process__track::before { display: none !important; } }
.sub-card__badge { left: auto; bottom: auto; width: auto; max-width: none; }

/* Абонемент: имя пакета крупнее цены, цена вторична; без дублей цены (13.08) */
.sub-card__name { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 6px; }
.sub-card__price { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.sub-card__per { font-size: 15px; }
.sub-card__row { font-size: 16px; }

/* Бейдж «оптимально» — в потоке, место под него резервируем во всех карточках,
   иначе он садится поверх названия (замер 13.08: перекрытие на всех ширинах). */
.sub-card__badge { position: static; align-self: flex-start; margin: 0 0 14px; }
.sub-card:not(.sub-card--featured)::before {
  content: ''; display: block; height: 32px; margin-bottom: 14px;
}

/* Как работаем — снова одной строкой (его правка 13.08) */
.process__track { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.process__track .process__step:nth-child(3n) { border-right: 0; }
.process__track .process__step:last-child { border-right: 1px solid #E4E6E8; }
.process__step { padding: 24px 18px 26px; gap: 8px; }
.process__num { font-size: clamp(26px, 2.2vw, 34px); }
.process__step h3.process__name { font-size: 18px; line-height: 1.3; }
.process__step .process__term { font-size: 14px; padding: 7px 12px; }
@media (max-width: 1100px) {
  .process__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process__track .process__step:nth-child(3n) { border-right: 1px solid #E4E6E8; }
}
@media (max-width: 620px) {
  .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__track .process__step:nth-child(3n) { border-right: 0; }
  .process__track .process__step:nth-child(2n) { border-right: 1px solid #E4E6E8; }
}

/* Команда: должность + имя, фото цветное при наведении (его правка 13.08) */
.team__photo { filter: grayscale(1); transition: filter .35s ease, transform .35s ease; }
@media (hover: hover) {
  .team__member:hover .team__photo { filter: grayscale(0); }
}
.team__member figcaption, .team__cap {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 12px; text-align: left; text-transform: none;
}
.team__role { font-size: 15px; color: #6B7075; letter-spacing: .01em; }
.team__person { font-size: 18px; font-weight: 700; color: var(--anthracite); }

/* Выделяем «оптимально» заливкой, а не полосой: красная линия рядом с тёмной
   границей читалась как грязь (его правка 13.08) */
.sub-card--featured { box-shadow: none; background: var(--accent-soft); }
.sub-card--featured .sub-card__save { background: #fff; }

/* ===== Абонемент таблицей: работы слева, галочки по пакетам (13.08) ===== */
.subs-table { margin-top: 34px; border-top: 1px solid #E4E6E8; }
.subs-table__head,
.subs-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  align-items: center;
}
.subs-table__row { border-bottom: 1px solid #E4E6E8; }
.subs-table__head { border-bottom: 1px solid var(--anthracite); }
.subs-table__pkg {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px; text-align: center; align-items: center;
}
.subs-table__pkg.is-featured { background: var(--accent-soft); }
.subs-table__badge {
  display: inline-flex; align-items: center; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
  background: var(--anthracite); color: #fff; font-size: 13px;
}
.subs-table__name { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; color: var(--anthracite); }
.subs-table__price { font-size: 16px; color: #6B7075; }
.subs-table__label { padding: 16px 18px 16px 0; font-size: 17px; color: #41464B; }
.subs-table__cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 10px 12px; font-size: 16px; color: var(--anthracite);
}
.subs-table__row .subs-table__cell:nth-child(3) { background: rgba(190, 63, 47, .05); }
.subs-table__cell svg { width: 22px; height: 22px; color: var(--accent); }
.subs-table__row--alone .subs-table__cell { font-weight: 600; }
.subs-table__row--save { border-bottom: 0; }
.subs-table__row--save .subs-table__label,
.subs-table__row--save .subs-table__cell { font-weight: 700; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 820px) {
  .subs-table { border-top: 0; display: grid; gap: 0; }
  .subs-table__head { display: none; }
  .subs-table__row { grid-template-columns: minmax(0, 1fr) repeat(3, 64px); }
  .subs-table__label { font-size: 16px; padding: 14px 10px 14px 0; }
  .subs-table__cell { min-height: 46px; padding: 8px 4px; font-size: 14px; }
  .subs-table__cell::before {
    content: attr(data-pkg); position: absolute; margin-top: -30px;
    font-size: 11px; color: #9AA0A6; display: none;
  }
  .subs-table__row:first-of-type .subs-table__cell::before { display: block; }
}

@media (max-width: 820px) {
  .subs-table__row { grid-template-columns: minmax(0, 1fr) repeat(3, 46px); }
  .subs-table__cell::before { display: none !important; }
  .subs-table__cell { min-height: 44px; padding: 8px 2px; font-size: 13px; }
  .subs-table__label { font-size: 15px; padding-right: 8px; }
  .subs-table__row--alone .subs-table__cell,
  .subs-table__row--save .subs-table__cell { font-size: 12px; line-height: 1.15; text-align: center; }
}

@media (max-width: 820px) {
  .subs-table .num-nowrap, .subs-table .sub-card__save-num { white-space: normal; overflow-wrap: anywhere; }
}

/* Таблица абонемента: пробел в текстовых ячейках + кнопки заказа под колонками */
.subs-table__cell.is-text, .subs-table__cell.is-save { gap: 5px; flex-wrap: wrap; }
.subs-table__row--cta { border-bottom: 0; padding: 18px 0 4px; }
.subs-table__row--cta .subs-table__cell { min-height: 0; padding: 6px 10px; }
.subs-table__btn { width: 100%; justify-content: center; padding: 13px 16px; font-size: 16px; }
@media (max-width: 820px) {
  .subs-table__row--cta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .subs-table__row--cta .subs-table__label { display: none; }
  .subs-table__row--cta .subs-table__cell::after { content: ' ' attr(data-pkg); }
  .subs-table__btn { font-size: 15px; }
}

/* ===== Гарантии: тот же смысл, плотнее и опрятнее (его правка 13.08) ===== */
.guarantees__grid { margin: 28px 0 18px; }
.guarantees__card { padding: 22px 22px 24px; gap: 10px; }
.guarantees__card .icon {
  width: 26px; height: 26px; padding: 5px;
  color: var(--accent); background: rgba(190, 63, 47, .16); border-radius: 9px;
}
.guarantees__card-title {
  font-size: 20px; white-space: normal; overflow: visible; text-overflow: clip;
}
.guarantees__card-desc { font-size: 16px; line-height: 1.4; }
.guarantees__excluded {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px; align-items: start;
  border: 0; border-radius: 0; padding: 20px 22px;
  background: rgba(255, 255, 255, .05);
}
.guarantees__excluded-title { margin: 0; font-size: 17px; color: var(--paper); }
.guarantees__excluded p { font-size: 16px; }
@media (max-width: 820px) {
  .guarantees__excluded { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
.guarantees__card .icon { width: 34px; height: 34px; padding: 7px; color: #E8705E; background: rgba(190, 63, 47, .22); }
.guarantees { padding-top: 54px; padding-bottom: 54px; }

/* Мобильный вид абонемента: карточки вместо матрицы (замер 13.08 показал,
   что четыре колонки на 390 нечитаемы и шапка терялась) */
.subs-cards { display: none; }
@media (max-width: 820px) {
  .subs-table { display: none; }
  .subs-cards { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid #E4E6E8; }
  .subs-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px 22px 26px; background: var(--paper);
    border-left: 1px solid #E4E6E8; border-right: 1px solid #E4E6E8; border-bottom: 1px solid #E4E6E8;
  }
  .subs-card.is-featured { background: var(--accent-soft); }
  .subs-card__badge {
    align-self: flex-start; display: inline-flex; align-items: center; line-height: 1;
    padding: 7px 13px; border-radius: 999px; background: var(--anthracite); color: #fff; font-size: 14px;
  }
  .subs-card__name { margin: 0; font-size: 26px; font-weight: 700; color: var(--anthracite); }
  .subs-card__price { margin: 0; font-size: 18px; color: #41464B; }
  .subs-card__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
  .subs-card__item { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--anthracite); }
  .subs-card__item svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--accent); }
  .subs-card__item.is-no { color: #9AA0A6; }
  .subs-card__dash { width: 19px; flex: 0 0 19px; text-align: center; color: #C9CDD1; }
  .subs-card__alone { margin: 10px 0 0; font-size: 16px; color: #6B7075; }
  .subs-card__save { margin: 0; font-size: 17px; font-weight: 700; color: var(--accent); }
  .subs-card__btn { width: 100%; justify-content: center; margin-top: 8px; }
}

/* Рефералка: акцентная лента, а не продолжение подвала (его правка 13.08).
   Раньше сидела на том же тёмном фоне и читалась как часть футера. */
.referral-bar--accent {
  display: block; background: var(--accent); color: #fff;
  padding: 30px 0; margin: 0; border: 0;
}
.referral-bar--accent .referral-bar__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 28px;
}
.referral-bar--accent .referral-bar__title { color: #fff; font-size: clamp(20px, 2vw, 26px); font-weight: 700; margin: 0 0 6px; }
.referral-bar--accent .referral-bar__note { color: rgba(255, 255, 255, .82); margin: 0; }
.referral-bar--accent .referral-bar__btn {
  background: #fff; color: var(--accent); border-color: #fff; white-space: nowrap;
}
.referral-bar--accent .referral-bar__btn:hover { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
@media (max-width: 760px) {
  .referral-bar--accent .referral-bar__inner { grid-template-columns: minmax(0, 1fr); }
  .referral-bar--accent .referral-bar__btn { width: 100%; justify-content: center; }
}
.referral-bar__gift {
  display: inline-block; padding: 4px 12px; margin: 0 2px;
  background: #fff; color: var(--accent); border-radius: 8px;
  font-weight: 800; white-space: nowrap;
}
@media (max-width: 620px) { .referral-bar__gift { white-space: normal; } }

/* «Оптимально» — тихая метка в углу колонки, а не чёрная пилюля (его правка 13.08) */
.subs-table__pkg.is-featured { position: relative; }
.subs-table__badge {
  position: absolute; top: 8px; right: 10px;
  padding: 0; background: none; border-radius: 0;
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 820px) {
  .subs-card__badge {
    padding: 0; background: none; color: var(--accent);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  }
}

/* Мобильный: окно скрина выше, иначе от сайта видно только шапку (его правка 13.08) */
@media (max-width: 820px) {
  .work__shot.is-long::before { padding-top: 118%; }
}

/* ===== Квиз как переписка: вопрос слева, ответы справа, с анимацией (13.08) ===== */
.quiz__options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.quiz__option {
  background: var(--accent-soft); border-color: transparent; color: var(--accent);
  border-radius: 18px; border-bottom-right-radius: 6px; font-weight: 600;
}
@media (hover: hover) {
  .quiz__option:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}
.quiz__question { animation: qBubbleIn .32s ease both; }
.quiz__step.is-active .quiz__option { animation: qBubbleIn .3s ease both; }
.quiz__step.is-active .quiz__option:nth-child(1) { animation-delay: .10s; }
.quiz__step.is-active .quiz__option:nth-child(2) { animation-delay: .16s; }
.quiz__step.is-active .quiz__option:nth-child(3) { animation-delay: .22s; }
.quiz__step.is-active .quiz__option:nth-child(4) { animation-delay: .28s; }
.quiz__step.is-active .quiz__option:nth-child(5) { animation-delay: .34s; }
.quiz__step.is-active .quiz__option:nth-child(6) { animation-delay: .40s; }
@keyframes qBubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.quiz__step.is-done .quiz__option.is-selected {
  background: var(--accent); border-color: var(--accent); color: #fff;
  animation: qSent .28s ease both;
}
@keyframes qSent {
  from { opacity: .4; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz__question, .quiz__step.is-active .quiz__option, .quiz__step.is-done .quiz__option.is-selected { animation: none; }
}
.referral-bar--accent .referral-bar__title { max-width: 22ch; text-wrap: balance; }
@media (min-width: 900px) { .referral-bar--accent .referral-bar__title { max-width: 46ch; } }

/* Последний шаг квиза: на ПК справа сводка ответов, чтобы половина экрана не пустовала */
.quiz__recap { display: none; }
@media (min-width: 900px) {
  .quiz__step[data-step="6"].is-active {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px; align-items: start;
  }
  .quiz__step[data-step="6"] .quiz__question { grid-column: 1 / -1; }
  .quiz__recap {
    display: block; padding: 22px 24px 24px;
    background: var(--accent-soft); border-radius: 18px;
  }
  .quiz__recap-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--anthracite); }
  .quiz__recap-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
  .quiz__recap-list li { display: flex; gap: 10px; font-size: 16px; color: var(--anthracite); }
  .quiz__recap-list li b { font-weight: 700; color: var(--accent); }
  .quiz__recap-list:empty::after { content: 'Ответы появятся здесь по мере прохождения'; font-size: 15px; color: #6B7075; }
  .quiz__recap-next { margin: 0; font-size: 15px; line-height: 1.5; color: #41464B; }
}

/* Способ связи — как обычное поле, без рамки с врезанной подписью */
.quiz__form fieldset.quiz__field { border: 0; padding: 0; margin: 0; }
.quiz__form fieldset.quiz__field legend { padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.quiz__radios { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.quiz__radios label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid #E4E6E8; border-radius: 999px;
  font-size: 16px; cursor: pointer; background: var(--paper);
}
.quiz__radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Последний шаг: поля на всю колонку, способ связи в одну строку (его правка 13.08) */
@media (min-width: 900px) {
  .quiz__step[data-step="6"].is-active { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; }
  .quiz__step[data-step="6"] .quiz__form { width: 100%; max-width: none; }
  .quiz__step[data-step="6"] .quiz__field input { width: 100%; }
  .quiz__radios { flex-wrap: nowrap; }
  .quiz__radios label { padding: 10px 14px; font-size: 15px; white-space: nowrap; flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 900px) {
  .quiz__radios { justify-content: flex-start; }
  .quiz__radios label { flex: 0 0 auto; justify-content: flex-start; }
}

/* Портфолио на широких экранах: карточка не должна расплываться (его правка 13.08) */

@media (min-width: 1500px) {
  .work { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}
