/* ===== Massage Union — стили ===== */
:root {
  --cream: #F4EEE9;
  --paper: #FBF7F3;
  --sand: #EADDD5;
  --line: #E2D5CD;
  --header: #F0E7E2;
  --wine: #7A1E35;
  --wine-2: #A3394F;
  --wine-dark: #5A1426;
  --night: #241014;
  --night-2: #1A0B0E;
  --rose: #E7B8AE;
  --gold: #D4B49A;
  --ink: #2A2124;
  --text: #5A4E49;
  --muted: #8A7B74;
  --font-head: 'Forum', Georgia, serif;
  --font-body: 'Golos Text', system-ui, -apple-system, sans-serif;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 400; }
p { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); font-weight: 800; }
.h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; }
.accent { color: var(--wine); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text); }
.dark { background: var(--night); color: var(--paper); }
.dark .eyebrow { color: var(--gold); }

/* ----- Кнопки ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 16px 32px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36,16,20,.25); }
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { color: var(--paper); }
.btn--night { background: var(--night); color: var(--paper); }
.btn--night:hover { color: var(--paper); }
.btn--rose { background: var(--rose); color: var(--night); font-weight: 800; }
.btn--rose:hover { color: var(--night); }
.btn--ghost-light { border-color: rgba(251,247,243,.5); color: var(--paper); }
.btn--ghost-light:hover { color: var(--paper); }
.btn--outline { border-color: var(--wine); color: var(--wine); }
.btn--light { background: var(--paper); color: var(--night); }
.btn--light:hover { color: var(--night); }
.btn--block { display: flex; width: 100%; }

.lift { transition: transform .3s, box-shadow .3s; }
.lift:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(36,16,20,.12); }

/* ----- Верхняя полоса и шапка ----- */
.topbar { background: var(--wine); color: #FBEFEA; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.topbar .sep { opacity: .5; }

.header { background: var(--header); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header__logo img { height: 58px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--wine); }
.header .btn { padding: 12px 24px; font-size: 15px; }

/* ----- Первый экран ----- */
.hero { position: relative; overflow: hidden; }
.hero__lines { position: absolute; left: 0; bottom: 40px; width: 100%; height: 220px; opacity: .22; pointer-events: none; }
.hero .container { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 112px; }
.hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.badge { align-self: flex-start; border: 1px solid rgba(212,180,154,.45); color: var(--gold); border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; }
.hero h1 span { color: var(--rose); }
.hero__sub { max-width: 560px; font-size: 18px; line-height: 1.6; color: #D9CBC4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 26px; border-top: 1px solid rgba(212,180,154,.25); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-head); font-weight: 400; font-size: 44px; line-height: 1; color: var(--gold); }
.stat span { font-size: 14px; color: #BCA9A1; }
.hero__media { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__photo { position: relative; width: 100%; max-width: 430px; }
.hero__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 16%; border-radius: 999px 999px 28px 28px; border: 1px solid rgba(212,180,154,.4); }
.hero__card { position: absolute; right: -18px; bottom: 44px; max-width: 220px; background: var(--paper); color: var(--night); border-radius: 20px; padding: 16px 20px; box-shadow: 0 24px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 2px; }
.hero__card b { font-size: 15px; }
.hero__card span { font-size: 13px; color: var(--text); line-height: 1.4; }

/* ----- Для кого ----- */
.audience .container { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.audience__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.audience__grid { flex: 999 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.card__num { font-family: var(--font-head); font-size: 46px; line-height: 1; color: var(--gold); }
.card b { font-size: 19px; }
.card span, .card p { font-size: 15px; line-height: 1.55; color: var(--text); }

/* ----- Почему мы ----- */
.why { padding-top: 0; }
.why .container { display: flex; flex-direction: column; gap: 40px; }
.why .h2 { max-width: 760px; }
.bento { display: flex; flex-wrap: wrap; gap: 18px; }
.bento > * { border-radius: 30px; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.bento__wide { flex: 2 1 520px; }
.bento__narrow { flex: 1 1 280px; }
.bento__big { min-height: 300px; justify-content: space-between; gap: 24px; padding: 40px; background: var(--night); color: var(--paper); }
.bento__big .num { font-family: var(--font-head); font-size: clamp(96px, 12vw, 160px); line-height: .8; color: var(--rose); }
.bento__big b { font-size: 22px; }
.bento__big p { font-size: 16px; color: #D9CBC4; line-height: 1.55; }
.bento__wine { min-height: 300px; justify-content: space-between; background: var(--wine); color: var(--paper); }
.bento__wine b { font-family: var(--font-head); font-weight: 400; font-size: 28px; }
.bento__wine p { font-size: 15px; color: #F3D9D2; line-height: 1.55; }
.bento__light { background: var(--paper); }
.bento__light b { font-size: 20px; }
.bento__light p { font-size: 15px; color: var(--text); line-height: 1.55; }
.bento__sand { background: var(--sand); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 40px; }
.bento__sand div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.bento__sand b { font-family: var(--font-head); font-weight: 400; font-size: 28px; }
.bento__sand p { font-size: 15px; color: var(--text); line-height: 1.55; }

/* ----- Преподаватель ----- */
.teacher .container { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.teacher__photo { flex: 1 1 380px; min-width: 0; max-width: 480px; position: relative; }
.teacher__photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(212,180,154,.4); border-radius: 30px; }
.teacher__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 30px; }
.teacher__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.teacher h2 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; }
.teacher h2 span { color: var(--rose); }
.teacher__quote { font-family: var(--font-head); font-size: 26px; line-height: 1.4; color: #EADBD4; }
.teacher__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid rgba(212,180,154,.25); }
.teacher__stats div { padding: 22px 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.teacher__stats b { font-family: var(--font-head); font-weight: 400; font-size: 50px; line-height: 1; color: var(--gold); }
.teacher__stats span { font-size: 14px; color: #BCA9A1; }
.teacher__note { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #D9CBC4; }

/* ----- Шаги ----- */
.steps .container { display: flex; flex-direction: column; gap: 52px; }
.row-head { display: flex; flex-wrap: wrap; gap: 20px 60px; align-items: flex-end; justify-content: space-between; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 2px solid var(--c, var(--wine)); }
.step small { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--c, var(--wine)); }
.step b { font-size: 19px; }
.step span { font-size: 15px; color: var(--text); line-height: 1.55; }

/* ----- Программа (интерактив) ----- */
.program { background: var(--sand); }
.program .container { display: flex; flex-direction: column; gap: 40px; }
.program__intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--paper); padding: 6px; border-radius: 999px; }
.tab { font: inherit; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; padding: 13px 22px; min-height: 44px; border-radius: 999px; background: transparent; color: var(--ink); transition: background .3s, color .3s; }
.tab.is-active { background: var(--wine); color: var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { border-radius: 20px; padding: 20px 22px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--cream); color: var(--muted); opacity: .55; transition: background .35s, color .35s, opacity .35s; }
.tile__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.tile__top span:last-child { opacity: .75; }
.tile__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.tile.is-in { background: var(--night); color: var(--paper); opacity: 1; }
.tile.is-new { background: var(--wine); color: var(--paper); opacity: 1; }

/* ----- Таблица курсов ----- */
.courses .container { display: flex; flex-direction: column; gap: 44px; }
.center { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.table-wrap { overflow-x: auto; border-radius: 30px; background: var(--paper); box-shadow: 0 30px 70px rgba(36,16,20,.07); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.compare thead th { padding: 36px 20px; vertical-align: top; text-align: left; font-weight: 400; }
.compare thead th:first-child { padding-left: 32px; width: 34%; vertical-align: bottom; font-weight: 600; color: var(--muted); font-size: 14px; }
.compare tbody tr { border-top: 1px solid var(--sand); }
.compare tbody th { text-align: left; padding: 18px 32px; font-weight: 600; }
.compare td { padding: 18px 20px; font-weight: 700; }
.compare .col-pro { background: #F6E9E6; }
.compare .col-vip { background: #F1EAE6; }
.compare thead .col-pro { background: var(--wine); color: var(--paper); }
.compare thead .col-vip { background: var(--night); color: var(--paper); }
.compare .yes { color: var(--wine); font-weight: 800; }
.compare .no { color: #B9A9A2; font-weight: 400; }
.course-name { font-family: var(--font-head); font-size: 28px; line-height: 1.1; }
.price { margin-top: 10px; font-size: 28px; font-weight: 800; color: var(--wine); }
.old { font-size: 15px; color: var(--muted); }
.col-pro .price { color: #FBEFEA; }
.col-pro .old { color: var(--rose); }
.col-vip .price { color: var(--gold); }
.col-vip .old { color: #A8968E; }
.pill { display: inline-block; background: var(--rose); color: var(--night); font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.compare tr.actions td { padding: 24px 20px; }
.compare .btn { padding: 14px; }

/* ----- Рассрочка ----- */
.kaspi { padding: 0 0 112px; }
.kaspi__box { position: relative; overflow: hidden; background: var(--wine); color: var(--paper); border-radius: 36px; padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.kaspi__rings { position: absolute; right: -80px; top: -80px; opacity: .14; pointer-events: none; }
.kaspi__text { position: relative; flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.kaspi__text .eyebrow { color: var(--rose); }
.kaspi__text h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.04; }
.kaspi__text h2 span { color: var(--rose); }
.kaspi__text p { font-size: 16px; color: #F3D9D2; line-height: 1.6; }
.kaspi__grid { position: relative; flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.pay { background: rgba(251,247,243,.1); border: 1px solid rgba(251,247,243,.2); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pay span { font-size: 14px; color: #F3D9D2; }
.pay b { font-family: var(--font-head); font-weight: 400; font-size: 40px; line-height: 1; }
.pay small { font-size: 13px; color: var(--rose); }
.pay--hl { background: var(--paper); color: var(--night); border-color: var(--paper); }
.pay--hl span, .pay--hl small { color: var(--text); }
.pay--hl b { color: var(--wine); }

/* ----- Документы ----- */
.docs { padding-top: 0; }
.docs .container { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.docs__visual { flex: 1 1 420px; min-width: 0; position: relative; height: 380px; }
.paper { position: absolute; width: 62%; aspect-ratio: 1.414; border: 1px solid var(--line); border-radius: 10px; }
.paper--back { left: 6%; top: 40px; background: var(--paper); transform: rotate(-8deg); box-shadow: 0 20px 40px rgba(36,16,20,.08); }
.paper--front { left: 22%; top: 10px; background: #FFFDFB; transform: rotate(4deg); box-shadow: 0 24px 50px rgba(36,16,20,.1); padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.paper__frame { width: 70%; border: 1px solid var(--gold); padding: 18px 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.paper__frame b { font-family: var(--font-head); font-weight: 400; font-size: 26px; letter-spacing: .2em; color: var(--wine); }
.paper__frame span { font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.paper__frame i { display: block; width: 60%; height: 1px; background: var(--gold); margin-top: 10px; }
.docs__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.docs__list div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docs__list b { font-size: 16px; font-weight: 600; }
.docs__list span { font-size: 15px; color: var(--text); text-align: right; }

/* ----- FAQ ----- */
.faq { background: var(--paper); }
.faq .container { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.faq__intro a { font-weight: 800; }
.faq__list { flex: 999 1 560px; min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; background: var(--sand); color: var(--wine); transition: background .2s, color .2s; }
.faq details[open] summary::after { content: "−"; background: var(--wine); color: var(--paper); }
.faq details p { padding: 0 56px 24px 0; font-size: 16px; line-height: 1.65; color: var(--text); }

/* ----- Заявка и контакты ----- */
.signup { position: relative; overflow: hidden; }
.signup__line { position: absolute; left: 0; top: 30px; width: 100%; height: 200px; opacity: .18; pointer-events: none; }
.signup .container { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.signup__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.signup h2 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; }
.signup h2 span { color: var(--rose); }
.signup__text > p { font-size: 17px; line-height: 1.6; color: #D9CBC4; }
.contacts { border-top: 1px solid rgba(212,180,154,.25); }
.contacts div { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(212,180,154,.25); }
.contacts small { width: 110px; flex: none; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.contacts a, .contacts span { font-size: 16px; line-height: 1.5; color: var(--paper); text-decoration: none; font-weight: 600; }
.contacts span a { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--rose); text-decoration: underline; }

.form { flex: 1 1 420px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 32px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.form__title { font-family: var(--font-head); font-size: 32px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.form input, .form select { font: inherit; font-weight: 400; font-size: 16px; padding: 16px 18px; border: 1px solid #D8C6BC; border-radius: 14px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.form__error { font-size: 14px; color: #9B1C1C; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ----- Подвал ----- */
.footer { background: var(--night-2); color: #BCA9A1; font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand b { font-family: var(--font-head); font-weight: 400; font-size: 28px; letter-spacing: .2em; color: var(--paper); }
.footer__brand span { letter-spacing: .2em; font-size: 11px; color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--rose); }

/* ----- Адаптив ----- */
@media (max-width: 900px) {
  .nav { display: none; }
  .section { padding: 80px 0; }
  .kaspi, .why .container, .docs { padding-bottom: 80px; }
  .hero .container { padding-top: 56px; padding-bottom: 80px; gap: 48px; }
  .hero__card { right: 8px; }
}
@media (max-width: 560px) {
  .header__logo img { height: 44px; }
  .hero__stats { gap: 22px; }
  .stat b { font-size: 34px; }
  .bento > *, .bento__big, .bento__sand { padding: 28px; }
  .docs__visual { height: 260px; }
  .faq details p { padding-right: 0; }
  .contacts div { flex-direction: column; gap: 6px; }
}
