/* ============================================
   Правильный Вектор — общие стили
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #1d1d1f;
    --gray: #86868b;
    --light-gray: #f5f5f7;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --border: rgba(0,0,0,0.08);
    --card-bg: #f5f5f7;
    --nav-bg: rgba(255,255,255,0.65);
    --modal-bg: rgba(255, 255, 255, 0.85);
    --shadow: rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --black: #f5f5f7;
    --gray: #a1a1a6;
    --light-gray: #1c1c1e;
    --blue: #0a84ff;
    --blue-hover: #409cff;
    --bg: #000000;
    --bg-secondary: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border: rgba(255,255,255,0.1);
    --card-bg: #1c1c1e;
    --nav-bg: rgba(0,0,0,0.6);
    --modal-bg: rgba(28, 28, 30, 0.85);
    --shadow: rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* ============================================
   NAVIGATION — стекло
   ============================================ */

nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(200%) blur(24px);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    z-index: 999;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.nav-inner {
    max-width: 980px; margin: 0 auto; padding: 0 22px;
    height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 17px; font-weight: 600; color: var(--text);
    text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 12px; color: var(--text); text-decoration: none;
    opacity: 0.8; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; color: var(--blue); }
.nav-cta {
    font-size: 13px;
    font-weight: 600;
    background: var(--blue);
    color: #fff;
    padding: 7px 18px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,113,227,0.25);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-cta:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 14px rgba(0,113,227,0.4);
    transform: scale(1.05);
}
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 980px;
    transition: all 0.3s;
    line-height: 1;
    color: var(--text);
}
.theme-toggle:hover { background: var(--card-bg); }
.nav-right { display: flex; gap: 12px; align-items: center; }

