/* ==========================================================================
   Цветовая система Podokom School
   Все цвета сайта задаются только здесь. Чтобы поменять цвет везде —
   измените значение переменной.
   ========================================================================== */
:root {
    /* Основной синий — фирменный цвет школы */
    --primary:        #51A2DF;
    --primary-dark:   #2875AD;
    --primary-light:  #EEF7FD;
    --primary-soft:   #D9EDFA;

    /* Зелёный Podokom — второй брендовый цвет, использовать умеренно */
    --brand-green:        #8DB14D;
    --brand-green-dark:   #5B7A26;   /* текст на светло-зелёном фоне */
    --brand-green-light:  #EEF3E4;
    --brand-green-soft:   #D1E0B5;

    /* Нейтральные */
    --text-primary:     #25313A;
    --text-secondary:   #66737D;
    --background:       #FFFFFF;
    --background-soft:  #F7F9FA;
    --border:           #E3EAEF;

    /* Состояния */
    --success:        var(--brand-green-dark);
    --success-bg:     var(--brand-green-light);
    --info:           var(--primary-dark);
    --info-bg:        var(--primary-light);
    --danger:         #B8412F;
    --danger-bg:      #FBEEEB;

    /* Компоненты */
    --link:           var(--primary-dark);
    --link-hover:     var(--primary);
    --btn-bg:         var(--primary);
    --btn-bg-hover:   var(--primary-dark);
    --btn-text:       #FFFFFF;
    --focus-ring:     var(--primary-soft);
    --shadow-sm:      0 2px 8px rgba(37, 49, 58, .05);
    --shadow:         0 14px 36px rgba(40, 117, 173, .12);
    --shadow-lg:      0 28px 60px rgba(40, 117, 173, .18);

    --radius-lg:  28px;
    --radius:     20px;
    --radius-sm:  12px;
    --font:       "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   База
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
.icon { flex-shrink: 0; }

h1, h2, h3 { color: var(--text-primary); letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--text-secondary); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 32px; padding-bottom: 88px; min-height: 70vh; }
.main-wide { min-height: 70vh; }
.muted { color: var(--text-secondary); }
.flash-stack { padding-top: 20px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); }

/* ==========================================================================
   Навигация
   ========================================================================== */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 32px; width: auto; }
.logo-school {
    color: var(--primary-dark); font-weight: 700; font-size: .82rem; line-height: 1.2;
    padding-left: 12px; border-left: 1.5px solid var(--primary-soft);
}

.menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.menu nav { display: flex; align-items: center; gap: 24px; }
.nav-sections { margin-left: 12px; }
.nav-account { margin-left: auto; }
.menu a:not(.btn) { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: .94rem; transition: color .15s; }
.menu a:not(.btn):hover { color: var(--primary-dark); }
.menu a.muted { color: var(--text-secondary); }

/* Кнопка мобильного меню */
.burger {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--primary-light); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--primary-dark); transition: transform .2s, opacity .2s; }
.topbar.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .burger span:nth-child(2) { opacity: 0; }
.topbar.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; white-space: nowrap;
    background: var(--btn-bg); color: var(--btn-text) !important; text-decoration: none;
    padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .96rem;
    box-shadow: 0 6px 16px rgba(81, 162, 223, .28);
    transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(40, 117, 173, .3); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-small { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--primary-light); color: var(--primary-dark) !important; box-shadow: none; }
