/* ================================================
   Product Page — styles
   Подключается в product_page.html
   ================================================ */

/* Новый расширенный контейнер */
.product-section-container {
    max-width: 1800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .product-section-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .product-section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Двухколоночный layout --- */
.product-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-main {
    width: 100%;
    min-width: 0;
}

.product-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .product-layout {
        display: grid;
        grid-template-columns: minmax(0, 1200px) 380px;
        gap: 3.75rem; /* 60px */
        justify-content: center;
        align-items: start;
    }

    .product-main {
        width: 100%;
        max-width: 1200px;
    }

    .product-sidebar {
        width: 380px;
        flex-shrink: 0;
    }
}

/* --- Sticky сайдбар --- */
.sticky-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
    /* критично для sticky внутри flex */
}

/* --- Карточка формы --- */
.lead-form-card {
    background: linear-gradient(135deg, #1a2340 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lead-form-card input,
.lead-form-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}

.lead-form-card input::placeholder,
.lead-form-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.lead-form-card input:focus,
.lead-form-card textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.lead-form-card .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.lead-form-card .submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.lead-form-card .submit-btn:active {
    transform: translateY(0);
}

/* --- Информационные блоки в сайдбаре --- */
.info-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.info-block svg {
    color: #f97316;
    flex-shrink: 0;
}

/* --- Успешная отправка формы --- */
.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
    color: #4ade80;
}
/* --- Табы типа поставки (Box / Cloud / Demo) --- */
.delivery-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.delivery-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

/* Анимация смены контента */
#product-main-content {
    transition: opacity 0.2s ease;
}

#product-main-content.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Стилизация премиальных SVG иконок подсистем */
.subsystem-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: currentColor !important;
    fill: none !important;
    transition: stroke 0.3s ease;
}

.subsystem-icon svg path,
.subsystem-icon svg circle,
.subsystem-icon svg line,
.subsystem-icon svg rect,
.subsystem-icon svg polygon,
.subsystem-icon svg polyline {
    stroke: currentColor !important;
}

