:root {
  --color-body: #1a1f26;
  --color-text: #2b2b2b;
  --color-text-gray: #3d454d;
  --color-text-muted: #5c5c5c;
  --color-green: #00af57;
  --color-green-dark: #169258;
  --color-green-light: #f0f9f3;
  --color-bg: #fbfbf9;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.96);
  --color-glass-bg: rgba(255, 255, 255, 0.84);
  --color-glass-border: rgba(255, 255, 255, 0.96);
  --color-card-bg: #ffffff;
  --font-primary: 'Golos Text', sans-serif;
  --font-logo: 'Inter', sans-serif;
  --radius-pill: 999px;
  --radius-card: 28px;
  --radius-icon: 20px;
  --radius-btn: 100px;
  --radius-input: 12px;
  --radius-faq: 16px;
  --shadow-header: 0px 4px 10px rgba(20, 26, 31, 0.06);
  --shadow-card: 0px 4px 20px rgba(20, 26, 31, 0.06);
  --shadow-icon: 0px 17px 60px rgba(0, 0, 0, 0.1);
  --container-max: 1360px;
  --container-padding: 40px;
  --section-gap: 230px;
  --section-space-desktop: 180px;
  --section-space-mobile: 64px;
}

/* === RESET === */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

a, a:hover { text-decoration: none; color: inherit; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; padding: 0; }

/* Desktop/mobile content toggles */
.u-desk { display: inline; }
.u-mob  { display: none; }

/* Chips track: transparent wrapper on desktop, animated on mobile */
.hero__chips-track { display: contents; }
.hero__chip.hero__chip--clone { display: none; }

@keyframes hero-chips-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === BASE === */

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--color-bg);
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.container {
  position: relative;
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === PAGE BACKGROUND DECOR === */

.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-bg__warm,
.page-bg__mint {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.page-bg__warm {
  width: 680px;
  height: 680px;
  background: rgba(255, 220, 170, 0.4);
  left: 40px;
  top: 20px;
}

.page-bg__mint {
  width: 740px;
  height: 740px;
  background: rgba(170, 235, 210, 0.45);
  right: -110px;
  top: 10px;
}

/* === HERO === */

.hero {
  position: relative;
  z-index: 1;
  padding-top: 110px;
}

.hero__card {
  position: relative;
  width: 100%;
  height: 640px;
  background-color: rgba(251, 251, 249, 0.2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.098   0 0 0 0 0.122   0 0 0 0 0.106   0 0 0 0.14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  border: 1px solid #eef2ee;
  border-radius: 32px;
  overflow: hidden;
}

/* --- Chips --- */

.hero__chips {
  position: absolute;
  top: 45px;
  left: 61px;
  display: flex;
  gap: 12px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  height: 39px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8dfda;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #4b524d;
  white-space: nowrap;
}

.hero__chip--accent {
  font-size: 14px;
  color: #2b2b2b;
}

/* --- Title --- */

.hero__title {
  position: absolute;
  top: 109px;
  left: 61px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.25;
  color: #222522;
  margin: 0;
}

.hero__badge {
  display: inline-block;
  position: relative;
  top: -4px;
  background: #00af57;
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0px 12px 24px rgba(0, 175, 87, 0.24);
  transform: rotate(-2.47deg);
  white-space: nowrap;
}

/* --- Description --- */

.hero__desc {
  position: absolute;
  top: 304px;
  left: 61px;
  width: 777px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: #414742;
}

/* --- CTA Buttons --- */

.hero__actions {
  position: absolute;
  top: 399px;
  left: 61px;
  display: flex;
  gap: 14px;
}

.hero__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  min-width: 170px;
  background: #00af57;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0px 10px 20px rgba(0, 175, 87, 0.22);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__cta-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  min-width: 194px;
  background: #fff;
  color: #2f3430;
  border: 1px solid #d9e0db;
  border-radius: 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__cta-secondary:hover {
  background: #f4f8f5;
  border-color: #b8c4ba;
}

/* --- Person Image --- */

.hero__person {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 415px;
  height: 625px;
  pointer-events: none;
}

.hero__person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Calculator Teaser --- */

.hero__calc {
  position: absolute;
  top: 475px;
  left: 61px;
  width: 547px;
  height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 18px 24px;
  background-color: rgba(250, 252, 250, 0.6);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='547' height='116' viewBox='0 0 547 116' preserveAspectRatio='none'><rect x='1.25' y='1.25' width='544.5' height='113.5' rx='14.75' ry='14.75' fill='none' stroke='rgb(124,168,138)' stroke-opacity='0.95' stroke-width='2.5' stroke-dasharray='12 7' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transform-origin: center center;
  box-shadow: 0 10px 28px rgba(20, 26, 31, 0.08);
  transition: background-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .hero__calc:hover {
    background-color: rgba(245, 250, 246, 0.8);
    transform: scale(1.04);
    box-shadow: 0 20px 48px rgba(20, 26, 31, 0.14);
  }
}

.hero__calc-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #e8f5ee;
  border-radius: 12px;
}

.hero__calc-icon svg {
  width: 24px;
  height: 34px;
  transform: translateY(-2px);
}

.hero__calc-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.hero__calc-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
  color: #2b2b2b;
}

.hero__calc-subtitle {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: #6b7b6f;
  margin-top: 4px;
}

.hero__calc-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #00af57;
  margin-top: 6px;
}

