/* ============================= FIX LAYOUT OVERFLOW ============================= */

/* 1. Глобально: враховуй padding у розмірах */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Заборонити горизонтальний скрол */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 3. Фікс небезпечних блоків */
.full-width-img,
.full-width-img2{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ============================= БАЗА ============================= */

:root {
    --color-bg-light: #F6F5F0;
    /* Основний 1 — світлий фон */
    --color-text-dark: #1a1a1a;
    /* Основний 2 — темний текст */
    --color-accent-orange: #f25500;
    /* Кнопки */
    --color-accent-blue: #3e4cf0;
    /* Додатковий 1 */
    --color-accent-yellow: #eecf61;
    /* Додатковий 2 */
}

@font-face {
    font-family: 'EnglishGirls';
    src: url('fonts/englishgirls.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ruchka';
    src: url('fonts/AdleryPro.ttf') format('opentype');
}


body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: 'EnglishGirls', sans-serif;
    padding-top: 20px;
}

.input-error {
    border: 2px solid red;
    background-color: #ffeaea;
}

#about {
    scroll-margin-top: 80px;
}

#philosophy {
    scroll-margin-top: 80px;
}

#formats,
#contact {
    scroll-margin-top: 20px;
}

/* ============================= СЕНКЮ ПЕЙДЖ ============================= */

.thank-you-page {
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.thank-you-wrapper {
    background-color: var(--color-bg-light);
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.thank-you-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.highlighted-text {
    position: relative;
    display: inline-block;
}


.thank-you-text {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.thank-you-hearts {
    width: 70px;
}

.thank-you-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
}

/* ============================= СЛАЙДЕР ============================= */

.hero-slider {
    margin-top: 40px;
    height: 60vh;
    min-height: 250px;
    width: 100%;
}

/* Swiper повністю займає висоту */
.hero-swiper,
.swiper-wrapper,
.swiper-slide {
    height: 100%;
    width: 100%;
}

/* Контейнер зі слайдом */
.slide-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    text-align: center;
}

/* Зображення в слайді */
.slide-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 1rem;
}

.slider-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
}

/* Кастомна навігація під слайдером */
.swiper-custom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Кнопки навігації */
.custom-nav-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-nav-btn:hover {
    transform: scale(1.1);
}

/* Адаптив: зменшуємо розмір кнопок на мобільних */
.custom-nav-btn img {
    width: 2rem;
    height: auto;
    margin-top: 0;
}


/* Прибираємо дефолтні стрілки Swiper */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}



/* ============================= ТЕКСТ (ПЕРШИЙ ЕКРАН) ============================= */

.highlight {
    position: relative;
    display: inline-block;
    font-family: 'EnglishGirls', sans-serif;

}

.highlight::before {
    content: "";
    position: absolute;
    top: 0%;
    left: -10px;
    right: -10px;
    height: 1.3em;
    background: url("icons/highlight.png") no-repeat center center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 100;
    line-height: 1.2;
}

/* ============================= КНОПКА (ПЕРШИЙ ЕКРАН) ============================= */

.hero-btn {
    display: block;
    /* або inline-block для тексту, але тут block */
    width: 100%;
    /* обмежимо максимально */
    margin: 0 auto;
    /* центровано */
    font-family: 'EnglishGirls', sans-serif;
    font-size: 1.1 rem;
    color: white;
    background-color: #f25500;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    box-shadow: 6px 10px 0 #f0c757;
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}

.hero-btn:hover {
    transform: translateY(2px);
}

/* Контейнер для кнопки */
.hero-button-wrapper {
    display: inline-block;
}

/* Стилізація стікера */
.hero-btn-pin {
    position: absolute;
    top: -25px;
    right: -5px;
    width: 50px;
    height: auto;
    z-index: 2;
}

/* ============================= НОВИЙ ГЕРО (ПЕРШИЙ ЕКРАН) ============================= */

.hero-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 3.5rem 1.5rem 2.5rem;
}

.hero-screen .hero-slider {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    height: 80vh;
    min-height: 320px;
    max-height: 720px;
    width: 100%;
}