.btn-secondary:hover { background: var(--primary-soft); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary-dark) !important; box-shadow: inset 0 0 0 1.5px var(--primary-soft); }
.btn-ghost:hover { background: var(--primary-light); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-white { background: #fff; color: var(--primary-dark) !important; box-shadow: 0 10px 24px rgba(20, 60, 90, .2); }
.btn-white:hover { background: var(--primary-light); }
.btn-green-outline { background: #fff; color: var(--brand-green-dark) !important; box-shadow: inset 0 0 0 1.5px var(--brand-green-soft); }
.btn-green-outline:hover { background: var(--brand-green-light); box-shadow: inset 0 0 0 1.5px var(--brand-green); }
.btn-danger { background: transparent; color: var(--danger) !important; box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff !important; box-shadow: none; }

/* ==========================================================================
   Сообщения (success / info / error)
   ========================================================================== */
.flash { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left: 4px solid; font-weight: 500; }
.flash-ok    { background: var(--success-bg); color: var(--success); border-color: var(--brand-green); }
.flash-info  { background: var(--info-bg);    color: var(--info);    border-color: var(--primary); }
.flash-error { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding: 88px 0; }
.section-tight { padding: 24px 0 88px; }
.section-soft { background: var(--background-soft); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title p { color: var(--text-secondary); font-size: 1.08rem; margin: 0; }
.section-title-left { text-align: left; margin: 0; }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero {
    padding: 72px 0 88px; overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% 10%, var(--primary-light), transparent 70%),
        linear-gradient(180deg, #fff, #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; color: var(--text-secondary); }
.hero-points .icon { color: var(--brand-green); }

.hero-visual { position: relative; padding: 28px 0 40px; }
.hero-blob {
    position: absolute; inset: 0 -10% 0 8%; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
    background: linear-gradient(140deg, var(--primary-soft), var(--primary-light));
}
.hero-player {
    position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 6px solid #fff; transform: rotate(-1.5deg);
    transition: transform .3s;
}
.hero-player:hover { transform: rotate(0) scale(1.01); }
.hero-player img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--primary);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), var(--shadow);
}
.hero-play .icon { margin-left: 4px; }
.hero-bar { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .45); }
.hero-bar span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #fff; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .92rem; line-height: 1.2; }
.float-card small { color: var(--text-secondary); font-size: .8rem; }
.float-card-1 { left: -28px; bottom: 6px; }
.float-card-2 { right: -12px; top: 0; animation-delay: -3s; }
.float-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); }
.float-icon-green { background: var(--brand-green-light); color: var(--brand-green-dark); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ==========================================================================
   Преимущества
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); }
.feature p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--primary-light); color: var(--primary-dark);
}
.feature-icon-green { background: var(--brand-green-light); color: var(--brand-green-dark); }

/* ==========================================================================
   Карточки мастер-классов
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-soft); color: inherit; }
.card-media { position: relative; overflow: hidden; }
.card-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--primary-light); transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-play {
    position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--primary);
    box-shadow: var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.card-play .icon { margin-left: 3px; }
.card:hover .card-play { opacity: 1; transform: none; }
.card-badge { position: absolute; left: 14px; top: 14px; box-shadow: var(--shadow-sm); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 1.16rem; }
.card p { margin: 0 0 18px; color: var(--text-secondary); font-size: .94rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); font-weight: 700; font-size: .92rem; }
.card-more .icon { transition: transform .2s; }
.card:hover .card-more .icon { transform: translateX(3px); }

.price { font-weight: 800; font-size: 1.3rem; color: var(--primary-dark); letter-spacing: -.02em; }
.price.big { font-size: 2.6rem; line-height: 1; }

/* Бейджи */
.tag {
    display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary-dark);
    padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; align-self: flex-start;
}
.tag-green { background: var(--brand-green-light); color: var(--brand-green-dark); }
.tag-muted { background: var(--background-soft); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border); }
.empty { color: var(--text-secondary); padding: 40px 0; text-align: center; }

/* ==========================================================================
   Шаги
   ========================================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary-soft) 0 8px, transparent 8px 16px);
}
.steps li { text-align: center; position: relative; padding: 0 12px; }
.steps p { color: var(--text-secondary); margin: 0; font-size: .96rem; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px;
    background: #fff; color: var(--primary-dark); font-weight: 800; font-size: 1.3rem;
    box-shadow: inset 0 0 0 2px var(--primary-soft), 0 0 0 8px #fff; position: relative;
}

/* ==========================================================================
   Блок Podokom
   ========================================================================== */
.brand-band {
    display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
    padding: 36px 40px; border-radius: var(--radius-lg);
    background: var(--brand-green-light); border: 1px solid var(--brand-green-soft);
}
.brand-band h2 { font-size: 1.45rem; margin-bottom: 6px; }
.brand-band p { margin: 0; color: var(--text-secondary); max-width: 620px; }
.brand-band-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--brand-green-dark); }

/* ==========================================================================
   Вопросы
   ========================================================================== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary-light); color: var(--primary-dark); font-size: 1.2rem; font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-secondary); }

/* ==========================================================================
   Финальный призыв
   ========================================================================== */
.cta {
    text-align: center; padding: 64px 32px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta::before { width: 340px; height: 340px; left: -120px; top: -160px; }
.cta::after { width: 260px; height: 260px; right: -60px; bottom: -140px; }
.cta > * { position: relative; }
.cta h2 { color: #fff; max-width: 640px; margin: 0 auto 12px; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 520px; margin: 0 auto 28px; font-size: 1.06rem; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { background: var(--background-soft); border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer-about p { margin: 16px 0 0; max-width: 360px; }
.footer h4 { margin: 0 0 14px; color: var(--text-primary); font-size: .92rem; }
.footer-grid > div:not(.footer-about) { display: grid; gap: 10px; align-content: start; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--primary-dark); }
.footer-about a { color: var(--primary-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-top: 1px solid var(--border); font-size: .86rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); }
.footer-pay { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Страница мастер-класса
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--text-secondary); margin-bottom: 24px; }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--primary-dark); }
.crumbs span:last-child { color: var(--text-primary); font-weight: 600; }

