/* ========================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ======================================== */
:root { 
    --primary: #556b2f;
    --btn-color: #8da43e;
    --accent: #e6b322;
    --dark: #2c3e50;
    --white: #ffffff;
}

/* ========================================
   ОБЩИЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body { 
    margin: 0; 
    font-family: 'Roboto', sans-serif; 
    background: #ffffff; 
    color: var(--dark); 
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   ПРЕЛОАДЕР
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   БАННЕР АКЦИИ
   ======================================== */
.promo-banner {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 20px;
    position: relative;
    z-index: 100;
    width: 100%;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.banner-text {
    display: block;
    flex: 1;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
}

.banner-highlight {
    color: var(--accent);
}

.banner-btn {
    background-color: #ffffff;
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.banner-btn:hover {
    background-color: #ffe0cc;
    transform: translateY(-2px);
}

/* ========================================
   ШАПКА
   ======================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 90px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-img { 
    height: 60px; 
    width: auto;
    object-fit: contain;
}

.logo-text { 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.4rem; 
    text-transform: uppercase; 
    color: var(--primary); 
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu { 
    display: flex; 
}

.nav-menu ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a { 
    color: var(--dark); 
    text-decoration: none; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    transition: 0.3s; 
}

.nav-menu a:hover { 
    color: var(--primary); 
}

.header-socials { 
    display: flex; 
    gap: 10px; 
}

.header-socials a { 
    color: var(--primary); 
    font-size: 1.3rem; 
    transition: 0.3s; 
}

.header-socials a:hover {
    color: var(--btn-color);
    transform: scale(1.1);
}

.header-phones { 
    display: flex; 
    flex-direction: column; 
    text-align: right; 
}

.header-phones a { 
    color: var(--dark); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 700; 
    margin-bottom: 2px;
    transition: 0.3s;
}

.header-phones a:hover {
    color: var(--primary);
}

.btn-act {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.2);
}

.btn-act:hover { 
    background: var(--btn-color); 
    transform: translateY(-2px); 
}

.menu-toggle { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--dark); 
    cursor: pointer; 
    background: none;
    border: none;
    padding: 5px 10px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(0,0,0,0.5)), url('../images/hero-autumn.jpg');
    background-size: cover;
    background-position: center 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-badge {
    background: var(--accent);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: clamp(2rem, 7vw, 3.8rem); 
    text-transform: none; 
    margin: 0 0 20px; 
    line-height: 1.1; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero p { 
    font-size: clamp(1rem, 4vw, 1.2rem); 
    max-width: 800px; 
    margin-bottom: 40px; 
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.btn-hero { 
    background: var(--btn-color); 
    padding: 20px 50px; 
    font-size: 1.1rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    color: white; 
    transition: 0.3s;
    display: inline-block;
}

.btn-hero:hover { 
    transform: scale(1.05); 
    background: var(--primary); 
}

/* ========================================
   ПРОГРАММЫ (СМЕНЫ)
   ======================================== */
.programs { 
    padding: 100px 4%; 
    background: #fdfdfd; 
}

.section-title { 
    font-family: 'Oswald', sans-serif; 
    font-size: 2.8rem; 
    text-align: center; 
    text-transform: uppercase; 
    margin-bottom: 60px; 
    color: var(--primary); 
}

.program-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.program-card {
    flex: 0 0 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.program-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.card-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.card-content { 
    padding: 30px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-category { 
    color: var(--accent); 
    font-weight: 700; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    display: block; 
}

.card-title { 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.8rem; 
    margin: 0 0 15px; 
    text-transform: uppercase; 
    color: var(--dark); 
}

.card-theme {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin: 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.card-info { 
    font-size: 0.9rem; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: baseline; 
    gap: 10px; 
    color: #666; 
}

.card-info i { 
    color: var(--primary); 
    font-size: 1rem; 
}

.card-desc { 
    font-size: 1rem; 
    line-height: 1.6; 
    margin-top: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 20px; 
    color: #555;
    flex-grow: 1;
}

.card-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-card { 
    display: block; 
    background: var(--btn-color); 
    color: white; 
    text-align: center; 
    padding: 18px; 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 0 0 15px 15px;
    margin-top: auto;
}

.btn-card:hover { 
    background: var(--primary); 
}

/* ========================================
   БЛОК: ПОЧЕМУ ВЫБИРАЮТ НАС
   ======================================== */
.why-us-section {
    padding: 100px 4%;
    background: #f8f9fa;
    text-align: center;
}

.why-us-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    font-weight: 500;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.feature-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    padding: 20px;
    text-align: center;
    background: transparent;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icon-wrapper img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.feature-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #333;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* ========================================
   О КОМПАНИИ
   ======================================== */
.about-company {
    background: #ffffff;
    padding: 80px 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    text-align: left;
}

.about-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary);
    text-align: center;
}

.about-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
    text-align: center;
}

.about-section {
    margin-bottom: 50px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--primary);
}

.about-subheading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.projects-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.organizer-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.organizer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary);
}

