/* Специфичные стили для страницы "Короткие туры со скидкой" */
:root {
    --primary-dark: #0a2647;      /* Глубокий темно-синий */
    --primary-medium: #1e3a5f;     /* Насыщенный синий */
    --primary-light: #2c5282;      /* Средне-синий */
    --primary-soft: #4299e1;       /* Ярко-синий для акцентов */
    --primary-pale: #90cdf4;       /* Светло-голубой */
    --accent-gold: #fbbf24;         /* Золотой для акцентов */
    --accent-gold-light: #fcd34d;   /* Светло-золотой */
    --text-light: #f7fafc;          /* Почти белый */
    --text-soft: #e2e8f0;           /* Светло-серый */
    --text-medium: #a0aec0;         /* Средне-серый */
    --text-dark: #1a202c;           /* Темно-серый */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --discount-badge: #fbbf24;
    --discount-bg: #fffbeb;
}

/* Главный экран */
.hero {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
}

.hero-badge i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.hero-badge span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 3rem;
    line-height: 1.2;
    /*font-weight: 700;*/
}

.hero-text h1 .highlight {
    color: var(--accent-gold);
    position: relative;
    display: inline-block;
}

.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(251, 191, 36, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 550px;
}

.subtitle strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 12px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: var(--primary-soft);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.benefit-text p {
    color: var(--text-soft);
    font-size: 0.8rem;
    margin: 0;
}

.price-badge {
    background: white;
    border-radius: 20px;
    padding: 20px 25px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-left: 5px solid var(--accent-gold);
}

.price-old {
    font-size: 1rem;
    color: var(--text-medium);
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.price-new::after {
    content: '₽';
    font-size: 1.5rem;
    margin-left: 5px;
    color: var(--primary-light);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.cta-wrapper {
    margin-top: 10px;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px var(--shadow-dark);
    transition: all 0.3s;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--shadow-dark);
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 40px var(--shadow-dark);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card {
    position: absolute;
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px var(--shadow-medium);
    z-index: 2;
    font-weight: 500;
    border: 1px solid var(--primary-soft);
}

.image-card i {
    color: var(--primary-soft);
    font-size: 1rem;
}

.image-card-1 {
    top: 30px;
    left: -20px;
}

.image-card-2 {
    bottom: 80px;
    right: -20px;
}

.image-card-3 {
    bottom: -20px;
    left: 50px;
}

/* Карусель/Сетка программ */
.programs-showcase {
    background-color: white;
    padding: 60px 0;
}

.section-title h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.6;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.program-card {
    background: linear-gradient(145deg, white, var(--text-soft));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-pale);
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--primary-soft);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px 15px 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-soft);
    border-radius: 30px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: transparent;
    text-decoration: none;
}

.btn-outline i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-soft);
    color: white;
}

.btn-outline:hover i {
    transform: translateX(5px);
    color: white;
}

.programs-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 20px;
    padding: 15px;
    background-color: var(--text-soft);
    border-radius: 10px;
}

/* Свободные периоды */
.available-periods {
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 100%);
}

.periods-container {
    max-width: 100%;
    margin: 0 auto;
}

.periods-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.periods-head strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.periods-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary-pale);
    background: white;
    color: var(--text-medium);
    font-size: 0.85rem;
}

.periods-status.ok {
    border-color: rgba(66, 153, 225, 0.35);
    background: rgba(66, 153, 225, 0.1);
    color: var(--primary-light);
}

.periods-status.error {
    border-color: rgba(244, 67, 54, 0.35);
    background: rgba(244, 67, 54, 0.08);
    color: #c62828;
}

.periods-list {
    display: ruby;
    gap: 20px;
    margin-bottom: 30px;
}

.period-card {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-light);
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid var(--primary-pale);
    width: 23%;
    margin: 5px;
    vertical-align: top;
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: "СКИДКА 15%";
    position: absolute;
    top: 20px;
    right: -33px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    z-index: 2;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
    border-color: var(--accent-gold);
}

.period-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.period-info p {
    color: var(--text-medium);
}

.period-details {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.period-persons, .period-available {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.period-persons {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--primary-dark);
}

.period-available {
    background-color: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.periods-note {
    text-align: center;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--primary-pale);
    margin-top: 20px;
}

.periods-note i {
    color: var(--primary-soft);
    margin-right: 8px;
}

.section-subtitle span {
    background-color: var(--primary-pale);
    border-radius: 6px;
    padding: 2px 6px;
    transition: all 0.3s;
    border: 1px solid var(--primary-soft);
    color: var(--primary-dark);
}

/* Форма заявки */
.request-form {
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-medium);
    border: 1px solid var(--primary-pale);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.form-header p {
    color: var(--text-medium);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
    background-color: var(--text-soft);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background-color: white;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-notice {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 15px;
}

/* FAQ */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--primary-pale);
}

.faq-question {
    background-color: var(--text-soft);
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    color: var(--primary-dark);
}

.faq-question:hover {
    background-color: var(--primary-pale);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-soft);
}

.faq-answer {
    background-color: white;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-question {
    background-color: var(--primary-pale);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-soft);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px 25px;
}

.faq-answer p {
    color: var(--text-medium);
}

/* Кнопки */
.btn-primary {
    background-color: var(--primary-soft);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-soft);
    color: var(--primary-dark);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--primary-soft);
    color: white;
    border-color: var(--primary-soft);
}

/* Стили для загрузки и ошибок */
.periods-loading {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--primary-pale);
}

.loading-spinner {
    font-size: 2.5rem;
    color: var(--primary-soft);
    margin-bottom: 15px;
}

.periods-empty, .periods-error {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--primary-pale);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-icon i {
    color: var(--text-medium);
}

.error-icon {

    font-size: 4rem;
    margin-bottom: 20px;
}

.error-icon i {
    color: #f44336;
}

.periods-more-info {
    background-color: var(--primary-pale);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid var(--primary-soft);
    width: 100%;
}

.periods-more-info i {
    color: var(--primary-soft);
    margin-right: 8px;
}

.periods-more-info p {
    color: var(--primary-dark);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .period-card {
        width: 47%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-image-wrapper {
        order: -1;
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .image-card-1 {
        left: 0;
    }
    
    .image-card-2 {
        right: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .price-new {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .image-card {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .program-highlight {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .period-card {
        width: 95%;
        margin: 5px auto;
        display: block;
    }
    
    .periods-list {
        display: block;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .period-card {
        padding: 20px;
    }
    
    .price-badge {
        padding: 15px 20px;
    }
    
    .price-new {
        font-size: 1.8rem;
    }
}