/**
 * NT Product Card Styles
 * 
 * Стили для карточки продукта Naked Technologies
 * Используется с ACF Pro и hello-elementor-child темой
 * 
 * @package HelloElementorChild
 * @version 1.0.0
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2C3DF5;
    --primary-dark: #1E28B8;
    --bg-light: #F5F9FF;
    --bg-white: #FFFFFF;
    --text-dark: #213777;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border: #E6E6FF;
    --border-light: #F0F0FF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2C3DF5 0%, #5B6BFF 100%);
}

/* ===== BASE STYLES ===== */
.nt-product-card * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nt-product-card {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #FAFBFF;
    position: relative;
    /* Предотвращаем сдвиг шрифта */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Убеждаемся, что все элементы используют Montserrat */
.nt-product-card *,
.nt-product-hero *,
.nt-product-info *,
.nt-product-specs *,
.price-block *,
.sticky-order-bar *,
.nt-calculator-section *,
.nt-comparison-section * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-product-card * {
    box-sizing: border-box;
}

.nt-container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 120px;
    position: relative;
    overflow: visible;
}

@media (max-width: 1600px) {
    .nt-container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .nt-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .nt-container {
        padding: 0 16px;
    }
}

/* ===== BREADCRUMBS ===== */
.nt-breadcrumbs {
    padding: 16px 0 16px 120px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 1600px) {
    .nt-breadcrumbs {
        padding-left: 60px;
    }
}

@media (max-width: 1024px) {
    .nt-breadcrumbs {
        padding-left: 24px;
    }
}

