/*
Theme Name: Hudeem Medical Landing
Description: Conversion-focused single-page landing for a personal weight-management programme.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: hudeem-medical
*/

:root {
  --hm-ink: #102526;
  --hm-muted: #536a69;
  --hm-green: #087f73;
  --hm-green-dark: #05665e;
  --hm-cta-start: #b7f8e9;
  --hm-cta-end: #56dec6;
  --hm-cta-ink: #063c36;
  --hm-mint: #dff3ee;
  --hm-mint-soft: #f1f9f7;
  --hm-line: #c9ddd8;
  --hm-white: #ffffff;
  --hm-signal: #d9464d;
  --hm-shadow: 0 22px 70px rgba(16, 37, 38, .12);
  --hm-radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  color: var(--hm-ink);
  background: var(--hm-white);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.hm-modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.hm-site { overflow: hidden; }
.hm-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hm-skip { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; padding: 10px 14px; clip-path: none; color: var(--hm-white); background: var(--hm-ink); }

.hm-topbar { border-bottom: 1px solid rgba(201, 221, 216, .75); background: rgba(255,255,255,.94); }
.hm-topbar__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hm-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.hm-brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--hm-white); background: var(--hm-green); }
.hm-brand__mark::before, .hm-brand__mark::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.hm-brand__mark { position: relative; }
.hm-brand__mark::before { width: 17px; height: 5px; }
.hm-brand__mark::after { width: 5px; height: 17px; }
.hm-topbar__note { margin: 0; color: var(--hm-muted); font-size: 14px; }