@media (max-width: 734px) {
    .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */

.hero { padding: 140px 0 100px; text-align: center; }
.hero-eyebrow {
    font-size: 21px; font-weight: 600; color: var(--blue);
    margin-bottom: 8px; letter-spacing: -0.01em;
}
.hero h1 {
    font-size: 80px; font-weight: 700; line-height: 1.05;
    letter-spacing: -0.04em; margin-bottom: 20px;
    color: var(--text);
}
.hero h1 .gradient {
    background: linear-gradient(135deg, #0071e3 0%, #42a1ec 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .hero h1 .gradient {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 24px; font-weight: 400; color: var(--text-secondary);
    max-width: 700px; margin: 0 auto 36px; letter-spacing: -0.01em;
}
.hero-cta {
    display: inline-block; background: var(--blue); color: #fff;
    padding: 18px 40px; border-radius: 980px; text-decoration: none;
    font-size: 19px; font-weight: 600; transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,113,227,0.45);
    border: none; cursor: pointer; font-family: inherit;
}
.hero-cta:hover {
    background: var(--blue-hover);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0,113,227,0.6);
}
.hero-cta-secondary {
    display: inline-block; background: transparent; color: var(--blue);
    padding: 18px 36px; border-radius: 980px; text-decoration: none;
    font-size: 17px; font-weight: 500; border: 1.5px solid var(--blue);
    transition: all 0.3s;
}
.hero-cta-secondary:hover { background: var(--blue); color: #fff; }

.hero-buttons {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 734px) {
    .hero { padding: 110px 0 70px; }
    .hero h1 { font-size: 48px; }
    .hero-sub { font-size: 19px; }
    .hero-cta, .hero-cta-secondary { padding: 14px 28px; font-size: 16px; }
}

/* ============================================
   SECTIONS
   ============================================ */

section { padding: 100px 0; }
.section-eyebrow {
    font-size: 19px; font-weight: 600; color: var(--blue);
    text-align: center; margin-bottom: 6px;
}
.section-title {
    font-size: 48px; font-weight: 700; text-align: center;
    letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
    color: var(--text);
}
.section-sub {
    font-size: 21px; color: var(--text-secondary); text-align: center;
    max-width: 700px; margin: 0 auto 60px; letter-spacing: -0.01em;
}
@media (max-width: 734px) {
    .section-title { font-size: 32px; }
    .section-sub { font-size: 17px; }
    section { padding: 60px 0; }
}

/* ============================================
   STATS
   ============================================ */

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; text-align: center;
}
.stat-num {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0071e3 0%, #42a1ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
[data-theme="dark"] .stat-num {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 15px; color: var(--text-secondary); margin-top: 10px; }
@media (max-width: 734px) {
    .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .stat-num { font-size: 40px; }
}
.stat-num {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0071e3 0%, #42a1ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

[data-theme="dark"] .stat-num {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 734px) {
    .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .stat-num { font-size: 40px; }
    .stat-num.text { font-size: 26px; padding-top: 8px; padding-bottom: 8px; }
}

/* ============================================
   CARDS
   ============================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    background: var(--card-bg); border-radius: 22px;
    padding: 40px 32px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease;
    color: var(--text);
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--text); }
.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 734px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ============================================
   TEACHERS
   ============================================ */

.teachers-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.teacher-card {
    background: var(--card-bg); border-radius: 22px;
    padding: 40px 32px; text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease;
    color: var(--text);
}
.teacher-card:hover { transform: translateY(-4px); }
.teacher-photo {
    width: 140px; height: 140px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 20px; display: block;
    border: 4px solid var(--bg); box-shadow: 0 8px 24px var(--shadow);
}
.teacher-card h3 {
    font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
    margin-bottom: 6px; color: var(--text);
}
.teacher-card .role {
    font-size: 15px; color: var(--blue); font-weight: 500;
    margin-bottom: 16px;
}
.teacher-card .bio {
    font-size: 15px; color: var(--text-secondary); line-height: 1.6;
    text-align: left;
}
.teacher-card .bio li {
    list-style: none; padding: 6px 0 6px 20px; position: relative;
}
.teacher-card .bio li::before {
    content: "—"; position: absolute; left: 0;
    color: var(--blue); font-weight: 600;
}
.teacher-card.coming {
    opacity: 0.6; border: 2px dashed var(--border);
}
@media (max-width: 734px) {
    .teachers-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CALCULATOR
   ============================================ */

.calc {
    background: var(--card-bg); border-radius: 22px;
    padding: 50px 40px; max-width: 700px; margin: 0 auto;
    color: var(--text);
}
.calc h3 {
    font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 8px; text-align: center; color: var(--text);
}
.calc-sub {
    font-size: 15px; color: var(--text-secondary); text-align: center;
    margin-bottom: 32px;
}
.calc-row { margin-bottom: 24px; }
.calc-row label {
    display: block;
    font-size: 16px; font-weight: 500; color: var(--text);
    margin-bottom: 12px;
}
.calc-row .slider-wrap {
    display: flex; align-items: center; gap: 16px;
}
.calc-row input[type="range"] {
    flex: 1; width: 100%; accent-color: var(--blue); cursor: pointer;
}
.calc-value {
    font-size: 20px; font-weight: 700; color: var(--blue);
    min-width: 48px; text-align: right; flex-shrink: 0;
}
.calc-result {
    margin-top: 30px; padding: 24px;
    background: var(--bg); border-radius: 16px; text-align: center;
}
.calc-result .label {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 8px;
}
.calc-result .value {
    font-size: 48px; font-weight: 700; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0071e3 0%, #42a1ec 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
[data-theme="dark"] .calc-result .value {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.calc-result .note {
    font-size: 13px; color: var(--text-secondary); margin-top: 12px;
}
@media (max-width: 734px) {
    .calc { padding: 32px 20px; }
    .calc h3 { font-size: 22px; }
    .calc-result .value { font-size: 36px; }
}

/* ============================================
   FORMAT TOGGLE
   ============================================ */

.format-toggle {
    display: flex; gap: 8px; justify-content: center;
    margin-bottom: 40px; background: var(--card-bg);
    padding: 6px; border-radius: 980px; max-width: 400px;
    margin-left: auto; margin-right: auto;
}
.format-toggle button {
    flex: 1; padding: 12px 24px; border: none;
    background: transparent; border-radius: 980px;
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: all 0.3s; color: var(--text);
}
.format-toggle button.active {
    background: var(--bg); font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow);
}
.format-panel { display: none; }
.format-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SEATS BADGE
   ============================================ */

.seats-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff3e0; color: #e65100;
    padding: 8px 16px; border-radius: 980px;
    font-size: 14px; font-weight: 600;
    margin-bottom: 20px;
}
[data-theme="dark"] .seats-badge {
    background: rgba(230, 81, 0, 0.2);
    color: #ff9800;
}
.seats-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #e65100; animation: blink 1.5s infinite;
}
[data-theme="dark"] .seats-badge .dot { background: #ff9800; }
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   PRICES
   ============================================ */

.price-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 22px; padding: 40px 32px;
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s, background-color 0.3s;
    color: var(--text);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px var(--shadow); }
.price-card.featured { border: 2px solid var(--blue); position: relative; }
.price-card.featured::before {
    content: "Популярный"; position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%); background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 600; padding: 4px 14px;
    border-radius: 980px; letter-spacing: 0.02em;
}
.price-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }
.price-card .price {
    font-size: 48px; font-weight: 700; letter-spacing: -0.03em;
    line-height: 1; margin: 16px 0 4px; color: var(--text);
    white-space: nowrap;
}
.price-card .price-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.price-card ul li {
    padding: 8px 0 8px 24px; position: relative;
    font-size: 15px; color: var(--text);
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 600; }