.nt-breadcrumbs a,
.nt-breadcrumb-link {
    color: #6B7280 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.nt-breadcrumbs a:hover,
.nt-breadcrumb-link:hover {
    color: #2C3DF5 !important;
    text-decoration: underline;
    background: transparent !important;
    transform: none !important;
}

.nt-breadcrumb-separator {
    color: #6B7280 !important;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.nt-breadcrumb-current {
    color: #6B7280 !important;
    font-weight: 400 !important;
    font-size: 14px;
    line-height: 1.5;
    background: transparent !important;
    padding: 0 !important;
}

/* ===== PRODUCT HERO SECTION ===== */
.nt-product-hero {
    background: white;
    border-radius: 24px;
    padding: 40px 40px 24px;
    margin-bottom: 8px; /* Почти вплотную к следующему блоку, но с небольшим отступом */
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nt-product-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Убираем жёсткую высоту, чтобы рамка заканчивалась сразу под триггерами */
}

/* ===== PRODUCT IMAGES ===== */
.nt-product-images {
    position: sticky !important;
    top: 100px !important;
    display: flex;
    gap: 24px;
    flex-direction: row-reverse;
    align-items: flex-start;
    align-self: flex-start;
    height: fit-content;
    overflow: visible;
    min-height: 560px; /* Чуть уменьшаем минимальную высоту галереи */
    margin-bottom: 72px; /* Чуть меньше отступ, чтобы низ галереи был ближе к триггерам */
}

body.admin-bar .nt-product-images {
    top: 132px !important;
}

/* КРИТИЧНО: Убеждаемся что все родительские контейнеры не имеют overflow: hidden */
.nt-product-hero,
.nt-product-grid,
.nt-container,
.nt-product-card,
section.nt-container,
.nt-product-card section {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ограничиваем sticky область галереи до CTA кнопок */
.nt-product-info {
    display: flex;
    flex-direction: column;
}

.nt-product-info .nt-cta-buttons {
    margin-top: 0;
}

.nt-main-image {
    flex: 1;
    min-height: 600px;
    height: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 16px;
    overflow: visible;
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    border: 1px solid var(--border-light);
    width: 100%;
}

.nt-main-image img {
    max-width: 100%;
    max-height: calc(100vh - 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease;
    padding: 20px;
    will-change: transform, opacity; /* Оптимизация для плавности */
}

.nt-main-image:hover img {
    transform: scale(1.02);
}

/* Image Navigation Arrows */
.nt-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3;
    font-size: 24px;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nt-main-image:hover .nt-image-nav {
    opacity: 1;
}

.nt-image-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.nt-image-nav.nt-prev {
    left: 20px;
}

.nt-image-nav.nt-next {
    right: 20px;
}

/* Lightbox */
.nt-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Белый фон */
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.nt-image-lightbox.nt-active {
    display: flex;
}

.nt-lightbox-content {
    position: relative;
    max-width: 95vw; /* Увеличиваем размер контейнера */
    max-height: 95vh; /* Увеличиваем размер контейнера */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nt-lightbox-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    user-select: none; /* Предотвращаем выделение текста при pan */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nt-lightbox-image-container.nt-zoomed {
    cursor: zoom-out;
}

.nt-lightbox-image {
    max-width: 95vw; /* Увеличиваем размер изображения */
    max-height: 95vh; /* Увеличиваем размер изображения */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease;
    display: block;
    touch-action: none; /* Отключаем стандартные жесты браузера для pan */
    user-select: none; /* Предотвращаем выделение текста при pan */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto; /* Убеждаемся, что события обрабатываются */
    will-change: transform; /* Оптимизация для плавности */
}

.nt-lightbox-image.nt-zoomed {
    transform: scale(2);
    cursor: grab;
    transition: transform 0.1s ease-out; /* Плавное перемещение при pan */
}

.nt-lightbox-image.nt-zoomed:active {
    cursor: grabbing;
}

/* Мобильная версия - увеличенный размер изображения */
@media (max-width: 768px) {
    .nt-image-lightbox {
        padding: 0 !important;
    }
    
    .nt-lightbox-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .nt-lightbox-image-container {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
    }
    
    .nt-lightbox-image {
        max-width: 120vw !important;
        max-height: 120vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: translate(0, 0) !important;
        margin: 0 !important;
        opacity: 1 !important;
        touch-action: pan-x pan-y !important;
        pointer-events: auto !important;
        display: block !important;
    }
    
    /* Отключаем zoom и pan в мобильной версии */
    .nt-lightbox-image.nt-zoomed {
        transform: scale(1) !important;
        cursor: default !important;
    }
    
    .nt-lightbox-image.nt-zoomed:active {
        cursor: default !important;
    }
    
    /* Отключаем touch-action для pan в мобильной версии */
    .nt-lightbox-image {
        touch-action: pan-x !important;
    }
}

.nt-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1); /* Полупрозрачный темный фон для видимости на белом */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    color: #213377; /* Темный цвет для видимости на белом фоне */
    transition: all 0.3s;
    z-index: 10010 !important; /* Выше всех элементов lightbox */
    font-weight: 600; /* Более жирный шрифт для лучшей видимости */
    border: 2px solid rgba(33, 51, 119, 0.2); /* Легкая рамка для контраста */
    pointer-events: auto !important; /* Убеждаемся, что клики обрабатываются */
}

.nt-lightbox-close:hover {
    transform: rotate(90deg);
    background: #213377; /* Темный фон при наведении */
    color: white;
    border-color: #213377;
}

.nt-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 28px;
    color: var(--text-dark);
    z-index: 10001;
}

.nt-lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.nt-lightbox-nav.nt-prev {
    left: 40px;
}

.nt-lightbox-nav.nt-next {
    right: 40px;
}

.nt-lightbox-counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7); /* Темный фон для видимости на белом */
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: white; /* Белый текст на темном фоне */
    z-index: 10001;
}

/* Thumbnail Sidebar */
.nt-thumbnail-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 16px;
    height: 100%;
    justify-content: flex-start;
}

.nt-thumbnail-arrow {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 26px;
    font-weight: 600;
    color: rgba(33, 55, 119, 0.5) !important;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.nt-thumbnail-arrow::before,
.nt-thumbnail-arrow::after {
    display: none !important;
    content: none !important;
}

.nt-thumbnail-arrow:hover:not(.nt-disabled) {
    color: var(--primary) !important;
    transform: translateY(-2px) scale(1.1);
}

.nt-thumbnail-arrow.nt-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    color: rgba(33, 55, 119, 0.3) !important;
}

