:root {
    --primary-color: #1a2420;
    --secondary-color: #6b9e78;
    --accent-color: #ffd166;
    --light-green: #a4c3a2;
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --background-light: #f0f4f1;
    --transition-default: all 0.3s ease;
    --shadow-standard: 0 4px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Mukta', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Martel', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.8rem auto;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--primary-color);
    color: var(--text-light);
}

section:nth-child(even) h2,
section:nth-child(even) h3,
section:nth-child(even) h4 {
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-default);
    border: none;
    font-family: 'Mukta', sans-serif;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-standard);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider.inverse {
    transform: rotate(0);
    top: 0;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 36, 32, 0.8), rgba(26, 36, 32, 0.7));
    z-index: -1;
    display: flex;
    flex-direction: column;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo a {
    color: var(--text-light);
    font-family: 'Martel', serif;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 180px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 0;
    position: relative;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-default);
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.about-section {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-standard);
    width: 100%;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    color: var(--secondary-color);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.practice-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    transition: var(--transition-default);
}

.practice-card:hover {
    transform: translateY(-5px);
}

.practice-image {
    height: 200px;
    overflow: hidden;
}

.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-content {
    padding: 1.5rem;
}

.practice-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--light-green);
}

.breathing-techniques {
    margin-top: 4rem;
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.technique-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-default);
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-standard);
}

.technique-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.schedule-section {
    background-color: var(--background-light);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.schedule-tab {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: rgba(107, 158, 120, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-default);
}

.schedule-tab.active, .schedule-tab:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.schedule-table {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    align-items: center;
    padding: 1rem;
}

.schedule-row.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

.schedule-row:not(.header) {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-row:not(.header):hover {
    background-color: rgba(107, 158, 120, 0.1);
}

.retreats {
    margin-top: 4rem;
}

.retreats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.retreat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-standard);
}

.retreat-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-default);
}

.retreat-card:hover img {
    transform: scale(1.05);
}

.retreat-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(26, 36, 32, 0.9));
    color: var(--text-light);
}

.retreat-date {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.teacher-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    transition: var(--transition-default);
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-image {
    height: 300px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-specialization {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.teacher-approach {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-approach h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.teacher-approach p {
    font-style: italic;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.testimonials {
    margin-top: 2rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--secondary-color);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-color);
}

.contact-form-wrapper {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-standard);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Mukta', sans-serif;
    transition: var(--transition-default);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(107, 158, 120, 0.2);
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    width: 180px;
    height: 40px;
    margin-bottom: 1rem;
}

.footer-item h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-item h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition-default);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236b9e78' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -100;
    opacity: 0.3;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .schedule-row.header {
        display: none;
    }

    .schedule-row:not(.header) {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }

    .schedule-row:not(.header) .day::before {
        content: "День: ";
        font-weight: 600;
    }

    .schedule-row:not(.header) .time::before {
        content: "Час: ";
        font-weight: 600;
    }

    .schedule-row:not(.header) .class::before {
        content: "Заняття: ";
        font-weight: 600;
    }

    .schedule-row:not(.header) .instructor::before {
        content: "Викладач: ";
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .main-nav {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links li {
        width: calc(50% - 0.5rem);
    }

    .nav-links li a {
        justify-content: center;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-links li {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}