:root {
    --primary: #ff4d00;
    --primary-dark: #e64400;
    --secondary: #ff6b35;
    --dark: #1a1a1a;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn--full {
    width: 100%;
}

.btn--header {
    padding: 10px 24px;
    font-size: 0.95rem;
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    animation: pulse 2s infinite;
}

.btn--header:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 77, 0, 0.5);
}

.btn--mobile {
    margin-top: 20px;
}

.section {
    padding: 80px 0;
}

.section--gray {
    background-color: var(--gray-light);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark);
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
}

.logo__icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--gray-dark);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(./media/1.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

@media (max-width: 992px) {
    .hero {
        background-attachment: scroll;
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(255,77,0,0.3) 100%);
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.hero__scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

.stats {
    background: var(--gradient);
    padding: 60px 0;
    color: var(--white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stats__item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stats__item:nth-child(1) { animation-delay: 0.1s; }
.stats__item:nth-child(2) { animation-delay: 0.2s; }
.stats__item:nth-child(3) { animation-delay: 0.3s; }
.stats__item:nth-child(4) { animation-delay: 0.4s; }

.stats__number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.stats__label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about__text h2 {
    margin-bottom: 20px;
    text-align: left;
}

.about__description {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

.about__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.about__image:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.programs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.program-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.program-card:hover .program-card__image {
    transform: scale(1.1);
}

.program-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.program-card__content {
    padding: 30px;
}

.program-card__icon {
    width: 60px;
    height: 60px;
    background: var(--gray-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.program-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.program-card__description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-card__features {
    margin-bottom: 25px;
    padding-left: 0;
}

.program-card__features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray-dark);
}

.program-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.advantage-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.advantage-card:hover .advantage-card__icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.advantage-card__title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.advantage-card__text {
    color: var(--gray);
    line-height: 1.6;
}

.booking__wrapper {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    margin: 0 auto;
}

.booking__wrapper iframe {
    display: block;
}

.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer__contact:hover {
    color: var(--primary);
}

.footer__contact svg {
    flex-shrink: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__social {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
}

.footer__social:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer__social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
    border-radius: 13px;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 77, 0, 0.6);
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .burger {
        display: none;
    }
    
    .header__container {
        justify-content: center;
    }
    
    .about__content {
        grid-template-columns: 1fr;
    }
    
    .about__text {
        text-align: center;
    }
    
    .about__text h2 {
        text-align: center;
    }
    
    .about__text .btn {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
        text-align: center;
    }
    
    .section__title {
        text-align: center;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about__gallery {
        grid-template-columns: 1fr;
    }
    
    .programs__grid {
        grid-template-columns: 1fr;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__contact {
        justify-content: center;
    }
    
    .footer__socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
    }
    
    .stats__number {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
}