@media (max-width: 400px) {
    .price-card .price { font-size: 36px; }
}

.price-btn {
    display: block; text-align: center; background: var(--blue); color: #fff;
    padding: 14px 24px; border-radius: 980px; text-decoration: none;
    font-size: 16px; font-weight: 600; transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0,113,227,0.3);
    border: none; cursor: pointer; font-family: inherit; width: 100%;
}
.price-btn:hover { background: var(--blue-hover); box-shadow: 0 6px 20px rgba(0,113,227,0.5); transform: translateY(-2px); }
.price-btn.outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.price-btn.outline:hover { background: var(--blue); color: #fff; }

/* ============================================
   REFERRAL
   ============================================ */

.referral {
    background: var(--card-bg); border-radius: 30px;
    padding: 70px 40px; text-align: center; max-width: 800px; margin: 0 auto;
    color: var(--text);
}
.referral h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; color: var(--text); }
.referral p { font-size: 19px; color: var(--text-secondary); margin-bottom: 12px; }
.referral .small { font-size: 13px; color: var(--text-secondary); margin-top: 24px; }
@media (max-width: 734px) {
    .referral h2 { font-size: 28px; }
    .referral { padding: 50px 24px; }
}

/* ============================================
   FAQ — читаемая ширина
   ============================================ */

#faq .container > div {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.faq-q {
    padding: 24px 0;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.01em;
    transition: color 0.3s;
    user-select: none;
    color: var(--text);
}


/* ============================================
   CTA BANNER — больше воздуха
   ============================================ */

.cta-banner {
    background: linear-gradient(135deg, #0071e3 0%, #42a1ec 100%);
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
    color: #fff;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.25);
}
.cta-banner h2 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}
.cta-banner p {
    font-size: 19px;
    opacity: 0.95;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.cta-banner .btn-white {
    display: inline-block;
    background: #fff;
    color: var(--blue);
    padding: 18px 44px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta-banner .btn-white:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
@media (max-width: 734px) {
    .cta-banner { padding: 50px 30px; border-radius: 22px; }
    .cta-banner h2 { font-size: 28px; }
    .cta-banner p { font-size: 17px; }
    .cta-banner .btn-white { padding: 14px 32px; font-size: 15px; }
}

/* ============================================
   FOOTER — выравнивание и воздух
   ============================================ */

footer {
    background: var(--card-bg);
    padding: 70px 0 30px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.footer-col a, .footer-col p {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--blue);
    text-decoration: none;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }

@media (max-width: 734px) {
    footer { padding: 50px 0 30px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
}

/* ============================================
   MODAL — стекло
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFade 0.3s ease;
}
.modal.open { display: flex; }

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--modal-bg);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid var(--border);
    border-radius: 22px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px 40px;
    position: relative;
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal.open .modal-content {
    animation: modalSlide 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute; top: 20px; right: 24px;
    font-size: 28px; cursor: pointer; color: var(--text-secondary);
    background: none; border: none; line-height: 1;
}
.modal-content h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--text); }
.modal-content p { font-size: 15px; color: var(--text); margin-bottom: 16px; line-height: 1.6; }

/* ============================================
   BOOKING FORM
   ============================================ */

.booking-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.form-options { display: flex; flex-wrap: wrap; gap: 8px; }
.form-option {
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 980px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.form-option:hover { border-color: var(--blue); color: var(--blue); }
.form-option.selected { background: var(--blue); color: #fff; border-color: var(--blue); }
.form-submit {
    display: block; width: 100%; padding: 16px 24px;
    background: var(--blue); color: #fff; border: none; border-radius: 980px;
    font-size: 17px; font-weight: 600; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0,113,227,0.3);
    font-family: inherit;
    margin-top: 8px;
}
.form-submit:hover {
    background: var(--blue-hover);
    box-shadow: 0 6px 20px rgba(0,113,227,0.5);
    transform: translateY(-2px);
}
.form-hint { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 8px; }

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   DIVIDER
   ============================================ */

.divider { height: 1px; background: var(--border); max-width: 980px; margin: 0 auto; }

/* ============================================
   PAGE HEADER (для внутренних страниц)
   ============================================ */

.page-header {
    padding: 140px 0 60px;
    text-align: center;
}
.page-header h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--text);
}
.page-header p {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 734px) {
    .page-header { padding: 110px 0 40px; }
    .page-header h1 { font-size: 40px; }
    .page-header p { font-size: 17px; }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--blue); }

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    nav, .modal-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.privacy-link:hover {
    color: var(--blue);
    text-decoration: underline;
}


/* ============================================
   БЫСТРАЯ ЗАПИСЬ: компактная модалка, поля, ошибки
   ============================================ */

[hidden] { display: none !important; }

#bookingModal .modal-content {
    max-height: 92vh;
    padding: 32px 32px 0;
    background: var(--bg);
}
#bookingModal .modal-content h2 { font-size: 26px; margin-bottom: 18px; padding-right: 32px; }
#bookingModal .booking-form { gap: 16px; }
#bookingModal .form-group { gap: 8px; }
#bookingModal .form-option { padding: 8px 14px; }

