/* Base Styles */
:root {
    --primary-color: #1D7373;
    --secondary-color: #D9B88F;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-dark: #1A3333;
    --border-color: #E0E0E0;
    --header-font: 'Lora', serif;
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--body-font);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #156363;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 115, 115, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 115, 115, 0.2);
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo span {
    margin-left: 15px;
}

.logo-svg {
    transition: var(--transition);
}

.logo a:hover .logo-svg {
    transform: rotate(5deg);
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0 15px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    border-radius: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.achievements {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 3rem;
    color: var(--secondary-color);
    line-height: 1;
}

.achievement-text {
    font-size: 1.1rem;
    margin-top: 10px;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
}

.programs-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    margin-bottom: 20px;
}

.program-features {
    margin: 30px 0;
    text-align: left;
}

.program-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.infographic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.gallery-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.gallery-tab.active,
.gallery-tab:hover {
    color: var(--primary-color);
}

.gallery-tab.active::after,
.gallery-tab:hover::after {
    width: 70%;
}

.gallery-tab-content {
    display: none;
}

.gallery-tab-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Recommendations Section */
.recommendations-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.recommendations-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recommendation-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.recommendation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.recommendation-image {
    height: 200px;
    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.recommendation-content {
    padding: 30px;
}

.recommendation-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.recommendation-text {
    font-style: italic;
}

/* Contacts Section */
.contacts-section {
    padding: 100px 0;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 15px;
}

.working-hours {
    margin-top: 30px;
}

.working-hours p {
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 115, 115, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer a {
    color: white;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-block {
    margin-bottom: 30px;
}

.footer-block h4 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo span {
    margin-left: 15px;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-logo {
        grid-column: span 3;
    }
    
    .infographic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .programs-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendations-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .contacts-wrapper,
    .hero-achievements {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .achievements {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .programs-wrapper,
    .recommendations-wrapper,
    .infographic {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 375px) {
    .header {
        padding: 10px 0;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}