/* ==========================================================================
   KoBranding — main stylesheet
   Static, responsive. Design tokens first, then components.
   ========================================================================== */

:root {
  --accent: #00a0e3;
  --accent-dark: #069de0;
  --accent-soft: rgba(0, 160, 227, 0.1);
  --text: #414141;
  --text-strong: #0f1417;
  --muted: #8b9298;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-alt-2: #f4f4f4;
  --dark: #10171c;
  --border: #e8eaec;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --container: 1200px;
  --shadow: 0 20px 60px rgba(16, 40, 60, 0.10);
  --shadow-sm: 0 8px 24px rgba(16, 40, 60, 0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', 'Circe', Arial, sans-serif;
  --header-h: 84px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; }
svg { display: block; }

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

/* ---- layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--dark); color: #fff; }

.section__head { max-width: 760px; margin-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 700; color: var(--text-strong); }
h4 { font-size: 18px; font-weight: 700; color: var(--text-strong); }

.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.text-strong { color: var(--text-strong); }
.accent { color: var(--accent); }

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(0, 160, 227, 0.32); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 160, 227, 0.4); }

.btn--ghost { background: transparent; color: var(--text-strong); border-color: var(--text-strong); }
.btn--ghost:hover { background: var(--text-strong); color: #fff; transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--text-strong); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

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

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(16, 40, 60, 0.06); }
.site-header.is-hidden { transform: translateY(-100%); }

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

.header__logo { flex-shrink: 0; }
.header__logo img { height: 30px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }

.nav__contacts { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.nav__phone { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.nav__email { font-size: 14px; color: var(--muted); }
.nav__phone:hover, .nav__email:hover { color: var(--accent); }

.burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--text-strong); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; min-height: 600px; }
.hero__title { margin: 14px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 80px; }
.hero__media { position: relative; }
.hero__media > img { width: 100%; height: auto; }
.hero--solo { position: relative; }
.hero--solo .hero__content { position: relative; z-index: 1; max-width: 900px; }
.hero--solo .hero__blob { inset: -40% -20% auto 25%; height: 160%; z-index: 0; }
.hero__blob {
  position: absolute;
  inset: auto -10% -20% 20%;
  z-index: -1;
  height: 60%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  filter: blur(6px);
}

/* ---- cards ---- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__num { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.card__title { margin: 16px 0 12px; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-strong); }
.card__text { font-size: 16px; line-height: 1.6; color: var(--text); }

.card--plain { background: transparent; border: 0; padding: 0; }
.card--plain:hover { transform: none; box-shadow: none; }

/* ---- feature list ---- */
.feature { display: flex; gap: 18px; }
.feature__icon { flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.feature__icon svg { width: 26px; height: 26px; }
.feature__body h3 { margin-bottom: 8px; }
.feature__body p { font-size: 16px; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { padding: 0; }
.stat__icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stat__icon svg { width: 26px; height: 26px; }
.stat__value { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--text); }

/* ---- accordion ---- */
.acc { display: grid; gap: 12px; }
.acc__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.acc__item[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.acc__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.acc__head::-webkit-details-marker { display: none; }
.acc__title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.acc__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease); }
.acc__icon svg { width: 20px; height: 20px; }
.acc__item[open] .acc__icon { transform: rotate(-45deg); background: var(--accent); color: #fff; }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc__item[open] .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; padding: 0 26px; }
.acc__item[open] .acc__inner { padding-bottom: 26px; }
.acc__inner p { margin-bottom: 12px; }
.acc__inner .markers { margin: 4px 0 18px; }
.acc__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.acc__note { font-size: 16px; color: var(--muted); margin-top: 18px; margin-bottom: 0 !important; }

/* ---- test block: text + rotating archetype wheel ---- */
.testblock { background: #fff; }
.testblock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.testblock__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.testblock__text { margin-top: 20px; font-size: 19px; line-height: 1.45; }
.testblock__time { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 16px; color: var(--muted); }
.testblock__time svg { width: 20px; height: 20px; color: var(--accent); }
.testblock__wheel { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.wheel__img { width: 100%; height: auto; transform-origin: 50% 50%; will-change: transform; }
/* один прогон на 360° (11 с), стартует когда блок попал в экран, потом останавливается */
.testblock__wheel.is-visible .wheel__img { animation: wheelSpin 11s ease-in-out 1; }
.wheel__center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wheel__figure, .wheel__label { grid-area: 1 / 1; }
.wheel__figure { width: 36%; height: auto; }
.wheel__label { width: 34%; text-align: center; font-size: clamp(15px, 1.5vw, 23px); font-weight: 600; line-height: 1.15; color: #fff; }

/* 4 cycles: grow + 45deg, shrink + 45deg, pause -> 360deg in 11s (Tilda timings) */
@keyframes wheelSpin {
  0%     { transform: rotate(0deg) scale(1); }
  9.09%  { transform: rotate(45deg) scale(1.1); }
  18.18% { transform: rotate(90deg) scale(1); }
  27.27% { transform: rotate(90deg) scale(1); }
  36.36% { transform: rotate(135deg) scale(1.1); }
  45.45% { transform: rotate(180deg) scale(1); }
  54.55% { transform: rotate(180deg) scale(1); }
  63.64% { transform: rotate(225deg) scale(1.1); }
  72.73% { transform: rotate(270deg) scale(1); }
  81.82% { transform: rotate(270deg) scale(1); }
  90.91% { transform: rotate(315deg) scale(1.1); }
  100%   { transform: rotate(360deg) scale(1); }
}

/* ---- steps / numbered rows ---- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num { font-size: 20px; font-weight: 800; color: var(--accent); }
.step__body h3 { margin-bottom: 10px; }

/* ---- list with markers ---- */
.markers { display: grid; gap: 14px; }
.markers li { position: relative; padding-left: 22px; font-size: 16px; }
.markers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- quote ---- */
.quote { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.quote__text { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; font-weight: 700; color: var(--text-strong); }
.quote__author { margin-top: 26px; font-size: 16px; }
.quote__author b { display: block; color: var(--text-strong); font-size: 18px; }
.quote__media img { width: 100%; height: auto; }

/* ---- CTA band ---- */
.cta {
  border-radius: 26px;
  padding: 56px;
  background: linear-gradient(135deg, var(--accent), #4cc6ff);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.9); margin-top: 12px; }

/* ---- forms ---- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-strong);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input,
.field.has-error textarea { border-color: #ff5a5a; box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.12); }
.field__error { font-size: 13px; color: #ff5a5a; min-height: 0; }
.field__error:empty { display: none; }

.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--muted); text-decoration: underline; }
.form__note a:hover { color: var(--accent); }

.form__message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}
.form__message.is-visible { display: block; }
.form__message--success { background: rgba(0, 170, 100, 0.12); color: #0a7a4a; }
.form__message--error { background: rgba(255, 90, 90, 0.12); color: #c62828; }

.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.section--alt .form-panel { background: #fff; }

/* ---- contact info ---- */
.info-list { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.info-item__icon img, .info-item__icon svg { width: 24px; height: 24px; }
.info-item b { display: block; color: var(--text-strong); font-size: 16px; }
.info-item span, .info-item a { font-size: 16px; }

/* ---- footer ---- */
.site-footer { background: var(--bg-alt); padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer__logo img { height: 30px; width: auto; }
.footer__about { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 320px; }
.footer__title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-strong); margin-bottom: 16px; }
.footer__col { display: grid; gap: 10px; }
.footer__col a { font-size: 16px; color: var(--text); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---- pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan__name { font-size: 20px; font-weight: 800; color: var(--text-strong); text-transform: uppercase; letter-spacing: 0.02em; }
.plan__price { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.plan__meta { font-size: 14px; color: var(--muted); }
.plan .markers { margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* ---- table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); font-size: 16px; }
.table thead th { background: var(--bg-alt); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-strong); }
.table td:first-child { font-weight: 700; color: var(--text-strong); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---- tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { padding: 10px 20px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--text-strong); }

/* ---- socials ---- */
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.socials a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.socials img { width: 20px; height: 20px; }

/* ---- misc ---- */
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

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

/* ---- reveal animation (progressive enhancement: hidden only when JS is on) ---- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav__list { gap: 22px; }
  .hero__grid { gap: 40px; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .section { padding: 84px 0; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 24px 40px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .nav__link { font-size: 20px; }
  .nav__contacts { text-align: left; margin-top: 8px; }

  .hero__grid,
  .quote,
  .cta { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  .testblock__grid { grid-template-columns: 1fr; gap: 40px; }
  .testblock__wheel { order: -1; max-width: 420px; }
  .hero__media { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }
  .container { padding: 0 20px; }

  h1 { font-size: 42px; line-height: 1.08; }
  h2 { font-size: 30px; }
  .lead { font-size: 19px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .form__row { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .cta { padding: 36px 24px; border-radius: 20px; }
  .form-panel { padding: 26px 20px; }
  .card { padding: 28px 22px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }

  /* hero: больше воздуха, как в Тильде */
  .hero { padding: 88px 0 108px; }
  .hero__title { margin: 0 0 22px; }
  .hero__actions { margin-top: 88px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tilda parity: hero with floating artwork, amber CTA, full-bleed photo band
   ========================================================================== */

.btn--amber { background: #ffc135; color: #fff; box-shadow: 0 10px 26px rgba(255, 193, 53, 0.35); }
.btn--amber:hover { background: #f2b21c; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 193, 53, 0.42); }

.hero--art { background: #f7f7f7; }
.hero--grey { background: #f7f7f7; }
.hero--amber { background: #fec748; }
.hero--blue { background: #28b9fa; }
.hero--art .hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__subtitle { margin-top: 20px; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; font-weight: 500; color: var(--text-strong); }

.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 560px; }
.hero__art-main { width: auto; max-height: 540px; }
.hero__art-shadow { width: min(420px, 72%); margin-top: 12px; position: relative; left: -22%; }

.hero__art--cluster { display: block; min-height: 0; aspect-ratio: 1200 / 657; }
.hero__art--cluster img { position: absolute; }
.hero__art--cluster .art-s1 { left: 32.5%; top: 12.9%; width: 35.8%; z-index: 4; }
.hero__art--cluster .art-s2 { left: 19.2%; top: 76.9%; width: 22.5%; z-index: 2; }
.hero__art--cluster .art-s3 { left: 53.3%; top: 45.7%; width: 26.7%; z-index: 3; }
.hero__art--cluster .art-s4 { left: 65%; top: -9.1%; width: 17.5%; z-index: 1; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.float { animation: floatY 2s ease-in-out infinite; will-change: transform; }
.float--slow { animation-duration: 2.6s; }
.float--delay { animation-delay: -0.7s; }
/* тень идёт в противофазе: предмет внизу — тень вверху (предмет «садится» на тень) */
.float--anti { animation-delay: -1s; }

/* full-bleed photo band with overlaid quote */
.bleed { position: relative; }
.bleed__img { display: block; width: 100%; height: auto; }
.bleed__overlay { position: absolute; inset: 0; display: flex; align-items: center; }
.bleed__inner { display: flex; justify-content: flex-end; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.bleed__text { max-width: 420px; }
.bleed__mark { width: 46px; height: auto; margin-bottom: 16px; }
.bleed__quote { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; font-weight: 700; color: var(--text-strong); }
.bleed__author { margin-top: 18px; font-size: 16px; color: var(--text); }
.bleed__author b { display: block; font-size: 18px; color: var(--text-strong); }

@media (max-width: 980px) {
  .hero--art .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .bleed__overlay { position: static; }
  .bleed__inner { padding: 0; justify-content: flex-start; }
  .bleed__img { height: 300px; object-fit: cover; object-position: 30% center; }
  .bleed__text { max-width: none; margin: 28px auto 0; padding: 0 20px; background: none; box-shadow: none; border-radius: 0; }
}

@media (max-width: 640px) {
  .hero__subtitle { margin-top: 20px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .testblock__wheel.is-visible .wheel__img { animation: none; }
}