.nt-thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    height: 448px;
    flex-shrink: 0;
    flex-grow: 0;
}

.nt-thumbnail-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease;
}

.nt-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.nt-thumbnail:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.15);
}

.nt-thumbnail.nt-active {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.2);
}

.nt-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* ===== PRODUCT INFO ===== */
.nt-flagship-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4), 0 0 0 3px rgba(255, 215, 0, 0.2);
    animation: nt-pulse-badge 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.nt-flagship-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: nt-shine 3s infinite;
}

@keyframes nt-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes nt-pulse-badge {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4), 0 0 0 3px rgba(255, 215, 0, 0.2);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 12px 32px rgba(255, 165, 0, 0.5), 0 0 0 5px rgba(255, 215, 0, 0.3);
    }
}

.nt-flagship-badge svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: nt-rotate-star 4s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes nt-rotate-star {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nt-product-info h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.nt-product-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.nt-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nt-stars {
    color: #FFA500;
    font-size: 20px;
}

.nt-rating-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.nt-review-count {
    color: var(--text-gray);
    font-size: 14px;
}

.nt-in-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #EEF2FF;
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 20px;
    font-size: 14px;
}

.nt-in-stock::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* ===== PRICE BLOCK - УЛУЧШЕННЫЙ ===== */
.price-block {
    background: linear-gradient(135deg, #2C3DF5 0%, #4D5DFF 100%);
    border-radius: 24px;
    padding: 20px 22px;
    margin-bottom: 18px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 61, 245, 0.25);
}

.price-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.price-block::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.stock-badge svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.discount-badge {
    padding: 8px 16px;
    background: #DC2626;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-info {
    position: relative;
    z-index: 1;
}

.old-price {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    flex: 1;
}

.current-price {
    font-size: 56px;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-info .savings-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
    display: block;
    font-weight: 500;
}

.price-info .savings-text strong {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.savings-badge svg {
    width: 18px;
    height: 18px;
    color: #10B981;
    flex-shrink: 0;
}

.savings-badge strong {
    font-weight: 800;
}

.price-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%
    );
    margin: 24px 0;
    position: relative;
    z-index: 1;
}

.installment-info {
    position: relative;
    z-index: 1;
}

.installment-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.installment-amount {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
}

.installment-amount span {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.installment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.installment-link:visited,
.installment-link:active {
    color: white !important;
}

.installment-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

.installment-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.installment-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .price-block {
        padding: 18px 20px;
    }

    .price-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .old-price {
        font-size: 20px;
        font-weight: 600;
    }

    .discount-badge {
        font-size: 16px;
        padding: 6px 14px;
    }

    .current-price {
        font-size: 42px;
        margin-bottom: 6px;
    }
    
    .price-info .savings-text {
        font-size: 16px;
        margin-top: 2px;
    }
    
    .price-info .savings-text strong {
        font-size: 18px;
    }

    .installment-amount {
        font-size: 28px;
    }

    .installment-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BENEFITS LIST ===== */
.nt-benefits {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.nt-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nt-benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nt-benefit-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(44, 61, 245, 0.15);
}

.nt-benefit-item:hover::before {
    transform: scaleY(1);
}

.nt-benefit-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.2);
    transition: all 0.3s ease;
    line-height: 1;
}

.nt-benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.nt-benefit-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nt-benefit-item:hover .nt-benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(44, 61, 245, 0.3);
}

.nt-benefit-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

/* ===== CTA BUTTONS ===== */
.nt-cta-buttons {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.nt-btn {
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.nt-btn-primary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(44, 61, 245, 0.3);
}

.nt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 61, 245, 0.4);
}

.nt-btn-secondary,
.nt-cta-buttons .nt-btn-secondary {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: none !important;
}

