/* ========================================
   VYLEPŠENIA HLAVNEJ STRÁNKY HEPAVITA
   ======================================== */

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* USP Badges */
.usp-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.usp-item:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.usp-item i {
    color: #22c55e;
    flex-shrink: 0;
}

/* Enhanced CTA */
.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price-hint {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Trust Badges Hero */
.trust-badges-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.trust-item i {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-item strong {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Why HepaVita Section */
.why-hepavita {
    background: #f9fafb;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.why-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mechanism-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mechanism-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.mechanism-icon {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mechanism-icon i {
    width: 32px;
    height: 32px;
    color: #22c55e;
}

.mechanism-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.mechanism-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mechanism-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #16a34a;
    font-weight: 500;
}

.mechanism-detail i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mechanism-footer {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border-left: 4px solid #22c55e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.mechanism-footer p {
    color: #374151;
    font-size: 1.05rem;
    margin: 0;
}

/* For You Section */
.for-you-section {
    background: #fffbeb;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.checklist-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.check-icon {
    width: 40px;
    height: 40px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.check-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.check-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.for-you-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 25px;
}

/* Comparison Table */
.comparison-section {
    background: #f9fafb;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

.comparison-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    font-weight: 600;
    text-align: center;
}

.comparison-table th:first-child {
    text-align: left;
    border-top-left-radius: 15px;
}

.comparison-table th:last-child {
    border-top-right-radius: 15px;
}

.brand-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-recommended {
    background: #fbbf24;
    color: #78350f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.highlight-column {
    background: #f0fdf4 !important;
}

.check-yes {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: 700;
}

.check-no {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
}

.check-maybe {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 700;
}

.price-row td {
    padding: 25px 20px;
    font-size: 1.1rem;
}

.price-row .highlight-column {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
}

.comparison-footer {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
}

.comparison-footer p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 20px;
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.exit-popup.active {
    display: flex;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    position: relative;
    background: white;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.exit-popup-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.exit-popup-body {
    padding: 50px 40px;
    text-align: center;
}

.exit-popup-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.exit-popup-body h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.exit-popup-body h3 {
    font-size: 1.4rem;
    color: #22c55e;
    margin-bottom: 20px;
    font-weight: 600;
}

.exit-popup-body p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.exit-popup-offer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.offer-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.old-price {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.new-price {
    font-size: 2.5rem;
    color: #16a34a;
    font-weight: 700;
}

.offer-note {
    color: #78350f;
    font-weight: 600;
    margin: 0;
}

.btn-popup {
    width: 100%;
    margin-bottom: 15px;
}

.btn-text {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Sticky Header */
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.header.sticky.hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .usp-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .trust-badges-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .why-grid,
    .mechanism-grid,
    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .badge-recommended {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .exit-popup-body {
        padding: 40px 25px;
    }
    
    .exit-popup-body h2 {
        font-size: 1.5rem;
    }
    
    .exit-popup-body h3 {
        font-size: 1.1rem;
    }
    
    .new-price {
        font-size: 2rem;
    }
}

/* Product Image Styles - Enhanced */
.product-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Декоративные круги на фоне */
.product-showcase::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-glow 3s ease-in-out infinite;
}

.product-showcase::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-glow 3s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.product-image {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.product-image img {
    max-width: 100%;
    height: auto;
    width: 280px;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(34, 197, 94, 0.25));
    transition: transform 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-image img:hover {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: 0px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    z-index: 20;
    animation: slideInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-badge::before {
    content: '✓';
    font-size: 1.1rem;
    font-weight: 900;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Улучшение hero-секции */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .product-showcase::before {
        width: 300px;
        height: 300px;
    }
    
    .product-showcase::after {
        width: 200px;
        height: 200px;
    }
    
    .product-image img {
        width: 220px;
        max-height: 320px;
    }
    
    .product-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        top: -5px;
    }
    
    .hero::before {
        width: 400px;
        height: 400px;
        top: -30%;
        right: -30%;
    }
}
