/* Base Styles */
:root {
    --primary-color: #4B0082; /* Індиго */
    --accent-color: #D5A021; /* Янтар */
    --bg-light: #f9f9f9;
    --bg-alt: #f3f9f4;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Alegreya Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Julius Sans One', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

section {
    padding: 3rem 0;
    position: relative;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 1rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 70%;
}

.nav-icon {
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.main-nav a:hover .nav-icon {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-family: 'Julius Sans One', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.secondary-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%234B0082" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 300px;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.hero-hands {
    flex: 1;
    max-width: 45%;
}

.hero-image {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-text {
    flex: 1;
    max-width: 50%;
    padding-left: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Philosophy Section */
.philosophy {
    background-color: var(--bg-alt);
    padding-top: 5rem;
}

.philosophy h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.philosophy-text {
    flex: 1;
}

.philosophy-image {
    flex: 1;
}

.rounded-image {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-principles {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.principle {
    flex: 1;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.principle:hover {
    transform: translateY(-5px);
}

.principle-icon {
    margin-bottom: 1rem;
}

/* Practices Section */
.practices {
    background-color: white;
    padding-top: 5rem;
}

.practices h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.practices-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.practice-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
}

.practice-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.practice-card h3 {
    padding: 1rem 1rem 0.5rem;
}

.practice-card p {
    padding: 0 1rem 1rem;
}

.practice-card .btn {
    margin: 0 1rem 1rem;
}

.breathing-techniques {
    margin-top: 4rem;
}

.breathing-techniques h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.techniques-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.technique {
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.breathing-svg {
    margin: 0 auto 1rem;
}

.technique h4 {
    margin-bottom: 0.5rem;
}

/* Animation classes for SVG breathing */
.pulse {
    animation: pulse 5s infinite alternate ease-in-out;
}

.horizontal-pulse {
    animation: horizontal-pulse 4s infinite alternate ease-in-out;
}

.move-along-path {
    animation: move-along-path 8s infinite linear;
}

@keyframes pulse {
    0% {
        r: 30;
        opacity: 0.7;
    }
    100% {
        r: 45;
        opacity: 0.3;
    }
}

@keyframes horizontal-pulse {
    0% {
        transform: scaleX(0.5);
        opacity: 0.7;
    }
    100% {
        transform: scaleX(1.5);
        opacity: 0.3;
    }
}

@keyframes move-along-path {
    0% {
        transform: translate(-30px, 40px);
    }
    50% {
        transform: translate(30px, -40px);
    }
    100% {
        transform: translate(-30px, 40px);
    }
}

/* Retreats Section */
.retreats {
    background-color: var(--bg-alt);
    padding-top: 5rem;
}

.retreats h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.retreats-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.retreats-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.retreat-cta {
    text-align: center;
    padding: 3rem 0;
}

.retreat-cta h3 {
    margin-bottom: 1rem;
}

.retreat-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Studio Section */
.studio {
    background-color: white;
    padding-top: 5rem;
}

.studio h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.studio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.studio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.instructors {
    margin-top: 4rem;
}

.instructors h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.instructors-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.instructor {
    text-align: center;
    max-width: 300px;
}

.instructor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.instructor h4 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-alt);
    padding: 5rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-email {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.contact-icon {
    margin-right: 1rem;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #212121;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-item {
    padding: 1rem;
}

.logo-item {
    grid-column: 1;
    grid-row: 1;
}

.nav-item {
    grid-column: 2;
    grid-row: 1;
}

.classes-item {
    grid-column: 3;
    grid-row: 1;
}

.policy-item {
    grid-column: 1;
    grid-row: 2;
}

.retreats-item {
    grid-column: 2;
    grid-row: 2;
}

.contact-item {
    grid-column: 3;
    grid-row: 2;
}

.footer-logo {
    margin-bottom: 1rem;
}

footer h3, footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer ul {
    margin-bottom: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-hands {
        max-width: 70%;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        max-width: 100%;
        padding-left: 0;
    }
    
    .philosophy-content {
        flex-direction: column-reverse;
    }
    
    .philosophy-principles {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-item {
        grid-column: 1 / 3;
        text-align: center;
    }
    
    .nav-item {
        grid-column: 1;
        grid-row: 2;
    }
    
    .classes-item {
        grid-column: 2;
        grid-row: 2;
    }
    
    .policy-item {
        grid-column: 1;
        grid-row: 3;
    }
    
    .retreats-item {
        grid-column: 2;
        grid-row: 3;
    }
    
    .contact-item {
        grid-column: 1 / 3;
        grid-row: 4;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .main-nav {
        width: 100%;
        justify-content: space-around;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .main-nav li {
        margin: 0 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .practices-grid, 
    .retreats-gallery,
    .studio-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-item,
    .nav-item,
    .classes-item,
    .policy-item,
    .retreats-item,
    .contact-item {
        grid-column: 1;
    }
    
    .logo-item {
        grid-row: 1;
    }
    
    .nav-item {
        grid-row: 2;
    }
    
    .classes-item {
        grid-row: 3;
    }
    
    .policy-item {
        grid-row: 4;
    }
    
    .retreats-item {
        grid-row: 5;
    }
    
    .contact-item {
        grid-row: 6;
    }
}

@media screen and (max-width: 480px) {
    .hero-hands {
        max-width: 90%;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .techniques-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .instructors-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Nav at 375px */
@media screen and (max-width: 375px) {
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
}