.hero__calc-illustration {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 130px;
  height: 100px;
  pointer-events: none;
  background-image: url("../img/hero-mail-illustration.png");
  background-repeat: no-repeat;
  background-size: 200px 200px;
  background-position: -50px -38px;
}

/* === BENEFITS === */

.benefits {
  position: relative;
  z-index: 1;
  padding-top: var(--section-space-desktop);
}

.benefits__title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #2b2b2b;
  margin: 0 0 40px;
}

.benefits__title span {
  color: var(--color-green);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 322px);
  gap: 24px;
}

/* --- Card base (light) --- */

.benefits__card {
  position: relative;
  height: 220px;
  background: #f9f9f9;
  border: 4px solid #fff;
  border-radius: 28px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0px 4px 10px rgba(20, 26, 31, 0.07);
  overflow: hidden;
}

.benefits__card--wide {
  grid-column: span 2;
}

.benefits__card-heading {
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  color: #2b2b2b;
  margin: 0;
}

.benefits__card-text {
  position: absolute;
  top: 160px;
  left: 28px;
  max-width: 420px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  color: #5c5c5c;
  margin: 0;
}

/* --- Green cards --- */

.benefits__card--green {
  background: var(--color-green);
  border: none;
  box-shadow: 0px 8px 20px rgba(0, 175, 87, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.benefits__card--green .benefits__card-heading {
  top: 32px;
  left: 32px;
  max-width: 240px;
  color: #fff;
}

.benefits__card--green .benefits__card-text {
  top: 164px;
  left: 32px;
  max-width: 260px;
  color: #e2ffe8;
}

/* --- Illustrations --- */

.benefits__card-illustration {
  position: absolute;
  top: 26px;
  right: 0;
  width: 179px;
  height: 184px;
  pointer-events: none;
}

.benefits__card-illustration--team {
  top: 16px;
  right: 65px;
  width: 227px;
  height: 209px;
}

.benefits__card-illustration--payment {
  top: 16px;
  right: -8px;
  width: 248px;
  height: 190px;
}

.benefits__card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === SPECS (Каких специалистов подбираем) === */

.specs {
  position: relative;
  z-index: 1;
  margin-top: var(--section-space-desktop);
  background: #2b2b2b;
  padding: 72px 0;
}

.specs__inner {
  position: relative;
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
}

.specs__inner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(112, 112, 112, 0.3);
}

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

.specs__head {
  padding-bottom: 35px;
}

.specs__title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.specs__title span {
  color: var(--color-green);
}

.specs__subtitle {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #a3aca5;
  margin: 16px 0 0;
}

.specs__divider {
  height: 1px;
  background: rgba(112, 112, 112, 0.3);
  border: 0;
  margin: 22px 0;
}

.specs__card {
  background: #333838;
  border-radius: 20px;
  padding: 24px 38px;
  box-sizing: border-box;
  transform-origin: center center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.specs__card--green {
  background: var(--color-green);
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .specs__card:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  }
}

.specs__card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 41px;
}

.specs__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specs__chip {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #fff;
}

/* === PROCESS (Понятный процесс подбора) === */

.process {
  position: relative;
  z-index: 1;
  padding: var(--section-space-desktop) 0 0;
  background: transparent;
}

