/* ============================================
   LANGUAGE SELECTOR OVERLAY
   ============================================ */
html.no-scroll, html.no-scroll body {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}
.lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
    touch-action: none;
    overscroll-behavior: none;
}
.lang-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.lang-content {
    text-align: center;
    position: relative;
    padding: 40px 20px;
    max-width: 500px;
    width: 100%;
}
.lang-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}
.lang-photo {
    width: 280px;
    height: 280px;
    margin: 20px auto 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(220, 40, 40, 0.7);
    box-shadow: 0 0 60px rgba(220, 40, 40, 0.25);
    background: radial-gradient(circle at 50% 60%, #c0392b 0%, #7b1e1e 60%, #2c0a0a 100%);
}
.lang-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 1%;
    display: block;
}
.lang-arrows-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}
.lang-arrows-row .lang-arrow {
    min-width: 160px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    animation: langArrowDown 1.5s ease-in-out infinite;
}
@keyframes langArrowDown {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(4px); }
}
.lang-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.lang-btn {
    padding: 14px 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    min-width: 160px;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    transform: scale(1.05);
}
.lang-btn:active {
    transform: scale(0.97);
}
/* Flying notes on lang overlay */
.lang-notes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
/* Stars reused for lang overlay */
.lang-stars, .lang-stars2, .lang-stars3 {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.lang-stars {
    background-image: radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 150px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 250px 200px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 350px 150px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 450px 250px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 100px 300px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 200px 350px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 300px 50px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 400px 300px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 500px 100px, rgba(255,255,255,0.5), transparent);
    background-size: 550px 400px;
}
.lang-stars2 {
    background-image: radial-gradient(1.5px 1.5px at 80px 180px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 180px 280px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 280px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 380px 180px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 480px 280px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 130px 30px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 330px 330px, rgba(255,255,255,0.5), transparent);
    background-size: 530px 380px;
}
.lang-stars3 {
    background-image: radial-gradient(1px 1px at 30px 230px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 200px 130px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 370px 230px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 470px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 120px 370px, rgba(255,255,255,0.4), transparent);
    background-size: 510px 420px;
}
/* Language toggle in header */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px 12px;
    color: #c8cfe0;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    margin-left: 8px;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.lang-toggle svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .lang-photo { width: 220px; height: 220px; margin-bottom: 32px; }
    .lang-title { font-size: 1.7rem; margin-bottom: 24px; }
    .lang-btn { padding: 12px 28px; font-size: 1rem; min-width: 130px; }
    .lang-arrows-row { display: none; }
    .lang-buttons { gap: 16px; }
}

/* ============================================
   REVIEWS CAROUSEL (Отзывы родителей)
   ============================================ */