.px-5{
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.hero-text-container {
    width: 100%;
}

.hero-text {
    padding-top: 28px;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.hero-cta-wrapper {
    width: min(280px, 100%);
    margin: 0 auto;
}

.hero-cta-wrapper .hero-button-wrapper {
    width: 100%;
    position: relative;
}

.hero-btn.hero-cta {
    width: 100%;
}

.swiper-custom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: -1rem;
    width: 100%;
    position: relative;
}

.swiper-custom-nav .custom-nav-btn {
    background: transparent;
    color: inherit;
    border: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .hero-screen {
        padding: 3rem 0.8rem 2.75rem;
        gap: 0.75rem;
        min-height: auto;
    }

    .hero-screen .hero-slider {
        height: 80vh;
        min-height: 320px;
    }

    .hero-screen .swiper-slide img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .slide-content {
        padding: 0;
    }

    .hero-text h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-cta-wrapper {
        width: 100%;
    }

    .hero-btn {
        padding: 0.95rem 1.4rem;
        font-size: 1rem;
    }

    .hero-btn-pin {
        width: 42px;
        top: -18px;
        right: 90px;
    }
}


/* ============================= ТЕКСТ (ДРУГИЙ ЕКРАН) ============================= */

.intro-section {
    position: relative;
    padding-block: 1rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.section-subtitle {
    font-size: 2rem;
    color: #222;
}

.tag {
    background-color: #3f4ce0;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    display: inline-block;
}

/* Квітка в кутку */
.decor-icon {
    position: absolute;
    top: -30px;
    right: 70px;
}

/* ============================= ЛОГО (ДРУГИЙ ЕКРАН) ============================= */

.site-logo {
    width: 300px;
    height: auto;
    display: block;
    margin-inline: auto;
    /* центрування */
    margin-top: 0.5rem;
    /* відступ від тексту */
}


/* ============================= ПОЛАРОЇДИ (ДРУГИЙ ЕКРАН) ============================= */
.full-width-img {
    display: block;
    width: 100vw;
    max-width: 100%;
    height: auto;
    margin: 0;
}


/* ============================= ТЕКСТ (ДРУГИЙ ЕКРАН) ============================= */
.english-inside {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    background-image: url("images/grid-light.svg");
    /* сітка */
    background-size: 200px;
    background-repeat: repeat;
    margin-top: -150px;
}

.icon-heart {
    width: 50px;
    position: absolute;
    top: 1.5rem;
    right: 3rem;
}

.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.underlined-svg {
    position: relative;
    display: inline-block;
}

.underline-svg {
    position: absolute;
    bottom: -6px;
    /* регулюй під висоту SVG */
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.section-text {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.2;
    max-width: 600px;
    margin: 0 auto;
}


/* ============================= (ТРЕТІЙ ЕКРАН) ============================= */

.philosophy-section {
    background-color: #2f3ce0;
    color: white;
    padding: 4rem 1rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.philosophy-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.highlight-pill {
    background-color: #f3c93c;
    color: #222;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.philosophy-block {
    max-width: 500px;
    margin: 2rem auto;
}

.icon1 {
    width: 60px;
    height: auto;
    margin-bottom: 0.8em;
}

.icon2 {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.icon3 {
    width: 70px;
    height: auto;
    margin-bottom: 0rem;
}

.philosophy-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    white-space: normal;
}

.underlined {
    font-family: 'Ruchka', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
        /* або 1px */
}

/* Декоративні зірки */
.star {
    position: absolute;
    width: 20px;
}

/* Розташування окремих зірок */
.star-1 {
    top: 7rem;
    left: 1rem;
    width: 30px;
}

.star-2 {
    top: 2rem;
    right: 2rem;
}

.star-3 {
    top: 34rem;
    left: 4rem;
    
}

.star-4 {
    top: 22rem;
    right: 4rem;
    width: 27px;
}

/* ============================= ЧЕТВЕРТИЙ ЕКРАН ============================= */

.practice-section {
    background: url('icons/grideffect.svg');
    background-size: 500px;
    background-color: var(--color-accent-yellow);
    padding: 4rem 1rem;
    padding-bottom: 0;
    border-radius: 2rem 2rem 3rem 3rem;
    position: relative;
    overflow: hidden;
    margin-top: -60px;
    z-index: 1;
    
}

.practice-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* Синя "на практиці?" */
.practice-label {
    display: inline-block;
    margin-top: 0.1rem;
    background-color: var(--color-accent-blue);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.9rem;
}

/* Корона вгорі */
.practice-crown {
    position: absolute;
    top: -30px;
    right: 60px;
    width: 40px;
    z-index: 1;
}

.highlight-blue {
    background-color: var(--color-accent-blue);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    display: inline-block;
}

.practice-image-card {
    margin-bottom: 20px;
    max-width: 600px;
}


.practice-final-text {
    margin-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.final-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: rem;
}

.final-subtext {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #1a1a1a;
}

.underlined-svg {
    position: relative;
    display: inline-block;
}



/* Іконка-серце внизу зліва */
.icon-heart-left {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 30px;
}

/* Іконка-діамант вгорі справа */
.icon-diamond-right {
    position: absolute;
    top: -30px;
    right: 10%;
    width: 50px;
}
   

.practice-image-girls {
    display: block;
    margin-top: -6rem;
}

.practice-image-girls img {
    display: block;
    width: 117%;
    height: auto;
    margin-left: -5%;
}
/* ============================= ПЯТИЙ ЕКРАН ============================= */


.format-section {
    background: url('icons/grideffect2.svg');
    background-size: 500px;
    background-color: transparent;
    padding: 4rem 1rem;
    position: relative;
    padding: 4rem 1.5rem;
}

.format-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.highlight-pill {
    background-color: #f3c93c;
    color: #1a1a1a;
    padding: 0.1rem 0.7rem;
    border-radius: 1rem;
    display: inline-block;
}

/* Лампочка */
.icon-light {
    position: absolute;
    top: -40px;
    left: 10px;
    width: 60px;
}

.switcher-group {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    flex-wrap: wrap;
}

.switcher-btn {
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switcher-btn.is-active {
    background: #f3c93c;
    color: #1a1a1a;
    border-color: #f3c93c;
}

.card-brand-switcher {
    margin: 0 auto 1rem;
}

.card-brand-switcher .switcher-btn {
    min-width: 132px;
}

/* КАРТКИ */
.format-card {
    background-color: var(--color-accent-blue);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    color: white;
    text-align: center;
}

.format-icon {
    width: 60px;
    margin-bottom: 1rem;
}

.format-title {
    font-family: 'Ruchka', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.format-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.format-info {
    margin-bottom: 1.5rem;
}

.price-actual-note {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0.2rem auto 1.25rem;
    opacity: 0.8;
}

.price-actual-note--card {
    color: #ffffff;
    opacity: 0.9;
    margin: 1.4rem auto 0;
    position: relative;
    z-index: 3;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.info-icon {
    width: 24px;
}

/* КНОПКА */
.format-btn {
    display: inline-block;
    background-color: #ff4c00;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 3rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.format-btn::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 6px;
    right: 6px;
    height: 100%;
    background-color: #f7c94b;
    border-radius: 3rem;
    z-index: -1;
}

.format-btn:hover {
    transform: translateY(2px);
}



.trial-section {
    background-color: var(--color-bg-light);
    background-image: url("icons/grideffect.svg");
    background-size: 500px;
    padding: 4rem 1.5rem;
    position: relative;
    text-align: center;
}

.trial-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.trial-text {
    margin-top: 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.trial-subtext {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 2.5rem;
}

.trial-highlighted {
    position: relative;
    display: inline-block;
}

.trial-highlighted .underline-svg {
    position: absolute;
    left: -12px;
    bottom: -5px;
    width: 120%;
    z-index: -1;
}


/* Іконки */
.icon-crown {
    position: absolute;
    top: -10px;
    left: 40px;
    width: 40px;
}

.icon-pin {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 35px;
}

.button-wrapper {
    position: relative;
    display: inline-block;
}


.btn-star {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    z-index: 2;
}

.full-width-img2 {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}

/* ============================= DESKTOP OPTIMIZATION ============================= */
@media (min-width: 992px) {
    .navbar {
        width: min(600px, 100%);
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 1rem 1rem;
    }

    .navbar .container {
        max-width: 600px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-screen,
    #about,
    .philosophy-section,
    .practice-section,
    .trial-section,
    .format-section,
    .contact-section,
    .about-section {
        width: min(600px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    /* Другий блок: не розтягувати на всю ширину десктопа */
    .full-width-img {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Блок після "А може — про те, що в тебе на душі" */
    .practice-image-girls {
        width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .practice-image-girls img {
        width: 600px;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* Полароїд у блоці з trial */
    .full-width-img2 {
        width: 100%;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Картки форматів і кнопки в них */
    .format-card {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .format-card .button-wrapper {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .format-card .hero-btn {
        width: 100%;
    }
}


/* ============================= ШОСТА СЕКЦІЯ ============================= */


.contact-section {
    background-color: transparent;
    padding: 1.75rem 1rem 2.5rem;
    position: relative;
    text-align: center;
    min-height: auto !important;
    display: block !important;
}

/* Заголовок секції */
.contact-heading {
    margin-bottom: 1rem;
    position: relative;
}

.contact-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.icon-heart-top {
    position: absolute;
    top: -30px;
    left: 20px;
    width: 60px;
}

/* Контейнер форми */
.contact-form {
    background-color: var(--color-accent-blue);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    color: white;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

/* Загальні стилі інпутів */
.contact-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.6rem;
}

.contact-form input {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 0.3rem;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #222;
    background-color: var(--color-bg-light);
}

.format-options {
    background-color: var(--color-bg-light);
    border-radius: 1rem;
    padding: 1rem 1rem;
    margin-top: 0.3rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.2rem;
}

.format-column {
    min-width: 0;
}

.format-label {
    margin-top: 0.5rem !important;
}

.format-column-title {
    margin: 0.2rem 0 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    text-transform: uppercase;
    text-align: center;
}

.checkbox-option {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin: 0.25rem 0 !important;
    min-width: 0;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-option span {
    display: block;
    width: 100%;
    padding: 0.4rem 0.7rem;
    border-radius: 2rem;
    border: 2px solid #d4d0c8;
    background: white;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.3;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    user-select: none;
    text-align: center;
}

.checkbox-option:hover span {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}

.checkbox-option input[type="checkbox"]:checked + span {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: white;
    font-weight: 600;
    transform: scale(1.03);
}

.format-options.input-error {
    border: 2px solid red;
    background-color: #ffeaea;
}

.kletochka {
    position: relative;
    background-image: url('icons/grideffect.svg');
    /* твоя кліточка */
    background-repeat: repeat;
    background-size: 340px;
    background-position: bottom center;
    padding-bottom: 24px;
    /* висота кліточки */
}



/* ============================= СЬОМА СЕКЦІЯ ============================= */

.about-section {
    background-color: transparent;
    background-size: 80px;
    padding: 2rem 1rem;
    position: relative;
    text-align: center;
}

.about-section img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;

}

/* Заголовок */
.about-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 3rem;
}

/* Фото з рамкою */
.about-photo-block {
    position: relative;
    display: inline-block;
        z-index: 2;
}

.about-photo {
    width: 100%;
}

.photo-caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-dark);
}

/* Сердечки */
.decor-heart-left {
    position: absolute;
    top: 10px;
    left: -25px;
    width: 40px;
}

.decor-heart-right {
    position: absolute;
    bottom: 10px;
    right: -25px;
    width: 40px;
}

.about-text-wrapper {
    position: relative;
    /* обмежить виступаючий фон */
}

.about-text-wrapper::before {
    content: "";
    position: absolute;
    top: -40rem;
    /* тут регулюєш висоту появи сітки */
    left: 0;
    right: 0;
    height: 600px;
    background-image: url('icons/grideffect.svg');
    background-repeat: repeat;
    background-size: 500px;
    opacity: 0.5;
    /* опціонально */
    z-index: 0;
}

/* сам текст поверх */
.about-text {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    margin-top: -4rem;
}


/* Текст */
.about-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
    text-align: left;
    padding-left: 1rem;
}

.about-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-dark);
    line-height: 1.3;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Соціальні мережі */
.social-preview img {
    width: 100%;
    max-width: 500px;
    margin-top: -3rem;
}

/* Кнопки */
.social-buttons .social-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2rem;
    background-color: var(--color-accent-blue);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 4px 6px 0 var(--color-accent-yellow);
    transition: transform 0.2s;
}

.social-buttons .social-btn:hover {
    transform: translateY(2px);
}


.practice-label2 {
    display: inline-block;
    background-color: var(--color-accent-blue);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.4rem;
}

.about-heading {
    position: relative;
    /* для абсолютного позиціювання сердечка */
}

.hearts-icon {
    position: absolute;
    top: -40px;
    right: 50px;
    width: 70px;
    height: auto;
}


.social-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.social-image:hover {
    transform: translateY(2px);
}


.scroll-to-top {
    display: block;
    margin: 4rem auto 0;
    /* відступ зверху + центрування */
    width: 40px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-to-top:hover {
    opacity: 1;
}




/* КІНЦЕВА ІСТОРІЯ */

.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-alert-box {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.custom-alert-close {
    margin-top: 1rem;
    background: #3e4cf0;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
}












/* ========================================== ХЕДЕР ============================================ */
.navbar {
    background-color: #FBF9F3;
    z-index: 1000;
}

#burgerBtn img {
    display: block;
}


.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 20, 20, 0.9);
    /* темне напівпрозоре тло */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.menu-overlay.active {
    display: flex;
}

.menu-content {
    background-color: var(--color-bg-light);
    border-radius: 3rem;
    padding: 3rem 2rem;
    max-width: 90%;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-left: 2.2rem;
    gap: 1.3rem;
    margin-bottom: 3rem;
}

.menu-nav a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.menu-social {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-social a img {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.menu-overlay {
    display: none;
    /* інші стилі */
}

.menu-overlay.active {
    display: flex;
    /* або block – як треба */
}

@media (min-width: 992px) {
    .menu-content {
        width: 600px;
        max-width: 600px;
    }

    .menu-nav,
    .menu-social {
        width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-nav {
        padding-left: 0;
    }
}


.contact-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.contact-popup.active {
    display: flex;
}

.popup-content {
    background: #fdfaf2;
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
}

.popup-telegram-btn img {
    width: 100%;
    max-width: 200px;
    margin-top: 1.5rem;
}