.nt-btn-secondary:hover,
.nt-cta-buttons .nt-btn-secondary:hover {
    background: rgba(44, 61, 245, 0.05) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* ===== CALCULATOR SECTION ===== */
.nt-calculator-section,
.calculator-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Принудительно применяем Montserrat ко всем элементам калькулятора */
.nt-calculator-section *,
.calculator-section *,
.nt-calculator-header *,
.calculator-header *,
.nt-calculator-grid *,
.calculator-grid *,
.nt-calculator-result *,
.calculator-result *,
.nt-calculator-controls *,
.calculator-controls *,
.nt-control-group *,
.control-group *,
.nt-control-label *,
.control-label *,
.nt-control-input,
.control-input,
.nt-control-slider,
.control-slider,
.nt-result-title,
.result-title,
.nt-result-item *,
.result-item *,
.nt-result-label,
.result-label,
.nt-result-value,
.result-value,
.nt-result-buttons *,
.result-buttons * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-calculator-header,
.calculator-header {
    text-align: center;
    margin-bottom: 48px;
}

.nt-calculator-header h2,
.calculator-header h2,
.nt-calculator-header .nt-section-title,
.calculator-header .nt-section-title {
    font-size: 32px;
    font-weight: 800 !important;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-calculator-header p,
.calculator-header p {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 600 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-calculator-grid,
.calculator-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: center;
}

.nt-calculator-controls,
.calculator-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.nt-control-group,
.control-group {
    display: grid;
    gap: 12px;
    position: relative;
}

.nt-control-label,
.control-label {
    font-size: 13px;
    font-weight: 700 !important;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 20px;
    line-height: 1.4;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-control-input,
.control-input,
.nt-calculator-section input[type="text"],
.calculator-section input[type="text"],
.nt-calculator-controls input[type="text"],
.calculator-controls input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700 !important;
    color: var(--text-dark);
    background: #FFFFFF;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    height: 44px;
    box-sizing: border-box;
    line-height: 20px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-control-group::after,
.control-group::after {
    content: attr(data-suffix);
    position: absolute;
    right: 16px;
    top: calc(20px + 12px + 12px + 10px);
    color: rgba(143, 150, 163, 0.6);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    line-height: 20px;
    display: flex;
    align-items: center;
    height: 20px;
}

.nt-control-input:hover,
.control-input:hover,
.nt-calculator-section input[type="text"]:hover,
.calculator-section input[type="text"]:hover,
.nt-calculator-controls input[type="text"]:hover,
.calculator-controls input[type="text"]:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.nt-control-input:focus,
.control-input:focus,
.nt-calculator-section input[type="text"]:focus,
.calculator-section input[type="text"]:focus,
.nt-calculator-controls input[type="text"]:focus,
.calculator-controls input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(245, 249, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(44, 61, 245, 0.1);
}

.nt-control-input::placeholder,
.control-input::placeholder,
.nt-calculator-section input[type="text"]::placeholder,
.calculator-section input[type="text"]::placeholder,
.nt-calculator-controls input[type="text"]::placeholder,
.calculator-controls input[type="text"]::placeholder {
    color: rgba(143, 150, 163, 0.6);
    opacity: 1;
}

.nt-control-slider,
.control-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: var(--bg-light);
    outline: none;
}

.nt-control-slider::-webkit-slider-thumb,
.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.nt-control-slider::-webkit-slider-thumb:hover,
.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(44, 61, 245, 0.1);
}

.nt-control-slider::-moz-range-thumb,
.control-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.nt-control-slider::-moz-range-thumb:hover,
.control-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(44, 61, 245, 0.1);
}