.reviews-section {
    position: relative;
    padding: 80px 20px 60px 20px;
    contain: layout style paint;
}
.reviews-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.reviews-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    min-height: 160px;
    padding: 0;
    contain: layout style paint;
}
/* Показывать по 3 отзыва в ряд, без обрезки */
.reviews-items {
    display: flex;
    gap: 24px;
    align-items: stretch;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
}
.review-item {
    background: rgba(20, 24, 40, 0.95);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 20px 18px 18px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    border: 1.5px solid rgba(0,212,255,0.10);
    position: relative;
    flex: 0 0 calc((100% - 48px) / 3);
    height: auto;
    box-sizing: border-box;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #00d4ff;
    background: #fff;
}
.review-content {
    width: 100%;
}
.review-author {
    font-weight: 600;
    font-size: 1.08rem;
    color: #00d4ff;
    margin-bottom: 4px;
}
.review-text {
    font-size: 1rem;
    color: #e0e6f7;
    line-height: 1.5;
    margin-bottom: 0;
}
.reviews-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    background: rgba(0, 20, 50, 0.5);
    color: #00d4ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    z-index: 5;
}
.reviews-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}
.reviews-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.reviews-btn-prev {
    left: -10px;
}
.reviews-btn-next {
    right: -10px;
}
@media (max-width: 1000px) {
    .reviews-wrapper {
        max-width: 700px;
    }
    .review-item {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}
@media (max-width: 700px) {
    .reviews-wrapper {
        max-width: 100%;
    }
    .review-item {
        flex: 0 0 100%;
        padding: 16px 12px 14px 12px;
    }
    .reviews-section {
        padding: 50px 10px 40px 10px;
    }
    .reviews-btn-prev {
        left: -5px;
    }
    .reviews-btn-next {
        right: -5px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #4e73f8 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    --ciocana-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --buiucani-gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --botanica-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: #000000;
}

/* Space Background */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 90, 170, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 80, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(140, 50, 200, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(236, 72, 153, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 30% 90%, rgba(34, 211, 238, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 15% 25%, #000000 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, #0a0a0f 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, #000510 0%, transparent 40%),
        radial-gradient(ellipse at bottom, #0f1419 0%, #000000 100%);
    z-index: -1;
    overflow: hidden;
}

/* Stars Animation */
.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.6;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 100px 150px, #fff, transparent),
        radial-gradient(1px 1px at 170px 120px, #ddd, transparent),
        radial-gradient(1px 1px at 40px 140px, #fff, transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.4;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 80px 90px, #fff, transparent),
        radial-gradient(2px 2px at 140px 60px, #eee, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.3;
}

/* Flying Music Notes */


.flying-note {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    pointer-events: none;
    will-change: transform, opacity;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .flying-note {
        animation: none !important;
    }
    .music-notes {
        display: none !important;
    }
}

@keyframes flyNoteStraight {
    0% {
        transform: translate(var(--start-x), var(--start-y));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y));
        opacity: 0;
    }
}

/* ============================================
   MOBILE PERFORMANCE
   ============================================ */
@media (max-width: 768px) {
    .stars2, .stars3 { display: none !important; }
    .music-notes { display: none !important; }
    .flying-note { display: none !important; }
    .gallery-btn {
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
    }
    .course-card {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    .course-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: relative;
    padding: 20px 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: -5px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link-special {
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    position: relative;
    contain: layout style paint;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(78, 115, 248, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

/* Section CTA button (under courses) */
.section-cta {
    text-align: center;
    margin-top: 48px;
}
.section-cta .btn {
    font-size: 1.1rem;
    padding: 16px 44px;
}

/* ===== CONTACTS SECTION ===== */
.contacts-section {
    padding: 80px 0;
    contain: layout style paint;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contacts-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contacts-subtitle {
    color: rgba(224, 230, 247, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 36px;
}
.contact-block {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-block:last-child {
    border-bottom: none;
}
.contact-label {
    font-size: 1rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 8px;
}
.contact-value {
    display: block;
    color: #e0e6f7;
    font-size: 1.05rem;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.3s;
}
a.contact-value:hover {
    color: #00d4ff;
}
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c8cfe0;
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.social-link svg {
    width: 22px;
    height: 22px;
}
.social-link:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}
.contacts-map-text {
    color: rgba(224, 230, 247, 0.7);
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.map-embed {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.map-embed iframe {
    display: block;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00d4ff, #7b2ffa);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
    z-index: 900;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,212,255,0.35);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-tagline {
    color: rgba(224, 230, 247, 0.5);
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
}
.footer-links a {
    color: rgba(224, 230, 247, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #00d4ff;
}
.footer-copy {
    color: rgba(224, 230, 247, 0.35);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contacts-title {
        font-size: 1.6rem;
    }
    .map-embed {
        height: 280px;
    }
    .section-cta .btn {
        font-size: 1rem;
        padding: 14px 32px;
        width: 100%;
    }
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Section Title */
.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   CERTIFICATE (Подарочные сертификаты)
   ============================================ */
.certificate-section {
    position: relative;
    padding: 60px 20px;
    contain: layout style paint;
}

.certificate-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: rgba(15, 18, 35, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 24px;
    padding: 40px 48px;
    background: rgba(15, 18, 35, 0.88);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.certificate-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.certificate-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.03);
}

.certificate-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00d4ff, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certificate-subtitle {
    font-size: 1.15rem;
    color: #b0b8d0;
    margin-bottom: 20px;
    font-weight: 500;
}

.certificate-text {
    font-size: 1.05rem;
    color: #c8cfe0;
    line-height: 1.7;
    margin-bottom: 32px;
}

.certificate-btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #4e73f8 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.certificate-btn:hover {
    transform: translateY(-2px);
}

.certificate-btn:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .certificate-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 28px;
        text-align: center;
    }

    .certificate-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .certificate-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .certificate-section {
        padding: 40px 10px;
    }

    .certificate-card {
        padding: 24px 18px;
        gap: 24px;
    }

    .certificate-title {
        font-size: 1.5rem;
    }

    .certificate-subtitle {
        font-size: 1rem;
    }

    .certificate-text {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .certificate-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* Courses Section */
.courses {
    padding: 80px 0;
    position: relative;
    contain: layout style paint;
}

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

/* If odd number of cards, center the last one */
.courses-grid .course-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 12px);
    width: 100%;
}

.course-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 320px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.course-vocal .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(234, 88, 12, 0.3) 0%, rgba(251, 146, 60, 0.18) 100%);
}

.course-piano .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.18) 100%);
}

.course-guitar .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(244, 114, 182, 0.18) 100%);
}

.course-electric-guitar .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(6, 182, 212, 0.18) 100%);
}

.course-drums .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(0, 19, 55, 0.3) 0%, rgba(0, 43, 126, 0.18) 100%);
}

