/* Базові стилі та змінні */
:root {
    --primary-color: #2D5D39;
    --secondary-color: #121212;
    --accent-color: #5A9367;
    --light-color: #f6f8f5;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fauna One', serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

section {
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 93, 57, 0.2);
}

.primary-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.6s ease, height 0.6s ease;
}

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Хвилясті роздільники */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider.reversed {
    transform: rotate(180deg);
    top: 0;
    bottom: auto;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo svg {
    margin-right: 10px;
}

.navigation ul {
    display: flex;
    list-style: none;
}

.navigation li {
    margin-left: 2rem;
}

.navigation a {
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.navigation a:hover {
    transform: translateY(-3px);
}

.nav-icon {
    margin-right: 5px;
}

/* Герой-секція */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(135deg, rgba(45, 93, 57, 0.1), rgba(90, 147, 103, 0.05));
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 2;
}

.hero-image {
    flex: 1;
    max-width: 45%;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.8s ease;
}

.hero-image:hover {
    transform: translateY(0);
}

.breath-animation {
    margin: 2rem 0;
    text-align: center;
}

.breath-path {
    animation: pathAnimation 5s infinite alternate ease-in-out;
}

.breath-circle {
    animation: circleAnimation 5s infinite alternate ease-in-out;
}

@keyframes pathAnimation {
    0% {
        d: path("M0,50 Q50,10 100,50 Q150,90 200,50");
    }
    100% {
        d: path("M0,50 Q50,90 100,50 Q150,10 200,50");
    }
}

@keyframes circleAnimation {
    0% {
        cx: 0;
        cy: 50;
    }
    100% {
        cx: 200;
        cy: 50;
    }
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Про нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.mandala-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="90" fill="none" stroke="%232D5D39" stroke-width="1" opacity="0.1"/><circle cx="100" cy="100" r="70" fill="none" stroke="%232D5D39" stroke-width="1" opacity="0.1"/><circle cx="100" cy="100" r="50" fill="none" stroke="%232D5D39" stroke-width="1" opacity="0.1"/><path d="M10,100 L190,100 M100,10 L100,190 M30,30 L170,170 M30,170 L170,30" stroke="%232D5D39" stroke-width="1" opacity="0.1"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
}

/* Практики */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.practice-image {
    height: 200px;
    overflow: hidden;
}

.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-card h3, .practice-card p {
    padding: 0 1.5rem;
}

.practice-card h3 {
    margin-top: 1.5rem;
}

.practice-card p {
    margin-bottom: 1.5rem;
}

/* Користь */
.infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 1rem;
}

/* Мудри */
.mudras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mudra-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mudra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.mudra-icon {
    margin-bottom: 1rem;
}

/* Галерея */
.gallery-tabs {
    margin-top: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Контакти */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-email {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.contact-icon {
    margin-right: 10px;
}

.contact-form {
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(45, 93, 57, 0.3);
    border-radius: var(--border-radius);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 93, 57, 0.2);
}

/* Футер */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
}

.footer-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-logo svg circle, .footer-logo svg path {
    stroke: var(--white);
}

.footer-nav {
    grid-column: 2;
    grid-row: 1;
}

.footer-links {
    grid-column: 1;
    grid-row: 2;
}

.footer-contact {
    grid-column: 2;
    grid-row: 2;
}

.footer-nav ul, .footer-links ul {
    list-style: none;
}

.footer-nav li, .footer-links li {
    margin-bottom: 0.5rem;
}

.footer-nav a, .footer-links a {
    color: var(--light-color);
}

.footer-nav a:hover, .footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивність */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem 5%;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .navigation ul {
        justify-content: center;
    }
    
    .navigation li {
        margin: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .footer-logo, .footer-nav, .footer-links, .footer-contact {
        grid-column: 1;
    }
    
    .footer-logo {
        grid-row: 1;
    }
    
    .footer-nav {
        grid-row: 2;
    }
    
    .footer-links {
        grid-row: 3;
    }
    
    .footer-contact {
        grid-row: 4;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        width: 95%;
        padding: 3rem 0;
    }
    
    .navigation ul {
        flex-wrap: wrap;
    }
    
    .navigation li {
        margin: 0.5rem;
    }
    
    .practices-grid, .infographic, .mudras-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
}