/* Добавленные стили для блокировки кнопок */
.duration-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.duration-btn.disabled:hover {
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Остальные стили остаются без изменений */
:root {
    --primary: #4CAF50;
    --primary-dark: #3e8e41;
    --dark: #1a1a1a;
    --darker: #111;
    --light: #fff;
    --gray: #2a2a2a;
    --shadow: 0 10px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.4);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Чёрно-белая тема */
body.grayscale-theme {
    --primary: #888;
    --primary-dark: #666;
    filter: grayscale(100%);
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
}

body.grayscale-theme .hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), linear-gradient(135deg, #aaa, #888) !important;
}

body.grayscale-theme .logo img {
    border-color: #888;
    box-shadow: 0 0 30px rgba(136, 136, 136, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    transition: var(--transition);
}

.top-bar {
    height: 10px;
    background: var(--darker);
    box-shadow: var(--shadow);
}

/* Панель управления */
.control-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.back-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--primary);
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    text-decoration: none;
}

.back-button:hover {
    transform: scale(1.1);
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.lang-switch {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 25px;
    border: 2px solid var(--primary);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

/* ========== РАЗДЕЛ ГЕРОЯ ============ */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('photo/background/backgroundBlank.jpg') no-repeat center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 10%, var(--dark) 80%);
    opacity: 0.7;
    z-index: 1;
    animation: gradientPulse 8s infinite alternate;
}

@keyframes gradientPulse {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 120% 120%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out;
}

.logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: popIn 0.8s 0.2s forwards, pulseGlow 3s 1s infinite ease-in-out;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(76, 175, 80, 0.9);
}

@keyframes popIn {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    }
    50% { 
        box-shadow: 0 0 50px rgba(76, 175, 80, 0.9);
    }
    100% { 
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    }
}

.title {
    font-size: 3rem;
    margin: 20px 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: linear-gradient(to right, var(--primary), #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 1s ease-in-out 0.2s both;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeUp 1s ease-in-out 0.4s both;
}

/* ========== РЕГИСТРАЦИОННАЯ ФОРМА ============ */
.registration-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: auto;
    position: relative;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(76, 175, 80, 0.3), transparent);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.5);
}

.form-container {
    background: var(--gray);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.phone-input {
    display: flex;
    align-items: center;
}

.phone-prefix {
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-right: none;
}

.phone-input input {
    border-radius: 0 8px 8px 0;
}

.child-fields {
    background: rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    transition: var(--transition);
    transform-origin: top;
    animation: scaleIn 0.3s ease-out forwards;
}

.child-field-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    animation: fadeIn 0.5s ease-out forwards;
}

.child-field-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.child-number {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 15px;
    background: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.5);
    letter-spacing: 1px;
}

.btn-submit {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}

.btn-submit:disabled {
    background: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.btn-submit.loading .loader {
    display: block;
}

.btn-text {
    transition: opacity 0.3s;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.success-content {
    background: var(--darker);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.success-text {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.success-subtext {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.close-modal {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Стили для текста согласия */
.consent-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--light);
    transition: var(--transition);
}

body.grayscale-theme .consent-text {
    color: #555;
}

/* Стили для SOLD OUT */
.sold-out {
    color: #ff5555 !important;
    position: relative;
    font-weight: bold;
}

.sold-out::after {
    content: " (SOLD OUT)";
    color: #ff5555;
    font-weight: bold;
}

.sold-out-hy::after {
    content: " (ՎԵՐԼԱԾ)";
    color: #ff5555;
    font-weight: bold;
}

.sold-out-error {
    color: #ff5555;
    font-weight: bold;
    margin-top: 5px;
    display: none;
}

/* Новые стили для выбора длительности */
.duration-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.duration-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    color: var(--light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.duration-btn:hover:not(.disabled), .duration-btn.active:not(.disabled) {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.price-value {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.price-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* ========== АНИМАЦИИ ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { 
        transform: scaleY(0);
        opacity: 0;
    }
    to { 
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========= ОТЗЫВЧИВЫЙ ============ */
@media (max-width: 768px) {
    .title { font-size: 2.5rem; }
    .subtitle { font-size: 1rem; }
    .section { padding: 60px 15px; }
    .section-title { font-size: 2rem; }
    .control-panel { 
        top: 10px;
        left: 10px;
        gap: 10px;
    }
    .back-button { 
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .lang-switch { padding: 3px 8px; }
    .lang-btn { 
        padding: 3px 10px;
        font-size: 12px;
    }
    .hero {
        height: 50vh;
    }
    .form-container {
        padding: 20px;
    }
    .consent-text {
        font-size: 0.7rem;
    }
    .duration-buttons {
        flex-direction: column;
    }
}