/* services */
.course-card {
    aspect-ratio: 1/1;
    overflow: hidden;
    color: var(--bs-white);
}

/* form popup */
#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;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bs-white);
    color: var(--bs-secondary);
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 1000;
    text-align: center;
}

/* contact form */
.form-check-input-custom {
    --bs-form-check-bg: var(--bs-body-bg);
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    appearance: none;
    background-color: var(--bs-form-check-bg);
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--bs-border-width) solid var(--bs-border-color);
    print-color-adjust: exact;
}

.form-check-input-custom[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input-custom:checked {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.form-check .form-check-input-custom {
    float: left;
    margin-left: -1.5em;
}

.form-check-input-custom:checked[type="checkbox"] {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* price block */
.product-card {
    overflow: hidden;
    background: linear-gradient(135deg, #7bb5ba, #015366);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #e0e0e0;
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-price {
    font-weight: bold;
    color: #1f8a70;
}

/* testimonials */
.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #6c757d;
}

/* info block */
.info-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* about block */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--bs-dark);
}

.download-btn {
    background-color: var(--bs-dark);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #333;
    color: #fff;
}

/* hero block */
.hero-img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
.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: fixed;
        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;
    }
}
