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;
}

:root {
  --vh: 100vh;
}

*, *::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.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: 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/phones/phones_banner.webp");
    background-color: #f6f5f4;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    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, 11vh, 120px);
}

.intro_title {
    color: #202020;
    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: #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;
}

/* Banner_SmartBuild */
.banner {
    background-color: #f8fdff;
    height: clamp(150px, 30vw, 750px);
    margin-bottom: clamp(10px, 2vw, 15px);
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.banner_laptop {
    background-color: #eff8fd;
    height: clamp(150px, 30vw, 750px);
    margin-bottom: clamp(10px, 2vw, 15px);
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.smartbuild_img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0 50px;
}

.banner_overlay {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 2;
    color: #1d1d1d; 
    text-align: center;
    margin: 0 auto;
}

.smartbuild_title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(22px, 4vw, 75px);
    font-weight: 550;
    margin: 0 50px;
}

.smartbuild_sellcta {
    font-family: "Kaushan Script", cursive;
    font-size: clamp(21px, 4vw, 72px);
    font-weight: 600;
}

.smartbuild_text {
    font-size: clamp(14px, 4vw, 65px);
    color: #1d1d1d;
    line-height: 1.6;
    font-weight: 400;
    font-family: "Inter Tight", sans-serif;
}

.btn.btn-outline-secondary{
    font-size: clamp(15px, 3vw, 16px);
    border-color: #0d6efd ;
    color: #0d6efd;
}

.btn.btn-outline-secondary:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd ;
}

/* Banner_Catalogue*/
.banner_catalogue {
    background-color: #000000;
    text-align: center;
    width: 100%;
    height: clamp(150px, 30vw, 350px);
    margin: 0 auto;
    padding-bottom: clamp(35px, 5vw, 80px);
    color: #ffffff;
    display: flex;
    justify-content: flex-start;
    align-items: center;   
    cursor: default;
}

.banner_title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(24px, 6vw, 65px);
    font-weight: 500;
    color: #ffffff;
}

.banner_text {
    font-size: clamp(14px, 4vw, 40px);
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 300;
    margin-top: clamp(25px, 3vw, 45px);
    font-family: "Inter Tight", sans-serif;
}

/* 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 {
    position: relative;
    width: auto;
    overflow: hidden;
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
    margin: 0;
    height: clamp(150px, 16vw, 350px); 
    background-color: #f4f4f4;
    border: none! important;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}

.card_item:hover {
    transform: translateY(-5px); /* поднимаем */
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15); /* тень */
}

.card_item img {
    width: auto;
    height: 100%;    
    display: block;
    overflow: hidden;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    margin: 0 auto;
    display: block;
    min-height: 0;  
    
}

.card_item:hover img {
    transform: scale(1.03); /* немного увеличиваем */
}

.card-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
    color: #d9ddf6;
    z-index: 2;
    width: auto;
}

.card_title {
    font-family: "Inter Tight", sans-serif;
    
    text-align: right;
    font-weight: 600;
}

.card_text {
    font-family: "Inter Tight", sans-serif;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

.title_X{
    font-size: clamp(30px, 3vw, 70px);
    color: #333333;
    margin: 0px 80px;
}

.title_Pro{
    font-size: clamp(30px, 3vw, 70px);
    color: #333333;
    margin: 0px 50px;
}

.title{
    font-size: clamp(30px, 3vw, 70px);
    color: #333333;
    margin: 0px;
}

.text{
    font-size: clamp(22px, 4vw, 40px);
    color: #333333;
}

/* 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; 
        top: 0;
        left: 0;
        right: 0;
        background: white;
        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;
    }

    .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;
    margin-bottom: 10px;
  }

    .intro_inner {
    padding: 0px 20px;
    text-align: center;
    padding-bottom: 100px; 
}

    .btn.btn-outline-primary {
        padding: clamp(5px, 2vw, 12px) clamp(15px, 2vw, 40px)!important;
        border-radius: clamp(6px, 2vw, 8px)!important;
        font-size: clamp(15px, 3vw, 30px)!important;
}

    /* Banners*/
    .banner_smartbuild{
        margin-bottom: 10px;
}

    .smartbuild_img {
        padding: 10px;
        width: auto;
        height: 100%;
}

    .banner_overlay {
        right: 5%;
        transform: translateY(-50%);
}

    .smartbuild_title {
        margin: 0 5px;
}

    .btn.btn-outline-secondary {
        padding: clamp(5px, 1vw, 8px) clamp(15px, 1vw, 22px)!important;
        border-radius: clamp(6px, 2vw, 8px)!important;
        font-size: clamp(15px, 3vw, 30px)!important;
    }
    /* Cards */
    .card_item {
    flex: 0 1 100%;
    min-width: 0;
    width: 100%;
    height: clamp(150px, 39vw, 400px);
}

    .card_inner {
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
    gap: 10px;
}

    .card_title {
    font-family: "Inter Tight", sans-serif;
    margin: 0px 80px;
    text-align: center;
    font-weight: 600;
}
    
    .card_title {
    margin: 0px
}
    .title_X{
    font-size: clamp(30px, 6vw, 70px);
    margin: 0px 35px;
}

    .title_Pro{
    font-size: clamp(30px, 6vw, 70px);
    margin: 0px 10px;
}

.title{
    font-size: clamp(30px, 6vw, 70px);
}

}