.nt-calculator-result,
.calculator-result {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 32px 28px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.nt-result-title,
.result-title {
    font-size: 15px;
    opacity: 1;
    color: #FFFFFF;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
    font-weight: 600 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-result-item,
.result-item {
    text-align: center;
    margin-bottom: 24px;
}

.nt-result-label,
.result-label {
    font-size: 15px;
    opacity: 1;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 700 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-result-value,
.result-value {
    font-size: 42px;
    font-weight: 800 !important;
    line-height: 1.1;
    color: #FFFFFF;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.nt-result-buttons,
.result-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.nt-result-buttons .nt-btn,
.result-buttons .nt-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700 !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Кнопка "Задать вопрос эксперту" - вторичная (на синем фоне) */
.nt-result-buttons .nt-btn-secondary,
.result-buttons .nt-btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    box-shadow: none !important;
}

.nt-result-buttons .nt-btn-secondary:hover,
.result-buttons .nt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Кнопка "Рассчитать рассрочку" - основная (на синем фоне) */
.nt-result-buttons .nt-btn-primary,
.result-buttons .nt-btn-primary {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.nt-result-buttons .nt-btn-primary:hover,
.result-buttons .nt-btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ===== ADVANTAGES SECTION ===== */
.nt-advantages-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.nt-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.nt-advantage-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.nt-advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 61, 245, 0.1);
}

.nt-advantage-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: var(--primary);
}

.nt-advantage-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.nt-advantage-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.nt-advantage-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.nt-advantages-footer {
    padding-top: 32px;
    border-top: 2px solid var(--border);
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    text-align: center;
}

.nt-advantages-footer strong {
    color: var(--primary);
}

/* ===== SPECS SECTION ===== */
.nt-specs-section {
    background: white;
    border-radius: 24px;
    padding: 32px 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nt-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 20px;
}

.nt-specs-left-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Технические характеристики с зеброй */
.nt-specs-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nt-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: white;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Зебра для технических характеристик */
.nt-spec-item:nth-child(even) {
    background: #F9FAFB;
}

.nt-spec-item:nth-child(odd) {
    background: #FFFFFF;
}

.nt-spec-item:hover {
    background: var(--bg-light);
}

.nt-spec-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.nt-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    white-space: nowrap;
}

/* Package Contents */
.nt-package-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 2px solid var(--border-light);
}

.nt-package-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}


.nt-package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.nt-package-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.nt-package-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.1);
}

.nt-package-item-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nt-package-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.nt-package-item-text {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.nt-package-training-button {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gradient-primary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(44, 61, 245, 0.2);
}

.nt-package-training-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 61, 245, 0.3);
}

.nt-package-training-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.nt-package-training-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.nt-package-training-text {
    font-size: 16px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

.nt-package-bonus {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 12px;
    border: 2px solid #BAE6FD;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nt-package-bonus-icon {
    font-size: 28px;
}

.nt-package-bonus-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

/* Info cards in specs section */
.nt-specs-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.nt-package-section .nt-specs-info-cards {
    margin-top: 24px;
}

.nt-info-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.nt-info-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 61, 245, 0.15);
}

.nt-info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--primary);
}

.nt-info-card-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.nt-info-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.nt-info-card-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.nt-info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s;
}

.nt-info-card:hover .nt-info-card-link {
    gap: 10px;
}

/* Similar Products */
.nt-specs-section {
    position: relative;
    overflow: visible;
}

.nt-specs-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nt-similar-products {
    position: relative;
    align-self: flex-start;
    height: fit-content;
    max-height: none;
    overflow-y: visible;
}

.nt-similar-products-wrapper {
    overflow: visible;
}

.nt-similar-products-track {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Убеждаемся, что gap работает для веб-версии */
@media (min-width: 769px) {
    .nt-similar-products-track {
        gap: 40px !important;
    }
}

body.admin-bar .nt-similar-products {
    max-height: none;
}

/* КРИТИЧНО: Убеждаемся что все родительские контейнеры не имеют overflow: hidden */
.nt-specs-section,
.nt-specs-container,
.nt-specs-section .nt-container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ограничиваем sticky область рекомендованных товаров до конца секции specs */
.nt-specs-left-column {
    display: flex;
    flex-direction: column;
}

/* Секция с "Вес и габариты" и "Инструкция" должна быть в конце */
.nt-specs-left-column .nt-package-section {
    margin-top: 0;
}

.nt-similar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.nt-similar-product-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px;
    margin: 0 !important;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.nt-similar-product-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nt-similar-product-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.nt-similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.nt-similar-product-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nt-similar-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.nt-similar-product-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.3;
}