#bookingModal .contact-fields { display: flex; flex-direction: column; gap: 16px; }
#bookingModal .form-group-inline { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
#bookingModal .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 16px; /* 16px — чтобы iOS не увеличивал страницу при фокусе */
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--text-secondary); }
.form-input:focus {
    outline: none;
    background: var(--bg);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

/* Нижняя панель с кнопкой: остаётся на виду при прокрутке формы */
#bookingModal .form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 -32px;
    padding: 14px 32px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
#bookingModal .form-submit { margin-top: 0; padding: 14px 24px; font-size: 16px; }
.form-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

#bookingModal .modal-content p.form-error {
    font-size: 14px;
    font-weight: 500;
    color: #d70015;
    text-align: center;
    margin: 0;
}
[data-theme="dark"] #bookingModal .modal-content p.form-error { color: #ff6961; }

.form-fallback {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.form-fallback:hover { text-decoration: underline; }

#bookingModal .modal-content p.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}
#bookingModal .modal-content p.form-consent {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 520px) {
    #bookingModal { padding: 12px; }
    #bookingModal .modal-content { max-height: 94vh; padding: 24px 20px 0; }
    #bookingModal .modal-content h2 { font-size: 22px; }
    #bookingModal .modal-close { top: 14px; right: 16px; }
    #bookingModal .contact-grid { grid-template-columns: 1fr; }
    #bookingModal .form-option { padding: 8px 12px; font-size: 13.5px; }
    #bookingModal .form-actions { margin: 0 -20px; padding: 12px 20px 16px; }
}


