/* Базовые стили песочницы */
        body { font-family: 'Open Sans', sans-serif; background-color: #f8f9fa; color: #485460; padding: 40px 10px; margin: 0; line-height: 1.4; }
        * { box-sizing: border-box; outline: none; }

        /* ==========================================
           ГЛОБАЛЬНЫЙ КОНТЕЙНЕР И ВВОДНАЯ ЧАСТЬ
           ========================================== */
        .nasmed-store-section {
            max-width: 1140px;
            margin: 0 auto;
            background: #fff;
            padding: 50px 40px;
            box-shadow: 0 15px 40px rgba(0, 114, 188, 0.05);
            border: 1px solid #e4e4e4;
			margin-top: 50px;
			margin-bottom: 50px;
        }

        .nasmed-main-title {
            font-size: 32px;
            font-weight: 700;
            color: #485460;
            margin: 0 0 20px 0;
            text-align: left;
        }

        /* Заход на блок (Лид-абзац) */
        .nasmed-intro-block {
            background: #f4fcff;
            border-left: 4px solid #1AB2AB;
            padding: 20px 25px;
            margin-bottom: 40px;
            font-size: 16px;
            line-height: 1.5;
            color: #3A3A3A;
        }
        .nasmed-intro-block p { margin: 0 0 10px 0; }
        .nasmed-intro-block p:last-child { margin: 0; }
        .nasmed-intro-block strong { color: #0072bc; }

        /* ==========================================
           ТАБЫ (ПЕРЕКЛЮЧАТЕЛИ)
           ========================================== */
        .nasmed-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            border-bottom: 2px solid #ddedff;
            padding-bottom: 15px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .nasmed-tabs::-webkit-scrollbar { display: none; }

        .nasmed-tab-btn {
            background: transparent;
            border: 2px solid transparent;
            color: #0072bc;
            font-size: 18px;
            font-weight: 700;
            padding: 10px 25px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        .nasmed-tab-btn:hover { background: #eef7ff; }
        .nasmed-tab-btn.active {
            background: #0072bc;
            color: #fff;
            border-color: #0072bc;
        }

        .nasmed-tab-panel { display: none; animation: fadeIn 0.4s ease; }
        .nasmed-tab-panel.active { display: block; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==========================================
           СЕТКА КАРТОЧЕК И ПАГИНАЦИЯ
           ========================================== */
        .nasmed-carousel-wrapper {
            position: relative;
            margin-bottom: 30px;
        }

        .nasmed-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            padding-bottom: 10px;
        }
        
        .nasmed-grid.grid-4 {
            grid-template-columns: repeat(4, 1fr);
        }

        /* Индикатор скролла (мобилки) */
        .nasmed-pagination {
            display: none;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }
        .nasmed-dot {
            width: 10px;
            height: 10px;
            background: #ddedff;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.3s;
        }
        .nasmed-dot.active { background: #0072bc; }

        /* ==========================================
           СТИЛЬ КАРТОЧКИ ТОВАРА (E-COM)
           ========================================== */
        .nasmed-card {
            border: 1px solid #e4e4e4;
            background: #fff;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: box-shadow 0.3s, border-color 0.3s;
            height: 100%;
        }

        .nasmed-card:hover {
            box-shadow: 0 15px 30px rgba(0, 114, 188, 0.1);
            border-color: #63e9ff;
        }

        /* Акцентная карточка ПРОГРЕСС */
        .nasmed-card.highlight {
            border: 3px solid #0072bc;
            transform: translateY(-5px);
        }

        .nasmed-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            padding: 5px 12px;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            z-index: 2;
        }
        .nasmed-badge.sale { background: #cf2027; }
        .nasmed-badge.hit { background: #1AB2AB; }

        /* МЕСТО ПОД ФОТО */
        .nasmed-card-img {
            height: 200px;
            background: #eef7ff; 
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 3px solid #63e9ff;
        }
        .nasmed-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .nasmed-card:hover .nasmed-card-img img {
            transform: scale(1.05);
        }

        /* Контент карточки */
        .nasmed-card-body {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .nasmed-card-title {
            font-size: 22px;
            color: #0072bc;
            font-weight: 800;
            margin: 0 0 10px 0;
            text-transform: uppercase;
        }

        .nasmed-card-price {
            font-size: 32px;
            font-weight: 800;
            color: #485460;
            margin-bottom: 15px;
            line-height: 1;
        }

        .nasmed-card-target {
            font-size: 14px;
            color: #636973;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .nasmed-card-included {
            background: #f4fcff;
            color: #0072bc;
            font-size: 13px;
            font-weight: 700;
            padding: 8px 12px;
            margin-bottom: 20px;
            border-left: 3px solid #0072bc;
        }

        /* ФИРМЕННАЯ КНОПКА (С РАЗРЫВОМ ЛИНИИ) - ИСПРАВЛЕНА */
        .nasmed-btn-native {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #485460;
            background-color: transparent;
            border: 3px solid #63e9ff;
            padding: 12px 15px;
            font-size: 16px;
            position: relative;
            text-decoration: none;
            width: 100%;
            cursor: pointer;
            transition: background-color 0.2s;
            margin-top: auto;
            margin-bottom: 10px;
        }
        .nasmed-btn-native:hover { background-color: #eef7ff; }
        
        /* Прячем текст подложки на 100%, чтобы не двоилось */
        .nasmed-btn-native .hide { 
            color: transparent; 
            display: block; 
            overflow: hidden; 
            white-space: nowrap; 
        }
        
        .nasmed-btn-native::after {
            content: attr(data-shift);
            position: absolute;
            padding: 0 10px;
            background-color: #fff; /* Фон для перекрытия рамки */
            bottom: -12px;
            right: 15px;
            color: #485460;
            font-weight: 700;
            white-space: nowrap;
            transition: color 0.2s;
        }
        .nasmed-btn-native:hover::after { color: #0072bc; background-color: #eef7ff; }
        .nasmed-result .nasmed-btn-native::after { background-color: #fff; }


        /* ==========================================
           КАЛЬКУЛЯТОР УМО
           ========================================== */
        .nasmed-calc-wrapper {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid #ddedff;
        }
        
        .nasmed-calc-title {
            font-size: 24px;
            font-weight: 700;
            color: #0072bc;
            margin: 0 0 20px 0;
        }

        .nasmed-calc-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: flex-end;
            margin-bottom: 30px;
        }
        .nasmed-form-group { flex: 1 1 200px; display: flex; flex-direction: column; }
        #group-distance { display: none; animation: fadeIn 0.3s ease; }
        .nasmed-label { font-size: 13px; font-weight: 700; color: #adb9c9; text-transform: uppercase; margin-bottom: 8px; }
        
        .nasmed-control {
            height: 48px; width: 100%; border: 1px solid #e4e4e4; background-color: #fff;
            color: #485460; font-size: 15px; font-family: inherit; padding: 0 15px; border-radius: 0;
            appearance: none; cursor: pointer; transition: border-color 0.2s;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230072bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 15px center;
        }
        .nasmed-control:focus { border-color: #0072bc; }

        .nasmed-radio-group { display: flex; height: 48px; gap: -1px; }
        .nasmed-radio-label {
            flex: 1; display: flex; align-items: center; justify-content: center;
            border: 1px solid #e4e4e4; background: #fff; color: #485460; font-size: 14px;
            font-weight: 600; cursor: pointer; transition: all 0.2s;
        }
        .nasmed-radio-label:first-of-type { border-right: none; }
        .nasmed-radio-input { display: none; }
        .nasmed-radio-input:checked + .nasmed-radio-label {
            color: #0072bc; border: 2px solid transparent; border-image: linear-gradient(90deg, #63e9ff, #0072bc) 1;
            background: #f4fcff; z-index: 1;
        }

        .nasmed-btn-submit {
            height: 48px; flex: 0 1 180px; background: #fff; color: #485460; font-weight: 700;
            font-size: 15px; text-transform: uppercase; cursor: pointer; border: 2px solid transparent;
            border-image: linear-gradient(90deg, #63e9ff, #0072bc) 1; transition: all 0.3s;
        }
        .nasmed-btn-submit:hover { background: #0072bc; color: #fff; border-image: none; border-color: #0072bc; }

        .nasmed-result {
            display: none; padding: 30px; background: #fff; border: 4px solid #0072bc; 
            position: relative; animation: fadeInDown 0.4s ease forwards;
        }
        .nasmed-result::before {
            content: ''; position: absolute; top: -4px; left: -4px; width: 15px; height: 15px;
            background: #fff; border-bottom: 4px solid #0072bc; border-right: 4px solid #0072bc;
        }
        .nasmed-result-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
        .nasmed-result-content { flex: 1; }
        .nasmed-result-label { font-size: 13px; color: #adb9c9; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
        .nasmed-result-title { font-size: 24px; font-weight: 700; color: #0072bc; margin: 0 0 5px 0; }
        .nasmed-result-desc { font-size: 15px; color: #485460; margin: 0; }

        .nasmed-btn-primary {
            background: #0072bc; color: #fff; border: none; height: 48px; padding: 0 30px;
            font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer;
            text-decoration: none; display: inline-flex; align-items: center; transition: background 0.2s; white-space: nowrap;
        }
        .nasmed-btn-primary:hover { background: #005ba4; }


        /* ==========================================
           МОДАЛЬНОЕ ОКНО (ПОПАП ДЕТАЛЕЙ) ИСПРАВЛЕННОЕ
           ========================================== */
        .nasmed-modal-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center;
            padding: 20px;
        }
        .nasmed-modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
        
        .nasmed-modal-content {
            background: #fff; max-width: 900px; width: 100%; padding: 40px; position: relative;
            border: 4px solid #0072bc; max-height: 90vh; overflow-y: auto;
        }
        .nasmed-modal-close {
            position: absolute; top: 15px; right: 15px; background: none; border: none;
            font-size: 28px; color: #adb9c9; cursor: pointer; transition: color 0.2s;
        }
        .nasmed-modal-close:hover { color: #e30613; }

        .nasmed-modal-title { font-size: 28px; color: #0072bc; margin: 0 0 10px 0; font-weight: 800; }
        .nasmed-modal-price { font-size: 20px; font-weight: 800; color: #485460; margin-bottom: 25px; }
        
        /* Сетка для списков в модалке */
        .nasmed-modal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }
        .nasmed-modal-section-title {
            font-size: 14px;
            font-weight: 700;
            color: #adb9c9;
            text-transform: uppercase;
            margin-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 5px;
        }

        .nasmed-modal-list { list-style: none; padding: 0; margin: 0; }
        .nasmed-modal-list li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #485460; }
        .nasmed-modal-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; background: #63e9ff; }

        .nasmed-modal-outcome { background: #f4fcff; border-left: 4px solid #1AB2AB; padding: 20px 25px; margin-bottom: 30px; font-size: 15px; }
        .nasmed-modal-outcome strong { color: #0072bc; display: block; margin-bottom: 5px; text-transform: uppercase; font-size: 13px;}

        /* ==========================================
           АДАПТИВНОСТЬ
           ========================================== */
        @media (max-width: 991px) {
            .nasmed-store-section { padding: 40px 20px; }
            .nasmed-grid { grid-template-columns: repeat(2, 1fr); }
            .nasmed-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
            .nasmed-modal-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .nasmed-main-title { font-size: 26px; }
            .nasmed-tab-btn { font-size: 15px; padding: 10px 15px; }
            .nasmed-intro-block { padding: 15px; font-size: 14px; }
            
            /* Горизонтальный скролл (свайп) для карточек */
            .nasmed-grid, .nasmed-grid.grid-4 {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                padding-bottom: 10px;
                gap: 15px;
                scrollbar-width: none;
            }
            .nasmed-grid::-webkit-scrollbar { display: none; }

            .nasmed-card {
                flex: 0 0 85%; /* Карточка занимает 85% ширины экрана */
                scroll-snap-align: start;
            }

            .nasmed-card.highlight { transform: none; } /* Отключаем поднятие на мобилках */
            
            /* Показываем пагинацию */
            .nasmed-pagination { display: flex; }

            /* Калькулятор компактнее на мобилках (убираем пустоты) */
            .nasmed-calc-wrapper { margin-top: 30px; padding-top: 20px; }
            .nasmed-calc-row { flex-direction: column; align-items: stretch; gap: 15px; margin-bottom: 20px; }
            .nasmed-form-group { flex: auto; width: 100%; } /* Инпуты на 100% ширины */
            .nasmed-btn-submit { flex: auto; margin-top: 5px; }
            
            /* Результат калькулятора в столбик */
            .nasmed-result { padding: 20px; }
            .nasmed-result-inner { flex-direction: column; align-items: stretch; gap: 20px; }
            .nasmed-btn-primary { width: 100%; justify-content: center; }
            
            .nasmed-modal-content { padding: 30px 20px; }
        }