@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: 48px;
  --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;
}

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;
}

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);
}

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 0, 100% 0, 100% 100%, 0 calc(100% - var(--lean-h)));
}

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

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

.container--cases {
  max-width: 1320px;
}

.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: var(--anthracite);
  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: 48px;
  position: relative;
}

.promo-bar__text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 0 48px;
}

.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: 12px 16px;
  border: 1px solid var(--line);
  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: 15px;
  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: 32px;
  overflow: hidden;
}

.hero__quiz::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 88px),
    linear-gradient(var(--anthracite), var(--anthracite)) 72% 18% / 2px 64px no-repeat,
    linear-gradient(var(--anthracite), var(--anthracite)) 76% 18% / 2px 64px no-repeat;
}

.hero__quiz > * {
  position: relative;
}

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

.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 {
  background: var(--anthracite);
  color: var(--paper);
  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;
  overflow-wrap: anywhere;
  word-break: break-word;
  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: stretch;
}

.contract__col {
  min-width: 0;
}

.contract__col:last-child {
  display: flex;
  flex-direction: column;
}

.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 {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #C4A8A8 0%,
    #C4A8A8 35%,
    transparent 35%,
    transparent 65%,
    #C4A8A8 65%,
    #C4A8A8 100%
  );
  transform: translateX(-50%);
}

.contract__unified {
  border: 1px solid var(--anthracite);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  justify-content: space-between;
  align-self: stretch;
}

.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;
}

.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: 48px;
  align-items: center;
}

.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;
}

.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;
}

.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: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price-card__gift .icon {
  width: 18px;
  height: 18px;
  color: var(--anthracite);
}

.price-card__gift-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--anthracite);
  border-radius: var(--radius);
  padding: 4px 8px;
}

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

.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: 16px;
  border-top: 1px solid var(--line);
}

.prices__gift {
  margin-bottom: 16px;
}

.prices__gift:last-child {
  margin-bottom: 0;
}

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

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

.prices__gift-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--anthracite);
  border-radius: var(--radius);
  padding: 4px 8px;
}

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

/* 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: 14px;
  color: var(--muted);
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  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 {
  padding: 96px 0;
  overflow-x: clip;
}

.cases__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.cases__chip {
  min-height: 44px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

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

.cases__chip.is-active {
  border-color: var(--anthracite);
  color: var(--anthracite);
}

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

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

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

.case-card + .case-card {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.case-card__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-card:nth-child(even) .case-card__media {
  order: 2;
}

.case-card:nth-child(even) .case-card__content {
  order: 1;
}

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

.case-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 901px) {
  .case-card__media {
    width: 50vw;
    max-width: none;
  }

  .case-card:nth-child(odd) .case-card__media {
    margin-left: calc(50% - 50vw);
  }

  .case-card:nth-child(even) .case-card__media {
    margin-right: calc(50% - 50vw);
    margin-left: auto;
  }

  .case-card__media img {
    min-height: 560px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
  }
}

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

.case-card__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin: 0 0 12px;
}

.case-card__result {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.case-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.case-card__task {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
}

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

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

.case-card__metric-value {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  color: var(--anthracite);
  line-height: 1.2;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.case-card__metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-card__tags span {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.case-card__open {
  align-self: flex-start;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .case-card__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-card:nth-child(even) .case-card__media,
  .case-card:nth-child(even) .case-card__content {
    order: unset;
  }

  .case-card__media {
    order: -1;
  }

  .case-card__metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 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;
}

.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;
}

.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-weight: 500;
}

.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;
  background: var(--anthracite);
}

.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: 14px;
  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: 14px;
  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 {
  aspect-ratio: 3 / 4;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.team__photo::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--line) 25%, var(--soft) 25%, var(--soft) 50%, var(--line) 50%, var(--line) 75%, var(--soft) 75%);
  background-size: 16px 16px;
  opacity: 0.5;
}

.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 */
.partners {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-height: 72px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--anthracite);
  text-align: center;
}

.partners__caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* 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: var(--anthracite);
  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: var(--anthracite);
  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);
  }

  .partners__grid {
    grid-template-columns: repeat(3, 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;
  }

  .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,
  .cases,
  .subscriptions,
  .process,
  .guarantees,
  .team,
  .faq {
    padding: 56px 0;
  }

  .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__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .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%;
  }
}