.nt-similar-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.nt-similar-product-stars {
    color: #FFA500;
    font-size: 13px;
}

.nt-similar-product-rating-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.nt-similar-product-rating-count {
    font-size: 11px;
    color: var(--text-gray);
}

.nt-similar-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.nt-similar-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.nt-similar-product-link {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s;
}

.nt-similar-product-card:hover .nt-similar-product-link {
    gap: 8px;
}

/* ===== COMPARISON TABLE ===== */
.nt-comparison-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.nt-comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 32px;
}

.nt-comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.nt-comparison-table thead {
    background: var(--gradient-primary);
    color: white;
}

.nt-comparison-table thead th {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.nt-comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: white;
    vertical-align: middle;
    border: none;
}

.nt-comparison-table th:first-child {
    border-radius: 12px 0 0 0;
}

.nt-comparison-table th:last-child {
    border-radius: 0 12px 0 0;
}

.nt-comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    border-left: none;
    border-right: none;
    border-top: none;
    font-size: 15px;
    color: var(--text-dark);
    vertical-align: middle;
    text-align: left;
}

.nt-comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.nt-comparison-table thead tr:hover {
    background: var(--gradient-primary);
}

.nt-check-mark {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.nt-cross-mark {
    color: #EF4444;
    font-size: 20px;
    font-weight: 700;
}

/* ===== REVIEWS SECTION ===== */
.nt-reviews-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.nt-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.nt-reviews-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0;
}

.nt-reviews-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nt-reviews-rating .nt-stars {
    font-size: 24px;
}

.nt-reviews-rating .nt-rating-value {
    font-size: 28px;
}

.nt-reviews-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.nt-reviews-track {
    display: flex;
    gap: 32px;
    transition: transform 0.5s ease;
}

.nt-review-card {
    min-width: calc(33.333% - 22px);
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.nt-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nt-review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.nt-review-stars {
    color: #FFA500;
    font-size: 18px;
}

.nt-review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.nt-review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.nt-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.nt-author-info {
    flex: 1;
}

.nt-author-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.nt-author-role {
    font-size: 13px;
    color: var(--text-gray);
}

.nt-slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nt-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.nt-slider-dot.nt-active {
    background: var(--primary);
    width: 32px;
    border-radius: 8px;
}

/* ===== VIDEO REVIEWS SECTION ===== */
.nt-video-reviews-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.nt-video-reviews-header {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.nt-video-reviews-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 12px;
}

.nt-video-reviews-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.nt-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.nt-video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
}

.nt-video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.nt-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-light);
    overflow: hidden;
}

.nt-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nt-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.nt-video-card:hover .nt-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    color: white;
}

.nt-video-info {
    padding: 24px;
}

.nt-video-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.nt-video-author {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.nt-video-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-gray);
}

.nt-video-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video Modal */
.nt-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.nt-video-modal.nt-active {
    display: flex;
}

.nt-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

.nt-video-modal iframe {
    width: 100%;
    height: 100%;
}

.nt-close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}

.nt-close-modal:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* ===== FAQ SECTION ===== */
.nt-faq-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.nt-faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.nt-faq-item:last-child {
    border-bottom: none;
}

.nt-faq-item:hover {
    background: var(--bg-light);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 12px;
}

.nt-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.nt-faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.nt-faq-item.nt-active .nt-faq-icon {
    transform: rotate(180deg);
}

.nt-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.nt-faq-item.nt-active .nt-faq-answer {
    max-height: 500px;
    margin-top: 16px;
}

