/* Ноябрь 2026: тарифы, калькулятор, живые данные и более плотная компоновка. */
:root { --panel: #19191f; --panel-soft: #22222c; --line: #ffffff1f; --ink: #f7f2f5; --muted: #bdb6c2; --accent: #ffd05a; --accent-ink: #271e0c; --radius: 20px; }
main { display: flex; flex-direction: column; gap: 30px; padding-bottom: 40px; }
main > section { margin: 0; padding-block: 0; animation: none; }
main > .hero { padding-top: 48px; padding-bottom: 6px; gap: 44px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 64px); -webkit-text-stroke: .5px #57263b80; filter: drop-shadow(0 1px 1px #130d1766); }
.hero-combined { padding: 26px; }
.hero-combined p span { background: none !important; color: #ffc2da; -webkit-text-fill-color: currentColor !important; text-shadow: 0 1px 2px #140f1c; }
.hero h1, .hero-combined, .hero-tags, .hero-right { animation: none; }
.hero-right { min-height: 380px; }
.hero-image-container { max-width: 390px; }
.hero-tags { margin-bottom: 22px; }
.hero-tag { font-size: 12px; padding: 8px 12px; }
.hero-combined .btn-support { margin-top: 15px; }
.section-title, .section-heading h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -1.2px; line-height: 1.12; margin: 0; text-align: left; text-transform: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-caption { max-width: 310px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; line-height: 1.5; }
.text-link { color: var(--accent); font-size: 13px; text-underline-offset: 5px; flex-shrink: 0; padding: 10px 0; }
.quiet-note { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 14px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.pricing-card { padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.pricing-card.featured { border-color: #b89238; background: linear-gradient(150deg,#24222a,#19191f); }
.pricing-card h3 { font-size: clamp(24px,2.2vw,30px); line-height: 1.2; letter-spacing: -.65px; margin: 0 0 18px; }
.tariff-price { font-size: 36px; font-weight: 900; letter-spacing: -.8px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin: 0 0 19px; }
.tariff-price small { font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tariff-intro { font-size: 16px; line-height: 1.7; padding-top: 18px; margin-bottom: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.tariff-list { list-style: none; display: grid; gap: 13px; font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.tariff-list li { display: flex; gap: 9px; }
.tariff-list li::before { content:'✓'; color: var(--accent); }
.tariff-availability { margin-top: auto; padding: 12px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pricing-card .eyebrow { font-size: 12px; }
.pricing-card .plan-button { font-size: 16px; min-height: 50px; }
.tariff-availability strong { color: var(--ink); }
.plan-button { min-height: 46px; padding: 13px 16px; border: 1px solid var(--line); background: #ffffff09; color: var(--ink); border-radius: 11px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.4; text-align: center; text-decoration: none; }
.plan-button:hover { border-color: #bca255; background-color: #ffffff12; }
.plan-button.primary { background: #f8cb53; border-color: #f8cb53; color: #261e10; }
.plan-button.primary:hover { background: #ffdc78; }
.live-panel { margin-top: 20px; padding: 22px 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.live-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.live-heading .eyebrow { margin: 0; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a39b92; margin-right: 5px; }
.live-panel[data-state="live"] .live-dot { background: #8fce98; box-shadow: 0 0 0 4px #8fce9814; }
.text-button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; min-height: 40px; }
.text-button:disabled { opacity: .5; cursor: wait; }
.availability-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-top: 14px; }
.availability-grid > div { min-width: 0; padding-left: 17px; border-left: 1px solid var(--line); }
#discount-summary { font-size: 22px; overflow-wrap: anywhere; }
.availability-grid > div:first-child { border-left: 0; padding-left: 0; }
.availability-grid strong { display: block; font-size: clamp(21px,2.1vw,28px); line-height: 1.3; color: var(--ink); }
.availability-grid span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.queue-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.queue-details summary { color: var(--muted); cursor: pointer; font-size: 12px; min-height: 30px; padding: 5px 0; }
.group-queues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 12px; }
.queue-chip { padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.queue-chip strong { color: var(--ink); white-space: nowrap; }
#discount-list { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.budget-panel { padding: 30px !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.budget-panel h2 { font-size: clamp(25px,3vw,36px); letter-spacing: -.9px; line-height: 1.2; }
.budget-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 26px; margin-top: 25px; }
.budget-controls { align-self: center; min-width: 0; }
.format-options { padding: 0; border: 0; min-width: 0; }
.format-options legend, .range-heading label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.format-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.format-buttons label { position: relative; cursor: pointer; }
.format-buttons input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-buttons label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 65px; gap: 5px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 7px; font-size: 12px; text-align: center; line-height: 1.35; }
.format-buttons small { color: var(--muted); font-size: 10px; }
.format-buttons input:checked + span { border-color: #d6ae47; background: #f2c55719; }
.format-buttons input:focus-visible + span { outline: 3px solid #ffb8db; outline-offset: 3px; }
.frequency-controls { margin-top: 24px; }
.range-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-heading output { color: var(--accent); font-size: 12px; font-weight: 700; }
#lesson-frequency { width: 100%; height: 7px; margin: 8px 0 10px; appearance: none; border-radius: 6px; cursor: pointer; background: linear-gradient(to right,#f8cb53 var(--range-progress,33.333%),#4a4950 var(--range-progress,33.333%)); }
#lesson-frequency::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #f8cb53; border: 2px solid #3a3225; }
#lesson-frequency::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #f8cb53; border: 2px solid #3a3225; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.course-checkbox { display: flex; gap: 10px; align-items: start; margin-top: 23px; font-size: 12px; line-height: 1.7; cursor: pointer; }
.course-checkbox input { margin-top: 4px; accent-color: #f8cb53; width: 16px; height: 16px; flex-shrink: 0; }
.course-checkbox strong { font-weight: 500; }
.course-checkbox small { display: block; color: var(--muted); font-size: 11px; }
.budget-result { padding: 23px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 15px; min-width: 0; }
.budget-result > p:first-child { font-size: 12px; color: var(--muted); }
.budget-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-top: 10px; }
.budget-total strong { font-size: clamp(32px,3.2vw,46px); letter-spacing: -1.5px; line-height: 1.15; }
.budget-total > span { font-size: 11px; color: var(--muted); }
.budget-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.budget-metrics strong { color: var(--accent); font-size: 18px; }
.budget-metrics span { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
#budget-breakdown, .budget-saving { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 15px; }
.budget-result .plan-button { display: block; width: 100%; margin-top: 18px; }
.budget-result #plan-copy-status:empty { display: none; }
main > .club-short .club-panel { padding: 25px 30px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 30px; align-items: center; border-radius: var(--radius); }
.club-short h2 { font-size: 27px; letter-spacing: -.75px; margin-bottom: 10px; }
.club-short p:not(.eyebrow):not(#club-status) { max-width: 660px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.club-short-action { display: grid; gap: 13px; min-width: 200px; }
.club-short-action > strong { font-size: 26px; letter-spacing: -.7px; }
.club-short-action small { font-size: 12px; color: var(--muted); font-weight: 400; }
#club-status:empty { display: none; }
#club-status, #website-payment { grid-column: 1 / -1; }
main > section.about-section { padding: 30px; gap: 40px; grid-template-columns: minmax(0,.65fr) minmax(0,1fr); }
.about-image { max-width: 320px; margin-inline: auto; }
.about-content h2 { margin-bottom: 17px; font-size: 32px; }
.about-content p { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.features li { font-size: 12px; padding-block: 13px; }
.features li::before { width: 24px; height: 24px; font-size: 14px; margin-right: 8px; }
.about-content .btn-support { margin-top: 18px; }
.certificate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 1200px; margin-inline: auto; }
.certificate-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.certificate-meta { padding: 21px 21px 17px; }
.certificate-meta > span { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.certificate-meta > strong { font-size: 18px; letter-spacing: -.5px; }
.certificate-meta p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.certificate-image { border: 0; padding: 10px; background: #eee9df; width: 100%; display: block; cursor: zoom-in; height: clamp(160px,calc(100svh - var(--header-height) - var(--banner-height) - 360px),330px); overflow: hidden; }
.certificate-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.certificate-image:hover img { opacity: .88; }
.score-breakdown { display: flex; justify-content: space-between; gap: 8px; padding: 17px 21px; color: var(--muted); font-size: 11px; }
.score-breakdown b { color: var(--ink); font-size: 13px; margin-left: 4px; }
.gallery-slider, .video-slider { padding-bottom: 59px; }
.gallery-viewport, .video-slider-container { padding-bottom: 10px; }
.gallery-item .sample-badge { position: absolute; top: 10px; right: 10px; font-size: 9px; padding: 5px 7px; border-radius: 6px; background: #fff1c3; color: #493c21; font-weight: 700; letter-spacing: 1px; }
.video-frame { aspect-ratio: 4 / 3; }
.video-caption { padding: 14px 17px; font-size: 12px; }
.video-caption .sample-badge { color: var(--muted); display: block; font-size: 10px; }
.video-reviews-section .media-notice { text-align: left; font-size: 12px; margin-bottom: 16px; }
main > section.faq-section { padding: 30px; margin: 0; }
.faq-section .section-title { margin-bottom: 22px; }
.faq-item { padding: 18px 20px; margin-bottom: 10px; }
.faq-header { font-size: 14px; }
.faq-answer { font-size: 13px; }
.learning-ticker { overflow: hidden; padding: 12px 0 !important; border: 1px solid #d9ba6933; border-radius: 15px; background: #ffffff04; }
.ticker-track { display: flex; width: max-content; animation: tickerLoop 38s linear infinite; }
.ticker-group { min-width: max(1400px,100vw); display: flex; justify-content: space-around; gap: 12px; padding-right: 12px; }
.ticker-group span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 11px 19px; border: 1px solid #e4bc5b40; background: #e4bc5b0c; color: #e5bf65; border-radius: 9px; white-space: nowrap; }
.learning-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerLoop { to { transform: translateX(-50%); } }
@keyframes portraitBreath { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.018); } }
.hero-image { animation: portraitBreath 5s ease-in-out infinite; }
.about-image { animation: portraitBreath 6s ease-in-out infinite; }
@keyframes backgroundDrift { 0%,100% { transform: translateY(0) rotate(var(--rotation)) scale(1); } 50% { transform: translateY(-14px) rotate(var(--rotation)) scale(1.035); } }
/* Бежевая тема: без белых заливок, с заметными контурами карточек. */
body.light-theme { --panel: #e6dac5; --panel-soft: #d9ccb6; --line: #8b7558; --ink: #2c252b; --muted: #51453d; --accent: #795219; --accent-ink: #2f2415; background: linear-gradient(135deg,#e7ddca,#ddd0c4 56%,#e4d6bb); color: var(--ink); }
body.light-theme header { background: #e5dac5f7; border-color: #b19b7a; }
body.light-theme .site-nav { background-color: #e5dac5fa; }
body.light-theme .floating-banner { background: #d4c19a; border-color: #ac9263; }
body.light-theme .hero-combined, body.light-theme .about-section, body.light-theme .faq-section { background: #e8dcc8e8; border: 1.5px solid #af9570; box-shadow: 0 10px 24px #6550380b; }
body.light-theme .hero-combined p span { color: #783551; text-shadow: 0 1px 0 #f4e5d366; }
body.light-theme .hero-tag, body.light-theme .method { background: #dcccaa; border-color: #ad9464; color: #674719; }
body.light-theme .pricing-card.featured { background: linear-gradient(150deg,#e6d3ac,#dfd0b9); border: 1.5px solid #997326; }
body.light-theme .pricing-card, body.light-theme .live-panel, body.light-theme .budget-panel, body.light-theme .certificate-card { border-width: 1.5px; }
body.light-theme .plan-button:not(.primary) { background: #d6c9b2; border-color: #a68e68; }
body.light-theme .plan-button.primary { background: #e8bc52; border-color: #a77f2b; }
body.light-theme .format-buttons input:checked + span { background: #c9ad7180; border-color: #94702c; }
body.light-theme .club-short .club-panel { background: #dfd1bddb; border: 1.5px solid #a88e6a; }
body.light-theme .faq-item { background: #dbcfbb; border-color: #b39b79; }
body.light-theme .video-item { background: var(--panel); border-color: #a58a63; }
body.light-theme .gallery-item { border-color: #a58a63; }
body.light-theme .learning-ticker { background: #dfcfb1; border-color: #af9464; }
body.light-theme .ticker-group span { background: #e7d9ba; border-color: #b19760; color: #6b4c1d; }
body.light-theme .club-secondary, body.light-theme .menu-toggle, body.light-theme .theme-btn { background: #d8cbb2; border-color: #a38c64; }
body.light-theme footer { background: #d5c6ac; border-color: #a38b65; }
@media (max-width:1100px) {
  main > .hero { gap: 30px; }
  .pricing-card { padding: 23px 19px 20px; }
  .tariff-price { font-size: 29px; }
  .budget-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 18px; }
  .format-buttons { grid-template-columns: 1fr; gap: 6px; }
  .format-buttons label > span { min-height: 45px; flex-direction: row; gap: 8px; }
}
@media (max-width:768px) {
  main { gap: 25px; }
  main > .hero { padding-top: 30px; gap: 28px; }
  .hero-right { min-height: 0; width: min(100%,310px); }
  .hero h1 { font-size: clamp(33px,8.8vw,54px); }
  .hero-image-container { max-width: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .section-caption { max-width: none; }
  .section-heading h2, .section-title { font-size: 30px; letter-spacing: -.9px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-card { padding: 24px; }
  .pricing-card h3 br { display: none; }
  .pricing-card h3 { font-size: 25px; }
  .tariff-list { gap: 10px; margin-bottom: 10px; }
  .availability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 15px; }
  #discount-summary { font-size: 16px; }
  .availability-grid > div:nth-child(3) { border: 0; padding-left: 0; }
  .availability-grid strong { font-size: 24px; }
  .live-panel { padding: 20px; }
  .group-queues { grid-template-columns: 1fr; }
  .budget-panel { padding: 23px 20px !important; }
  .budget-grid { grid-template-columns: 1fr; gap: 22px; }
  .format-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .format-buttons label > span { flex-direction: column; min-height: 68px; padding-inline: 5px; font-size: 10px; }
  .format-buttons small { font-size: 9px; }
  .range-heading label { font-size: 10px; }
  .range-heading output { font-size: 11px; }
  .budget-result { padding: 21px; }
  .budget-total strong { font-size: 38px; }
  main > .club-short .club-panel { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .club-short h2 { font-size: 25px; }
  .club-short-action { min-width: 0; }
  main > section.about-section { padding: 24px; grid-template-columns: 1fr; gap: 28px; }
  .about-image { max-width: 280px; }
  .about-content h2 { font-size: 29px; }
  .features { grid-template-columns: 1fr; }
  .certificate-grid { grid-template-columns: 1fr; gap: 18px; }
  .certificate-image { aspect-ratio: 1 / 1.12; }
  .certificate-meta > strong { font-size: 19px; }
  main > section.faq-section { padding: 23px 18px; }
  .faq-section .section-title { font-size: 28px; }
}
@media (prefers-reduced-motion:reduce) { .ticker-track, .hero-image, .about-image, .meme-float { animation: none !important; } }

/* Второй проход: спокойные полупрозрачные панели и читаемый калькулятор. */
:root { --panel: #32323270; --panel-soft: #f5e7ff0b; --line: #d6bc8052; --muted: #ded5df; }
.pricing-card, .live-panel, .budget-panel, .certificate-card, .result-item, .creator-student { backdrop-filter: blur(18px); }
.pricing-card.featured { background: linear-gradient(145deg,#8e73302b,#645d5d38); border-color: #bea05b; }
body:not(.light-theme) .club-short .club-panel { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(18px); }
.media-carousel .video-item, .media-carousel .gallery-item { background: var(--panel); }
.hero h1 { background: none; background-clip: border-box; -webkit-background-clip: border-box; color: #ef78a4; -webkit-text-fill-color: currentColor; -webkit-text-stroke: 0; filter: none; text-shadow: none; letter-spacing: -.04em; font-kerning: normal; }
body.light-theme .hero h1 { background: none; color: #9a456c; }
.hero-tag { font-size: 13px; }
.about-portrait { width: min(100%,400px); aspect-ratio: 1 / 1; justify-self: center; border: 1.5px solid #cbb27075; border-radius: 22px; overflow: hidden; box-shadow: 0 15px 48px #d9b34c26; animation: portraitBreath 6s ease-in-out infinite; }
.about-portrait .about-image { display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border: 0; border-radius: 0; box-shadow: none; animation: none; margin: 0; }
.about-content h2 { text-transform: none; }
.about-content .eyebrow { font-size: 12px; margin-bottom: 10px; }
.features li { font-size: 14px; line-height: 1.6; }
.teacher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.certificate-meta > strong { font-size: 19px; line-height: 1.5; }
.certificate-meta p { font-size: 13px; line-height: 1.7; }
.budget-panel { padding: 34px !important; }
.budget-panel .eyebrow { font-size: 13px; }
.budget-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 30px; margin-top: 30px; }
.format-options legend, .range-heading label { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.6; }
.format-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.format-buttons label > span { font-size: 16px; min-height: 88px; gap: 8px; padding: 14px 10px; }
.format-buttons small { font-size: 13px; line-height: 1.5; }
.range-heading output { font-size: 16px; white-space: nowrap; }
.frequency-controls { margin-top: 28px; }
#lesson-frequency { height: 9px; margin-top: 14px; }
#lesson-frequency::-webkit-slider-thumb { width: 24px; height: 24px; }
#lesson-frequency::-moz-range-thumb { width: 22px; height: 22px; }
.range-labels { font-size: 14px; margin-top: 4px; }
.course-checkbox { font-size: 16px; margin-top: 27px; gap: 13px; }
.course-checkbox input { width: 21px; height: 21px; }
.course-checkbox small { font-size: 14px; }
.budget-controls > .quiet-note { font-size: 14px; line-height: 1.8; }
.budget-result { padding: 28px; background: var(--panel-soft); border-color: #cfbfa04f; }
.budget-result > p:first-child { font-size: 17px; color: var(--ink); font-weight: 700; }
.budget-format-summary { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.budget-total strong { font-size: clamp(40px,4vw,56px); }
.budget-total > span { font-size: 14px; }
.budget-metrics strong { font-size: 22px; }
.budget-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.budget-metrics > div { min-width: 0; }
.budget-metrics span { font-size: 14px; overflow-wrap: anywhere; }
#budget-breakdown, .budget-saving { font-size: 15px; line-height: 1.8; }
#budget-breakdown { color: var(--ink); font-weight: 600; }
.budget-result .plan-button { font-size: 15px; min-height: 52px; }
.budget-mobile-total { display: none; }
.range-heading { flex-wrap: wrap; gap: 6px 16px; }
.creator-student { display: flex; align-items: center; gap: 22px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--ink); text-decoration: none; margin-bottom: 22px; }
.creator-icon { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; background: #f1a3b923; color: #ffd0dc; border-radius: 17px; font-size: 27px; }
.creator-student > span:last-child { display: grid; gap: 7px; }
.creator-student small { color: var(--muted); font-size: 13px; }
.creator-student strong { font-size: 23px; }
.creator-student > span > span { color: var(--accent); font-size: 14px; }
.result-item { position: relative; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.result-image { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: #ffffff07; padding: 10px; cursor: zoom-in; }
.result-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.result-caption { padding: 22px 25px; }
.result-caption h3 { font-size: 19px; margin-bottom: 9px; }
.result-caption > strong { font-size: 22px; color: var(--accent); }
.result-caption p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.result-sample { position: absolute; right: 14px; top: 14px; padding: 7px 10px; border-radius: 8px; background: #f9edcf; color: #654f2e; font-size: 11px; font-weight: 700; }
/* Карусель показывает крупную центральную карточку и края соседних. */
.media-carousel { --slide-width: min(70%,720px); padding: 0; }
.media-carousel .carousel-viewport { position: relative; overflow: hidden; padding: 8px 0; border-radius: 20px; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.media-carousel .carousel-track { position: relative; display: flex; align-items: flex-start; gap: 24px; padding: 0; width: 100%; transform: translate3d(var(--carousel-x,0px),0,0) !important; transition: transform .38s cubic-bezier(.22,.7,.3,1) !important; }
.media-carousel .carousel-track.is-resetting { transition: none !important; }
.carousel-slide { flex: 0 0 var(--slide-width); min-width: 0; opacity: .38; transition: opacity .3s; }
.carousel-slide.is-current { opacity: 1; }
.media-carousel .gallery-item, .media-carousel .video-item { flex: none; width: 100%; max-width: none; height: auto; }
.media-carousel .gallery-item { aspect-ratio: 4 / 3; }
.media-carousel .gallery-item img { height: 100%; }
.video-clone-poster { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-carousel .video-frame { background: #211e242b; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; min-height: 48px; }
.media-carousel .slider-btn { position: static; inset: auto; transform: none; width: 44px; height: 44px; min-width: 44px; font-size: 27px; }
.carousel-dots { display: flex; justify-content: center; }
.carousel-dots button { display: grid; place-items: center; border: 0; background: none; width: 24px; height: 44px; cursor: pointer; }
.carousel-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f5e7ca59; transition: transform .2s,background .2s; }
.carousel-dots button[aria-current="true"]::before { background: #f2cb65; transform: scale(1.35); }
.carousel-count { min-width: 48px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.media-carousel .gallery-item:hover img { transform: none; }
.background-preview { position: fixed; z-index: 1110; left: 20px; bottom: 20px; padding: 13px 16px; border-radius: 14px; border: 1px solid #d1b779; background: #463e4bf2; color: #fff1d1; font: inherit; font-size: 12px; box-shadow: 0 6px 24px #0002; cursor: pointer; }
@keyframes backgroundLively {
  0%,100% { transform: translate(-5px,0) rotate(calc(var(--rotation) - 2deg)) scale(1); }
  35% { transform: translate(10px,-14px) rotate(calc(var(--rotation) + 2deg)) scale(1.04); }
  70% { transform: translate(-9px,7px) rotate(calc(var(--rotation) - 1deg)) scale(.99); }
}
.lively-background .meme-float { animation-name: backgroundLively; }
.page-inactive .meme-float { animation-play-state: paused; }
body.light-theme .creator-icon { color: #a04d69; background: #c6879d25; }
body.light-theme .carousel-dots button::before { background: #8e785c66; }
body.light-theme .carousel-dots button[aria-current="true"]::before { background: #805d2a; }
body.light-theme .background-preview { background: #e5d7bcf5; color: #54402c; }
@media (min-width:769px) and (max-width:1150px) {
  .format-buttons { grid-template-columns: 1fr; }
  .format-buttons label > span { flex-direction: row; justify-content: space-between; min-height: 58px; padding: 14px; }
  .budget-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 22px; }
}
@media (max-width:768px) {
  .budget-grid { grid-template-columns: 1fr; }
  .budget-mobile-total { display: flex; position: sticky; top: calc(var(--header-height) + var(--banner-height) + 8px); z-index: 5; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: #49434cf5; backdrop-filter: blur(16px); color: var(--ink); font-size: 15px; }
  .budget-mobile-total > span:last-child { display: grid; gap: 3px; text-align: right; }
  .budget-mobile-total strong { font-size: 23px; }
  .budget-mobile-total small { font-size: 12px; color: var(--muted); }
  body.light-theme .budget-mobile-total { background: #e2d4bff5; }
  .budget-panel { padding: 25px 20px !important; }
  .budget-result { padding: 23px; }
  .about-portrait { width: min(100%,380px); }
  .media-carousel { --slide-width: 86%; }
  .media-carousel .carousel-track { gap: 16px; }
  .result-caption { padding: 18px; }
  .result-caption h3 { font-size: 17px; }
  .creator-student { padding: 20px; gap: 16px; }
}
@media (max-width:600px) {
  .format-buttons { grid-template-columns: 1fr; }
  .format-buttons label > span { flex-direction: row; justify-content: space-between; min-height: 58px; padding: 13px; }
  .format-buttons small { font-size: 13px; }
  .range-heading output { font-size: 15px; }
  .budget-total strong { font-size: 42px; }
  .budget-metrics strong { font-size: 20px; }
  .media-carousel { --slide-width: 93%; }
  .carousel-nav { gap: 8px; }
  .carousel-count { display: none; }
  .carousel-dots button { width: 22px; height: 44px; }
  .result-caption > strong { font-size: 20px; }
  .teacher-actions { display: grid; }
  .background-preview { left: 14px; bottom: 14px; max-width: 195px; padding: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .about-portrait { animation: none !important; }
  .media-carousel .carousel-track, .carousel-slide { transition: none !important; }
}

/* Компактные медиа: высота окна учитывается вместе с шапкой, подписью и стрелками.
 * Для изменения масштаба: 380px — верхний предел высоты; 560/600px — ширины. */
.media-carousel {
  --media-height: clamp(150px, calc(100svh - var(--header-height) - var(--banner-height) - 340px), 380px);
  --slide-width: min(84%, 560px, calc(var(--media-height) * 1.333333));
}
.video-slider.media-carousel { --slide-width: min(84%, 600px, calc(var(--media-height) * 1.6)); }
.media-carousel .gallery-item, .media-carousel .result-image { max-height: var(--media-height); }
.media-carousel .video-frame { aspect-ratio: 16 / 10; max-height: var(--media-height); }
.media-carousel:not(.video-slider) .carousel-slide { opacity: .58; }
.media-carousel:not(.video-slider) .carousel-slide:is(.is-current,:hover,:focus-within) { opacity: 1; }
.media-carousel .carousel-slide:has(.gallery-item,.result-image) { cursor: zoom-in; }
.carousel-nav { margin-top: 12px; }
.modal-content { max-width: min(86vw,820px); max-height: calc(100dvh - 32px); padding-top: 52px; }
.modal-img { max-width: min(86vw,820px); max-height: min(70dvh,calc(100dvh - 150px)); border-radius: 12px; }
.modal-close { top: 0; right: 0; }
/* Светлый фон: более заметные тёмные силуэты с приглушённым цветом.
 * Только декор, фото учеников и сертификаты не затрагиваются. */
body.light-theme .meme-float {
  opacity: calc(var(--meme-alpha, .042) * 3.1);
  filter: grayscale(.72) saturate(.28) contrast(.65) brightness(.65);
  mix-blend-mode: multiply;
}

/* Контраст светлой темы: непрозрачные границы и тёмный текст на бежевом. */
body.light-theme :is(.pricing-card,.live-panel,.budget-panel,.certificate-card,.result-item,.creator-student,.hero-combined,.about-section,.faq-section,.faq-item,.gallery-item,.video-item,.club-panel,.budget-result,.queue-chip,.hero-tag,.format-buttons label > span,.plan-button) { border-color: var(--line); }
body.light-theme .pricing-card.featured { border-color: #8a6829; }
body.light-theme .plan-button.primary { border-color: #926b24; }
body.light-theme :is(.tariff-intro,.tariff-availability,.tariff-price small,.section-caption,.quiet-note,.media-notice,.certificate-meta p,.score-breakdown) { color: var(--muted); }

/* Глубина светлой темы: тёплый свет сверху слева и мягкая золотистая тень.
 * Цвета текста и контуры задаются выше; градиенты меняют только заливку. */
body.light-theme {
  --light-surface: radial-gradient(ellipse at 0 0,#fff6dc70,transparent 62%),linear-gradient(135deg,#ece0cb,#e3d2b9 56%,#d8c5a9);
  --light-surface-soft: linear-gradient(145deg,#e8ddc9,#d8c6aa);
  --light-shadow: inset 0 1px 0 #fff8e6b3,inset 0 -1px 0 #99784924,0 12px 28px #63472024,0 3px 8px #6d512412;
}
body.light-theme :is(.hero-combined,.about-section,.faq-section,.pricing-card,.live-panel,.budget-panel,.certificate-card,.result-item,.creator-student,.gallery-item,.video-item,.club-panel) {
  background: var(--light-surface);
  box-shadow: var(--light-shadow);
}
body.light-theme .club-short .club-panel { background: var(--light-surface); }
body.light-theme .pricing-card.featured {
  background: radial-gradient(ellipse at 0 0,#fff2c480,transparent 65%),linear-gradient(140deg,#ecdbb5,#dfc797 58%,#d7b97f);
  box-shadow: inset 0 1px 0 #fff3c7c7,0 14px 32px #966b2830,0 3px 8px #74511d17;
}
body.light-theme :is(.budget-result,.faq-item,.queue-chip,.format-buttons label > span) {
  background: var(--light-surface-soft);
  box-shadow: inset 0 1px 0 #fff5e480,0 5px 13px #6e512014;
}
body.light-theme .format-buttons input:checked + span {
  background: linear-gradient(145deg,#e4cc96,#cdb17a);
  box-shadow: inset 0 1px 0 #fff0c28c,0 4px 12px #88612521;
}
body.light-theme .plan-button:not(.primary) {
  background: linear-gradient(150deg,#e3d5bd,#cdbb9d);
  box-shadow: inset 0 1px 0 #fff5df99,0 4px 10px #7252261c;
}
body.light-theme .plan-button.primary {
  background: linear-gradient(135deg,#f2d078,#dfb24d);
  box-shadow: inset 0 1px 0 #fff0b6ad,0 6px 17px #ad7d2b38;
}
body.light-theme .certificate-image { background: linear-gradient(145deg,#f1ecdf,#e4daca); }
body.light-theme .video-frame { background: linear-gradient(145deg,#dfd3c0,#c5b295); }
body.light-theme .hero-image {
  box-shadow: 0 18px 42px #90682e38,0 0 34px #d8b15942;
}
body.light-theme .about-portrait {
  box-shadow: 0 18px 42px #90682e38,0 0 34px #d8b15942,inset 0 1px 0 #fff3c780;
}

/* Заметный переход к калькулятору над карточками тарифов. */
.budget-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; min-height: 52px; padding: 14px 22px; border: 1.5px solid #c9a14b; border-radius: 13px; background: linear-gradient(135deg,#ffd05a24,#ffd05a0d); color: var(--accent); font-size: 17px; font-weight: 750; line-height: 1.4; text-decoration: none; box-shadow: inset 0 1px 0 #ffe9b02b,0 5px 18px #0000001a; }
.budget-shortcut span { font-size: 23px; line-height: 1; }
.budget-shortcut:hover { border-color: var(--accent); box-shadow: inset 0 1px 0 #ffe9b04d,0 7px 20px #b58b2426; }
body.light-theme .budget-shortcut { background: linear-gradient(135deg,#efdda9,#ddbd76); border-color: #987235; color: #443016; box-shadow: inset 0 1px 0 #fff2c7b3,0 5px 15px #9b712b2e; }
@media (max-width:768px) { .budget-shortcut { width: 100%; } }

/* КУРС И РЕЗУЛЬТАТЫ: макеты материалов меняются через config.js → coursePreview. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.hero-actions .plan-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; font-size: 15px; }
.hero-actions .plan-button:not(.primary) { background: transparent; border-color: var(--line); box-shadow: none; }
.btn-header-support { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
body.light-theme .btn-header-support { background: #d7c8ab55; color: var(--ink); border-color: var(--line); box-shadow: none; }
main > .course-preview { padding: 30px !important; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); backdrop-filter: blur(18px); }
.course-preview .section-heading { align-items: center; margin-bottom: 15px; }
.course-lead { color: var(--muted); max-width: 850px; font-size: 16px; line-height: 1.75; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.course-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.course-example { min-width: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #d6c1eb0a; }
.course-example-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.course-example-label small { font-size: 11px; color: var(--muted); font-weight: 400; text-align: right; }
.course-shot, .course-clip { padding: 26px; min-height: 320px; }
.lesson-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 12px; }
.course-shot h3, .course-clip h3 { font-size: clamp(22px,2.1vw,28px); line-height: 1.25; letter-spacing: -.6px; margin-bottom: 20px; }
.phrase-before { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-bottom: 8px; }
.phrase-after { font-size: clamp(23px,2.4vw,31px); font-weight: 800; letter-spacing: -.5px; color: var(--ink); margin-bottom: 15px; }
.lesson-explanation, .lesson-task p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.lesson-task { margin-top: 18px; }
.lesson-task summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 700; padding-block: 6px; }
.lesson-task p { margin-top: 12px; }
.course-clip { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; background: radial-gradient(ellipse at 85% 15%,#d2ad5630,transparent 70%); }
.preview-play { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); background: #d7b95d17; font-size: 20px; margin-bottom: 18px; }
.course-clip h3 { margin-bottom: 12px; }
.course-clip > p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 400px; }
.slot-caption { display: block; color: var(--accent); font-size: 12px; margin-top: 18px; }
.course-photo-button { display: block; width: 100%; border: 0; background: transparent; cursor: zoom-in; }
.course-photo-button img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin: auto; }
.course-clip video { width: 100%; max-height: 360px; object-fit: contain; }
.course-program { margin-top: 28px; }
.program-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.program-heading h3 { font-size: 21px; }
.program-heading > span { color: var(--muted); font-size: 12px; }
.program-grid, .format-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.program-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff04; }
.program-grid article > span { color: var(--accent); font-size: 13px; font-weight: 700; }
.program-grid h4 { font-size: 17px; margin: 13px 0 9px; }
.program-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.course-review-slot { display: flex; align-items: center; gap: 20px; padding: 20px 0 0; border-top: 1px solid var(--line); margin-top: 23px; }
.slot-mark { font-size: 52px; color: var(--accent); line-height: 1; }
.course-review-slot h3 { font-size: 17px; margin-bottom: 8px; }
.course-review-slot p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 650px; }
.plain-link { color: var(--accent); font-size: 14px; text-underline-offset: 5px; line-height: 1.6; }
.course-review-slot .plain-link { margin-left: auto; flex-shrink: 0; }
.format-guide { margin-bottom: 22px; padding: 21px 0; border-block: 1px solid var(--line); }
.format-guide article { padding-inline: 20px; border-left: 1px solid var(--line); min-width: 0; }
.format-guide article:first-child { padding-left: 0; border-left: 0; }
.format-guide article > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.format-guide strong { font-size: 19px; }
.format-guide p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.results-tabs { display: inline-flex; flex-wrap: wrap; gap: 7px; padding: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 15px; margin-bottom: 24px; }
.results-tabs [role="tab"] { border: 1px solid transparent; color: var(--muted); background: transparent; font: inherit; font-size: 15px; font-weight: 650; min-height: 46px; padding: 12px 21px; cursor: pointer; border-radius: 10px; }
.results-tabs [aria-selected="true"] { background: #e6bc5121; color: var(--ink); border-color: #c4a155; }
.results-tabs [role="tab"]:focus-visible { outline-offset: 3px; }
.results-panel .section-heading { margin-bottom: 18px; }
.results-panel .section-heading h3 { font-size: 25px; letter-spacing: -.7px; line-height: 1.3; }
.results-panel .creator-student { padding: 17px 21px; margin-bottom: 18px; }
.results-panel .creator-icon { width: 46px; height: 46px; font-size: 20px; }
.results-panel .creator-student strong { font-size: 20px; }
.budget-shortcut { background: #d2a14310; box-shadow: none; }
body.light-theme :is(.course-preview,.course-example,.results-tabs) { background: var(--light-surface); border-color: var(--line); box-shadow: var(--light-shadow); }
body.light-theme .program-grid article { background: var(--light-surface-soft); }
body.light-theme .course-clip { background: radial-gradient(ellipse at 85% 15%,#dec07866,transparent 75%); }
body.light-theme .results-tabs [aria-selected="true"] { background: #d9bd81; color: #332715; border-color: #987235; box-shadow: inset 0 1px 0 #fff2c77a; }
body.light-theme .hero-actions .plan-button:not(.primary) { background: transparent; box-shadow: none; }
body.light-theme .budget-shortcut { background: linear-gradient(135deg,#edddb9,#d8c6a3); box-shadow: inset 0 1px 0 #fff3da80,0 3px 9px #9b712b20; }
@media (max-width:768px) {
  .hero-actions { display: grid; }
  main > .course-preview { padding: 23px 20px !important; }
  .course-preview .section-heading { align-items: flex-start; }
  .course-media-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-shot, .course-clip { padding: 21px; min-height: 0; }
  .course-clip { min-height: 280px; }
  .course-example-label { padding: 13px 16px; }
  .course-example-label small { max-width: 105px; }
  .program-heading { flex-direction: column; gap: 8px; }
  .program-grid, .format-guide { grid-template-columns: 1fr; gap: 13px; }
  .program-grid article { padding: 18px; }
  .program-grid h4 { margin-top: 8px; }
  .format-guide article { padding: 0 0 13px; border-left: 0; border-bottom: 1px solid var(--line); }
  .format-guide article:last-child { border-bottom: 0; padding-bottom: 0; }
  .course-review-slot { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .slot-mark { display: none; }
  .course-review-slot .plain-link { margin-left: 0; }
  .results-tabs { display: flex; width: 100%; gap: 4px; padding: 4px; flex-wrap: nowrap; }
  .results-tabs [role="tab"] { flex: 1; min-width: 0; font-size: 12px; padding: 11px 5px; }
  .results-panel .section-heading h3 { font-size: 23px; }
}

/* Небольшие статичные стикеры тарифов: приглушённые цвета и лёгкий наклон. */
.tariff-marker { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin-bottom: 13px; }
.tariff-marker .eyebrow { margin-bottom: 0; min-width: 0; }
.tariff-sticker { display: grid; place-items: center; flex: 0 0 49px; width: 49px; height: 49px; border-radius: 15px; border: 1px solid currentColor; transform: rotate(-6deg); box-shadow: inset 0 1px 0 #ffffff26,0 4px 10px #00000014; }
.tariff-sticker svg { width: 34px; height: 34px; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sticker-talk { color: #b4c8a4; background: #b4c8a417; }
.sticker-notes { color: #c9b7d2; background: #c9b7d217; transform: rotate(5deg); }
.sticker-book { color: #d7bf7f; background: #d7bf7f17; transform: rotate(-4deg); }
body.light-theme .sticker-talk { color: #566a49; background: linear-gradient(140deg,#e1e7d2,#c3cfaf); border-color: #8c9b7d; }
body.light-theme .sticker-notes { color: #6a5975; background: linear-gradient(140deg,#ebe1ed,#cfc0d6); border-color: #a08ca7; }
body.light-theme .sticker-book { color: #796033; background: linear-gradient(140deg,#eee1bd,#d7c293); border-color: #aa915d; }
/* Клавиатурный фокус кнопок темы остаётся видимым и соответствует палитре. */
.theme-switcher .theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* В тёмной теме слабые круговые градиенты на body давали заметные дуги. */
body.dark-theme::before { background: none; }