.process__layout {
  display: grid;
  grid-template-columns: 668px 1fr;
  gap: 89px;
  align-items: flex-start;
}

.process__card {
  position: relative;
  width: 668px;
  height: 440px;
  background: #eeeeee;
  border-radius: 28px;
  overflow: hidden;
}

.process__card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 45px 45px 0;
}

.process__card-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process__card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  color: #2b2b2b;
  margin: 0;
}

.process__card-title span {
  color: var(--color-green);
}

.process__card-illustration {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 205px;
  overflow: hidden;
}

.process__card-illustration-main,
.process__card-illustration-overlay {
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: rotate(7.37deg);
  transform-origin: center center;
}

.process__card-illustration-main {
  left: -140.61px;
  top: -3.11px;
  width: 748px;
  height: 257px;
  background-image: url('../img/process-main.png');
  background-size: 1237.4px 823.51px;
  background-position: -258.61px -302.72px;
}

.process__card-illustration-overlay {
  left: 179.8px;
  top: -0.93px;
  width: 145.98px;
  height: 177.15px;
  background-image: url('../img/process-overlay.png');
  background-size: 1237.4px 823.51px;
  background-position: -574.15px -302.72px;
  border-bottom-left-radius: 13px;
  overflow: hidden;
}

.process__steps {
  list-style: none;
  margin: 0;
  padding: 46px 0 0;
  position: relative;
  counter-reset: step;
}

.process__steps::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 52px;
  bottom: 24px;
  width: 4px;
  border-radius: 20px;
  background: linear-gradient(to bottom, #eeeeee 0%, var(--color-green) 100%);
}

.process__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
  padding-left: 48px;
}

.process__step-dot {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px #fff;
}

.process__step-text {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #333;
}

.process__step--accent .process__step-text {
  font-weight: 700;
  color: var(--color-green);
}

/* === CONTRACT (Фиксируем ответственность в договоре) === */

.contract {
  padding: var(--section-space-desktop) 0 0;
  background: transparent;
}

.contract__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contract__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.contract__icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.contract__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #2b2b2b;
  letter-spacing: 0;
}

.contract__title span {
  color: var(--color-green);
}

.contract__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contract__chip {
  padding: 10px 20px;
  border: 1px solid #003527;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #2b2b2b;
  background: transparent;
  white-space: nowrap;
}

/* === EXAMPLES (Примеры закрытий) === */

.examples {
  position: relative;
  padding: var(--section-space-desktop) 0 0;
  background: #fff;
}

.examples .container {
  position: relative;
}

.examples__canvas {
  position: relative;
  width: 100%;
  height: 700px;
}

.examples__bg {
  position: absolute;
  left: 437px;
  top: 113px;
  width: 426px;
  height: 426px;
  pointer-events: none;
  z-index: 0;
}

.examples__icon {
  position: absolute;
  left: 0;
  top: 113px;
  width: 34px;
  height: 34px;
  z-index: 3;
}

.examples__title {
  position: absolute;
  left: 54px;
  top: 101px;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 58px;
  color: #2b2b2b;
  letter-spacing: 0;
  white-space: nowrap;
  z-index: 3;
}

.examples__badge {
  position: absolute;
  left: 0;
  top: 273px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #003527;
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 20px;
  line-height: 29px;
  white-space: nowrap;
  z-index: 3;
}

.examples__meta {
  position: absolute;
  left: 0;
  z-index: 3;
}

.examples__meta--city { top: 356px; }
.examples__meta--term { top: 449px; }

.examples__meta-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #000;
  margin-bottom: 10px;
}

.examples__meta-value {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5c5c5c;
}

.examples__curve {
  position: absolute;
  left: 257px;
  top: 502px;
  width: 235px;
  height: 144px;
  pointer-events: none;
  z-index: 3;
}

/* Photo cards — exact Figma positions */
.examples__card {
  position: absolute;
  border-radius: 20px;
  background: #eeeeee;
}

.examples__card--left {
  left: 657px;
  top: 21px;
  width: 540px;
  height: 558px;
  z-index: 1;
}

.examples__card--right {
  left: 787px;
  top: 21px;
  width: 540px;
  height: 558px;
  z-index: 1;
  background: #d9dee3;
}