.course { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.course-main h1 { margin-top: 6px; }
.course-main h2 { font-size: 1.3rem; margin-top: 36px; }
.course-head { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.course-head .card-kicker { margin: 0; }
.video, .course-cover-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video { aspect-ratio: 16 / 9; background: var(--text-primary); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-cover { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--primary-light); }
.course-lock {
    position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(37, 49, 58, .78); color: #fff; backdrop-filter: blur(6px);
    padding: 8px 14px; border-radius: 99px; font-size: .86rem; font-weight: 600;
}
.description { font-size: 1.04rem; }

.course-side { position: sticky; top: 96px; }
.buy {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow);
}
.buy form { margin: 0; }
.buy-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: -10px; }
.perks { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; border-top: 1px solid var(--border); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .icon { color: var(--brand-green); }
.buy-secure { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-secondary); background: var(--background-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.buy-owned { text-align: center; justify-items: center; background: var(--brand-green-light); border-color: var(--brand-green-soft); box-shadow: none; gap: 10px; }
.buy-owned p { margin: 0 0 8px; color: var(--text-secondary); }
.buy-owned-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-green-dark); }
.more { margin-top: 88px; }

/* ==========================================================================
   Личный кабинет
   ========================================================================== */
.page-head { margin-bottom: 36px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.empty-state { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--primary-soft); border-radius: var(--radius-lg); background: var(--primary-light); }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { color: var(--text-secondary); max-width: 420px; margin: 0 auto 24px; }
.empty-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 20px; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Формы
   ========================================================================== */
.auth {
    max-width: 460px; margin: 24px auto; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
}
.auth h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-sub { color: var(--text-secondary); margin: 0 0 24px; }
.auth-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; background: var(--primary-light); color: var(--primary-dark); }
.auth .form .btn { width: 100%; margin-top: 4px; }
.auth > p.muted { text-align: center; margin: 24px 0 0; font-size: .94rem; }

.form { display: grid; gap: 18px; }
.form-wide { max-width: 760px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--text-primary); }
.form input:not([type=checkbox]):not([type=file]), .form textarea {
    font: inherit; font-weight: 500; color: var(--text-primary);
    padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form input:hover, .form textarea:hover { border-color: var(--primary-soft); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-ring); }
.form input[type=checkbox] { accent-color: var(--primary); width: 18px; height: 18px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1; min-width: 160px; }
.cover-preview { max-width: 280px; border-radius: 10px; }

/* ==========================================================================
   Админка
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 8px; }
.stats div { background: var(--primary-light); border-radius: var(--radius); padding: 22px; display: grid; }
.stats strong { font-size: 1.8rem; color: var(--primary-dark); font-weight: 800; }
.stats span { color: var(--text-secondary); font-size: .9rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; }
.section-head h2, .main > h2 { font-size: 1.3rem; }
.main > h2 { margin-top: 36px; }
.table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto;
}
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--background-soft); font-size: .78rem; color: var(--text-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: 0; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin-top: 28px; }

/* ==========================================================================
   Акция PodoCard
   ========================================================================== */
