/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #b8960c;
    --dark: #0a0a14;
    --dark-2: #12121f;
    --dark-3: #1a1a2e;
    --cream: #faf8f0;
    --text: #e8e8e8;
    --text-muted: #999;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* === TICKER === */
.ticker {
    background: var(--gold);
    color: var(--dark);
    padding: 10px 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.ticker-content {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content span { flex-shrink: 0; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, #16213e 100%);
    padding-top: 40px;
    overflow: hidden;
}

.hero::before {
    content: '💐';
    position: absolute;
    font-size: 300px;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gold {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 50px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
}

/* === TIMER === */
.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.timer-block {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-block span {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.timer-block small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

/* === BUTTON === */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
}

/* === CERTIFICATES === */
.certificates {
    background: var(--dark-2);
    padding: 40px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cert-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cert {
    text-align: center;
    padding: 10px 20px;
}

.cert-icon { margin-bottom: 8px; }
.cert-icon svg { width: 48px; height: 48px; stroke: var(--gold); stroke-width: 1.5; }
.cert p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.cert strong { color: var(--gold); }

/* === SECTION TITLES === */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 10px;
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* === ABOUT === */
.about {
    padding: 100px 0;
    background: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.photo-frame {
    border: 3px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.photo-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.photo-caption em {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
}

.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.dosier {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.dosier li {
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.gost-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.gost-badge p { font-size: 0.95rem; }

/* === QUOTES === */
.quotes {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
}

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

.quote-card {
    background: var(--dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
}

.quote-card::before {
    content: '«»';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.15);
    font-family: 'Playfair Display', serif;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}

.quote-context {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .quotes-grid { grid-template-columns: 1fr; }
}

/* === REQUIREMENTS === */
.requirements {
    padding: 100px 0;
    background: var(--dark-2);
}

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

.req-card {
    background: var(--dark-3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.req-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.req-icon { margin-bottom: 15px; }
.req-icon svg { width: 48px; height: 48px; stroke: var(--gold); stroke-width: 1.5; }

.req-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.req-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === REVIEWS === */
.reviews {
    padding: 100px 0;
    background: var(--dark);
}

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

.review-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.review-card:hover { transform: translateY(-3px); }

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.review-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--cream);
}

.review-author {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

/* === FAQ === */
.faq {
    padding: 100px 0;
    background: var(--dark-2);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--dark-3);
    border: none;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover { background: rgba(212, 175, 55, 0.05); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === APPLICATION FORM === */
.application {
    padding: 100px 0;
    background: var(--dark);
}

.form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.required { color: var(--gold); }

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea { resize: vertical; }

.form-group select option {
    background: var(--dark-3);
    color: var(--text);
}

/* === CUSTOM SELECT === */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--dark-3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.select-trigger:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.custom-select.open .select-trigger {
    border-color: var(--gold);
    border-radius: 10px 10px 0 0;
}

.custom-select.selected .select-trigger {
    color: var(--text);
}

.select-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.custom-select.open .select-arrow {
    transform: rotate(-135deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-3);
    border: 1px solid var(--gold);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 100;
    border-width: 0;
}

.custom-select.open .select-options {
    max-height: 350px;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    border-width: 1px;
    border-top: none;
}

.select-option {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 0.93rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.4;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding-left: 24px;
}

.select-option.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-weight: 600;
}

/* Range */
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: var(--dark-3);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}

.range-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.range-label small { color: var(--gold); }

/* Radio & Checkbox */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio, .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio input, .checkbox input { accent-color: var(--gold); }

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 18px;
    margin-top: 10px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

.form-success .small {
    font-size: 0.85rem;
    color: var(--gold);
}

/* === FOOTER === */
.footer {
    padding: 50px 0;
    background: var(--dark-2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-logo p, .footer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-info { text-align: right; }
.footer-info p { margin-bottom: 4px; }
.footer-small { font-size: 0.75rem !important; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 40px auto 0;
    }
    .about-photo { order: -1; text-align: center; }
    .photo-frame { max-width: 350px; margin: 0 auto; }
    .req-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .timer { gap: 10px; }
    .timer-block { padding: 10px 12px; min-width: 60px; }
    .timer-block span { font-size: 1.8rem; }
    .cert-row { gap: 20px; }
    .cert { flex: 1 1 40%; }
    .stats { flex-direction: column; gap: 15px; }
    .req-grid, .reviews-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeUp 0.6s ease forwards;
}

.about, .quotes, .requirements, .reviews, .faq, .application {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about.visible, .quotes.visible, .requirements.visible, .reviews.visible, .faq.visible, .application.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MUSIC BUTTON === */
.music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.music-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}
.music-btn.playing {
    border-color: var(--gold);
    animation: musicPulse 2s ease infinite;
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}

/* === AMBIENT PARTICLES === */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* === ICON HOVER GLOW === */
.cert-icon svg,
.req-icon svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.cert:hover .cert-icon svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.5));
}
.req-card:hover .req-icon svg {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.5));
}

/* === QUOTE CARD HOVER === */
.quote-card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.15);
}

/* === REVIEW CARD HOVER === */
.review-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.12);
}

/* === GOLD SHIMMER on hero title === */
.hero-title .gold {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 4s ease infinite;
}
@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === FLOATING STAT NUMBERS === */
.stat-number {
    transition: transform 0.3s, text-shadow 0.3s;
}
.stat:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(212,175,55,0.5);
}

/* === PHOTO UPLOAD v1 OVERRIDES === */
.photo-upload-area {
    border-color: rgba(212,175,55,0.25);
}
.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: rgba(212,175,55,0.6);
    background: rgba(212,175,55,0.05);
}