.examples__card--main {
  left: 716px;
  top: 12px;
  width: 553px;
  height: 580px;
  background-color: #f2f2f2;
  background-image: url('../img/examples-main-photo.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 8px solid #fbfbf9;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 26, 31, 0.08);
  z-index: 2;
}

.examples__nav {
  position: absolute;
  top: 286px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b2b2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.examples__nav:hover { background: #000; transform: scale(1.05); }

.examples__nav--prev { left: 700px; }
.examples__nav--next { left: 1245px; }

.examples__result {
  position: absolute;
  left: 739px;
  top: 450px;
  width: 505px;
  height: 118px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 17px 60px rgba(0, 0, 0, 0.1);
  padding: 24px;
  z-index: 4;
}

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

.examples__result-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

.examples__result-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #2b2b2b;
}

.examples__result-text {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5c5c5c;
}

/* === FAQ === */

.faq {
  padding: var(--section-space-desktop) 0 0;
  background: transparent;
}

.faq__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
}

.faq__head-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
}

.faq__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 58px;
  color: #2b2b2b;
}

.faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: #ededed;
  border-radius: 10px;
  overflow: hidden;
}

.faq__toggle {
  width: 100%;
  min-height: 60px;
  padding: 18px 40px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  list-style: none;
}
.faq__toggle::-webkit-details-marker { display: none; }
.faq__toggle::marker { content: ""; }

.faq__q {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #2b2b2b;
}

