/* Sushi Academy — стилі сайту (mobile first) */
:root {
  --bg: #0B0B0B;
  --bg-2: #121212;
  --card: #161616;
  --card-2: #1D1D1D;
  --line: #262626;
  --line-2: #333;
  --white: #fff;
  --text: #EDEDED;
  --muted: #A6A6A6;
  --dim: #7A7A7A;
  --red: #E3261B;
  --red-dark: #C11D14;
  --red-text: #FF4D3D;
  --r: 12px;
  --header-h: 104px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Montserrat', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); }
a:hover { color: #FF7466; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 64px; }
.h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(25px, 6.6vw, 42px); line-height: 1.15; color: var(--white); letter-spacing: -.01em; }
.h2 em { font-style: normal; color: var(--red-text); }
.head { margin-bottom: 26px; max-width: 760px; }
.head p { color: var(--muted); margin-top: 12px; }
.head--center { text-align: center; margin-left: auto; margin-right: auto; }
.red { color: var(--red-text); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 10px; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none; letter-spacing: .01em; transition: background-color .2s, border-color .2s, color .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--main { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px rgba(227, 38, 27, .7); }
.btn--main:hover { background: var(--red-dark); color: #fff; }
.btn--line { background: transparent; border: 1.5px solid #3D3D3D; color: var(--white); }
.btn--line:hover { border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
.cta { margin-top: 28px; }
.cta .btn { width: 100%; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.promo { background: var(--red); color: #fff; }
.promo__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding-top: 5px; padding-bottom: 5px; }
.promo__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; font-size: 13px; }
.promo__txt b { font-weight: 700; white-space: nowrap; }
.promo__txt s { opacity: .75; font-weight: 400; }
.promo__time { font-variant-numeric: tabular-nums; }
.promo__btn { flex-shrink: 0; background: #fff; color: var(--red); min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; box-shadow: none; }
.promo__btn:hover { background: #F2F2F2; color: var(--red-dark); }
.nav { border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.logo { display: none; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo span { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .06em; }
.nav__links { flex: 1 1 auto; min-width: 0; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); border-color: var(--red); }
.lang { flex-shrink: 0; display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.lang a.is-current { background: var(--white); color: #000; }
.lang a:not(.is-current):hover { color: var(--white); }
.nav__cta { display: none; }

/* ---------- Перший екран ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); min-height: calc(100svh - var(--header-h)); display: flex; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, .4) 0%, rgba(11, 11, 11, .2) 55%, rgba(11, 11, 11, 0) 75%, rgba(11, 11, 11, .35) 100%); }
.hero__in { position: relative; z-index: 2; padding-top: 26px; padding-bottom: 58vw; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.hero__tag { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__tag::before { content: ""; width: 22px; height: 2px; background: var(--red); flex-shrink: 0; }
.hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 8.6vw, 60px); line-height: 1.07; color: var(--white); letter-spacing: -.015em; }
.hero__title span { color: var(--red-text); }
.hero__lead { color: #D6D6D6; max-width: 540px; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border-radius: var(--r); background: rgba(18, 18, 18, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); max-width: 540px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price__now { font-family: var(--font-head); font-weight: 800; font-size: 36px; line-height: 1; color: var(--white); }
.price__old { font-size: 18px; color: var(--dim); text-decoration: line-through; }
.price__note { font-size: 14px; font-weight: 600; color: var(--red-text); }
.timer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.timer__cells { display: flex; gap: 4px; }
.timer__cell { min-width: 40px; padding: 5px 6px; border-radius: 6px; background: #262626; color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; font-size: 14px; }
.timer__cell small { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 1px; }
.offer__btns { display: flex; flex-direction: column; gap: 10px; }
.hero .offer__btns .btn--line { display: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: #D6D6D6; }
.trust span, .trust a { display: inline-flex; align-items: center; gap: 7px; color: #D6D6D6; text-decoration: none; }
.trust a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.trust svg { color: var(--red-text); flex-shrink: 0; }

/* ---------- Цифри ---------- */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding-top: 26px; padding-bottom: 14px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.15; color: var(--white); }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }
.stats__note { font-size: 12px; color: var(--dim); padding-bottom: 18px; }

/* ---------- Каруселі (телефон) ---------- */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px; scroll-padding: 0 16px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 84%; scroll-snap-align: start; }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: #3A3A3A; cursor: pointer; transition: width .25s var(--ease), background-color .25s; }
.dots button.is-active { width: 20px; background: var(--red); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, opacity .2s; }
.arrow:hover { border-color: #fff; }
.arrow:disabled { opacity: .3; cursor: default; }

/* ---------- Картки ---------- */
.card { border-radius: var(--r); background: var(--card); overflow: hidden; }
.card__img { width: 100%; height: 190px; object-fit: cover; }
.card__body { padding: 18px 18px 20px; }
.card__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--white); }
.card__text { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Дві цілі */
.paths { display: grid; gap: 12px; }
.path { position: relative; padding: 24px 20px; border-radius: var(--r); background: var(--card); overflow: hidden; }
.path__num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--red-text); letter-spacing: .08em; }
.path h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); margin: 6px 0 16px; }
.path ul { display: flex; flex-direction: column; gap: 12px; }
.path li { padding-left: 18px; position: relative; font-size: 15px; color: var(--muted); }
.path li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--red); border-radius: 2px; }
.path li b { color: var(--white); font-weight: 600; }

/* Навички */
.skill { background: #000; }
.skill__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.skill__body { padding: 16px 18px 20px; }
.skill__list { margin-top: 8px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

/* Автор */
.author { display: grid; gap: 26px; }
.author__photo { position: relative; max-width: 460px; }
.author__photo img { width: 100%; aspect-ratio: 763 / 911; object-fit: cover; border-radius: var(--r); }
.author__badge { position: absolute; left: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--red); color: #fff; }
.author__badge b { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1.1; }
.author__badge span { font-size: 13px; opacity: .9; }
.author__text p { color: #D0D0D0; margin-top: 14px; }
.author__text p + p { color: var(--muted); }
.author__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.author__list li { padding-left: 18px; position: relative; font-size: 15px; }
.author__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--red); border-radius: 2px; }

/* Програма */
.program { background: var(--bg-2); margin-top: 64px; padding: 56px 0 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modules { display: flex; flex-direction: column; gap: 10px; }
.module { border-radius: var(--r); background: var(--card-2); }
.module summary { list-style: none; cursor: pointer; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; -webkit-tap-highlight-color: transparent; }
.module summary::-webkit-details-marker { display: none; }
.module__meta { display: flex; flex-direction: column; gap: 2px; }
.module__num { font-size: 13px; font-weight: 700; color: var(--red-text); }
.module__title { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--white); }
.module__level { font-size: 13px; color: var(--dim); }
.module__toggle { width: 34px; height: 34px; border-radius: 8px; background: #2A2A2A; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s var(--ease); }
.module[open] .module__toggle { transform: rotate(45deg); }
.lessons { padding: 0 18px 18px; display: flex; flex-direction: column; }
.lesson { padding: 12px 0; border-top: 1px solid #2A2A2A; }
.lesson b { display: block; font-weight: 600; color: var(--white); }
.lesson span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.lesson i { display: block; font-style: normal; font-size: 14px; color: var(--red-text); margin-top: 4px; }
.bonus { margin-top: 10px; padding: 20px 18px; border-radius: var(--r); background: linear-gradient(135deg, #2A0F0C, #1A0B09); border: 1px solid #4A1A14; }
.bonus h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--white); }
.bonus ul { margin-top: 12px; display: grid; gap: 8px; font-size: 15px; color: #DADADA; }
.bonus li { padding-left: 18px; position: relative; }
.bonus li::before { content: "+"; position: absolute; left: 0; top: -1px; color: var(--red-text); font-weight: 800; }

/* Відео */
.format { display: grid; gap: 26px; }
.video { position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 11; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(227, 38, 27, .25); transition: transform .2s var(--ease); }
.video__btn:hover .video__play { transform: scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; }
.format__list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.format__list li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.format__list svg { color: var(--red-text); flex-shrink: 0; margin-top: 2px; }
.format__list b { color: var(--white); font-weight: 600; }

/* Тарифи */
.tariffs .carousel { padding-top: 16px; }
.tariffs .carousel > * { flex-basis: 86%; }
.tariff { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px 20px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.tariff--hot { border: 2px solid var(--red); background: #1A0F0E; }
.tariff__flag { position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.tariff__name { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--white); }
.tariff__desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tariff__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tariff__now { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1; color: var(--white); }
.tariff__old { font-size: 16px; color: var(--dim); text-decoration: line-through; }
.tariff__list { display: flex; flex-direction: column; gap: 9px; font-size: 15px; flex-grow: 1; }
.tariff__list li { display: flex; gap: 10px; }
.tariff__list svg { color: var(--red-text); flex-shrink: 0; margin-top: 3px; }
.guarantee { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--card); }
.guarantee svg { color: var(--red-text); flex-shrink: 0; }
.guarantee b { display: block; color: var(--white); margin-bottom: 2px; }
.guarantee p { font-size: 15px; color: var(--muted); }
.steps { margin-top: 36px; }
.steps h3 { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.steps ol { display: grid; gap: 0; border-left: 2px solid #2E2E2E; margin-left: 15px; }
.step { position: relative; padding: 0 0 20px 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: attr(data-n); position: absolute; left: -16px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step b { display: block; color: var(--white); padding-top: 4px; }
.step span { font-size: 15px; color: var(--muted); }
.steps__contact { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Відгуки */
.reviews-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.rating { display: flex; align-items: center; gap: 12px; }
.rating b { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--white); }
.rating span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.review { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who img { width: 48px; height: 48px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review__name { font-weight: 700; color: var(--white); display: block; }
.review__meta { font-size: 13px; color: var(--dim); }
.review__stars { display: flex; gap: 2px; color: #F5B301; }
.review__text { font-size: 15px; color: #D4D4D4; flex-grow: 1; }

/* FAQ */
.faq { max-width: 860px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; font-size: 16px; font-weight: 600; color: var(--white); min-height: 56px; -webkit-tap-highlight-color: transparent; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { color: var(--red-text); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Фінальний блок */
.final { position: relative; margin: 64px 0; border-radius: 16px; overflow: hidden; background: var(--red); color: #fff; display: grid; }
.final__body { position: relative; z-index: 2; padding: 30px 20px; display: flex; flex-direction: column; gap: 14px; }
.final .h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .9); }
.final .btn--main { background: #fff; color: var(--red); box-shadow: none; }
.final .btn--main:hover { background: #F2F2F2; color: var(--red-dark); }
.final .btn--line { border-color: rgba(255, 255, 255, .6); }
.final__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.final__cloud { position: absolute; right: -60px; top: -30px; width: 260px; opacity: .18; z-index: 1; filter: brightness(0) invert(1); pointer-events: none; }

/* Футер */
.footer { border-top: 1px solid var(--line); background: #070707; font-size: 14px; }
.footer__grid { display: grid; gap: 26px; padding-top: 40px; padding-bottom: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col b { color: var(--white); font-weight: 700; }
.footer__col a { text-decoration: none; color: var(--text); }
.footer__col a:hover { color: var(--red-text); }
.footer__col span { color: var(--dim); }
.footer .logo { display: inline-flex; }
.footer__bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; color: var(--dim); font-size: 13px; }

/* ---------- Поп-ап ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .45s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box { position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; background: #fff; color: #161616; border-radius: 18px 18px 0 0; transform: translateY(48px); opacity: 0; transition: transform .55s var(--ease), opacity .45s var(--ease); }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__top { position: relative; background: var(--red); color: #fff; padding: 22px 20px 18px; overflow: hidden; }
.modal__top img.cloud { position: absolute; right: -40px; top: -24px; width: 190px; opacity: .2; filter: brightness(0) invert(1); pointer-events: none; }
.modal__grab { position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal__close:hover { background: rgba(0, 0, 0, .3); }
.modal__title { position: relative; font-family: var(--font-head); font-size: 21px; font-weight: 800; line-height: 1.2; padding-right: 40px; }
.modal__price { position: relative; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.modal__price b { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1; }
.modal__price s { opacity: .75; }
.modal__price span { font-size: 13px; opacity: .95; font-variant-numeric: tabular-nums; }
.modal__gift { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.modal__body { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
.modal__lead { font-size: 15px; color: #444; margin-bottom: 14px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; padding: 0; }
.input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #DADADA; background: #fff; color: #111; font-family: var(--font); font-size: 17px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #9A9A9A; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 38, 27, .15); }
.input.is-invalid { border-color: var(--red); background: #FFF6F5; }
.field__error { display: block; font-size: 13px; color: var(--red); margin-top: 4px; }
.field__error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 4px; border-radius: 10px; border: 1.5px solid #DADADA; font-size: 14px; font-weight: 600; color: #222; text-align: center; line-height: 1.2; transition: all .2s; }
.seg span small { font-weight: 400; font-size: 12px; color: #777; }
.seg input:checked + span { border-color: var(--red); background: #FFF1EF; color: var(--red-dark); }
.seg input:checked + span small { color: var(--red-dark); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.seg--sm span { min-height: 42px; }
.form__error { display: none; font-size: 14px; color: var(--red); }
.form__error.is-shown { display: block; }
.form__error a { color: var(--red-dark); }
.form .btn--main { margin-top: 4px; min-height: 56px; font-size: 16px; }
.form__safe { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; line-height: 1.4; }
.form__safe svg { color: #1F9D55; flex-shrink: 0; margin-top: 1px; }
.form__note { font-size: 12px; color: #888; line-height: 1.4; }
.form__note a { color: #555; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Поява блоків */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ========== ≥ 480px ========== */
@media (min-width: 480px) {
  .wrap { padding: 0 24px; }
  .carousel { margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding: 0 24px; }
  .carousel > * { flex-basis: 70%; }
  .offer { padding: 22px; }
  .offer__btns { flex-direction: row; }
  .hero .offer__btns .btn--line { display: inline-flex; }
  .offer__btns .btn { flex: 1 1 200px; }
  .cta .btn { width: auto; }
}

/* ========== ≥ 768px ========== */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .section { padding-top: 96px; }
  .head { margin-bottom: 36px; }
  .hero__in { padding-top: 56px; padding-bottom: 46vw; }
  .hero__lead { font-size: 18px; }
  .price__now { font-size: 42px; }
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 34px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 14px; }
  .carousel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .carousel-ui { display: none; }
  .tariffs .carousel { padding-top: 16px; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card__img { height: 220px; }
  .author { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .program { margin-top: 96px; padding: 88px 0; }
  .format { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .reviews-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .final { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; margin: 96px 0; }
  .final__body { padding: 48px; }
  .final__img { height: 100%; aspect-ratio: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { align-items: center; padding: 24px; }
  .modal__box { max-width: 460px; border-radius: 18px; transform: translateY(24px) scale(.97); }
  .modal__grab { display: none; }
  .modal__top { padding: 26px 26px 20px; }
  .modal__body { padding: 22px 26px 24px; }
}

/* ========== ≥ 1024px ========== */
@media (min-width: 1024px) {
  :root { --header-h: 116px; }
  .promo__in { justify-content: center; gap: 24px; min-height: 44px; }
  .promo__txt { flex-direction: row; gap: 14px; font-size: 14px; }
  .nav__in { min-height: 72px; gap: 28px; }
  .logo { display: inline-flex; }
  .nav__links { justify-content: center; overflow: visible; mask-image: none; -webkit-mask-image: none; padding: 0; gap: 26px; }
  .nav__cta { display: inline-flex; min-height: 44px; padding: 0 18px; font-size: 14px; }
  .hero { min-height: 640px; align-items: center; }
  .hero__bg img { object-position: right bottom; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(11, 11, 11, .97) 0%, rgba(11, 11, 11, .88) 38%, rgba(11, 11, 11, .2) 65%, rgba(11, 11, 11, 0) 100%); }
  .hero__in { padding-top: 80px; padding-bottom: 96px; max-width: 1180px; margin: 0 auto; }
  .hero__in > * { max-width: 620px; }
  .hero__lead { font-size: 19px; }
  .offer__btns .btn { flex: 0 1 auto; }
  .carousel { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .carousel--4 { --cols: 4; }
  .carousel--2 { --cols: 2; }
  .path { padding: 34px; }
  .skill { display: flex; align-items: center; }
  .skill__img { width: 50%; }
  .modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .module summary { cursor: default; padding: 24px 24px 10px; }
  .module__toggle { display: none; }
  .lessons { padding: 0 24px 22px; }
  .bonus { padding: 26px; }
  .bonus ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .tariff { padding: 30px 26px 26px; }
  .steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; border-top: 2px solid #2E2E2E; margin: 15px 0 0; gap: 24px; }
  .step { padding: 26px 0 0; }
  .step::before { left: 0; top: -16px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
  .final__cloud { width: 380px; right: auto; left: 38%; top: -60px; }
}