/* Booking modal — polished motion */
.modal { opacity: 0; transition: opacity .28s ease, background-color .28s ease; }
.modal.open { opacity: 1; }
.modal-content { transform: translateY(18px) scale(.965); opacity: 0; transition: transform .48s cubic-bezier(.2,1.35,.35,1), opacity .25s ease; }
.modal.open .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal.is-closing { opacity: 0; pointer-events: none; }
.modal.is-closing .modal-content { transform: translateY(18px) scale(.98); opacity: 0; }
.booking-heading { margin-bottom: 25px; }
.booking-heading h2 { margin: 5px 0 7px; }
.booking-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.modal-content .booking-lead { color: var(--text-secondary); font-size: 14px; margin: 0 0 20px; }
.booking-progress { height: 5px; border-radius: 99px; overflow: hidden; background: var(--border); }
.booking-progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),#55b5ff); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.booking-progress-meta { display:flex; justify-content:space-between; color:var(--text-secondary); font-size:11px; margin-top:7px; }
.booking-form > .form-group, .booking-form .contact-fields, .booking-form .form-actions { animation: bookingStepIn .55s both; }
.booking-form > .form-group:nth-child(1) { animation-delay: .04s; }
.booking-form > .form-group:nth-child(2) { animation-delay: .09s; }
.booking-form > .form-group:nth-child(3) { animation-delay: .14s; }
.booking-form > .form-group:nth-child(4) { animation-delay: .19s; }
.booking-form .contact-fields { animation-delay: .24s; }
.booking-form .form-actions { animation-delay: .29s; }
@keyframes bookingStepIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.form-option { transition: transform .2s cubic-bezier(.2,1.4,.4,1), background .2s, border-color .2s, box-shadow .2s; }
.form-option:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,113,227,.12); }
.form-option:active, .form-submit:active { transform: scale(.97); }
.form-option.selected { box-shadow: 0 5px 15px rgba(0,113,227,.2); }
.form-submit { position:relative; overflow:hidden; }
.form-submit::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.22),transparent 75%); transform:translateX(-120%); transition:transform .6s; }
.form-submit:hover::after { transform:translateX(120%); }
.booking-success { text-align:center; padding:24px 10px 34px; animation:bookingStepIn .45s both; }
.booking-success h3 { font-size:25px; margin:18px 0 8px; }
.booking-success p { color:var(--text-secondary); }
.success-check { width:76px; height:76px; margin:0 auto; }
.success-check svg { width:100%; height:100%; fill:none; stroke:#20b26b; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.success-check circle { stroke-dasharray:145; stroke-dashoffset:145; animation:drawCircle .65s ease forwards; }
.success-check path { stroke-dasharray:42; stroke-dashoffset:42; animation:drawCheck .38s .48s ease forwards; }
@keyframes drawCircle { to { stroke-dashoffset:0; } }
@keyframes drawCheck { to { stroke-dashoffset:0; } }
@media (max-width: 600px) {
 .modal { align-items:flex-end; padding:0; }
 .modal-content { width:100%; max-width:none; max-height:min(90dvh, 850px); border-radius:24px 24px 0 0; padding:32px 22px calc(22px + env(safe-area-inset-bottom)); transform:translateY(100%); }
 .modal.open .modal-content { transform:translateY(0); }
 .modal.is-closing .modal-content { transform:translateY(100%); }
 .modal-close { top:16px; right:18px; }
 .modal-content h2 { font-size:25px; padding-right:24px; }
 .booking-form { gap:19px; }
}
@media (prefers-reduced-motion: reduce) {
 .modal, .modal-content, .booking-form > *, .success-check circle, .success-check path { animation:none !important; transition:none !important; }
}

/* ============================================
   ОБНОВЛЕННЫЕ ЦЕНЫ (Карточки)
   ============================================ */
   .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: rgba(0, 113, 227, 0.3);
}
.price-card.featured {
    border: 2px solid var(--blue);
    background: var(--bg);
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.12);
}
.price-card.featured::before {
    content: "Популярный выбор";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 99px;
}
.price-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.price-card .price {
    font-size: 40px; font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 12px 0;
    line-height: 1.1;
}
.price-card.featured .price { color: var(--blue); }
.price-card .price-desc {
    font-size: 15px; color: var(--text-secondary);
    line-height: 1.5; margin-bottom: 28px;
}
.price-card .price-btn { margin-top: auto; }