.faq__icon {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  color: #2b2b2b;
  transition: transform 0.25s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: opacity 0.2s ease;
}
.faq__icon::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
}
.faq__icon::after {
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  transform: translateY(-50%);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__item:hover .faq__icon,
.faq__item[open] .faq__icon {
  background: transparent;
}

.faq__answer {
  padding: 0 40px 22px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5c5c5c;
}

/* === COST (Стоимость подбора) === */

.cost {
  padding: var(--section-space-desktop) 0;
  background: transparent;
  overflow: hidden;
}

.cost__wrap {
  position: relative;
  width: 100%;
  height: 595px;
}

.cost__banner {
  position: absolute;
  left: 0;
  top: 115px;
  width: 1360px;
  max-width: 100%;
  height: 407px;
  background: #003527;
  border-radius: 20px;
}

.cost__photo {
  position: absolute;
  left: 680px;
  top: 0;
  width: 782px;
  height: 522px;
  background-image: url('../img/cost-team-figma.png?v=3');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

.cost__card {
  position: absolute;
  left: 40px;
  top: 35px;
  width: 573px;
  height: 560px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 2;
}

.cost__title {
  margin: 0 0 18px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  color: #2b2b2b;
  text-align: center;
}

.cost__subtitle {
  margin: 0 0 32px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5c5c5c;
  text-align: center;
}

.cost__form {
  display: block;
}

.cost__input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: rgba(237, 237, 237, 0.4);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #2b2b2b;
  outline: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.cost__input::placeholder {
  color: rgba(43, 43, 43, 0.34);
}

.cost__input:focus {
  background: rgba(237, 237, 237, 0.7);
  box-shadow: 0 0 0 2px rgba(0, 175, 87, 0.25);
}

.cost__submit {
  margin-top: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

.cost__submit:hover { background: #009e4e; }
.cost__submit:active { transform: translateY(1px); }

.cost__legal {
  margin: 12px 0 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #8a8a8a;
  text-align: center;
}

/* =====================================================================
   TABLET (768px - 1199px) — desktop layout scaled proportionally
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --tablet-shell-width: 1440;
    --tablet-shell-gutter: 24px;
    --tablet-scale: calc((100vw - (var(--tablet-shell-gutter) * 2)) / var(--tablet-shell-width));
  }

  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: calc(var(--tablet-shell-width) * 1px);
    margin: 0 auto;
    zoom: var(--tablet-scale);
  }
}

/* =====================================================================
   MOBILE (≤ 767px) — Figma "Mobile — Hero + Benefits" (223:615), 375px
   ===================================================================== */
@media (max-width: 767px) {
  :root {
    --container-padding: 16px;
  }

  body { font-size: 14px; }

  .u-desk { display: none !important; }
  .u-mob  { display: inline !important; }

  /* --- Page background (ellipses) --- */
  .page-bg { height: 480px; }
  .page-bg__warm,
  .page-bg__mint {
    transform: none;
    border-radius: 50%;
    filter: blur(80px);
  }
  .page-bg__warm {
    left: -60px; top: -40px;
    width: 300px; height: 300px;
  }
  .page-bg__mint {
    left: auto; right: -55px; top: 50px;
    width: 280px; height: 280px;
  }

  /* ================= HERO ================= */
  .hero { padding-top: 0; }
  .hero .container { padding: 16px; }

  .hero__card {
    height: auto;
    min-height: 520px;
    padding: 32px 14px 118px 30px;
    border-radius: 20px;
    background: rgba(251, 251, 249, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero__chips {
    position: static;
    display: block;
    width: 100%;
    max-width: 318px;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
  .hero__chips-track {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    width: max-content;
    animation: hero-chips-marquee 20s linear infinite;
    will-change: transform;
  }
  .hero__chip,
  .hero__chip--accent {
    display: inline-flex !important;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    background: #f3f8f5;
    border: 1px solid #d6e5db;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: #2b2b2b;
    border-radius: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .hero__chip--clone { display: inline-flex !important; }

  .hero__title {
    position: static;
    display: block;
    width: 318px;
    max-width: 100%;
    margin: 0;
    font-size: 33px;
    font-weight: 600;
    line-height: 1.12;
    color: #222522;
    z-index: 2;
  }

  .hero__badge {
    display: inline-block;
    position: static;
    top: auto;
    margin-top: 14px;
    padding: 8px 22px;
    min-height: 42px;
    line-height: 26px;
    background: #0f0f13;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    border-radius: 18px;
    transform: none;
    box-shadow: none;
    white-space: nowrap;
  }

  .hero__desc {
    position: relative;
    top: auto; left: auto;
    width: 100%;
    max-width: min(318px, calc(100% - 4px));
    margin: 22px 0 22px;
    font-size: 13px;
    line-height: 20px;
    color: #6b7b6f;
    z-index: 2;
  }

  .hero__actions {
    position: static;
    top: auto; left: auto;
    gap: 10px;
    position: relative;
    z-index: 2;
  }
  .hero__cta-primary {
    min-width: 0;
    height: 41px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    border-radius: 12px;
    box-shadow: 0px 6px 14px rgba(0, 175, 87, 0.22);
  }
  .hero__cta-secondary { display: none; }

  .hero__person {
    top: auto;
    right: -12px;
    bottom: 0;
    width: 148px;
    height: 237px;
    z-index: 1;
  }
  .hero__person img {
    object-fit: cover;
    object-position: center bottom;
  }

  .hero__calc {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    width: auto;
    min-height: 76px;
    height: auto;
    padding: 10px 74px 10px 14px;
    gap: 10px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.85);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='90' viewBox='0 0 320 90' preserveAspectRatio='none'><rect x='0.75' y='0.75' width='318.5' height='88.5' rx='13.25' ry='13.25' fill='none' stroke='rgb(176,196,184)' stroke-opacity='0.7' stroke-width='1.5' stroke-dasharray='6 5'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: 0;
    z-index: 3;
  }
  .hero__calc-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .hero__calc-icon svg { width: 14px; height: 14px; }
  .hero__calc-text {
    gap: 0;
    max-width: none;
    width: 100%;
  }
  .hero__calc-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }
  .hero__calc-subtitle {
    font-size: 11px;
    line-height: 1.25;
    color: #7a827e;
    max-width: 185px;
  }
  .hero__calc-link {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 1px;
  }
  .hero__calc-illustration { display: none; }

  /* ================= BENEFITS ================= */
  .benefits { padding-top: var(--section-space-mobile); padding-bottom: 0; }
  .benefits .container { padding: 0 16px; }
  .benefits__title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 20px;
  }

  .benefits__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .benefits__card,
  .benefits__card--wide {
    position: relative;
    grid-column: auto;
    height: 120px;
    padding: 16px;
    background: #fbfbf9;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(20, 26, 31, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
  }

  .benefits__card--green {
    height: 120px;
    padding: 16px;
    background: var(--color-green);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 175, 87, 0.2);
    overflow: hidden;
  }

  .benefits__card-heading,
  .benefits__card--green .benefits__card-heading {
    position: static;
    top: auto; left: auto;
    padding: 0;
    margin: 0;
    max-width: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #2b2b2b;
  }
  .benefits__card--green .benefits__card-heading { color: #fff; }

  .benefits__card-text,
  .benefits__card--green .benefits__card-text {
    position: absolute;
    top: 65px;
    left: 16px;
    right: 16px;
    bottom: auto;
    max-width: none;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7b6f;
  }
  .benefits__card--green .benefits__card-text { color: #fff; }

  .benefits__card-illustration {
    display: block;
    top: 10px;
    right: 10px;
    width: 88px;
    height: 88px;
  }
  .benefits__card-illustration--team {
    top: 8px;
    right: 6px;
    width: 104px;
    height: 92px;
  }
  .benefits__card-illustration--payment {
    top: 10px;
    right: -4px;
    width: 102px;
    height: 82px;
  }

  /* ================= SPECS ================= */
  .specs {
    margin-top: var(--section-space-mobile);
    padding: 48px 0;
  }
  .specs__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 0 14px;
  }
  .specs__inner::before { display: none; }
  .specs__col { gap: 0; }

  .specs__head { padding-bottom: 20px; }
  .specs__title { font-size: 24px; line-height: 1.2; }
  .specs__subtitle { font-size: 14px; margin-top: 10px; }

  .specs__divider { margin: 0; }

  .specs__card,
  .specs__card--green {
    padding: 22px 0 22px;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .specs__card-title {
    position: relative;
    margin: 0;
    padding-right: 24px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
  }
  .specs__card-title label {
    display: block;
    cursor: pointer;
    color: inherit;
  }
  .specs__card-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
  }
  .specs__toggle:checked ~ .specs__card-title::after {
    transform: translateY(-50%) rotate(135deg);
  }

  .specs__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
  }
  .specs__toggle:checked ~ .specs__chips {
    max-height: 1200px;
    margin-top: 16px;
  }

  /* ================= PROCESS ================= */
  .process { padding: var(--section-space-mobile) 0 48px; }
  .process .container { padding: 0 14px; }
  .process__layout {
    display: block;
    background: #ededed;
    border-radius: 20px;
    padding: 34px 20px 150px;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 531px;
    position: relative;
    overflow: hidden;
  }
  .process__card {
    position: static;
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .process__card-head {
    padding: 0;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
  }
  .process__card-icon {
    width: 26px;
    height: 26px;
    margin-top: 4px;
  }
  .process__card-icon svg { width: 14px; height: 14px; }
  .process__card-title {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.18;
    color: #2b2b2b;
    max-width: 255px;
  }
  .process__card-title span { color: var(--color-green); }
  .process__card-illustration {
    display: block;
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: calc(100% - 15px);
    height: 117px;
    overflow: hidden;
    z-index: 0;
  }
  .process__card-illustration-main,
  .process__card-illustration-overlay {
    transform: rotate(7.37deg);
    transform-origin: top left;
  }
  .process__card-illustration-main {
    left: -136px;
    top: -50px;
    width: 489.48px;
    height: 168.18px;
    background-size: 809.4px 538.88px;
    background-position: -169.08px -198.07px;
  }
  .process__card-illustration-overlay {
    left: 75.4px;
    top: -23.54px;
    width: 95.53px;
    height: 115.93px;
    background-size: 809.4px 538.88px;
    background-position: -376.48px -198.07px;
  }

  .process__steps {
    padding: 0;
    margin-top: 12px;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
  }
  .process__steps::before {
    left: 10px;
    top: 22px;
    bottom: 22px;
    width: 0;
    background: transparent;
    border-left: 2px dashed #c9c9c9;
    border-radius: 0;
  }
  .process__step {
    position: relative;
    display: block;
    padding: 0 0 18px 40px;
    gap: 0;
  }
  .process__step:last-child { padding-bottom: 0; }

  .process__step-dot {
    position: absolute;
    left: 3px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .process__step-dot::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
  }

  .process__step-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #2b2b2b;
  }

  .process__step--accent .process__step-text {
    color: #2b2b2b;
    font-weight: 500;
  }
  .process__step:last-child .process__step-dot::before {
    background: var(--color-green);
  }
  .process__step:last-child .process__step-text {
    color: var(--color-green);
    font-weight: 500;
  }

  /* ================= CONTRACT ================= */
  .contract { padding: var(--section-space-mobile) 0 48px; }
  .contract .container { padding: 0 14px; }
  .contract__head {
    gap: 14px;
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .contract__icon {
    width: 26px; height: 26px;
    margin-top: 2px;
  }
  .contract__icon svg { width: 26px; height: 26px; }
  .contract__title {
    font-size: 22px;
    line-height: 1.25;
  }
  .contract__chip {
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
  }

  /* ================= EXAMPLES ================= */
  .examples { padding: var(--section-space-mobile) 0; }
  .examples .container { padding: 0 14px; }
  .examples__canvas {
    height: auto;
    overflow: hidden;
  }

  .examples__bg {
    display: block;
    position: absolute;
    right: -22px;
    top: 230px;
    width: 180px;
    height: 180px;
    opacity: 1;
    pointer-events: none;
  }

  .examples__icon {
    position: static;
    display: inline-block;
    width: 26px;
    height: 26px;
    margin: 0 12px 0 0;
    vertical-align: middle;
  }
  .examples__title {
    position: static;
    display: inline;
    font-size: 26px;
    line-height: 1.2;
    white-space: normal;
  }

  .examples__badge {
    position: static;
    display: inline-block;
    margin: 30px 0 20px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.2;
    white-space: normal;
  }

  .examples__meta {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
  }
  .examples__meta--city,
  .examples__meta--term { top: auto; }
  .examples__meta-label { font-size: 16px; margin: 0; }
  .examples__meta-value { font-size: 16px; }

  .examples__curve {
    display: block;
    position: absolute;
    left: 128px;
    top: 390px;
    width: 110px;
    height: auto;
    pointer-events: none;
  }

  .examples__card {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    border-radius: 20px;
  }
  .examples__card--left,
  .examples__card--right { display: none; }
  .examples__card--main {
    margin: 24px 0 0;
    height: 365px;
    background-color: #f2f2f2;
    background-image: url('../img/examples-main-photo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 8px solid #fbfbf9;
    overflow: hidden;
    box-shadow: none;
  }

  .examples__canvas {
    position: relative;
  }
  .examples__nav {
    position: absolute;
    top: 3862px;
    top: auto;
    bottom: 150px;
    width: 34px;
    height: 34px;
  }
  .examples__nav--prev { left: 24px !important; right: auto; }
  .examples__nav--next { right: 24px; left: auto !important; }

  .examples__result {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .examples__result-label { font-size: 18px; }
  .examples__result-text { font-size: 14px; line-height: 1.4; }

  /* ================= FAQ ================= */
  .faq { padding: var(--section-space-mobile) 0 48px; }
  .faq .container { padding: 0 14px; }
  .faq__head {
    gap: 12px;
    margin-bottom: 24px;
  }
  .faq__head-icon {
    width: 26px; height: 26px;
    font-size: 16px;
  }
  .faq__title {
    font-size: 28px;
    line-height: 1.2;
  }
  .faq__list { gap: 10px; }
  .faq__item { border-radius: 6px; }
  .faq__toggle {
    min-height: 0;
    padding: 20px;
    gap: 14px;
  }
  .faq__q {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
  }
  .faq__icon {
    width: 20px;
    height: 20px;
    background: transparent;
  }
  .faq__icon::before {
    width: 2px;
    height: 20px;
  }
  .faq__icon::after {
    width: 20px;
    height: 2px;
  }
  .faq__item[open] .faq__icon {
    transform: rotate(45deg);
  }
  .faq__answer {
    padding: 0 20px 18px;
    font-size: 16px;
    line-height: 1.4;
    color: #5c5c5c;
  }

  /* ================= COST ================= */
  .cost { padding: var(--section-space-mobile) 0; }
  .cost .container { padding: 0 14px; }
  .cost__wrap { height: auto; }
  .cost__banner { display: none; }
  .cost__photo { display: none; }

  .cost__card {
    position: static;
    width: 100%;
    height: auto;
    padding: 24px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .cost__title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .cost__subtitle {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 20px;
  }
  .cost__form { gap: 10px; }
  .cost__input {
    height: 44px;
    font-size: 14px;
    padding: 0 16px;
  }
  .cost__submit {
    height: 44px;
    font-size: 14px;
  }
  .cost__legal {
    font-size: 11px;
    line-height: 1.35;
  }
}
