/* ===== БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fbf6ff;
    --bg-alt: #f3e8ff;
    --cream: #fce7f3;
    --primary: #ec4899;
    --primary-dark: #be185d;
    --accent: #38bdf8;
    --gold: #a78bfa;
    --mint: #06b6d4;
    --ink: #1e1b4b;
    --ink-soft: #4338ca;
    --ink-light: #6b7280;
    --line: rgba(30, 27, 75, 0.08);
    --card: #ffffff;
    --shadow-sm: 0 4px 14px rgba(236, 72, 153, 0.08);
    --shadow-md: 0 12px 40px rgba(236, 72, 153, 0.14);
    --shadow-lg: 0 30px 80px rgba(236, 72, 153, 0.20);
    --radius: 24px;
    --radius-lg: 32px;
    --radius-sm: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
button, input, textarea { font: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Unbounded', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.hl {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ДЕКОРАТИВНЫЙ ФОН ===== */
.bg-decor {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
}
.blob-1 { width: 500px; height: 500px; background: #ffd0e8; top: -150px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #c8e2ff; top: 30%; right: -100px; }
.blob-3 { width: 600px; height: 600px; background: #f5cce8; top: 60%; left: -200px; }
.blob-4 { width: 350px; height: 350px; background: #dde7ff; bottom: -100px; right: 20%; }

/* ===== ХЕДЕР ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 248, 241, 0.78);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 40px; height: 40px; object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
}
.logo-text {
    font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1.25rem;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
    font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
    position: relative;
    display: inline-flex; align-items: center;
    line-height: 1;
}
.nav a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ===== Выпадающее меню «Ещё» (курсы) ===== */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
    font-family: inherit; font-size: 0.95rem; font-weight: 500;
    color: var(--ink-soft); background: none; border: none; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px; line-height: 1;
}
.nav-dropdown-toggle:hover { color: var(--primary); }
.nav-caret { font-size: 0.7rem; transition: transform .2s ease; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
/* Мостик, чтобы курсор не «терялся» в зазоре между кнопкой и меню */
.nav-dropdown::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 8px; z-index: 200;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block; padding: 10px 14px; border-radius: 10px;
    font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(236, 72, 153, 0.08); color: var(--primary); }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #f472b6);
    color: #fff;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(236, 72, 153, 0.45); }
.btn-ghost {
    background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: #fff; }
.btn-outline {
    background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ===== HERO ===== */
.hero { padding: 60px 0 100px; position: relative; }
.hero-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(255,255,255,0.7);
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero h1 { margin-bottom: 24px; }
.lead {
    font-size: 1.15rem; color: var(--ink-soft); max-width: 540px;
    margin-bottom: 36px;
}
.lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b {
    font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 700;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats span { font-size: 0.85rem; color: var(--ink-light); margin-top: 4px; }

.hero-visual { position: relative; }
.portrait-frame {
    position: relative; aspect-ratio: 4/5; max-width: 460px; margin: 40px auto 40px;
    transform: rotate(-2deg);
    transition: transform .4s ease;
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.02); }
.portrait-frame img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
}
.portrait-tag {
    position: absolute; padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    font-size: 0.82rem; font-weight: 600;
    box-shadow: var(--shadow-md);
    line-height: 1.3;
    max-width: 70%;
    z-index: 3;
}
.portrait-tag small { display: block; font-weight: 400; color: var(--ink-light); margin-top: 3px; font-size: 0.78rem; }
.portrait-tag.tag-1 {
    top: -24px; right: -30px; left: auto; transform: rotate(4deg);
    background: #fff;
}
.portrait-tag.tag-2 {
    bottom: -24px; left: -30px; right: auto; transform: rotate(-4deg);
    background: linear-gradient(135deg, var(--primary), #818cf8); color: #fff;
}
.portrait-tag.tag-2 small { color: rgba(255,255,255,0.75); }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
    background: var(--ink); color: #fff;
    padding: 22px 0; overflow: hidden;
    transform: rotate(-1.5deg);
    margin: 0 -20px;
}
.marquee-track {
    display: flex; gap: 60px; white-space: nowrap;
    animation: scroll 35s linear infinite;
    font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 1.1rem;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-track span { display: inline-block; }

/* ===== СЕКЦИИ ===== */
.section { padding: 100px 0; }
.section-eyebrow {
    display: inline-block; padding: 6px 14px;
    background: rgba(236,72,153,0.1); color: var(--primary);
    border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.section-head {
    text-align: center; max-width: 720px; margin: 0 auto 60px;
}
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== ОБ АВТОРЕ ===== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-photos {
    position: relative; aspect-ratio: 1/1;
}
.about-photos .ph {
    position: absolute; border-radius: var(--radius); object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: transform .4s ease;
}
.about-photos .ph:hover { transform: scale(1.03) rotate(2deg); }
.ph-a { width: 58%; height: 70%; top: 0; left: 0; transform: rotate(-3deg); }
.ph-b { width: 45%; height: 55%; bottom: 0; right: 0; transform: rotate(4deg); }
.ph-c { width: 36%; height: 36%; top: 12%; right: 4%; transform: rotate(-2deg); }
.sticker {
    position: absolute; bottom: 10%; left: 14%;
    width: 130px; height: 130px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    transform: rotate(-8deg);
    z-index: 2;
}
.sticker-num { font-family: 'Unbounded', sans-serif; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.sticker-text { font-size: 0.78rem; text-align: center; margin-top: 4px; line-height: 1.2; }

/* Одиночный портрет (фото с Амонашвили) в блоке 1 */
.about-portrait {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-lg, var(--shadow-md));
    max-width: 460px;
}
.about-portrait img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.about-portrait:hover img { transform: scale(1.04); }
.about-portrait-tag {
    position: absolute;
    left: 16px; bottom: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
}

/* Второй блок «Дипломы» — отступ сверху для визуального разделения */
.about-grid--docs { margin-top: 96px; }
@media (max-width: 860px) {
    .about-grid--docs { margin-top: 64px; }
}
.big-p { font-size: 1.1rem; color: var(--ink-soft); margin: 18px 0 28px; }
.check-list { list-style: none; margin-bottom: 36px; }
.check-list li {
    padding: 10px 0 10px 32px; position: relative;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
}
.check-list li:last-child { border: none; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}

/* Подзаголовки внутри блока «Об авторе» */
.about-subhead {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}
.about-subhead.is-gift { color: var(--primary); margin-bottom: 8px; }

/* Выделенный блок «что получите по тарифу» */
.gift-box {
    background: linear-gradient(135deg, rgba(201,82,141,0.06), rgba(99,179,237,0.07));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 36px;
}
.check-list--gift { margin-bottom: 0; }
.check-list--gift li {
    color: var(--ink);
    font-weight: 500;
    border-bottom-color: rgba(0,0,0,0.06);
}
.check-list--gift li::before {
    content: "🎓";
    background: none;
    color: inherit;
    font-size: 1.05rem;
    top: 8px;
}
.quote {
    padding: 24px 28px; background: var(--cream);
    border-radius: var(--radius); border-left: 4px solid var(--primary);
    font-style: italic; color: var(--ink-soft); font-size: 1.05rem;
    position: relative;
}
.q-mark {
    font-family: 'Unbounded', sans-serif; font-size: 3rem; color: var(--primary);
    line-height: 0; margin-right: 8px; vertical-align: -16px;
}

/* ===== ФИЧИ ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
    padding: 32px; background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.f-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(135deg, var(--cream), #bfdbfe);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== ПРОГРАММА ===== */
.modules {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.module {
    padding: 28px; background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--line); position: relative; overflow: hidden;
    transition: transform .3s, border-color .3s;
}
.module::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
}
.module:hover { transform: translateY(-4px); border-color: transparent; }
.module:hover::after { transform: scaleX(1); }
.m-num {
    display: inline-block; font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem; font-weight: 700; color: var(--primary);
    background: rgba(236,72,153,0.1); padding: 4px 10px; border-radius: 8px;
    margin-bottom: 12px;
}
.module h3 { margin-bottom: 6px; }
.module p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== ГАЛЕРЕЯ (bento) ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
    gap: 14px;
}
.g-item {
    overflow: hidden; border-radius: var(--radius-sm); position: relative;
    transition: transform .4s ease;
    cursor: zoom-in;
    display: block;
}
.g-item::after {
    content: "⛶";
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.5); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    opacity: 0; transition: opacity .25s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.g-item:hover::after { opacity: 1; }
.g-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.g-item:hover { transform: scale(1.02); }
.g-item:hover img { transform: scale(1.1); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 2; }
.g3 { grid-column: span 2; }
.g4 { grid-column: span 2; }
.g5 { grid-column: span 2; }
.g6 { grid-column: span 2; grid-row: span 2; }
.g7 { grid-column: span 2; }
.g8 { grid-column: span 2; }
.g9 { grid-column: span 3; }
.g10 { grid-column: span 3; }
.g11 { grid-column: span 3; grid-row: span 2; }
.g12 { grid-column: span 3; grid-row: span 2; }

/* ===== ТАРИФЫ ===== */
.plans {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.plan {
    padding: 36px 32px; background: var(--card); border-radius: var(--radius-lg);
    border: 1px solid var(--line); position: relative;
    transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan-featured {
    background: linear-gradient(160deg, var(--ink) 0%, #3730a3 100%);
    color: #fff;
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}
.plan-featured h3, .plan-featured .plan-name { color: #fff; }
.plan-featured ul li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.12); }
.plan-featured ul li::before { background: linear-gradient(135deg, var(--accent), #f472b6); }
.plan-featured .price { color: #fff; }
.plan-featured .old { color: rgba(255,255,255,0.5); }
.plan-tag {
    position: absolute; top: -12px; right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 6px 14px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.tag-gold { background: linear-gradient(135deg, var(--accent), #818cf8); }
.plan-name {
    font-family: 'Unbounded', sans-serif; font-size: 1.4rem; font-weight: 700;
    margin-bottom: 18px;
}
.plan-price {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px;
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.plan-featured .plan-price { border-color: rgba(255,255,255,0.12); }
.price {
    font-family: 'Unbounded', sans-serif; font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.old {
    text-decoration: line-through; color: var(--ink-light); font-size: 1rem;
}
.plan ul { list-style: none; margin-bottom: 32px; flex: 1; }
.plan ul li {
    padding: 10px 0 10px 30px; position: relative;
    border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.plan ul li:last-child { border: none; }
.plan ul li::before {
    content: "✓"; position: absolute; left: 0; top: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}

/* ===== ЦИТАТА БОЛЬШАЯ ===== */
.cta-quote {
    padding: 100px 0; text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(56,189,248,0.15), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(236,72,153,0.12), transparent 60%);
}
.big-quote {
    font-family: 'Unbounded', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 500; line-height: 1.3; color: var(--ink);
    max-width: 900px; margin: 0 auto 24px;
}
.quote-author {
    font-size: 1rem; color: var(--ink-soft); font-weight: 500;
}

/* ===== КОНТАКТЫ ===== */
.contact-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start;
}
.socials {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px;
}
.social-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; background: var(--card); border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    transition: transform .2s, border-color .2s;
}
.social-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.s-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.social-card b { display: block; font-size: 0.95rem; font-weight: 600; }
.social-card span { display: block; font-size: 0.82rem; color: var(--ink-light); margin-top: 2px; }

.contact-card {
    padding: 36px; background: var(--card); border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.divider { height: 1px; background: var(--line); margin: 28px 0; }

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--ink); color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-footer .logo-text { color: #fff; }
.footer-tag { margin-top: 18px; font-size: 0.92rem; line-height: 1.6; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer a { display: block; padding: 6px 0; font-size: 0.92rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px; font-size: 0.85rem;
}

/* ===== НАСТРОЙКИ ТЕМЫ ===== */
.settings-btn {
    position: fixed; right: 24px; bottom: 24px;
    z-index: 90;
    width: 56px; height: 56px;
    border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center;
    transition: transform .4s ease;
}
.settings-btn svg { width: 24px; height: 24px; }
.settings-btn:hover { transform: rotate(60deg) scale(1.08); }

.settings-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 14, 30, 0.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.settings-overlay.open { opacity: 1; pointer-events: auto; }

.settings-panel {
    position: fixed; right: 0; top: 0;
    width: 380px; max-width: 92vw;
    height: 100%;
    background: var(--card);
    box-shadow: -20px 0 60px rgba(0,0,0,0.18);
    z-index: 100;
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.settings-panel.open { transform: translateX(0); }

.settings-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px;
}
.settings-head h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.3rem; margin-bottom: 4px;
}
.settings-head p { color: var(--ink-light); font-size: 0.88rem; }
.settings-close {
    background: var(--bg-alt); border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.settings-close:hover { background: var(--primary); color: #fff; }

.settings-body { padding: 24px 28px; flex: 1; }
.settings-section { margin-bottom: 28px; }
.settings-label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--ink-light); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 14px;
}

.preset-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.preset {
    padding: 18px 12px;
    border: none; border-radius: 14px;
    cursor: pointer;
    color: #fff; font-weight: 600; font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}
.preset:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }

.color-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 8px;
}
.color-row span { font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }
.color-row input[type="color"] {
    width: 50px; height: 36px;
    border: none; padding: 0; cursor: pointer;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 8px; }
.color-row input[type="color"]::-moz-color-swatch { border: none; border-radius: 8px; }

.settings-reset {
    width: 100%; padding: 14px;
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.settings-reset:hover { background: var(--ink); color: #fff; }

@media (max-width: 640px) {
    .settings-btn { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ===== COOKIE-БАННЕР ===== */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 95;
    background: var(--ink); color: #fff;
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    animation: cookieIn .35s ease;
}
@keyframes cookieIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-text { flex: 1 1 320px; font-size: 0.88rem; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.15); }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* HTML-атрибут hidden должен побеждать любые наши display:flex/block */
[hidden] { display: none !important; }

/* ===== МОДАЛКА ЗАЯВКИ ===== */
.order-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; }
.order-overlay {
    position: absolute; inset: 0;
    background: rgba(20, 14, 30, 0.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.order-card {
    position: relative;
    width: 100%; max-width: 480px;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    max-height: 90vh; overflow-y: auto;
    animation: cardIn .35s cubic-bezier(.4, 0, .2, 1);
}
@keyframes cardIn { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.order-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    border: none; background: var(--bg-alt);
    border-radius: 50%; font-size: 1.6rem; line-height: 1;
    cursor: pointer; color: var(--ink-soft);
    transition: background .2s, color .2s;
}
.order-close:hover { background: var(--primary); color: #fff; }
.order-title { font-family: 'Unbounded', sans-serif; font-size: 1.4rem; margin-bottom: 18px; }
.order-course {
    background: linear-gradient(135deg, var(--cream), var(--bg-alt));
    border-radius: var(--radius);
    padding: 16px 18px; margin-bottom: 22px;
}
.order-course .oc-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.order-course .oc-price {
    font-family: 'Unbounded', sans-serif; font-size: 1.6rem; font-weight: 700;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-top: 4px;
}
.order-field { display: block; margin-bottom: 14px; }
.order-field > span { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.order-field input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit; color: var(--ink);
    background: var(--card);
    transition: border-color .2s;
}
.order-field input:focus { outline: none; border-color: var(--primary); }
.order-hint { color: var(--ink-light); font-size: 0.78rem; margin-top: 4px; display: block; }
.order-installments {
    background: var(--bg-alt); border-radius: var(--radius);
    padding: 14px 16px; margin: 14px 0;
}
.order-promocode { margin-bottom: 14px; }
.promo-result {
    margin-top: 6px; padding: 8px 12px; border-radius: 10px;
    font-size: 0.85rem;
}
.promo-result.ok { background: #d1fae5; color: #065f46; }
.promo-result.err { background: #fee2e2; color: #b91c1c; }
.order-course .oc-price.has-discount .price-old {
    text-decoration: line-through; color: var(--ink-light);
    font-size: 1rem; font-weight: 500;
    -webkit-text-fill-color: var(--ink-light);
    background: none;
    margin-right: 8px;
}
.order-course .oc-savings {
    display: inline-block; margin-top: 4px;
    background: rgba(16, 185, 129, 0.15); color: #047857;
    padding: 2px 10px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
    font-family: 'Manrope', sans-serif;
    -webkit-text-fill-color: #047857;
}
.order-toggle, .order-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.order-toggle { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.order-toggle input { margin-top: 2px; }
.order-consents { margin: 18px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.order-check { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.order-check input { margin-top: 3px; flex-shrink: 0; }
.order-check a { color: var(--primary); text-decoration: underline; }
.order-error { background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 12px; }
.order-note { color: var(--ink-light); font-size: 0.78rem; margin-top: 12px; text-align: center; line-height: 1.5; }

.order-step[data-step="loading"] { text-align: center; padding: 30px 0; }
.order-spinner {
    width: 56px; height: 56px; margin: 0 auto 20px;
    border: 4px solid var(--line); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-actions { justify-content: center; }
    .order-card { padding: 24px 20px 20px; }
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== АДАПТИВ ===== */
@media (max-width: 980px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .portrait-frame { margin: 0 auto; max-width: 380px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .plan-featured { transform: scale(1); }
    .nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* Мобильный/планшет: коллаж → сетка 2×2 без обрезки фото, стикер в 4-й ячейке */
    .about-photos {
        position: static;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: center;
        justify-items: center;
    }
    .about-photos .ph {
        position: static;
        width: 100%;
        height: auto;          /* натуральные пропорции — без object-fit обрезки */
        transform: none;
    }
    .about-photos .sticker {
        position: static;
        width: 120px; height: 120px;
        transform: rotate(-6deg);
    }
    .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
    .g1, .g6, .g11, .g12 { grid-row: span 2; }
}
@media (max-width: 640px) {
    .section { padding: 70px 0; }
    .hero { padding: 40px 0 70px; }
    /* Мобайл: фото с плашками переносим под заголовок (между h1 и lead).
       Текст и фото в разных контейнерах → разворачиваем hero-text через
       display:contents и переупорядочиваем все элементы через order. */
    .hero-grid { gap: 0; }
    .hero-text { display: contents; }
    .hero-text .badge      { order: 1; }
    .hero-text h1          { order: 2; }
    .hero-visual           { order: 3; margin: 0 0 28px; }
    .hero-text .lead       { order: 4; }
    .hero-text .hero-cta   { order: 5; }
    .hero-text .hero-stats { order: 6; }
    .hero-stats { grid-template-columns: 1fr; gap: 12px; }
    .hero-stats div { flex-direction: row; align-items: baseline; gap: 12px; }
    .hero-stats b { font-size: 1.6rem; }
    .features-grid, .modules, .socials, .footer-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery .g-item { grid-column: span 1; grid-row: auto; }
    .gallery .g1, .gallery .g6 { grid-column: span 2; grid-row: span 2; }
    .portrait-tag.tag-1 { left: 10px; }
    .portrait-tag.tag-2 { right: 10px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .big-quote { font-size: 1.4rem; }
    h1 { font-size: 2.2rem; }
}
