#second-section {
    background-color: #DBD7D2;
    position: relative;
}

section {
    width: 100svw;
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

#first-section {
    z-index: 20;
    justify-content: flex-start !important;
    padding-top: 10vh;
}

#first-section h1,
#first-section p {
    position: relative;
    z-index: 25;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 720px;
}

@media (max-width: 1010px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1.2rem;
    }
    img{
        max-height: 250px !important;
    }
}

@media (max-width: 707px) {
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    img{
        max-height: 200px !important;
    }
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Отступ для navbar */
}

/* Navbar стили */
.navbar {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .brand-logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
}

.navbar-nav-wrapper {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    display: block;
}

.navbar-nav .nav-link:hover {
    color: #1c2030;
}

.navbar-nav .nav-link.active {
    color: #131622;
    font-weight: 600;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .navbar-brand .brand-logo {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand .brand-logo {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0;
    }
    
    .navbar-nav {
        height: 1.1rem;
        padding: 0;
        gap: 1rem !important;
    }
}

/* Стили для фиксированных разъемов */
.connectors-fixed {
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    max-height: 100%;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: all 0.6s ease;
    gap: 1rem;
    pointer-events: none;
    
}

.connectors-fixed.in-second-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.connector-item {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    box-shadow: none;
    transition: all 0.6s ease;
    max-width: 450px;
}

/* При скролле во вторую секцию добавляем белый фон */
.connector-item.with-background {
    background: white;
    padding: 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.connector-item.with-background:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.connector-item img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0;
    transition: margin-bottom 0.6s ease;
}

.connector-item.with-background img {
    margin-bottom: 1rem;
}

.connector-specs {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.connector-specs.visible {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
}

.connector-specs h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.connector-specs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.connector-specs ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.connector-specs ul li:last-child {
    border-bottom: none;
}

.connector-specs ul li span {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

/* Адаптивность для разъемов */
@media (max-width: 768px) {
    .connectors-fixed {
        flex-direction: column;
        gap: 1rem;
        overflow-y: auto;
        padding: 1rem;
        padding-top: 1.5rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -30%);
        width: calc(100% - 2rem);
        max-height: 90svh;
        justify-content: flex-start;
        align-items: center;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        transition: none; /* Убираем transition для плавной интерполяции через JS */
    }
    
    .connectors-fixed::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .connectors-fixed.in-second-section {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 90svh;
        transition: all 0.6s ease; /* Добавляем transition только при переходе во вторую секцию */
    }
    
    .connector-item {
        position: relative;
        display: block;
        max-width: 100%;
        width: 100%;
        top: 0;
        left: 0;
    }
    
    .connector-item img {
        height: 220px;
    }
}

@media (max-height: 700px) {
    #first-section h1 {
        font-size: 2rem;
    }
    #first-section p {
        font-size: 1rem;
    }
    .connector-item img{
        height: 160px;
    }
}

@media (max-height: 630px) {
    .connector-item {
        font-size: 8pt;
    }
    .connector-item img{
        height: 130px;
    }
}

/* Стили для формы заказа */
#third-section {
    background: #080202;
background: linear-gradient(107deg,rgba(8, 2, 2, 1) 0%, rgba(38, 52, 61, 1) 35%, rgba(51, 71, 79, 1) 72%, rgba(72, 95, 99, 1) 100%);
    color: white;
    min-height: 100svh;
    height: auto;
    padding-bottom: 5rem !important;
}

#third-section h2 {
    font-size: 3rem;
    font-weight: 300;
}

#third-section p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.order-form {
    max-width: 500px;
    width: 100%;
    margin-bottom: 2rem;
}

.order-form .form-control,
.order-form .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.order-form .form-control:focus,
.order-form .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.order-form .btn-primary {
    background: white;
    color: #141620;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

@media (max-width: 768px) {
    #third-section h2 {
        font-size: 2rem;
    }
    
    #third-section p {
        font-size: 1rem;
    }
}

/* Стили для контактной секции */
#fourth-section {
    background: #f8f9fa;
    min-height: 100svh;
    height: auto;
}

#fourth-section h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #333;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #141620;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: #111;
    margin: 0;
}

.contact-item a {
    color: #141620;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.map-container {
    width: 100%;
    min-height: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    #fourth-section h2 {
        font-size: 2rem;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 1rem;
    }
}