/* Базові стилі */
:root {
    --primary-color: #2d4739;
    --secondary-color: #5d3b6d;
    --light-color: #f9f7f4;
    --dark-color: #1a1a1a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--secondary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Хвилясті розділювачі */
.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

.wave-divider.reversed svg {
    transform: rotate(180deg);
}

/* Шапка сайту */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 15px;
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(10deg);
}

.logo-container h1 {
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.main-nav ul li a:hover {
    background-color: rgba(93, 59, 109, 0.1);
}

.nav-icon {
    display: inline-flex;
    margin-left: 5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.main-nav ul li a:hover .nav-icon {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-icon {
    display: none;
    cursor: pointer;
}

.mobile-nav-icon .bar1, .mobile-nav-icon .bar2, .mobile-nav-icon .bar3 {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Герой-секція */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    background-color: var(--light-color);
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breath-animation {
    position: relative;
    text-align: center;
}

.breath-circle {
    animation: pulse 5s infinite alternate;
}

.breath-circle-inner {
    animation: pulse 5s infinite alternate-reverse;
}

.breath-path {
    animation: morph 10s infinite alternate;
}

.breath-text {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

@keyframes pulse {
    0% { r: 65px; opacity: 0.6; }
    100% { r: 75px; opacity: 1; }
}

@keyframes morph {
    0% { d: path('M140,70 Q190,140 140,210 Q90,140 140,70'); }
    50% { d: path('M140,70 Q175,135 140,210 Q105,135 140,70'); }
    100% { d: path('M140,70 Q210,140 140,210 Q70,140 140,70'); }
}

/* Про нас */
.about {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    border-radius: 50% 20% / 10% 40%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(45, 71, 57, 0.1);
    transform: rotate(-2deg);
}

/* Переваги */
.benefits {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 71, 57, 0.1);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Заняття */
.classes {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.classes-content > div {
    margin-bottom: 4rem;
}

.classes-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.styles-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.style-card {
    padding: 1.5rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
}

.style-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

.asana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.asana-card {
    text-align: center;
}

.asana-card img {
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.asana-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.journal-template {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
}

.journal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.journal-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.journal-section {
    margin-bottom: 1.5rem;
}

.journal-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.journal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.journal-options span {
    background-color: rgba(93, 59, 109, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.journal-note {
    margin-top: 0.5rem;
    font-style: italic;
}

.journal-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Розклад */
.schedule {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.schedule-table {
    overflow-x: auto;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
}

.schedule-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: var(--primary-color);
    color: white;
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-body {
    display: grid;
    grid-template-rows: repeat(3, auto);
}

.schedule-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid #eee;
}

.schedule-cell {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #eee;
}

.class-time {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.class-name {
    margin-bottom: 0.3rem;
}

.class-teacher {
    font-size: 0.9rem;
    color: #666;
}

.schedule-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(93, 59, 109, 0.05);
    border-radius: 15px;
}

/* Викладачі */
.teachers {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.teacher-card {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 71, 57, 0.1);
}

.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: 1.5rem;
}

.teacher-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.teacher-specialization {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Відгуки */
.testimonials {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 71, 57, 0.1);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.2;
}

.testimonial-content p {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

/* Контакти */
.contact {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text p {
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
}

.contact-form-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(93, 59, 109, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 5px;
    width: auto;
}

.checkbox-text {
    font-size: 0.9rem;
}

/* Футер */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-item {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo p {
    margin-top: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: rgba(249, 247, 244, 0.8);
}

.footer a:hover {
    color: var(--light-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Nunito', sans-serif;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 0 1.5rem;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-mandala {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
}

/* Сторінки політик */
.policy-page {
    padding: 6rem 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
}

/* Сторінка подяки */
.thankyou {
    padding: 8rem 0;
    text-align: center;
}

.thankyou-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(45, 71, 57, 0.05);
}

.thankyou-icon {
    margin-bottom: 2rem;
}

.thankyou h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.thankyou p {
    margin-bottom: 2rem;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav-icon {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .journal-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 0 6rem;
    }
    
    .breath-animation svg {
        width: 220px;
        height: 220px;
    }
    
    .benefits-grid,
    .styles-comparison,
    .asana-grid,
    .teachers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-header,
    .schedule-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .day-header:nth-child(4),
    .day-header:nth-child(5),
    .schedule-cell:nth-child(4),
    .schedule-cell:nth-child(5) {
        display: none;
    }
    
    .policy-container,
    .thankyou-container {
        padding: 2rem;
    }
}

@media (max-width: 375px) {
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .breath-animation svg {
        width: 180px;
        height: 180px;
    }
    
    .schedule-header,
    .schedule-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .day-header:nth-child(3),
    .schedule-cell:nth-child(3) {
        display: none;
    }
    
    .journal-checklist {
        grid-template-columns: 1fr;
    }
}