/* form success POPup */
.bg-dark-custom {
    background-color: rgb(255, 255, 255);
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

.svg-background {
    background-color: var(--bs-primary);
    border-radius: 50%;
    padding: 10px;
}

#formPopup {
    display: none;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bs-light);
    z-index: 1000;
    text-align: center;
}

@media (max-width: 768px) {
    #formPopup {
        width: 100%;
        top: 0;
    }

    .success-text {
        font-size: 13px;
    }
}

/* reviews */
.bg-primary-custom {
    background-color: var(--bs-white);
}

.btn-white {
    background-color: #fff;
}

.text-black {
    color: #000000;
}

.review-card {
    max-width: 350px;
    border-radius: 20px;
}

.review-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* schedule block */
.timeline-step {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.6rem;
    height: 100%;
    width: 2px;
    background: var(--bs-primary);
}

.timeline-step::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--bs-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.timeline-content {
    background-color: var(--bs-primary);
    color: var(--bs-white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .timeline-step {
        padding-left: 3rem;
    }

    .timeline-step::before {
        left: 1rem;
    }

    .timeline-step::after {
        left: 0.4rem;
    }
}

/* about */
:root {
    --primary-accent: var(--bs-secondary);
    --secondary-accent: var(--bs-primary);
}

.about-megacard {
    background: white;
    border-radius: 0 50px 50px 0;
    box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.about-megacard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-accent), var(--secondary-accent));
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-title {
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background: var(--primary-accent);
    bottom: -10px;
    left: 0;
    border-radius: 4px;
}

.about-subtitle {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item {
    margin-bottom: 2rem;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-accent);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (max-width: 1200px) {
    .about-megacard {
        border-radius: 0 30px 30px 0;
    }
}

@media (max-width: 768px) {
    .fullwidth-about {
        padding: 4rem 0;
    }

    .about-megacard {
        border-radius: 0;
    }

    .about-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* hero */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/19971197/pexels-photo-19971197.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
    color: white;
    min-height: 100vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-transparent {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    border-radius: 0;
    transition: all 0.3s;
}

.btn-transparent:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* HEADER */
/* arrow */
.arrow {
    display: inline-block;
    transform: scale(1.3);
    transform-origin: center;
}

/* Hidden checkbox */
.dropdown-toggle {
    display: none;
}

/* Label acts like a link */
.dropdown-label {
    cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 150px;
    z-index: 100;
}

.dropdown-menu li {
    margin: 0.5rem 0;
}

.dropdown-menu li a {
    color: black;
    text-decoration: none;
}

/* Show dropdown when checkbox is checked */
.dropdown-toggle:checked + .dropdown-label + .dropdown-menu {
    display: block;
}

.burger-toggle {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: 20px;
    position: relative;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: all 0.5s ease;
        z-index: 100;
        padding-bottom: 40px;
        padding-top: auto;
    }

    .nav ul {
        flex-direction: column;
        gap: 30px !important;
        padding-left: 30px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Анимация бургер-иконки */
    #burger-toggle:checked ~ .burger-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #burger-toggle:checked ~ .burger-menu span:nth-child(2) {
        opacity: 0;
    }

    #burger-toggle:checked ~ .burger-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }

    /* Показываем меню при активации чекбокса */
    #burger-toggle:checked ~ .nav {
        left: 0;
    }
}