/* ===== STICKY ORDER BAR ===== */
.sticky-order-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: calc(100% - 32px);
    width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 18px;
    border-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.sticky-order-bar.visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.sticky-order-bar-content {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 204px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sticky-product-image {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.sticky-product-details {
    min-width: 0;
    flex: 1;
}

.sticky-product-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.sticky-order-button {
    padding: 12px 32px;
    background: linear-gradient(135deg, #2C3DF5 0%, #4D5DFF 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(44, 61, 245, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sticky-order-button:hover::before {
    left: 100%;
}

.sticky-order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(44, 61, 245, 0.4);
}

.sticky-order-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(44, 61, 245, 0.3);
}

/* Responsive */
@media (max-width: 1600px) {
    .sticky-order-bar-content {
        padding: 0 100px;
    }
}

@media (max-width: 1200px) {
    .sticky-order-bar-content {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .nt-product-images {
        margin-bottom: 90px; /* Меньший отступ для мобильной версии */
    }
    
    .sticky-order-bar {
        padding: 10px 16px;
        bottom: 16px !important;
        left: 50% !important; /* Центрируем через left: 50% */
        right: auto !important; /* Убираем right */
        transform: translateX(-50%) translateY(100%) !important; /* Центрируем через transform */
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        border-radius: 14px;
    }
    
    .sticky-order-bar.visible {
        transform: translateX(-50%) translateY(0) !important; /* Центрируем при показе */
    }
    
    .sticky-order-bar-content {
        padding: 0;
        flex-direction: row;
        gap: 10px;
    }
    
    .sticky-product-image {
        width: 40px;
        height: 40px;
    }
    
    .sticky-product-details h3 {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .sticky-product-price {
        font-size: 16px;
    }
    
    .sticky-order-button {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* Позиционирование виджета коммуникации */
/* Мобильная версия - размещаем над sticky bar с гармоничным отступом */
@media (max-width: 768px) {
    /* Виджет ar-contactus - размещаем над sticky bar (sticky bar на 20px от низа + высота ~70px + отступ 20px = 110px) */
    .arcontactus-widget.arcontactus-message {
        bottom: calc(20px + 70px + 20px) !important; /* 110px от низа - над sticky bar с отступом */
        top: auto !important;
        transform: translateY(0) !important;
        right: 20px !important;
        left: auto !important;
    }
    
    /* Альтернативные классы виджета */
    .arcu-widget.arcu-message {
        bottom: calc(20px + 70px + 20px) !important; /* 110px от низа - над sticky bar с отступом */
        top: auto !important;
        transform: translateY(0) !important;
        right: 20px !important;
        left: auto !important;
    }
    
    /* Контейнер виджета */
    #arcontactus {
        bottom: calc(20px + 70px + 20px) !important; /* 110px от низа - над sticky bar с отступом */
        top: auto !important;
        transform: translateY(0) !important;
    }
    
    /* Убеждаемся, что дочерние элементы не конфликтуют */
    .arcontactus-widget.arcontactus-message .arcontactus-message-button,
    .arcu-widget.arcu-message .arcu-message-button {
        transform: none !important;
    }
}

/* Веб версия - поднимаем на 30% от низа */
@media (min-width: 769px) {
    /* Виджет ar-contactus - поднимаем на 30% от низа */
    .arcontactus-widget.arcontactus-message {
        bottom: 30% !important;
        top: auto !important;
        transform: translateY(0) !important;
        right: 20px !important;
        left: auto !important;
    }
    
    /* Альтернативные классы виджета */
    .arcu-widget.arcu-message {
        bottom: 30% !important;
        top: auto !important;
        transform: translateY(0) !important;
        right: 20px !important;
        left: auto !important;
    }
    
    /* Контейнер виджета */
    #arcontactus {
        bottom: 30% !important;
        top: auto !important;
        transform: translateY(0) !important;
    }
    
    /* Убеждаемся, что дочерние элементы не конфликтуют */
    .arcontactus-widget.arcontactus-message .arcontactus-message-button,
    .arcu-widget.arcu-message .arcu-message-button {
        transform: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nt-product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nt-calculator-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .nt-calculator-result,
    .calculator-result {
        order: -1;
    }

    .nt-specs-container {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nt-specs-left-column {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nt-specs-list {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nt-spec-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    
    .nt-spec-label,
    .nt-spec-value {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .nt-spec-value {
        white-space: normal;
        text-align: left;
        margin-top: 4px;
    }

    .nt-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nt-review-card {
        min-width: calc(50% - 16px);
    }

    .nt-advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .nt-specs-info-cards {
        grid-template-columns: 1fr;
    }

    .nt-package-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Предотвращаем горизонтальный скролл */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .nt-product-card,
    .nt-container,
    section.nt-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .nt-product-hero,
    .nt-calculator-section,
    .nt-specs-section,
    .nt-comparison-section,
    .nt-reviews-section,
    .nt-video-reviews-section,
    .nt-faq-section {
        padding: 24px 16px;
        margin-bottom: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .nt-product-hero {
        padding: 24px 16px;
        margin-bottom: 16px;
    }
    
    .nt-breadcrumbs {
        padding: 8px 0 8px 16px; /* Уменьшенный padding для компактности */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 12px !important; /* Уменьшенный размер шрифта */
        gap: 6px !important; /* Уменьшенный gap между элементами */
        line-height: 1.4 !important; /* Компактная высота строки */
    }
    
    .nt-breadcrumbs a,
    .nt-breadcrumb-link,
    .nt-breadcrumb-separator,
    .nt-breadcrumb-current {
        font-size: 12px !important; /* Унифицированный размер для всех элементов */
        line-height: 1.4 !important;
    }
    
    .nt-breadcrumb-separator {
        margin: 0 3px !important; /* Уменьшенный отступ у разделителя */
    }
    
    .nt-product-grid {
        gap: 24px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nt-section-title {
        font-size: 24px;
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nt-specs-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .nt-specs-left-column {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .nt-similar-products {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .nt-similar-products-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nt-similar-products-track {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nt-specs-list {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .nt-spec-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        flex-wrap: wrap;
        padding: 12px 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .nt-spec-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
    }
    
    .nt-spec-label {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 45%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 13px !important;
        text-align: left;
    }
    
    .nt-spec-value {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 55%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
        text-align: right !important;
        font-size: 13px !important;
        margin-top: 0 !important;
    }

    .nt-product-info h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .current-price {
        font-size: 36px;
    }

    .nt-review-card {
        min-width: 100%;
    }

    .nt-video-grid {
        grid-template-columns: 1fr;
    }

    .nt-comparison-table {
        font-size: 14px;
        margin-top: 24px;
    }

    .nt-comparison-table th, 
    .nt-comparison-table td {
        padding: 12px;
    }

    .nt-result-value,
    .result-value {
        font-size: 40px;
    }

    .nt-calculator-header h2,
    .calculator-header h2 {
        font-size: 28px;
    }

    .nt-calculator-controls,
    .calculator-controls {
        grid-template-columns: 1fr;
    }

    .nt-calculator-grid,
    .calculator-grid {
        gap: 32px;
    }
    
    .nt-result-buttons,
    .result-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nt-result-buttons .nt-btn,
    .result-buttons .nt-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .nt-specs-info-cards {
        grid-template-columns: 1fr;
    }
    
    .nt-advantages-section {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    /* На мобильных отключаем sticky */
    .nt-product-images,
    .nt-similar-products {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        width: 100%;
        min-height: auto !important;
    }
    
    .nt-main-image {
        min-height: auto !important;
        max-height: none !important;
    }
    
    .nt-main-image img {
        max-height: none !important;
    }
    
    .nt-similar-products-wrapper {
        overflow: visible;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nt-similar-products-track {
        display: flex;
        flex-direction: column;
        gap: 32px !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nt-similar-product-card {
        width: 100%;
        margin: 0 !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .nt-package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nt-package-item {
        padding: 10px;
    }
    
    .nt-package-item-text {
        font-size: 11px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes nt-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nt-fade-in {
    animation: nt-fadeIn 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.nt-text-center {
    text-align: center;
}

.nt-mb-40 {
    margin-bottom: 40px;
}

.nt-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #EEF2FF;
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.nt-verified-badge::before {
    content: "✓";
    font-weight: 700;
}