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

#btn-close-popup {
    font-size: 25px;
}

#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;
    width: 450px;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
}

@media (max-width: 490px){
    #formPopup {
        width: 90%;
    }

    #btn-close-popup {
        font-size: 15px;
    }
}

/* contact form */
.form-control-custom {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: #000;
    appearance: none;
    background-color: rgb(211, 211, 211);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 20px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom::placeholder {
    color: rgb(75, 75, 75);
}

.form-control-custom:focus {
    outline: 0;
}

/* price list */
.price-month {
    font-size: 17px;
    height: 17px;
    line-height: 17px;
    margin-top: auto;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

.card-top {
    clip-path: polygon(100% 0, 100% 73%, 0 100%, 0 0);
    height: 150px;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* testimonials */
.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;
    position: absolute;
    bottom: -50px;
}

.pricing-features {
    padding-bottom: 50px;
}

.pricing-footer {
    background: var(--bs-primary);
    padding-top: 50px;
}

/* services */
.svg-container {
    top: -25px;
}

/* hero */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),
    url("https://images.unsplash.com/photo-1567804154474-380ce535360e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wyMDkyMnwwfDF8c2VhcmNofDM0fHxzZW5pb3J8ZW58MHx8fHwxNzUzMjYzMTUwfDA&ixlib=rb-4.1.0&q=80&w=1080")
      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;
    margin-bottom: 2rem;
}

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

.btn-custom-primary {
    padding: 10px 30px;
    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%;
    left: 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 (min-width: 960px) {
    .nav {
        justify-content: flex-end;
    }
}

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

    .dropdown-menu {
        left: 0;
        min-width: 250px;
    }

    .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;
    }
}

body {
    font-family: system-ui, sans-serif;
}

/* font-size for large headings */
.fs-custom {
    font-size: clamp(19px, 5vw, 30px);
}

/* btn-white */
.btn-white {
    background-color: var(--bs-white);
    color: #000;
}

.btn-white:hover {
    background-color: rgb(248, 248, 248);
    color: #000;
}
