/* ================================================
   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.5rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.07);
    transition: all 0.2s;
    cursor: pointer;
}

.delivery-tab:hover {
    border-color: #f97316;
    color: #fff;
    background: rgba(249,115,22,0.15);
}

.delivery-tab.active {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

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

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

/* ============================================================
   Тематическое оформление 1С:Садовод (Мятно-зеленая гамма)
   ============================================================ */

.theme-sadovod {
    background-color: #f4faf7;
    background-image: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

/* Изменение фона Hero-секции */
.theme-sadovod .main-hero-section {
    background: linear-gradient(135deg, #0f241c 0%, #163e2f 50%, #0a1b14 100%);
}

/* Кнопки и CTA элементы */
.theme-sadovod .btn-primary,
.theme-sadovod .submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.theme-sadovod .btn-primary:hover,
.theme-sadovod .submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Заголовки */
.theme-sadovod h1,
.theme-sadovod h2,
.theme-sadovod h3,
.theme-sadovod h4 {
    color: #1b4d3e;
}

.theme-sadovod .text-sirius-blue {
    color: #1b4d3e;
}

/* Тарифные карточки и кнопки заказа */
.theme-sadovod .version-card {
    border-color: #e2f2eb;
}

.theme-sadovod .version-card:hover {
    border-color: #10b981;
    box-shadow: 0 20px 40px rgba(27, 77, 62, 0.08);
}

.theme-sadovod .version-card.popular {
    border-color: #10b981;
}

.theme-sadovod .version-card.popular::before {
    background-color: #10b981;
    color: #ffffff;
}

.theme-sadovod .version-card .btn-primary {
    background: #10b981;
    border: none;
}

.theme-sadovod .version-card .btn-primary:hover {
    background: #059669;
}

/* Табы вариантов поставки */
.theme-sadovod .delivery-tab {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.theme-sadovod .delivery-tab:hover {
    border-color: #10b981;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.15);
}

.theme-sadovod .delivery-tab.active {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

/* Иконки в сайдбаре */
.theme-sadovod .info-block svg {
    color: #10b981;
}

/* Стилизация домино-структуры (Инструкции) */
.theme-sadovod .univ-instr-card {
    background: #ffffff;
    border: 1px solid #e2f2eb;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-sadovod .univ-instr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(27, 77, 62, 0.07);
}

.theme-sadovod .univ-instr-step {
    background-color: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    width: fit-content;
}

.theme-sadovod .univ-instr-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b4d3e;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .theme-sadovod .univ-instr-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: center;
        padding: 3rem;
    }
    
    .theme-sadovod .univ-instr-card:nth-child(even) {
        direction: rtl;
    }
    
    .theme-sadovod .univ-instr-card:nth-child(even) > * {
        direction: ltr;
    }
    
    .theme-sadovod .univ-instr-card > *:only-child {
        grid-column: span 2;
    }
}

/* Слайдер в инструкциях */
.theme-sadovod .univ-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-sadovod .univ-slider-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.theme-sadovod .univ-slider-btn.prev {
    left: 12px;
}

.theme-sadovod .univ-slider-btn.next {
    right: 12px;
}

.theme-sadovod .univ-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.theme-sadovod .univ-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background: rgba(15, 23, 42, 0.3);
}

.theme-sadovod .univ-slider-dot.active {
    background: rgba(15, 23, 42, 0.8);
    transform: scale(1.2);
}


/* --- Карточки преимуществ --- */
.product-benefit-card {
    background: #ffffff;
    border: 1px solid #e2f2eb;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.theme-sadovod .product-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 77, 62, 0.05);
}

@media (min-width: 768px) {
    .product-benefit-card {
        display: inline-block;
        width: calc(33.333% - 1.5rem);
        margin-right: 1.5rem;
        vertical-align: top;
        min-height: 170px;
    }
}

