body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: #ffffff;
    font-optical-sizing: auto;
    font-weight: 400; /* исправлено: раньше было "weight" */
    height: auto;
    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;
}

/* 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(255, 255, 255, 0.5);
    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 {
    background-color: rgba(255, 255, 255, 0.85);
    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: 700;
    text-decoration: none;
    color: #333;
}

/* Nav */
.nav {
    font-size: 13px;
}

.nav_link {
    display: inline-block;
    vertical-align: top;
    margin: 0 18px;
    position: relative;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.25s linear;
}

.nav_link:hover {
    color: #000000;
}

.nav_link:hover::after {
    opacity: 1;
}

/* Navbar for phone*/
.nav-toggle {
    display: none; /* Hidden on desktop */
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Ensure it's above other elements */
}

.nav-toggle__bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Intro */
.intro {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 95vh;
    background: url("../images/tariffs/Gemini_Generated_Image_l3oc21l3oc21l3oc.png");
    background-size: auto 100%;
    background-color: #f4f4f4;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
}

.intro_inner {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    padding-top: clamp(20px, 11vh, 120px);
}

.intro_title {
    color: #202020;
    font-size: clamp(45px, 7vw, 60px);
    font-weight: 670;
    font-family: 'Inter-Tight', sans-serif;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro_suptitle {
    font-size: clamp(25px, 5vw, 40px);
    color: #202020;
    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;
}

/* Cards */
.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;
    border-radius: 20px;
    margin: 0;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.55); 
}

.main_title_sellcta {
    font-family: "Kaushan Script", cursive;
    font-size: clamp(35px, 6vw, 70px);
    font-weight: 500;
    margin-bottom: 16px;
}

.main_title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(20px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 16px;
}

.card {
    border: none !important;
    text-align: center;
}

.card_inner {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    margin: 25px 40px;
    gap: 25px;
}



.card_item {
    position: relative;
    width: auto;
    overflow: hidden;
    flex: 0 1 calc(25% - 20px);
    box-sizing: border-box;
    margin: 0;
    height: auto;
    background-color: #f4f4f4;
    border: none! important;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease,  background-color 0.5s ease !important;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25); 

}

.card_item:hover {
    transform: translateY(5px); 
    background-color: #fafafa;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10); 

}



/* Free card */




.card_item_free {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    height: auto;
    background-color: #f4f4f4;
    border: none! important;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease,  background-color 0.5s ease !important;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25); 

}

.card_item_free:hover {
    transform: translateY(5px); 
    background-color: #fafafa;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10); 

}

.card-overlay_free {
    margin: 60px auto;

    padding: 0 60px;
    text-align: left;
    align-items: left;
    color: #d9ddf6;
    z-index: 2;
    width: auto;
}

.card_title_free {
    font-family: "Inter Tight", sans-serif;
    text-align: left !important;
    font-weight: 600;
}

.card_text_free {
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: left;
    font-weight: 400;
}



/* Cards continue */



.card-overlay {
    margin: 80px auto;
    padding: 0;
    text-align: center;
    align-items: center;
    color: #d9ddf6;
    z-index: 2;
    width: auto;
}

.card_title {
    font-family: "Inter Tight", sans-serif;
    text-align: center !important;
    font-weight: 600;
}

.card_text {
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

.title{
    font-size: clamp(47px, 4vw, 75px);
    color: #333333;

}

.text{
    font-size: clamp(30px, 4vw, 40px);
    color: #333333;
}

.title_free{
    font-size: clamp(28px, 4vw, 75px);
    color: #ffffff;
}

.text_free{
    font-size: clamp(22px, 4vw, 40px);
    color: #ffffff;
}

/* Payements */


/* Modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* High z-index to appear on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Modal content box */
.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s;
}

/* Close button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #000;
}

/* Form styling */
.modal-content {
    border-radius: 120px;
}


.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.pay-button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.pay-button:hover {
    background-color: #0056b3;
}

/* Animation for the modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}




/* Carousel */
.carousel {
    height: auto;
    margin: 0px 40px ;
    border-radius: 20px !important;
    margin-bottom: 35px;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.55); 
}

.image-wrapper {
    position: relative;
    height: auto;
    width: 100%;
}

.carousel-image {
    width: 100%;
    display: block;
    border-radius: 20px !important;
}

.cart-overlay {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  text-align: left;
  color: #fce7ff;
  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;
  
}

.titleX {
    color: #eeeeee;
    font-size: clamp(25px, 6vw, 100px);
}

.textX {
    color: #eeeeee;
    font-size: clamp(18px, 4vw, 80px);

}




/* 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 */
@media (max-width: 1024px) {
    
    /*Navbar*/
    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .nav {
        flex-direction: column;
        align-items: center;
        position: fixed; /* <--- fixed чтобы занять экран */
        top: 0;
        left: 0;
        right: 0;
        background: white;
        height: 50vh;
        padding-top: 80px;
        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(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav.nav--active .nav_link {
        opacity: 1;
        transform: translateY(0);
    }

    /* ✨ Анимация по очереди */
    .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;
    }

    /* 🍔 Анимация иконки */
    .nav-toggle {
        position: relative;
    
        width: 34px;
        height: 34px;
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle__bar {
        position: absolute;
        width: 100%;
        height: 3px;
        background: #333;
        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;
  }

    .intro_inner {
    padding: 0px 20px;
    text-align: center;
    padding-bottom: 100px; 
}

    /* Cards */
    .card-overlay {
    margin: 20px auto;
    padding: 0;
    text-align: center;
    align-items: center;
    color: #d9ddf6;
    z-index: 2;
    width: auto;
}

    .card-overlay_free {
    margin: 60px auto;

    padding: 0 25px;
    text-align: left;
    align-items: left;
    color: #d9ddf6;
    z-index: 2;
    width: auto;
}

    .card_item {
    flex: 0 1 60%;
    min-width:100%;
    width: 100%;
    height: clamp(300px, 80vw, 400px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.20); 
  }

    .card_title_free {
    font-family: "Inter Tight", sans-serif;
    text-align: center!important;
    font-weight: 600;
}

    .card_text_free {
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

  .card_inner {
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 20px;
    gap: 20px;
  }

    .hr{

    width:90% !important;
}
    /* Carousel */
    .carousel {
    margin: 20px ;
    margin-top: 0;
    border-radius: 20px !important;
    margin-bottom: 20px;
    }
}