/* ============================================
   УЛУЧШЕННЫЙ FAQ (Плавный Аккордеон)
   ============================================ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
}
.faq-q {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-size: 19px; font-weight: 500;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
    position: relative;
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-left: 20px;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}
.faq-icon::before { width: 14px; height: 2px; } /* Горизонтальная */
.faq-icon::after { width: 2px; height: 14px; }  /* Вертикальная */
.faq-item.open .faq-icon::before { transform: translate(-50%, -50%) rotate(180deg); background: var(--blue); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 1, 0.4, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
    overflow: hidden;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item.open .faq-a-inner { padding-bottom: 24px; }

/* ============================================
   МОДАЛЬНОЕ ОКНО: Свежий вид и Bottom Sheet
   ============================================ */
.modal { 
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
.modal.open { 
    opacity: 1; 
    visibility: visible;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--bg); /* Убрали прозрачность для лучшей читаемости */
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.3, 1), opacity 0.35s ease;
    padding: 40px;
    max-width: 580px;
}
.modal.open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modal.is-closing .modal-content {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

/* Свежие инпуты и кнопки в модалке */
.form-input {
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: all 0.2s ease;
}
.form-input:focus {
    background: var(--bg);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.form-option {
    border-radius: 12px; /* Чуть менее круглые, более современные */
    padding: 12px 20px;
}
.form-submit {
    border-radius: 14px;
    padding: 16px;
    font-size: 17px;
    background: linear-gradient(135deg, var(--blue) 0%, #42a1ec 100%);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}
.form-submit:hover {
    box-shadow: 0 12px 25px rgba(0, 113, 227, 0.4);
    transform: translateY(-2px);
}

/* Мобильная версия модалки (Bottom Sheet) */
@media (max-width: 600px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-content {
        border-radius: 28px 28px 0 0;
        max-height: 92dvh;
        padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
        transform: translateY(100%) scale(1);
    }
    .modal.open .modal-content { transform: translateY(0) scale(1); }
    .modal.is-closing .modal-content { transform: translateY(100%) scale(1); }
    
    #bookingModal .form-actions {
        margin: 0 -24px;
        padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
        border-radius: 0 0 28px 28px;
    }
}

/* ============================================
   FAQ — Всплывающие вопросы
   ============================================ */
   .faq-container { max-width: 800px; margin: 0 auto; }
   .faq-item {
       border-bottom: 1px solid var(--border);
       padding: 0 10px;
   }
   .faq-q {
       width: 100%;
       text-align: left;
       padding: 24px 0;
       font-size: 19px; font-weight: 500;
       color: var(--text);
       background: transparent;
       border: none;
       cursor: pointer;
       display: flex;
       justify-content: space-between;
       align-items: center;
       font-family: inherit;
       transition: color 0.3s;
   }
   .faq-q:hover { color: var(--blue); }
   
   /* Плюс/минус */
   .faq-q::after {
       content: "+";
       font-size: 24px;
       font-weight: 300;
       color: var(--text-secondary);
       transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), color 0.3s;
       margin-left: 20px;
   }
   .faq-item.open .faq-q::after {
       transform: rotate(45deg);
       color: var(--blue);
   }
   
   /* Анимация появления/исчезновения (всплытие) */
   .faq-a {
       display: grid;
       grid-template-rows: 0fr;
       transition: grid-template-rows 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
       opacity: 0;
   }
   .faq-item.open .faq-a {
       grid-template-rows: 1fr;
       opacity: 1;
   }
   .faq-a-inner {
       overflow: hidden;
       font-size: 16px;
       color: var(--text-secondary);
       line-height: 1.6;
       transform: translateY(-10px);
       transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
   }
   .faq-item.open .faq-a-inner {
       padding-bottom: 24px;
       transform: translateY(0);
   }

   /* ============================================
   МОДАЛЬНОЕ ОКНО: Свежий дизайн
   ============================================ */
.modal-content {
    background: var(--bg);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
}

.modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary);
    border: none; border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: var(--border);
    color: var(--text);
    transform: rotate(90deg);
}
.modal-close svg { width: 20px; height: 20px; }

/* Обновленные карточки опций */
.form-option {
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.form-option:hover {
    background: var(--bg);
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}
.form-option.selected {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Поля ввода */
.form-input {
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.form-input:focus {
    background: var(--bg);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

/* Кнопка */
.form-submit {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue) 0%, #42a1ec 100%);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 113, 227, 0.4);
}

/* Мобильный Bottom Sheet */
@media (max-width: 600px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-content {
        border-radius: 28px 28px 0 0;
        max-height: 92dvh;
        padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
        transform: translateY(100%) scale(1);
    }
    .modal.open .modal-content { transform: translateY(0) scale(1); }
    .modal.is-closing .modal-content { transform: translateY(100%) scale(1); }
    .modal-close { top: 16px; right: 16px; width: 32px; height: 32px; }
}


/* ============================================
   WIZARD: пошаговая модалка записи
   ============================================ */

#bookingModal .modal-content.wiz {
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    padding: 20px 28px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
    border-radius: 28px;
    isolation: isolate;
}

.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wiz-count { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-secondary); }
.wiz-icon-btn {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--bg-secondary); color: var(--text);
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.wiz-icon-btn:hover { transform: scale(1.08); }
.wiz-icon-btn.is-off { visibility: hidden; pointer-events: none; }

.wiz-progress { height: 4px; margin-bottom: 26px; border-radius: 4px; background: var(--bg-secondary); overflow: hidden; }
.wiz-progress span {
    display: block; width: 0; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #0a84ff, #bf5af2);
    transition: width 0.45s cubic-bezier(0.3, 1, 0.4, 1);
}

.wiz-stage { position: relative; min-height: 300px; }
.wiz-step { display: none; }
.wiz-step.active { display: block; transition: opacity 0.3s ease, transform 0.3s ease; }
.wiz-step.leave-fwd { opacity: 0; transform: translateY(-18px); }   /* исчезает: fade + вверх */
.wiz-step.leave-back { opacity: 0; transform: translateY(18px); }
.wiz-step.enter-fwd { opacity: 0; transform: translateY(-18px); }   /* появляется: fade + вниз на место */
.wiz-step.enter-back { opacity: 0; transform: translateY(18px); }
.wiz-step h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.2; }

