/* form success POPup */
#btn-close-popup {
    font-size: 20px;
}

#btn-close-popup-cross {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bs-secondary);
    border-radius: 50%;
    aspect-ratio: 1/1;
}

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

#formPopup {
    display: none;
    position: fixed;
    width: 450px;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bs-secondary);
    z-index: 1000;
    text-align: center;
}

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

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

/* contact form */
textarea {
    min-height: 150px;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input {
    width: 25px;
    height: 25px;
}

.form-check-input:checked {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
}

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

.form-control-custom::placeholder {
    color: var(--bs-white);
}

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

.form-check-input:checked,
.pg-node-id-4,
.pg-main-cs-89 {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* pricing card */
.pricing-background {
    background: linear-gradient(0.35turn, var(--bs-primary), var(--bs-secondary));
}

/* team */
.team-img {
    object-position: top;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    max-width: 150px;
}

/* about */
.about-img {
    width: 100%;
    height: auto;
    float: left;
}

@media (min-width: 992px) {
    .about-img {
        width: 40%;
    }
}

/* hero */
@media (min-width: 992px) {
    .aspect-lg-square {
        aspect-ratio: 2/1;
    }
}

.kinetic-hero {
    background: linear-gradient(0.35turn, var(--bs-primary), var(--bs-secondary), var(--bs-dark));
    background-size: cover;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 100px 0;
}

.hero-title {
    color: #ffd34e;
}

.content-wrapper {
    position: relative;
    z-index: 3;
}

.floating-image {
    position: relative;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 30px 30px 0px rgba(0, 0, 0, 0.3);
}

.shape-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    bottom: -30px;
    right: -30px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
    z-index: -1;
    opacity: 0.8;
}

/* 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;
}