.pc-gift {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
    background: var(--brand-green-light); color: var(--brand-green-dark); font-size: .84rem; font-weight: 700;
}
.pc-banner {
    display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
    padding: 44px 48px; border-radius: var(--radius-lg); background: #fff;
    border: 1.5px solid var(--primary-soft); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pc-banner::before {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
}
.pc-banner > * { position: relative; }
.pc-banner h2 { margin: 16px 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pc-days { color: var(--primary); }
.pc-banner p { color: var(--text-secondary); margin: 0 0 24px; max-width: 560px; font-size: 1.04rem; }
.pc-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-banner-compact { margin-top: 24px; padding: 32px 36px; box-shadow: none; }
.pc-banner-compact h2 { font-size: 1.6rem; }

.pc-compare { display: flex; align-items: center; gap: 16px; }
.pc-compare > div { display: grid; justify-items: center; text-align: center; border-radius: 22px; padding: 18px 20px; min-width: 120px; }
.pc-compare strong { font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.pc-compare span { font-size: .8rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.pc-compare-old { background: var(--background-soft); color: var(--text-secondary); }
.pc-compare-old strong { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--text-secondary); opacity: .7; }
.pc-compare-new { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 14px 30px rgba(40, 117, 173, .3); transform: scale(1.08); }
.pc-compare-new strong { font-size: 3.4rem; }
.pc-compare-arrow { color: var(--primary); }

/* Реферальный блок в кабинете */
.pc-ref {
    margin-bottom: 48px; padding: 36px 40px; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--primary-light), #fff 65%); border: 1.5px solid var(--primary-soft);
}
.pc-ref-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pc-ref-head img { border-radius: 14px; box-shadow: var(--shadow-sm); }
.pc-ref-head h2 { margin: 8px 0 0; font-size: 1.7rem; }
.pc-ref > p { max-width: 760px; margin: 0 0 24px; font-size: 1.04rem; }
.pc-ref > p strong { color: var(--primary-dark); }
.pc-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.pc-steps span { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .88rem; }
.pc-ref-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.pc-note { display: block; margin-top: 16px; color: var(--text-secondary); }
.my-title { font-size: 1.35rem; margin-bottom: 20px; }

/* Подарок в блоке покупки */
.buy-gift {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--brand-green-light); color: var(--text-primary); font-size: .9rem; line-height: 1.45;
}
.buy-gift .icon { color: var(--brand-green-dark); margin-top: 1px; }
.buy-gift strong { color: var(--brand-green-dark); }
.buy-gift-link { margin-top: 16px; text-decoration: none; border: 1px solid var(--brand-green-soft); transition: border-color .15s; }
.buy-gift-link:hover { color: var(--text-primary); border-color: var(--brand-green); }

/* Карточка PodoCard на странице автора */
.project-logo { height: 30px; width: auto; margin: 6px 0 20px; }
.pc-features { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-features li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.pc-features .icon { color: var(--primary); }
.projects-promo .pc-banner { margin-top: 24px; }

/* Блок об авторе на главной */
.author-teaser { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.author-teaser img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.author-teaser h2 { margin-bottom: 6px; }
.author-teaser p:not(.about-role) { color: var(--text-secondary); max-width: 600px; margin: 0 0 24px; font-size: 1.04rem; }

/* ==========================================================================
   Страница «Об авторе»
   ========================================================================== */
.about-hero {
    padding: 64px 0 72px; overflow: hidden;
    background: radial-gradient(800px 460px at 15% 20%, var(--primary-light), transparent 70%);
}
.about-hero-grid { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo-bg {
    position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg);
    background: linear-gradient(140deg, var(--primary-soft), var(--primary-light));
}
.about-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge { left: -28px; bottom: 36px; }
.about-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 8px; }
.about-role { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 20px; }
.about-hero .lead { margin: 0 0 32px; max-width: 620px; }
.about-facts { display: grid; gap: 12px; max-width: 520px; }
.about-fact { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.about-fact .feature-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.about-fact strong { display: block; line-height: 1.3; }
.about-fact small { color: var(--text-secondary); font-size: .88rem; }

.principle {
    margin: 0; text-align: center; padding: 48px 24px; border-radius: var(--radius-lg);
    background: var(--primary-light); position: relative; overflow: hidden;
}
.principle::before { content: "“"; position: absolute; left: 32px; top: -24px; font-size: 11rem; line-height: 1; color: var(--primary-soft); font-family: Georgia, serif; }
.principle-label { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-green-dark); }
.principle p { position: relative; margin: 12px 0 0; font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--primary-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.prose p { margin: 0 0 16px; font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--primary-dark); }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.project h3 { font-size: 1.35rem; }
.project p { color: var(--text-secondary); margin: 0 0 12px; }
.project p:last-child { margin: 0; }
.project-year { position: absolute; right: 24px; top: 24px; font-weight: 800; color: var(--primary-soft); font-size: 2.2rem; letter-spacing: -.03em; }

.questions { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: q; display: grid; gap: 10px; }
.questions li {
    counter-increment: q; display: flex; align-items: center; gap: 16px;
    padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600;
}
.questions li::before {
    content: counter(q); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: .9rem;
}

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow li {
    position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; font-weight: 700;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 12px;
}
.flow li span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); }
.flow li:not(:last-child)::after {
    content: ""; position: absolute; right: -11px; top: 50%; width: 10px; height: 10px; z-index: 1;
    border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: translateY(-50%) rotate(45deg);
}
.flow-note { text-align: center; color: var(--text-secondary); max-width: 640px; margin: 32px auto 0; }

