body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: #ffffff;
    font-weight: 400; 
    font-style: normal;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;

    --color-bg: #ffffff; 
    --color-text: #333333;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/* ==========================================================================
   Modal Window (FIXED)
   ========================================================================== */

.modal {
    /* Изначально скрыто с помощью opacity и visibility для плавного появления */
    opacity: 0;
    visibility: hidden !important;
    position: fixed !important;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Flexbox для идеального центрирования */
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Класс, который добавляет JS для отображения окна */
.modal.show {
    opacity: 1;
    visibility: visible !important;
}

.modal-content {
    background-color: #ffffff !important;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative; /* Для позиционирования крестика */
    /* Анимация появления */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 0;
    color: #2b2b2b;
}

.modal-content a {
    color: #007bff;
}

.close-button {
    color: #aaa;
    position: absolute; /* Позиционируем относительно .modal-content */
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}


/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    padding: 4px 12px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none; 
}

.header.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_logo {
    font-family: 'Kaushan Script', cursive;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
}

/* Nav */
.nav {
    font-size: 13px;
}

.nav_link {
    display: inline-block;
    vertical-align: top;
    margin: 0 18px;
    position: relative;
    font-weight: 600;
    color: #e7e7e7;
    text-decoration: none;
    transition: color 0.25s linear;
}

.nav_link:hover {
    color: #ffffff;
}

.nav_link:hover::after {
    opacity: 1; 
}

/* Nav Toggle (Hamburger menu) */
.nav-toggle {
    display: none; 
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; 
}

/* Intro */
.intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 95vh;
    background: url("../images/home_page/AI_PC_banner.webp"); 
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000;
    margin-bottom: 15px;
    cursor: default;
}

.intro_inner {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    padding-top: clamp(20px, 10vh, 130px);
}

.intro_title {
    color: #ffffff;
    font-size: clamp(10px, 4vw, 30px);
    font-weight: 670;
    font-family: 'Inter Tight', sans-serif; 
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro_suptitle {
    font-size: clamp(14px, 6vw, 50px);
    color: #ffffff;
    margin-bottom: 30px; 
}

.btn {
    padding: 12px 24px;
    font-size: 16px;
    background-color: transparent;
    border: 2px solid #202020;
    border-radius: 6px;
    color: #202020;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #202020;
    color: white;
}

/* Carousel */
.image-wrapper {
    position: relative;

}

.carousel-image {
    width: 100%;
    display: block;

}

.cart-overlay {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    text-align: left;
    color: #d9ddf6;
    z-index: 2;
}

.cart_title {
    font-weight: 700;
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: center;
}

.cart_text {
    font-weight: 400;
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: center;
}

.phone_title {
    color: #d9ddf6;
    font-size: clamp(22px, 6vw, 90px);
}

.phone_text {
    color: #d9ddf6;
    font-size: clamp(14px, 4vw, 70px);
}

.laptop_title {
    color: #111111;
    font-size: clamp(22px, 6vw, 90px);
}

.laptop_text {
    color: #111111;
    font-size: clamp(14px, 4vw, 70px);
}

.pc_title {
    color: #ffffff;
    font-size: clamp(22px, 6vw, 90px);
}

.pc_text {
    color: #ffffff;
    font-size: clamp(14px, 4vw, 70px);
}

/* Cards */
.card {
    border: none !important;
    text-align: center;
}

.card_inner {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 15px;
}

.card_item_main {
    position: relative;
    width: 100%;
    height: clamp(150px, 30vw, 350px);
    background-color: #000000;
    display: flex;
    justify-content: center;
    color: #ffffff;
    align-items: center;
    cursor: default;
}

.main_title_sellcta {
    font-family: "Kaushan Script", cursive;
    font-size: clamp(24px, 6vw, 70px);
    font-weight: 500;
    margin-bottom: 16px;
}

.main_title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(14px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 0 !important;
}

.card_item {
    position: relative;
    width: auto;
    overflow: hidden; 
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
    margin: 0;
    height: clamp(200px, 18vw, 350px); 
    background-color: #f6f6f6;
}

.card_item img {
    width: 100%;
    height: 100%;
    max-height: 350px; 
    display: block;
    overflow: hidden; 
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative; 
    margin: 0 auto;
    display: block;

}

/* Cards' Buttons*/


.btn.btn-outline-secondary {
    position: absolute;
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn.btn-outline-secondary:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.btn.btn-outline-secondary:active,
.btn.btn-outline-secondary:focus:active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: none; 
}

.btn-group {
    position: absolute;
    bottom: 40%;
    left: 20%;
}

.btn.btn-outline-danger {
    color: #eb1d24;
    border-color: #eb1d24;
}

.btn.btn-outline-danger:hover {
    background-color: #c72025;
    border-color: #c72025;
    color: white;
}

.btn.btn-outline-light {
    margin-top: clamp(5px, 5vw, 10px) !important;
    padding: 8px 20px !important;
    font-size: clamp(15px, 4vw, 18px) !important;
}

.btn.btn-outline-light:hover {
    background-color: #ffffff !important;
    color: #202020;
    border-color: #ffffff;
}

/* Project Summary */
.project_summary {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
    width: auto;
    height: auto;
    margin: 0 auto 15px;
    cursor: default;
}

.project_title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(20px, 4vw, 50px); 
    font-weight: 500;
    margin-bottom: clamp(25px, 4vw, 50px);
    color: #2e2e2e;
}