.course-acting .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(219, 39, 119, 0.3) 0%, rgba(244, 63, 94, 0.18) 100%);
}

.course-bass .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(14, 116, 144, 0.3) 0%, rgba(34, 211, 238, 0.18) 100%);
}

.course-violin .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(202, 138, 4, 0.3) 0%, rgba(250, 204, 21, 0.18) 100%);
}

.course-sax .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(17, 94, 89, 0.3) 0%, rgba(45, 212, 191, 0.18) 100%);
}

.course-solfege .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(67, 56, 202, 0.3) 0%, rgba(129, 140, 248, 0.18) 100%);
}

.course-dance .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(190, 24, 93, 0.3) 0%, rgba(244, 114, 182, 0.18) 100%);
}

.course-recording .course-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%), linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(56, 189, 248, 0.18) 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.course-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.course-description {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 16px;
    opacity: 0.95;
    color: #ffffff;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.course-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.course-vocal {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}
.course-piano {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
.course-guitar {
    background: linear-gradient(135deg, #dc2626 0%, #f472b6 100%);
}
.course-electric-guitar {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}
.course-drums {
    background: linear-gradient(135deg, #001337 0%, #002b7e 100%);
}
.course-acting {
    background: linear-gradient(135deg, #db2777 0%, #f43f5e 100%);
}
.course-bass {
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
}
.course-violin {
    background: linear-gradient(135deg, #ca8a04 0%, #facc15 100%);
}
.course-sax {
    background: linear-gradient(135deg, #115e59 0%, #2dd4bf 100%);
}
.course-solfege {
    background: linear-gradient(135deg, #4338ca 0%, #818cf8 100%);
}
.course-dance {
    background: linear-gradient(135deg, #be185d 0%, #f472b6 100%);
}
.course-recording {
    background: linear-gradient(135deg, #1e40af 0%, #38bdf8 100%);
}

/* Branches Section */
.branches {
    padding: 40px 0 80px;
    position: relative;
    contain: layout style paint;
}

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

.branch-card {
    padding: 40px 32px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.branch-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.branch-content {
    position: relative;
    z-index: 1;
}

.branch-ciocana {
    background: var(--ciocana-gradient);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.branch-ciocana::after {
    background-image: url('https://images.unsplash.com/photo-1464802686167-b939a6910659?q=50&w=400&fm=webp');
}

.branch-ciocana:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
}

.branch-buiucani {
    background: var(--buiucani-gradient);
    box-shadow: 0 4px 24px rgba(147, 51, 234, 0.3);
}

.branch-buiucani::after {
    background-image: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?q=50&w=400&fm=webp');
}

.branch-buiucani:hover {
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.45);
}

.branch-botanica {
    background: var(--botanica-gradient);
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.3);
}

.branch-botanica::after {
    background-image: url('https://images.unsplash.com/photo-1534254910684-68bdc1d69cf7?q=50&w=400&fm=webp');
}

.branch-botanica:hover {
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.45);
}

.branch-card:hover {
    transform: translateY(-5px);
}

.branch-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.branch-address {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.branch-phone {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    color: white;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.branch-phone:hover {
    opacity: 1;
    text-decoration: underline;
}

.branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.branch-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.arrow-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgb(0 0 0 / 80%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid .course-card:last-child:nth-child(odd) {
        max-width: 100%;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 24px;
    }
    
    .logo-sub {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .branch-name {
        font-size: 28px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   STUDIO GALLERY SECTION
   ============================================ */

.studio-gallery {
    position: relative;
    padding: 80px 20px;
    contain: layout style paint;
}

.studio-gallery .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: none;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    contain: layout style paint;
}

.gallery-items {
    display: flex;
    --gallery-gap: 10px;
    gap: var(--gallery-gap);
    align-items: stretch;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item {
    box-sizing: border-box;
    width: calc((100% - (var(--gallery-gap) * 2)) / 3);
    flex: 0 0 calc((100% - (var(--gallery-gap) * 2)) / 3);
    min-width: calc((100% - (var(--gallery-gap) * 2)) / 3);
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    position: relative;
    background: rgba(20, 24, 40, 0.6);
    cursor: pointer;
}

/* Преподаватели: увеличенная высота для фото в полный рост */
.teachers-gallery .gallery-container {
    height: 480px;
}
.teachers-gallery .gallery-item {
    height: 480px;
}
@media (max-width: 768px) {
    .teachers-gallery .gallery-container {
        height: 400px;
    }
    .teachers-gallery .gallery-item {
        height: 400px;
    }
}
@media (max-width: 480px) {
    .teachers-gallery .gallery-container {
        height: 360px;
    }
    .teachers-gallery .gallery-item {
        height: 360px;
    }
}

/* Отключённые кнопки: только визуальные эффекты, transform не трогаем */
.gallery-btn:disabled,
.gallery-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 20, 50, 0.5);
    transition: none !important;
}

/* Удаляем лишний transform из :active, оставляем только scale ниже */

.gallery-item:hover {
    opacity: 0.85;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    background: rgba(0, 20, 50, 0.5);
    color: #00d4ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.75;
    z-index: 5;
}

.gallery-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.gallery-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-btn-prev {
    left: 14px;
}

.gallery-btn-next {
    right: 14px;
}

/* ============================================
   SHORTS VIDEO GALLERY
   ============================================ */

.shorts-gallery {
    position: relative;
    padding: 80px 20px;
    contain: layout style paint;
}

.shorts-gallery .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #ffffff;
}

.shorts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.shorts-container {
    overflow: hidden;
    border-radius: 16px;
    height: 420px;
    contain: layout style paint;
}

.shorts-items {
    display: flex;
    --shorts-gap: 12px;
    gap: var(--shorts-gap);
    height: 100%;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.shorts-item {
    box-sizing: border-box;
    width: calc((100% - (var(--shorts-gap) * 2)) / 3);
    flex: 0 0 calc((100% - (var(--shorts-gap) * 2)) / 3);
    min-width: calc((100% - (var(--shorts-gap) * 2)) / 3);
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    background: #000;
}

.shorts-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    aspect-ratio: 9/16;
    background: #000;
}

@media (max-width: 1024px) {
    .shorts-gallery {
        padding: 60px 20px;
    }
    .shorts-gallery .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .shorts-container {
        height: 320px;
    }
    .shorts-items {
        --shorts-gap: 10px;
    }
}

@media (max-width: 768px) {
    .shorts-gallery {
        padding: 50px 15px;
    }
    .shorts-gallery .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .shorts-wrapper {
        max-width: 100%;
    }
    .shorts-items {
        --shorts-gap: 0px;
    }
    .shorts-item {
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
    }
    .shorts-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .shorts-gallery {
        padding: 40px 10px;
    }
    .shorts-gallery .section-title {
        font-size: 36px;
        margin-bottom: 24px;
    }
    .shorts-items {
        --shorts-gap: 0px;
    }
    .shorts-item {
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
    }
    .shorts-container {
        height: 360px;
    }
}

/* ============================================
   LIGHTBOX / POPUP STYLES
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 16px;
    padding: 10px;
    background: rgba(7, 16, 36, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 75vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.6);
    background: rgba(2, 15, 35, 0.8);
    color: #00d4ff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.lightbox-close:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    background: rgba(2, 15, 35, 0.85);
    color: #00d4ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
}

.lightbox-prev {
    left: 30px;
    z-index: 999;
}

.lightbox-next {
    right: 30px;
    z-index: 999;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90vw;
        max-height: 80vh;
    }
    .lightbox-image {
        max-width: 85vw;
        max-height: 65vh;
    }
    .lightbox-nav {
        width: 48px;
        height: 48px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

/* Gallery Responsive for 1024px */
@media (max-width: 1024px) {
    .studio-gallery {
        padding: 60px 20px;
    }
    
    .studio-gallery .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .gallery-items {
        --gallery-gap: 8px;
        gap: var(--gallery-gap);
    }
    
    .gallery-item {
        height: 300px; /* keep 3-in-row uniform blocks */
    }
    
    .gallery-btn {
        width: 44px;
        height: 44px;
    }
}

/* Gallery Responsive for 768px */
@media (max-width: 768px) {
    .studio-gallery {
        padding: 50px 15px;
    }
    
    .studio-gallery .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .gallery-wrapper {
        gap: 15px;
    }
    
    .gallery-items {
        --gallery-gap: 0px;
        gap: var(--gallery-gap);
    }
    
    .gallery-item {
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
    }
}

/* Gallery Responsive for 480px */
@media (max-width: 480px) {
    .studio-gallery {
        padding: 40px 10px;
    }
    
    .studio-gallery .section-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .gallery-wrapper {
        gap: 10px;
    }
    
    .gallery-items {
        --gallery-gap: 0px;
        gap: var(--gallery-gap);
    }
    
    .gallery-item {
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        height: 220px;
    }
    
    .gallery-btn {
        width: 36px;
        height: 36px;
        border-width: 1.5px;
    }
    
    .gallery-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   SIGNUP POPUP FORM
   ============================================ */
.signup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.signup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.signup-popup {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: rgba(15, 18, 40, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(100, 80, 255, 0.1);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-overlay.active .signup-popup {
    transform: translateY(0) scale(1);
}

.signup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #a0a8c0;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.signup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.signup-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #00d4ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-subtitle {
    text-align: center;
    color: #8892b0;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.signup-field {
    margin-bottom: 16px;
}

.signup-field input,
.signup-field select,
.signup-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #e0e6f7;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.signup-field input::placeholder,
.signup-field textarea::placeholder {
    color: #5a6380;
}

.signup-field select {
    cursor: pointer;
    color: #5a6380;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6380' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.signup-field select option {
    background: #1a1e35;
    color: #e0e6f7;
    padding: 10px 14px;
}

.signup-field select option:disabled {
    color: #5a6380;
}

.signup-field select option:hover,
.signup-field select option:checked {
    background: #2a3055;
    color: #ffffff;
}

.signup-field select:has(option:checked:not([disabled])) {
    color: #e0e6f7;
}

.signup-field input:focus,
.signup-field select:focus,
.signup-field textarea:focus {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.signup-field input.error,
.signup-field select.error {
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.signup-field textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 160px;
}

.signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #8892b0;
    line-height: 1.4;
}

.signup-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: #a855f7;
    cursor: pointer;
}

.signup-consent a {
    color: #00d4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signup-consent a:hover {
    color: #a855f7;
}

.signup-consent.error {
    color: #ef4444;
}

.signup-consent.error input[type="checkbox"] {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
    border-radius: 3px;
}

.signup-submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4e73f8 0%, #a855f7 50%, #ec4899 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.signup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(168, 85, 247, 0.5);
}

.signup-submit:active {
    transform: translateY(0);
}

.signup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.signup-status {
    text-align: center;
    margin-top: 14px;
    font-size: 0.95rem;
    min-height: 22px;
}

.signup-status.success {
    color: #34d399;
}

.signup-status.error {
    color: #f87171;
}

@media (max-width: 480px) {
    .signup-popup {
        padding: 32px 20px 28px;
        border-radius: 18px;
    }

    .signup-title {
        font-size: 1.35rem;
    }

    .signup-field input,
    .signup-field select,
    .signup-field textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .signup-submit {
        padding: 14px;
        font-size: 1rem;
    }
}