.wiz-options { display: flex; flex-direction: column; gap: 10px; }
.wiz-options-row { flex-direction: row; margin-bottom: 18px; }
.wiz-option {
    padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 16px;
    background: var(--bg-secondary); color: var(--text);
    font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.wiz-option:hover { transform: translateY(-2px); border-color: var(--blue); }
.wiz-option:active { transform: scale(0.98); }
.wiz-option:focus-visible, .wiz-btn:focus-visible, .wiz-icon-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wiz-option.selected { border-color: var(--blue); background: rgba(0, 113, 227, 0.1); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18); }
.wiz-options-row .wiz-option { flex: 1; padding: 12px; text-align: center; }

.wiz-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.wiz-input {
    width: 100%; margin-bottom: 16px; padding: 14px 16px;
    border: 1.5px solid var(--border); border-radius: 14px;
    background: var(--bg-secondary); color: var(--text);
    font: inherit; font-size: 16px; /* 16px — чтобы iOS не увеличивал страницу */
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.wiz-input::placeholder { color: var(--text-secondary); }
.wiz-input:focus { outline: none; background: var(--bg); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18); }

.wiz-btn {
    display: block; width: 100%; margin-top: 8px; padding: 16px 24px; border: 0; border-radius: 980px;
    background: linear-gradient(135deg, #0a84ff, #0071e3 55%, #5e5ce6); color: #fff;
    font: inherit; font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 113, 227, 0.3);
    transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
}
.wiz-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 113, 227, 0.4); }
.wiz-btn:active { transform: scale(0.98); }
.wiz-btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.wiz-btn.is-loading::before {
    content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 10px; vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%;
    animation: wizSpin 0.7s linear infinite;
}

.wiz-summary { display: flex; flex-direction: column; margin: 0 0 16px; padding: 4px 16px; list-style: none; border-radius: 16px; background: var(--bg-secondary); }
.wiz-summary li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.wiz-summary li:last-child { border-bottom: 0; }
.wiz-summary span { color: var(--text-secondary); }
.wiz-summary b { font-weight: 600; text-align: right; }

.wiz-error { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #d70015; }
[data-theme="dark"] .wiz-error { color: #ff6961; }
.wiz-error[hidden], .wiz-link[hidden] { display: none; }
.wiz-error.shake { animation: wizShake 0.45s; }
.wiz-link { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; text-align: center; color: var(--blue); text-decoration: none; }
.wiz-link:hover { text-decoration: underline; }
.wiz-consent { margin: 16px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: var(--text-secondary); }

/* Экран успеха с рисующейся галочкой */
.wiz-success { text-align: center; padding-top: 8px; }
.wiz-success.active { display: flex; flex-direction: column; align-items: center; }
.wiz-success h2 { margin-bottom: 10px; }
.wiz-success p { margin: 0 0 20px; color: var(--text-secondary); }
.wiz-check { width: 92px; height: 92px; margin-bottom: 14px; }
.wiz-check circle { fill: rgba(48, 209, 88, 0.12); stroke: #30d158; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.wiz-check path { fill: none; stroke: #30d158; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.wiz-success.active .wiz-check circle { animation: wizDraw 0.6s 0.15s ease forwards; }
.wiz-success.active .wiz-check path { animation: wizDraw 0.4s 0.65s ease forwards; }

@keyframes wizDraw { to { stroke-dashoffset: 0; } }
@keyframes wizSpin { to { transform: rotate(360deg); } }
@keyframes wizShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
    .wiz-step.active, .wiz-progress span, .wiz-option, .wiz-btn { transition: none; }
    .wiz-success.active .wiz-check circle, .wiz-success.active .wiz-check path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 520px) {
    #bookingModal { align-items: flex-end; padding: 0; }   /* на телефоне — шторка снизу */
    #bookingModal .modal-content.wiz {
        max-width: none; border-radius: 26px 26px 0 0;
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    }
    .wiz-step h2 { font-size: 23px; }
}
