/* Программа лояльности: страница условий, блок на главной, счёт в кабинете. */
.loy-demo-sum, .loy-percent, .loy-teaser-levels strong, .loy-account-sum, .loy-num { font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.loy-kick { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.loy-hero .loy-kick { color: var(--gold-soft); }
.loy-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.loy-demo { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(196, 165, 116, .4); }
.loy-demo-sum { font-family: "Cormorant Garamond", serif; font-size: 64px; line-height: 1; color: var(--gold-soft); }
.loy-demo-note { font-size: 13px; color: rgba(244, 238, 228, .75); }
.loy-bar { height: 4px; background: rgba(244, 238, 228, .18); }
.loy-bar i { display: block; height: 100%; background: var(--gold-soft); }
.loy-chip { align-self: flex-start; margin-top: 6px; padding: 5px 10px; border: 1px solid rgba(196, 165, 116, .55); font-size: 12px; color: var(--gold-soft); }
.loy-sec { margin-top: 56px; }
.loy-sec h2 { margin: 0 0 12px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.loy-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.loy-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.loy-card { position: relative; padding: 24px 22px; background: #fffdf8; border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.loy-card h3 { margin: 6px 0 8px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 25px; }
.loy-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.loy-num { font-family: "Cormorant Garamond", serif; font-size: 15px; color: var(--gold); }
.loy-when { font-size: 12px; font-weight: 600; color: var(--gold); }
.loy-percent { display: block; margin-top: 8px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 60px; line-height: 1; }
.loy-level.is-accent { background: var(--deep); border-color: var(--deep); border-top-color: var(--gold-soft); color: #f4eee4; }
.loy-level.is-accent p { color: rgba(244, 238, 228, .75); }
.loy-level.is-accent .loy-when, .loy-level.is-accent .loy-percent { color: var(--gold-soft); }
.loy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.loy-rules { list-style: none; margin: 0; padding: 0; }
.loy-rules li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.loy-rules li::before { content: "✓"; margin-right: 10px; font-weight: 800; color: var(--gold); }
.loy-soon { position: absolute; top: 18px; right: 18px; padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); background: var(--deep); }
.loy-foot { margin-top: 40px; }
/* кабинет и оплата */
.loy-account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.loy-account-head h2 { margin-top: 0; }
.loy-account-sum { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 52px; line-height: 1; color: var(--gold); }
.loy-account-level { margin: 8px 0 12px; font-size: 14px; }
.loy-history { list-style: none; margin: 0; padding: 0; }
.loy-history li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.loy-history b { color: #2f7d4f; }
.loy-history b.is-minus { color: #8a3b2e; }
.lesson-bonus { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.footer-grid:has(> div:nth-child(4)) { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 860px) {
    .loy-hero-grid, .loy-grid3, .loy-grid2, .loy-split { grid-template-columns: 1fr; }
    .footer-grid:has(> div:nth-child(4)) { grid-template-columns: 1fr; }
}
/* «Мои бонусы» и главная ученика */
.bon-kicker { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bon-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 34px; margin-top: 8px; }
.bon-side { position: sticky; top: var(--bon-offset, 16px); align-self: start; display: grid; gap: 4px; }
.bon-side > a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.bon-side > a:hover { color: var(--text); }
.bon-side > a.is-active { color: var(--text); background: #fffdf8; border-left-color: var(--gold); }
.bon-side-note { margin-top: 18px; padding: 16px; background: var(--deep); color: rgba(244, 238, 228, .8); font-size: 13px; line-height: 1.5; }
.bon-side-note strong { display: block; margin-bottom: 6px; color: var(--gold-soft); }
.bon-crumbs { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.bon-crumbs span { padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); background: var(--deep); }
.bon-title { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(38px, 5vw, 54px); line-height: 1.05; }
.bon-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 24px; }
.bon-balance { padding: 28px 30px; color: #f4eee4; background: radial-gradient(90% 120% at 90% 0%, rgba(196, 165, 116, .22), transparent 60%), linear-gradient(160deg, #24201a, #14110e); border: 1px solid rgba(196, 165, 116, .45); }
.bon-balance .bon-kicker { color: var(--gold-soft); }
.bon-sum { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(60px, 7vw, 84px); line-height: 1; color: var(--gold-soft); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.bon-sum small { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 600; color: #f4eee4; }
.bon-rate { margin: 10px 0 22px; font-size: 14px; color: rgba(244, 238, 228, .78); }
.bon-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bon-balance .btn-ghost { color: #f4eee4; border-color: rgba(244, 238, 228, .45); background: transparent; }
.bon-level, .bon-panel, .bon-tier { padding: 24px 24px; background: #fffdf8; border: 1px solid var(--border); }
.bon-level h2 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 36px; }
.bon-bar { height: 6px; margin: 14px 0 8px; background: #e7dfd0; }
.bon-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.bon-bar-note { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13px; }
.bon-sec { margin-top: 44px; }
.bon-sec > h2, .sh-head h2 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; }
.bon-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.bon-tier h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 24px; }
.bon-tier em { padding: 2px 8px; font-family: Manrope, sans-serif; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--gold-soft); background: var(--deep); }
.bon-tier strong { display: block; margin: 10px 0 4px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 48px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.bon-tier span { font-size: 13px; color: var(--muted); }
.bon-tier.is-current { border: 2px solid var(--gold); }
.bon-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.bon-panel { position: relative; }
.bon-panel h3 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 25px; }
.bon-flow { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.bon-flow i { font-style: normal; color: var(--gold); }
.bon-flow div { flex: 1; padding: 12px 8px; text-align: center; background: var(--paper); }
.bon-flow strong { display: block; font-size: 17px; }
.bon-flow span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.bon-history { list-style: none; margin: 10px 0 0; padding: 0; }
.bon-history li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.bon-history strong { display: block; font-size: 14px; }
.bon-history span { font-size: 12.5px; color: var(--muted); }
.bon-history b { color: #2f7d4f; }
.bon-history b.is-minus { color: #8a3b2e; }
.bon-soon { position: absolute; top: 16px; right: 16px; padding: 3px 9px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); background: var(--deep); }
@media (max-width: 860px) {
    .bon-shell, .bon-top, .bon-two, .bon-levels, .lp-hero { grid-template-columns: 1fr; }
    .lp-band { flex-wrap: wrap; }
    .lp-band p { flex-basis: 100%; }
    .lp-cta { flex-direction: column; align-items: flex-start; }
    .lp-hero { padding: 30px 22px; }
    .lp-float { display: none; }
    .bon-flow { flex-wrap: wrap; }
}
.bon-balance .btn:not(.btn-ghost), .lp-gold.btn { color: #1a1408; background: linear-gradient(180deg, #f3dfae, #d9b56a 55%, #b68d45); border-color: #b68d45; }
/* Программа лояльности на главной, после преподавателей */
.lp { margin-top: 56px; }
.lp-kick { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.lp-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; padding: 46px 44px; color: #f4eee4; background: radial-gradient(70% 110% at 85% 0%, rgba(196, 165, 116, .2), transparent 60%), linear-gradient(170deg, #1c1814, #0e0c0a); }
.lp-hero h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; color: #f4eee4; }
.lp-hero h2 b { font-weight: inherit; color: var(--gold-soft); }
.lp-hero p { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: rgba(244, 238, 228, .82); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-hero .btn-ghost { color: #f4eee4; border-color: rgba(244, 238, 228, .45); background: transparent; }
.lp-card-wrap { position: relative; }
.lp-card { display: block; padding: 24px 26px; color: #f4eee4; text-decoration: none; background: rgba(0, 0, 0, .35); border: 1px solid rgba(196, 165, 116, .45); transform: rotate(1.5deg); transition: transform .2s; }
a.lp-card:hover { transform: rotate(0); }
.lp-card strong { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 68px; line-height: 1; color: var(--gold-soft); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.lp-card > span:not(.lp-kick) { display: block; font-size: 14px; }
.lp-card .bon-bar { background: rgba(244, 238, 228, .18); }
.lp-float { position: absolute; top: -14px; right: -10px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #1a1408; background: linear-gradient(180deg, #f3dfae, #d9b56a); transform: rotate(4deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.lp-band { display: flex; align-items: center; gap: 14px; padding: 18px 44px; color: #f4eee4; background: #24201a; border-top: 1px solid rgba(196, 165, 116, .3); }
.lp-band p { flex: 1; margin: 0; font-family: "Cormorant Garamond", serif; font-size: 24px; }
.lp-band div { padding: 8px 16px; text-align: center; border: 1px solid rgba(196, 165, 116, .35); }
.lp-band strong { display: block; color: var(--gold-soft); }
.lp-band span { font-size: 11.5px; color: rgba(244, 238, 228, .75); }
.lp-ways { margin-top: 40px; }
.lp-ways h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(28px, 3.6vw, 38px); }
.lp-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding: 30px 34px; color: #f4eee4; background: var(--deep); }
.lp-cta h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(24px, 3vw, 32px); color: #f4eee4; }
.lp-cta p { margin: 6px 0 0; font-size: 14.5px; color: rgba(244, 238, 228, .8); }
@media (max-width: 860px) {
    .lp-hero { grid-template-columns: 1fr; padding: 30px 22px; }
    .lp-band { flex-wrap: wrap; padding: 18px 22px; }
    .lp-band p { flex-basis: 100%; }
    .lp-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .lp-card { transform: none; }
    .lp-float { display: none; }
}
/* «Мои бонусы»: разделы не уходят под шапку, меню едет плавно */
html:has(.is-bonuses) { scroll-behavior: smooth; }
.is-bonuses #balance, .is-bonuses #levels, .is-bonuses #history, .is-bonuses #soon { scroll-margin-top: var(--bon-offset, 90px); }
.bon-side-home { margin-bottom: 8px; font-size: 13px !important; }
@media (prefers-reduced-motion: reduce) { html:has(.is-bonuses) { scroll-behavior: auto; } }
@media (max-width: 860px) {
    .bon-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .bon-side > a { flex: none; padding: 8px 12px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
    .bon-side > a.is-active { border-bottom-color: var(--gold); }
    .bon-side-home, .bon-side-note { display: none !important; }
}
/* Главная кнопка программы лояльности */
.page .lp .lp-gold.lp-main { display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px; font-size: 15px; font-weight: 800; letter-spacing: .06em; color: #1a1408; background: linear-gradient(180deg, #ffeec2, #e8c478 50%, #c0924a); border: 1px solid #f3dfae; box-shadow: 0 0 0 3px rgba(232, 196, 120, .25), 0 12px 30px rgba(232, 196, 120, .35); transition: transform .15s, box-shadow .15s; }
.page .lp .lp-gold.lp-main:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(232, 196, 120, .4), 0 16px 36px rgba(232, 196, 120, .5); }
.lp-main span { transition: transform .15s; }
.lp-main:hover span { transform: translateX(4px); }
@media (max-width: 860px) { .page .lp .lp-gold.lp-main { width: 100%; justify-content: center; } }
.lp { margin-bottom: 56px; }
.lp-actions .btn-ghost { display: inline-flex; align-items: center; }
.loy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.masthead .loy-actions .btn-ghost { display: inline-flex; align-items: center; color: #f4eee4; border-color: rgba(244, 238, 228, .45); background: transparent; }
.masthead .loy-actions .loy-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-weight: 800; color: #1a1408; background: linear-gradient(180deg, #ffeec2, #e8c478 50%, #c0924a); border: 1px solid #f3dfae; box-shadow: 0 0 0 3px rgba(232, 196, 120, .25), 0 12px 30px rgba(232, 196, 120, .3); }
.masthead .loy-actions .loy-cta:hover { box-shadow: 0 0 0 4px rgba(232, 196, 120, .4), 0 16px 36px rgba(232, 196, 120, .45); }
/* Кнопка «Акции» в шапке: раз в несколько секунд мягко пульсирует и светится */
.site-header .nav-promo { color: #1a1408; font-weight: 800; background: linear-gradient(180deg, #ffeec2, #e8c478 50%, #c0924a); border: 1px solid #f3dfae; animation: nav-promo-pulse 7s ease-in-out infinite; }
.site-header .nav-promo:hover { animation-play-state: paused; filter: brightness(1.06); }
@keyframes nav-promo-pulse {
    0%, 78%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 196, 120, 0); }
    84% { transform: scale(1.07); box-shadow: 0 0 16px 4px rgba(232, 196, 120, .7); }
    90% { transform: scale(1); box-shadow: 0 0 8px 2px rgba(232, 196, 120, .35); }
    95% { transform: scale(1.04); box-shadow: 0 0 12px 3px rgba(232, 196, 120, .5); }
}
@media (prefers-reduced-motion: reduce) { .site-header .nav-promo { animation: none; } }
/* Страница акций */
.promo-list { display: grid; gap: 20px; margin-top: 24px; }
.promo-card { position: relative; padding: 26px 28px; background: #fffdf8; border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.promo-card h2 { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 30px; }
.promo-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.promo-meta { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 12px 0 16px; font-size: 14px; }
.promo-meta dt { color: var(--muted); }
.promo-meta dd { margin: 0; }
.promo-empty { padding: 26px 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border); }
@media (max-width: 600px) { .promo-meta { grid-template-columns: 1fr; gap: 2px; } .promo-meta dd { margin-bottom: 8px; } }
@media (max-width: 600px) { .promo-card h2 { margin-top: 22px; } }
.bon-ref { display: flex; gap: 8px; margin-top: 12px; }
.bon-ref input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; background: var(--paper); border: 1px solid var(--border); }
.bon-ref .btn { white-space: nowrap; }
.is-bonuses #invite { scroll-margin-top: var(--bon-offset, 90px); }
/* Акция «Пригласи друга» */
.invite-box { padding: 26px 28px; background: #fffdf8; border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.invite-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.invite-list { list-style: none; margin: 14px 0 0; padding: 0; }
.invite-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.invite-list strong { display: block; }
.invite-list span { font-size: 13px; color: var(--muted); }
.invite-done { color: #2f7d4f; white-space: nowrap; }
.invite-progress { width: 220px; flex: none; }
.invite-progress .bon-bar { margin: 6px 0 0; }
@media (max-width: 600px) { .invite-list li { flex-direction: column; align-items: flex-start; gap: 8px; } .invite-progress { width: 100%; } }
.loy-grid1 { margin-top: 24px; max-width: 560px; }
