/* Основні стилі */
:root {
    --primary-color: #1a4d2e;
    --secondary-color: #4c734c;
    --accent-color: #7ecfc0;
    --text-color: #333333;
    --light-text: #f5f5f5;
    --background-color: #ffffff;
    --light-background: #f9f9f9;
    --dark-background: #0a2817;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mukta', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Martel', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
}

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);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-background);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    fill: var(--background-color);
}

.wave-divider.inverted {
    transform: rotate(180deg);
    top: 0;
    bottom: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.3);
}

.btn.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Шапка сайту */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Martel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav li a {
    position: relative;
    padding: 5px 0;
    color: var(--text-color);
    font-weight: 500;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav li a:hover::after {
    width: 100%;
}

/* Герой-секція */
.hero {
    display: flex;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-left, .hero-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left {
    background-color: var(--primary-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-right {
    background-color: var(--light-background);
    position: relative;
}

.hero-right h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-right p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.divider-wave {
    position: absolute;
    height: 100%;
    width: 50px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
}

/* Філософія */
.philosophy {
    background-color: var(--light-background);
}

.mandala-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.mandala {
    width: 300px;
    height: 300px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mandala-description {
    flex: 1;
}

.philosophy-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.philosophy-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Заняття */
.class-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.class-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.class-image {
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.class-card:hover .class-image img {
    transform: scale(1.05);
}

.class-card h3, .class-card p, .class-card ul {
    padding: 0 20px;
}

.class-card h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

.benefits {
    margin: 20px 0;
    padding-bottom: 20px;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.icon {
    flex-shrink: 0;
}

/* Мудри */
.mudras-section {
    margin-top: 60px;
}

.mudras-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.mudra {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.mudra-icon {
    margin-bottom: 15px;
}

/* Викладачі */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.teacher-card {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.teacher-image {
    height: 300px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 25px;
}

.teacher-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.teacher-info h4 {
    color: var(--secondary-color);
    font-weight: normal;
    margin-bottom: 15px;
    font-size: 1rem;
}

.teacher-approach {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.teacher-approach h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    transition: var(--transition);
    transform: translateY(100%);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Контакти */
.contact {
    background-color: var(--light-background);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-text {
    margin-top: 30px;
}

.contact-form-container {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: 'Mukta', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.2);
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-checkbox input {
    width: auto;
}

.privacy-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Футер */
footer {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-poses h4,
.footer-policies h4 {
    color: var(--light-text);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h4::after,
.footer-poses h4::after,
.footer-policies h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-policies ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-policies ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-policies ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-poses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-pose {
    text-align: center;
}

.footer-pose p {
    font-size: 0.8rem;
    margin-top: 10px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Медіа-запити */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-left, .hero-right {
        padding: 40px;
    }
    
    .divider-wave {
        display: none;
    }
    
    .mandala-container {
        flex-direction: column;
        text-align: center;
    }
    
    .mandala {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-left, .hero-right {
        padding: 30px;
    }
    
    .mandala {
        width: 200px;
        height: 200px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-poses h4::after,
    .footer-policies h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-poses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-right h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-poses-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптація для маленьких екранів */
@media (max-width: 375px) {
    header {
        padding: 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .hero-left, .hero-right {
        padding: 20px;
    }
    
    .hero-right h1 {
        font-size: 1.5rem;
    }
    
    .hero-right p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}