.title_Sellecta {
    display: inline-block;
    font-family: "Kaushan Script", cursive;
    font-size: clamp(50px, 6vw, 80px);
    font-weight: 700;
    margin-bottom: clamp(5px, 6vw, 16px);
}

.project_text {
    font-size: clamp(20px, 4vw, 35px);
    color: #3f3f3f;
    line-height: 1.6;
    width: 70%;
    margin: 20px auto clamp(0px, 5vw, 50px);
    font-weight: 450;
    font-family: "Inter Tight", sans-serif;
}

.project_ps {
    font-size: clamp(15px, 4vw, 25px);
    color: #3f3f3f;
    line-height: 1.6;
    width: 70%;
    margin: 20px auto clamp(0px, 5vw, 50px); 
    font-weight: 450;
    font-family: "Inter Tight", sans-serif;
}

.blockquote {
    font-size: clamp(10px, 4vw, 30px);
    color: #3f3f3f;
    line-height: 1.6;
    width: 70%;
    margin: 20px auto 50px; 
    font-weight: 450;
    font-family: "Inter Tight", sans-serif;
    font-style: italic;
}

.blockquote_Sellecta {
    display: inline-block;
    font-family: "Kaushan Script", cursive;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    font-style: normal;
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: #f4f4f4;
    color: #181818;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

.footer_link {
    color: #181818;
    text-decoration: none;
}

.footer_link:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 1024px) {
    /* Navbar */
    .nav-toggle {
        display: block; 
    }

    .nav {
        flex-direction: column;
        align-items: center;
        position: fixed; 
        top: 0;
        left: 0;
        right: 0;
        background: rgb(15, 15, 15);
        height: auto;
        padding: 80px 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        z-index: 1000;
        pointer-events: none;
    }

    .nav.nav--active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav_link {
        font-size: clamp(22px, 4vw, 65px);
        margin: 20px 0;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #ffffff;
    }

    .nav.nav--active .nav_link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Navbar Animation */
    .nav.nav--active .nav_link:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav.nav--active .nav_link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav.nav--active .nav_link:nth-child(3) {
        transition-delay: 0.25s;
    }

    .nav.nav--active .nav_link:nth-child(4) {
        transition-delay: 0.35s;
    }

    /* Navbar burger animation */
    .nav-toggle {
        position: relative;
        width: 34px;
        height: 24px;
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle__bar {
        position: absolute;
        width: 100%;
        height: 3px;
        background: #ffffff;
        transition: 0.3s ease;
        left: 0;
    }

    .nav-toggle__bar:nth-child(1) {
        top: 0;
    }

    .nav-toggle__bar:nth-child(2) {
        top: 10px;
    }

    .nav-toggle__bar:nth-child(3) {
        top: 20px;
    }

    .nav-toggle.open .nav-toggle__bar:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }

    .nav-toggle.open .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open .nav-toggle__bar:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(8px); 
        -webkit-backdrop-filter: blur(8px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Intro */
    .intro {
        height: 130vw;
        width: 100%;
        padding: 60px 0 40px;
        background-position: top;
        display: block;
        margin-bottom: 10px;
    }

    .intro_inner {
        padding: 0px 20px;
        text-align: center;
        padding-bottom: 100px; 
    }

    .intro_title {
        margin-top: 28px;
        font-size: clamp(10px, 4vw, 80px);
        margin-bottom: 5px;
    }

    .intro_suptitle {
        font-size: clamp(14px, 6vw, 55px);
        margin-bottom: 5px;
    }

    .btn {
        padding: clamp(5px, 2vw, 12px) clamp(15px, 2vw, 40px)!important;
        border-radius: clamp(6px, 2vw, 8px)!important;
        font-size: clamp(15px, 3vw, 30px)!important;
}

.btn.btn-outline-light {
        padding: clamp(5px, 2vw, 12px) clamp(15px, 2vw, 40px)!important;
        border-radius: clamp(6px, 2vw, 8px)!important;
        font-size: clamp(15px, 3vw, 30px)!important;
    }

    /* Carousel*/
    .cart-overlay {
        position: absolute;
        top: 50%;
        right: 5%;
    }

    /* Cards */
    .card_item {
        flex: 0 1 100%;
        min-width: 0;
        width: 100%;
        height: clamp(150px, 40vw, 300px);
    }

    .card_inner {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
        gap: 10px;
    }

    /* Card's buttons */
    .btn.btn-outline-secondary {
        padding: 5px 14px;
    }

    
    .btn-group {
        position: absolute;
        bottom: 40%;
        left: 22%;
    }

    .btn.btn-outline-danger {
        padding: 5px 14px;
    }

    .btn.btn-outline-warning {
        padding: 5px 14px;
    }

    /* Project Summary */
    .project_summary {
        padding: 30px 20px;
        margin-bottom: 10px;
    }
    .project_text {
        width: 100%;
    }
}