.hm-hero {
  position: relative; padding: clamp(38px, 6vw, 78px) 0 62px;
  background: linear-gradient(135deg, #f7fbfa 0%, #e8f6f2 70%, #d9eee8 100%);
}
.hm-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; top: -120px; border: 70px solid rgba(8,127,115,.07); border-radius: 50%; }
.hm-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: clamp(36px, 6vw, 78px); align-items: center; }
.hm-kicker { margin: 0 0 16px; color: var(--hm-green-dark); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hm-hero h1, .hm-section h2, .hm-final h2 { margin: 0; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.hm-hero h1 { max-width: 720px; font-size: clamp(43px, 5.7vw, 68px); }
.hm-hero h1 em { color: var(--hm-signal); font-style: normal; }
.hm-hero__lead { max-width: 640px; margin: 24px 0 0; color: #334f4f; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; }
.hm-hero__points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hm-hero__points li { display: flex; align-items: flex-start; gap: 11px; font-weight: 650; }
.hm-check { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; color: var(--hm-white); background: var(--hm-green); font-size: 14px; }
.hm-proofline { margin: 20px 0 0; color: var(--hm-muted); font-size: 14px; }

.hm-leadbox { padding: 28px; border: 1px solid rgba(8,127,115,.18); border-radius: var(--hm-radius); background: rgba(255,255,255,.92); box-shadow: var(--hm-shadow); }
.hm-leadbox__tag { display: inline-flex; margin-bottom: 16px; padding: 7px 10px; border-radius: 8px; color: var(--hm-green-dark); background: var(--hm-mint); font-size: 13px; font-weight: 800; }
.hm-leadbox h2 { margin: 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; }
.hm-leadbox > p { margin: 12px 0 20px; color: var(--hm-muted); font-size: 16px; }
.hm-form { display: grid; gap: 12px; }
.hm-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 750; }
.hm-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #aec7c2; border-radius: 11px; color: var(--hm-ink); background: var(--hm-white); outline: none; }
.hm-form input:focus { border-color: var(--hm-green); box-shadow: 0 0 0 4px rgba(8,127,115,.13); }
.hm-form__trap { position: absolute !important; left: -10000px !important; }
.hm-button { min-height: 54px; padding: 14px 22px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; text-align: center; color: var(--hm-cta-ink); background: linear-gradient(135deg, var(--hm-cta-start), var(--hm-cta-end)); box-shadow: 0 12px 26px rgba(8,127,115,.24), 0 0 0 0 rgba(86,222,198,.42); font-weight: 850; line-height: 1.15; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.hm-button:hover { filter: brightness(1.035) saturate(1.06); transform: translateY(-2px) scale(1.012); box-shadow: 0 18px 34px rgba(8,127,115,.28), 0 0 0 8px rgba(86,222,198,.14); }
.hm-button:active { transform: translateY(1px) scale(.985); }
.hm-button:focus-visible { outline: 3px solid var(--hm-ink); outline-offset: 3px; }
.hm-button[disabled] { opacity: .65; cursor: wait; transform: none; }
@media (prefers-reduced-motion: no-preference) { .hm-button:not([disabled]) { animation: hm-cta-glow 2.8s ease-in-out infinite; } }
@keyframes hm-cta-glow { 0%, 100% { box-shadow: 0 12px 26px rgba(8,127,115,.24), 0 0 0 0 rgba(86,222,198,.36); } 50% { box-shadow: 0 16px 32px rgba(8,127,115,.3), 0 0 0 9px rgba(86,222,198,0); } }
.hm-form__micro { margin: 0; color: var(--hm-muted); font-size: 12px; line-height: 1.4; }
.hm-form__status { min-height: 22px; margin: 0; color: var(--hm-green-dark); font-size: 14px; font-weight: 750; }
.hm-form__status.is-error { color: #ad2831; }

.hm-section { padding: clamp(68px, 9vw, 112px) 0; }
.hm-section--mint { background: var(--hm-mint-soft); }
.hm-section--line { border-top: 1px solid var(--hm-line); }
.hm-section__head { max-width: 790px; margin-bottom: 44px; }
.hm-section h2 { font-size: clamp(37px, 5vw, 62px); }
.hm-section__head > p:not(.hm-kicker) { max-width: 690px; margin: 20px 0 0; color: var(--hm-muted); font-size: 20px; }

.hm-pains { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.hm-pain-main { min-height: 380px; padding: clamp(30px, 5vw, 54px); border-radius: var(--hm-radius); display: flex; flex-direction: column; justify-content: space-between; color: var(--hm-white); background: var(--hm-ink); }
.hm-pain-main strong { max-width: 620px; font-size: clamp(29px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.hm-pain-main p { max-width: 580px; margin: 28px 0 0; color: #cce0dc; }
.hm-pain-stack { display: grid; gap: 14px; }
.hm-pain { padding: 24px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-white); }
.hm-pain strong { display: block; margin-bottom: 6px; font-size: 21px; letter-spacing: -.02em; }
.hm-pain p { margin: 0; color: var(--hm-muted); font-size: 16px; }

.hm-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 6vw, 72px); align-items: center; }
.hm-story__copy h2 { font-size: clamp(37px, 5vw, 60px); }
.hm-story__copy p { color: var(--hm-muted); }
.hm-story__quote { margin: 28px 0 0; padding-left: 20px; border-left: 4px solid var(--hm-green); color: var(--hm-ink) !important; font-weight: 700; }
.hm-video-shell { position: relative; aspect-ratio: 9 / 15; max-height: 690px; overflow: hidden; border-radius: var(--hm-radius); background: #071818; box-shadow: var(--hm-shadow); }
.hm-video-shell video { width: 100%; height: 100%; object-fit: contain; }
.hm-video-caption { position: absolute; inset: auto 16px 16px; padding: 11px 13px; border-radius: 10px; color: var(--hm-white); background: rgba(6,28,28,.78); backdrop-filter: blur(10px); font-size: 14px; }

.hm-method { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 7vw, 90px); }
.hm-method__rail { position: sticky; top: 24px; align-self: start; }
.hm-method__rail strong { display: block; color: var(--hm-green); font-size: 68px; line-height: 1; letter-spacing: -.06em; }
.hm-method__rail p { color: var(--hm-muted); }
.hm-method__steps { counter-reset: method; display: grid; }
.hm-step { counter-increment: method; padding: 34px 0; border-top: 1px solid var(--hm-line); display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.hm-step::before { content: counter(method); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--hm-white); background: var(--hm-green); font-weight: 850; }
.hm-step h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.hm-step p { margin: 0; color: var(--hm-muted); }

.hm-program { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); overflow: hidden; background: var(--hm-white); }
.hm-program__intro { padding: clamp(30px, 5vw, 54px); background: var(--hm-mint); }
.hm-program__intro h3 { margin: 0; font-size: clamp(31px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.hm-program__intro p { color: var(--hm-muted); }
.hm-program__list { padding: 12px clamp(26px, 4vw, 46px); }
.hm-program__item { padding: 22px 0; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.hm-program__item + .hm-program__item { border-top: 1px solid var(--hm-line); }
.hm-program__item strong { display: block; margin-bottom: 4px; }
.hm-program__item span { color: var(--hm-muted); font-size: 15px; }

.hm-paste { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-white); box-shadow: var(--hm-shadow); }
.hm-paste__intro { padding: clamp(30px, 5vw, 54px); color: var(--hm-white); background: var(--hm-ink); }
.hm-paste__intro .hm-kicker { color: #8ce0d1; }
.hm-paste__intro h2 { margin: 0; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.hm-paste__intro h2 em { color: #8ce0d1; font-style: normal; }
.hm-paste__intro > p:not(.hm-kicker) { max-width: 600px; color: #c5d9d5; }
.hm-paste__facts { display: grid; align-content: center; padding: clamp(24px, 4vw, 48px); }
.hm-paste__facts > div { padding: 22px 0; border-top: 1px solid var(--hm-line); }
.hm-paste__facts > div:first-child { border-top: 0; }
.hm-paste__facts strong, .hm-paste__facts span { display: block; }
.hm-paste__facts strong { margin-bottom: 6px; font-size: 23px; letter-spacing: -.025em; }
.hm-paste__facts span { color: var(--hm-muted); font-size: 16px; }

.hm-carousel-wrap { position: relative; }
.hm-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: 16px; overflow-x: auto; padding: 4px 2px 22px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.hm-carousel::-webkit-scrollbar { display: none; }
.hm-carousel > * { scroll-snap-align: start; }
.hm-video-card { position: relative; min-height: 470px; padding: 0; border: 0; border-radius: var(--hm-radius); overflow: hidden; text-align: left; color: var(--hm-white); background: var(--hm-ink); cursor: pointer; }
.hm-video-card__media { width: 100%; height: 100%; min-height: 470px; object-fit: cover; opacity: .82; transition: transform .35s ease, opacity .35s ease; }
.hm-video-card:hover .hm-video-card__media { transform: scale(1.025); opacity: .68; }
.hm-carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.hm-arrow { width: 48px; height: 48px; border: 1px solid var(--hm-line); border-radius: 50%; color: var(--hm-ink); background: var(--hm-white); cursor: pointer; }
.hm-arrow:hover { border-color: var(--hm-green); color: var(--hm-green); }

.hm-avito-summary { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hm-avito-score { display: flex; align-items: center; gap: 14px; }
.hm-avito-score strong { font-size: 34px; letter-spacing: -.04em; }
.hm-stars { color: #ffb020; letter-spacing: 2px; white-space: nowrap; }
.hm-avito-source { color: #0b63ce; font-weight: 850; }
.hm-reviews { grid-auto-columns: minmax(320px, 40%); align-items: stretch; }
.hm-review { min-height: 360px; padding: 24px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); display: flex; flex-direction: column; background: var(--hm-white); }
.hm-review__head { display: flex; align-items: center; gap: 12px; }
.hm-review__avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--hm-mint); }
.hm-review__avatar--letter { display: grid; place-items: center; color: var(--hm-green-dark); font-weight: 850; }
.hm-review__meta strong, .hm-review__meta span { display: block; }
.hm-review__meta span { color: var(--hm-muted); font-size: 12px; }
.hm-review__rating { margin-top: 17px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--hm-muted); }
.hm-review__text { margin: 16px 0 0; color: #314c4b; font-size: 15px; white-space: pre-line; }
.hm-review__more { margin-top: auto; padding-top: 16px; border: 0; color: var(--hm-green-dark); background: none; text-align: left; font-size: 14px; font-weight: 800; cursor: pointer; }
.hm-review__photos { display: flex; gap: 7px; margin-top: 16px; }
.hm-review__photos img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
.hm-reviews-loading { padding: 30px; color: var(--hm-muted); background: var(--hm-white); border-radius: var(--hm-radius); }

.hm-objections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-line); }
.hm-objection { padding: clamp(26px, 4vw, 42px); background: var(--hm-white); }
.hm-objection h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.025em; }
.hm-objection p { margin: 0; color: var(--hm-muted); }

.hm-faq { max-width: 900px; }
.hm-faq details { border-top: 1px solid var(--hm-line); }
.hm-faq details:last-child { border-bottom: 1px solid var(--hm-line); }
.hm-faq summary { padding: 22px 42px 22px 0; position: relative; list-style: none; font-size: 21px; font-weight: 800; cursor: pointer; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--hm-green); font-size: 28px; line-height: 1; }
.hm-faq details[open] summary::after { content: "−"; }
.hm-faq details p { max-width: 760px; margin: 0; padding: 0 0 24px; color: var(--hm-muted); }

.hm-final { padding: clamp(70px, 10vw, 120px) 0; color: var(--hm-white); background: var(--hm-ink); }
.hm-final__grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(40px, 7vw, 90px); align-items: center; }
.hm-final h2 { font-size: clamp(41px, 5.8vw, 70px); }
.hm-final__copy > p { max-width: 660px; color: #c5d9d5; font-size: 20px; }
.hm-final .hm-leadbox { color: var(--hm-ink); }
.hm-footer { padding: 28px 0 94px; color: #b9ceca; background: var(--hm-ink); font-size: 12px; }
.hm-footer__inner { padding-top: 24px; border-top: 1px solid rgba(201,221,216,.2); display: flex; justify-content: space-between; gap: 24px; }
.hm-footer p { max-width: 790px; margin: 0; }
.hm-footer__policies { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(201,221,216,.2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
.hm-footer__policies a { color: #d4e4e1; font-size: 13px; line-height: 1.35; text-decoration: none; }
.hm-footer__policies a:hover { color: #8ce0d1; text-decoration: underline; text-underline-offset: 3px; }
.hm-footer__requisites { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(201,221,216,.2); display: grid; gap: 4px; color: #b9ceca; font-size: 12px; line-height: 1.45; }
.hm-footer__requisites strong { color: #e1f0ed; font-size: 13px; }
.hm-legal-header { border-bottom: 1px solid var(--hm-line); background: var(--hm-white); }
.hm-legal-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hm-legal-header__brand { color: var(--hm-ink); font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.hm-legal-header__inner > span { color: var(--hm-muted); font-size: 13px; }
.hm-legal-page { --gold: var(--hm-green); background: var(--hm-mint-soft); }
.hm-legal-page .page-content { min-height: calc(100vh - 150px); }
.hm-legal-page .policy-page { max-width: 900px; margin: 0 auto; padding: 34px clamp(20px, 5vw, 58px); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-white); box-shadow: var(--hm-shadow); }
.hm-legal-page .policy-page h1 { color: var(--hm-green) !important; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.hm-legal-page .policy-page h2 { color: var(--hm-green-dark) !important; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.hm-legal-page .policy-page p, .hm-legal-page .policy-page li { color: #314c4b; }
.hm-legal-footer { padding: 26px 0; color: #b9ceca; background: var(--hm-ink); font-size: 13px; }
.hm-legal-footer a { color: #d4e4e1; text-decoration: none; }
.hm-legal-footer a:hover { color: #8ce0d1; text-decoration: underline; text-underline-offset: 3px; }

.hm-mobile-cta { display: none !important; }
.hm-mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.hm-modal { position: fixed; inset: 0; z-index: 100; padding: 24px; display: none; place-items: center; background: rgba(4,18,18,.86); }
.hm-modal.is-open { display: grid; }
.hm-exit-modal { position: fixed; inset: 0; z-index: 110; padding: 20px; display: none; place-items: center; background: rgba(4,18,18,.42); backdrop-filter: blur(15px) saturate(1.15); -webkit-backdrop-filter: blur(15px) saturate(1.15); }
.hm-exit-modal.is-open { display: grid; }
.hm-exit-modal__dialog { position: relative; width: min(520px, 100%); padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(255,255,255,.52); border-radius: 28px; color: var(--hm-white); background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(223,243,238,.12)); box-shadow: 0 28px 90px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.hm-exit-modal__dialog::before { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -90px; border-radius: 50%; background: rgba(140,224,209,.2); filter: blur(8px); pointer-events: none; }
.hm-exit-modal__dialog .hm-kicker { color: #b8f1e7; }
.hm-exit-modal__dialog h2 { max-width: 430px; margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.hm-exit-modal__dialog > p:not(.hm-kicker) { max-width: 430px; margin: 18px 0 24px; color: #e2f3ef; font-size: 18px; }
.hm-exit-modal__form { max-width: 390px; }
.hm-exit-modal__form label { color: #f3fbf9; }
.hm-exit-modal__form input { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.92); }
.hm-exit-modal__form .hm-form__micro { color: #d0e8e3; }
.hm-exit-modal__form .hm-form__status { color: #c8fff4; }
.hm-exit-modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--hm-white); background: rgba(255,255,255,.14); font-size: 24px; cursor: pointer; }
.hm-exit-modal__close:hover { background: rgba(255,255,255,.28); }
.hm-phone-modal__dialog { width: min(440px, 100%); padding: 66px 34px 34px; }
.hm-phone-modal__form { max-width: none; }
.hm-phone-modal__input { min-height: 60px !important; text-align: center; font-size: 20px; }
.hm-phone-modal__form .hm-form__status:empty { display: none; }
.hm-modal__dialog { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 48px); border-radius: var(--hm-radius); overflow: hidden; background: #071818; }
.hm-modal__dialog video { width: 100%; max-height: calc(100dvh - 48px); object-fit: contain; }
.hm-modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--hm-ink); background: rgba(255,255,255,.94); font-size: 24px; cursor: pointer; }
.hm-toast { display: none !important; }

@media (max-width: 900px) {
  .hm-hero__grid, .hm-story, .hm-program, .hm-paste, .hm-final__grid { grid-template-columns: 1fr; }
  .hm-hero h1 { max-width: 760px; }
  .hm-leadbox { max-width: 620px; }
  .hm-pains { grid-template-columns: 1fr; }
  .hm-story__copy { order: -1; }
  .hm-video-shell { width: min(100%, 480px); margin-inline: auto; }
  .hm-method { grid-template-columns: 1fr; }
  .hm-method__rail { position: static; }
  .hm-carousel { grid-auto-columns: minmax(280px, 48%); }
  .hm-final .hm-leadbox { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hm-container { width: min(100% - 28px, 1180px); }
  .hm-topbar__inner { min-height: 60px; }
  .hm-topbar__note { display: none; }
  .hm-hero { padding-top: 34px; }
  .hm-hero__grid { gap: 34px; }
  .hm-hero h1 { font-size: clamp(40px, 12.6vw, 56px); }
  .hm-hero__lead { font-size: 18px; }
  .hm-leadbox { padding: 22px; }
  .hm-section { padding: 72px 0; }
  .hm-section__head { margin-bottom: 32px; }
  .hm-section h2 { font-size: 39px; }
  .hm-pain-main { min-height: 330px; padding: 28px; }
  .hm-method__rail strong { font-size: 56px; }
  .hm-step { grid-template-columns: 48px 1fr; gap: 12px; }
  .hm-step h3 { font-size: 23px; }
  .hm-carousel { grid-auto-columns: 84%; }
  .hm-reviews { grid-auto-columns: 88%; }
  .hm-avito-summary { align-items: flex-start; flex-direction: column; }
  .hm-objections { grid-template-columns: 1fr; }
  .hm-footer__inner { flex-direction: column; }
  .hm-legal-header__inner { min-height: 60px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .hm-legal-page .page-content { padding-top: 32px !important; }
  .hm-footer__policies { grid-template-columns: 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
