/* Базові стилі та скидання за замовчуванням */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1c4d36;
    --accent: #f0a868;
    --light-bg: #f7f9f8;
    --dark-bg: #0a1f16;
    --text-dark: #333333;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Типографіка */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Abhaya Libre', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 0.5rem auto 0;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

section {
    position: relative;
    padding: 4rem 0;
}

section:nth-child(odd) {
    background-color: var(--light-bg);
}

/* Хвилясті роздільники */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-separator.inverted {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* Хедер і навігація */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-svg {
    width: 120px;
    height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover:after {
    width: 100%;
}

.nav-cta {
    background-color: var(--primary);
    color: var(--text-light) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.nav-cta:after {
    display: none;
}

/* Герой-секція */
.hero {
    background-image: url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 31, 22, 0.7);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--accent);
    color: var(--text-dark);
}

.primary-btn:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: var(--text-light);
    color: var(--primary);
    transform: scale(1.05);
}

/* Секція про нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Секція практик */
.practices-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.practice-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

/* Секція розкладу */
.schedule-tabs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: var(--primary);
}

.tab-item {
    flex: 1;
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-item.active {
    background-color: var(--accent);
    color: var(--text-dark);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.schedule-row.header {
    font-weight: 600;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.schedule-cell {
    padding: 0.5rem;
}

.individual-practice {
    text-align: center;
    padding: 2rem;
}

.individual-practice p {
    margin-bottom: 2rem;
}

/* Секція чакр */
.chakras-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.chakra-item {
    width: 200px;
    text-align: center;
}

.chakra-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.chakra-item:hover .chakra-circle {
    transform: rotate(45deg);
}

.chakra-circle svg {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.chakra-item:hover .chakra-circle svg {
    transform: rotate(-45deg);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Секція мандали */
.mandala-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.mandala-image {
    flex: 1;
}

.mandala-svg {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    animation: slowRotate 60s linear infinite;
}

.mandala-description {
    flex: 1;
}

.mandala-symbols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.symbol-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.symbol-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Секція переваг */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
}

.benefits-infographic {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefits-infographic h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.infographic-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.infographic-item {
    text-align: center;
}

.percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Секція галереї */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(28, 77, 54, 0.85);
    color: var(--text-light);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Секція контактів */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-text {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(28, 77, 54, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
}

/* Футер */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-svg {
    width: 120px;
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    max-width: 250px;
}

.footer-nav h4, .footer-contact h4, .footer-policies h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-nav h4:after, .footer-contact h4:after, .footer-policies h4:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-nav ul, .footer-policies ul {
    list-style: none;
}

.footer-nav li, .footer-policies li {
    margin-bottom: 0.75rem;
}

.footer-nav a, .footer-policies a {
    color: #ccc;
}

.footer-nav a:hover, .footer-policies a:hover {
    color: var(--accent);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Анімації */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Пульсація кнопок */
.btn:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Адаптивний дизайн */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content, .mandala-content, .contact-content {
        grid-template-columns: 1fr;
    }

    .schedule-row {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-row.header {
        display: none;
    }

    .schedule-cell {
        position: relative;
    }

    .schedule-cell:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .about-features, .mandala-symbols {
        grid-template-columns: 1fr;
    }

    .tab-header {
        flex-direction: column;
    }

    .tab-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .chakras-content {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .practices-content, .benefits-grid, .infographic-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    .container {
        width: 95%;
    }

    section {
        padding: 3rem 0;
    }

    .schedule-row {
        grid-template-columns: 1fr;
    }
}