.podokom-card { background: var(--brand-green-light); border: 1px solid var(--brand-green-soft); border-radius: var(--radius-lg); padding: 32px; }
.podokom-card .brand-band-icon { margin-bottom: 18px; width: 60px; height: 60px; }
.podokom-card h3 { font-size: 1.4rem; }
.podokom-card p { color: var(--text-secondary); margin: 0 0 12px; }
.podokom-card .btn { margin-top: 8px; }

.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience li { display: flex; gap: 12px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.audience .icon { color: var(--brand-green); margin-top: 2px; }

.goal { margin: 0; display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--primary-soft); background: #fff; box-shadow: var(--shadow); }
.goal-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 6px solid var(--primary-light); }
.goal blockquote { margin: 0 0 20px; }
.goal blockquote p { font-size: 1.1rem; margin: 0 0 12px; }
.goal blockquote p:first-child { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); line-height: 1.45; }
.goal figcaption { display: grid; }
.goal figcaption span { color: var(--text-secondary); font-size: .92rem; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1020px) {
    .topbar-inner { position: relative; }
    .burger { display: flex; }
    .menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        padding: 8px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .topbar.open .menu { display: flex; }
    .menu nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
    .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
    .nav-account { padding-top: 16px; gap: 10px !important; }
    .nav-account a:not(.btn) { border-bottom: 0 !important; text-align: center; }
    .nav-account .btn { width: 100%; padding: 13px 18px; font-size: 1rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .course { grid-template-columns: 1fr; }
    .course-side { position: static; }
    .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
    .brand-band { grid-template-columns: 1fr; text-align: left; }
    .about-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .author-teaser { grid-template-columns: 200px 1fr; gap: 32px; }
    .pc-banner { grid-template-columns: 1fr; gap: 32px; }
    .pc-compare { justify-content: center; }
    .pc-steps { grid-template-columns: 1fr; }
    .about-photo { max-width: 380px; width: 100%; margin: 0 auto; }
    .two-col { grid-template-columns: 1fr; gap: 28px; }
    .projects { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .flow li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 14px 18px; align-items: center; }
    .flow li:not(:last-child)::after { right: auto; left: 40px; top: auto; bottom: -11px; transform: rotate(135deg); }
    .audience { grid-template-columns: 1fr 1fr; }
    .goal { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .goal-photo { max-width: 180px; margin: 0 auto; }
}
@media (max-width: 680px) {
    .section { padding: 64px 0; }
    .section-tight { padding: 16px 0 64px; }
    .hero { padding: 40px 0 56px; }
    .btn { white-space: normal; text-align: center; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero h1 { font-size: 2.1rem; }
    .lead { font-size: 1.05rem; }
    .brand-band .btn { width: 100%; }
    .crumbs span:last-child { flex-basis: 100%; }
    .about-hero { padding: 36px 0 48px; }
    .author-teaser { grid-template-columns: 1fr; }
    .pc-banner, .pc-banner-compact { padding: 28px 20px; }
    .pc-banner-actions .btn { width: 100%; }
    .pc-compare { gap: 10px; }
    .pc-compare > div { min-width: 0; flex: 1; padding: 14px 10px; }
    .pc-compare strong { font-size: 2rem; }
    .pc-compare-new strong { font-size: 2.6rem; }
    .pc-ref { padding: 24px 18px; }
    .pc-ref-head h2 { font-size: 1.4rem; }
    .pc-ref-actions .btn { width: 100%; }
    .pc-features { grid-template-columns: 1fr; }
    .project-link { width: 100%; }
    .author-teaser img { max-width: 240px; }
    .author-teaser .btn { width: 100%; }
    .about-photo-bg { inset: 14px -10px -14px 10px; }
    .audience { grid-template-columns: 1fr; }
    .project, .podokom-card, .goal { padding: 24px 20px; }
    .principle { padding: 36px 18px; }
    .principle::before { left: 10px; font-size: 8rem; }
    .float-card { display: none; }
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 36px; }
    .steps::before { display: none; }
    .brand-band { padding: 28px 22px; }
    .cta { padding: 48px 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .auth { padding: 28px 20px; margin: 0 auto; }
    .wrap { padding: 0 16px; }
    .topbar-inner { gap: 12px; min-height: 64px; }
    .menu { padding: 8px 16px 20px; max-height: calc(100vh - 64px); }
    .logo img { height: 26px; }
    .logo-school { font-size: .74rem; padding-left: 10px; }
    .buy { padding: 22px 18px; }
    .price.big { font-size: 2.2rem; }
    .faq summary { padding: 16px 18px; }
    .faq details p { padding: 0 18px 18px; }
    .table th, .table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