.organizer-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: var(--dark);
}

.organizer-role {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.organizers-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    text-align: center;
    margin: 30px 0 0;
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: #f9f9f9;
}

/* ========================================
   КАРУСЕЛЬ РАТИБОР
   ======================================== */
.ratibor-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.ratibor-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ratibor-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(85, 107, 47, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(85, 107, 47, 1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--primary);
}

.dot:hover {
    background: var(--btn-color);
}

.about-cta {
    text-align: center;
    margin-top: 50px;
}

.yandex-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.3);
}

.yandex-btn:hover {
    background: var(--btn-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 107, 47, 0.4);
}

/* ========================================
   БЛОК: ОТЗЫВЫ
   ======================================== */
.reviews-section {
    padding: 100px 4%;
    background: #ffffff;
    text-align: center;
}

.reviews-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.review-card {
    background: #f9f9f9;
    padding: 35px 30px 25px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.review-card::before {
    content: "«";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(85, 107, 47, 0.1);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

.review-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.author-name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.author-role {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.reviews-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
    max-width: 700px;
    line-height: 1.5;
}

/* ========================================
   БЛОК: FAQ
   ======================================== */
.faq-section {
    padding: 100px 4%;
    background: #f8f9fa;
    text-align: center;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    text-align: left;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-item[open] {
    box-shadow: 0 5px 15px rgba(85, 107, 47, 0.15);
    border-left: 4px solid var(--primary);
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item[open] .faq-arrow {
    transform: rotate(45deg);
    border-color: var(--primary);
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* ========================================
   БЛОК: ГАЛЕРЕЯ
   ======================================== */
.gallery-section {
    padding: 100px 4%;
    background: #f8f9fa;
    text-align: center;
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-category {
    margin-bottom: 80px;
    text-align: left;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--dark);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.gallery-category-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    padding-left: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ЛАЙТБОКС */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========================================
   БЛОК: КОНТАКТЫ
   ======================================== */
.contacts-section {
    padding: 100px 4%;
    background: #ffffff;
    text-align: center;
}

.contacts-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
}

.contact-block {
    margin-bottom: 35px;
}

.contact-block-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.phones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.phone-item:hover {
    color: var(--primary);
    background: #f0f0f0;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.phone-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 3px;
}

.messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.messenger-btn.whatsapp {
    background: #25D366;
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.messenger-btn i {
    font-size: 1.5rem;
}

.email-link {
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    word-break: break-all;
}

.email-link:hover {
    color: var(--btn-color);
}

.work-hours {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.office-address {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contacts-cta {
    margin-top: 40px;
    text-align: center;
}

.contacts-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

/* ========================================
   БЛОК: ФИНАЛЬНЫЙ CTA
   ======================================== */
.final-cta-section {
    padding: 100px 4%;
    background: var(--primary);
    color: #ffffff;
    text-align: center;
}

.final-cta-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    font-weight: 500;
}

.cta-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.cta-benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, background 0.3s;
}

.cta-benefit:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}

.benefit-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--primary);
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-family: 'Oswald', sans-serif;
}

.cta-main-btn:hover {
    background: var(--btn-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.cta-legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
}

/* ========================================
   ФУТЕР
   ======================================== */
.site-footer {
    background: #f8f9fa;
    color: #333333;
    padding: 60px 4% 30px;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-heading {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.footer-logo-link {
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.footer-slogan {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.footer-email a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links li a:hover {
    color: var(--btn-color);
    padding-left: 5px;
}

.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-phones a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.footer-phones a:hover {
    color: var(--primary);
}

.footer-messengers {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-requisites {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
}

.footer-requisites p {
    margin: 5px 0;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
}

.cookie-notice {
    max-width: 60%;
}

/* ========================================
   ЛИПКАЯ КНОПКА НА МОБИЛЬНЫХ
   ======================================== */
.mobile-cta-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF5722;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ========================================
   ПОП-АПЫ СМЕН
   ======================================== */
.session-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.session-popup-content {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 25px 30px 30px;
}

.session-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.session-popup-close:hover {
    color: var(--primary);
}

.popup-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin: 0 0 12px;
    color: var(--dark);
    text-transform: uppercase;
}

.header-info {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #666;
}

.info-line {
    margin: 4px 0;
    line-height: 1.4;
    display: block;
}

.popup-age {
    color: var(--primary);
    font-weight: 600;
    margin: 12px 0 20px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.popup-section {
    margin-bottom: 22px;
}

.popup-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 12px;
    text-transform: uppercase;
}

.popup-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 10px;
}

.popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #444;
}

.price-breakdown {
    margin: 15px 0;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.price-service {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.price-provider {
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}

.price-amount {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-size: 1rem;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 5px;
    border-top: 2px solid var(--primary);
}

.price-total-label {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

.price-total-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    white-space: nowrap;
}

.price-note {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0 0;
    line-height: 1.5;
}

.popup-legal {
    font-size: 0.8rem;
    color: #999;
    margin: 20px 0 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    line-height: 1.4;
}

.zashhitnik-popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ========================================
   КНОПКА "ВВЕРХ"
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;    z-index: 9998;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--btn-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(85, 107, 47, 0.4);
}

/* ========================================
   АДАПТИВНОСТЬ: ПЛАНШЕТЫ
   ======================================== */
@media (max-width: 992px) {
    .program-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .feature-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .about-company {
        padding: 60px 30px;
    }

    .organizers-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-map iframe {
        height: 400px;
    }

    .cta-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-col.info {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-notice {
        max-width: 100%;
    }
}

/* ========================================
   АДАПТИВНОСТЬ: МОБИЛЬНЫЕ
   ======================================== */
@media (max-width: 768px) {
    /* БАННЕР */
    .promo-banner {
        padding: 10px 15px;
    }

    .banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .banner-text {
        font-size: 0.85rem;
        line-height: 1.25;
    }

    .banner-btn {
        width: 100%;
        font-size: 0.8rem;
    }

    /* ШАПКА */
    header {
        height: 70px;
        padding: 0 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-left {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-img {
        height: 35px;
        width: auto;
    }

    .logo-text {
        display: none;
    }

    .nav-menu,
    .header-socials {
        display: none;
    }

    .header-phones {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
        margin: 0 5px;
    }

    .header-phones a {
        font-size: 0.65rem;
        color: var(--dark);
        text-decoration: none;
        line-height: 1;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
        font-size: 1.2rem;
        color: var(--dark);
    }

    .btn-act {
        padding: 8px 10px;
        font-size: 0.55rem;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* HERO */
    .hero {
        padding-top: 20px;
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-autumn.jpg');
    }

    .hero-badge {
        font-size: 0.7rem;
        width: 95%;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .btn-hero {
        width: 85%;
        padding: 12px;
        font-size: 1rem;
    }

    /* ПРОГРАММЫ */
    .program-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .program-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-desc {
        font-size: 0.9rem;
    }

    /* ПОЧЕМУ МЫ */
    .feature-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper img {
        width: 40px;
        height: 40px;
    }

    .why-us-section {
        padding: 60px 4%;
    }

    .why-us-section .section-title {
        font-size: 1.8rem;
    }

    .about-company {
        padding: 40px 20px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-subheading {
        font-size: 1.3rem;
    }

    .organizer-photo {
        width: 120px;
        height: 120px;
    }

    /* КАРУСЕЛЬ */
    .carousel-track {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .ratibor-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* ОТЗЫВЫ */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-section .section-title {
        font-size: 1.8rem;
    }

    .review-card {
        padding: 30px 20px 20px;
    }

    .review-card::before {
        font-size: 4rem;
        top: 5px;
        left: 15px;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-section .section-title {
        font-size: 1.8rem;
    }

    /* ГАЛЕРЕЯ */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 60px 4%;
    }

    .gallery-section .section-title {
        font-size: 1.8rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 15px 10px;
    }

    .lightbox-close {
        font-size: 2.5rem;
        right: 20px;
    }

    /* КОНТАКТЫ */
    .contacts-section {
        padding: 60px 4%;
    }

    .contacts-section .section-title {
        font-size: 1.8rem;
    }

    .phone-number {
        font-size: 1rem;
    }

    .messenger-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .contacts-map iframe {
        height: 350px;
    }

    /* ФИНАЛЬНЫЙ CTA */
    .final-cta-section {
        padding: 60px 4%;
    }

    .cta-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-main-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 18px 20px;
    }

    /* ФУТЕР */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col.info {
        grid-column: span 1;
    }

    .site-footer {
        padding: 40px 4% 20px;
    }

    .footer-messengers {
        justify-content: flex-start;
    }

    /* ПОП-АПЫ */
    .session-popup-content {
        padding: 20px 18px 25px;
        margin: 10px;
    }

    .popup-header h3 {
        font-size: 1.4rem;
    }

    .price-row {
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }

    .price-amount {
        align-self: flex-end;
    }

    .price-total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-total-amount {
        align-self: flex-end;
        font-size: 1.4rem;
    }

    /* КНОПКА ВВЕРХ */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* ЛИПКАЯ КНОПКА */
    .mobile-cta-btn {
        display: block;
    }

    /* YANDEX-BTN НА МОБИЛЬНЫХ */
    .yandex-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 15px 20px;
    }
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ (ВЕРТИКАЛЬНОЕ)
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        font-weight: 600;
        text-align: left;
    }
}

/* ========================================
   АДАПТИВНОСТЬ: МАЛЫЕ МОБИЛЬНЫЕ
   ======================================== */
@media (max-width: 480px) {
    .carousel-track {
        height: 250px;
    }

    .carousel-btn {
        display: none;
    }
}

/* ========================================
   ТЁМНАЯ ТЕМА (АВТОМАТИЧЕСКАЯ)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: #1a1a1a;
        color: #e0e0e0;
        border-top-color: #333;
    }

    .site-footer .footer-heading {
        color: #ffffff;
    }

    .site-footer .footer-slogan,
    .site-footer .footer-links li a,
    .site-footer .footer-phones a,
    .site-footer .footer-email a {
        color: #ffffff;
    }

    .site-footer .footer-requisites,
    .site-footer .footer-bottom,
    .site-footer .phone-desc {
        color: #aaaaaa;
    }

    .site-footer .footer-logo {
        filter: brightness(0) invert(1);
    }

    .site-footer .footer-links li a:hover,
    .site-footer .footer-phones a:hover {
        color: var(--btn-color);
    }

    .site-footer .footer-bottom {
        border-top-color: #333;
    }
}

/* ========================================
   БЕЙДЖИ НА КАРТОЧКАХ СМЕН
   ======================================== */
.card-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-status-badge.completed {
    background: #95a5a6;
    color: #ffffff;
}

.card-status-badge.active {
    background: #27ae60;
    color: #ffffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4); }

    50% { box-shadow: 0 2px 20px rgba(39, 174, 96, 0.8); }
}
.card-status-badge.announced {
    background: #e6b322;
    color: #2c3e50;
}

.b2b-spoiler {
    margin-top: 10px;
}
.b2b-spoiler summary {
    cursor: pointer;
    font-weight: 700;
    color: #556b2f;
    padding: 10px 0;
}

.card-image {
    position: relative;
}

/* organizers-head-fix: заголовки по центру + курсор карточек */
.organizers .about-subheading,
.ratibor-section .about-subheading {
    text-align: center;
}
.program-card {
    cursor: pointer;
}
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 90px;
        right: 15px;
    }
}