/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.hero-image {
    position: relative;
}

.trust-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100px;
    z-index: 10;
}

.trust-badge img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits */
.benefits {
    background: var(--bg-white);
}

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

.benefit-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
}

/* Ingredients */
.ingredients {
    background: var(--bg-light);
}

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

.ingredient-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ingredient-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ingredient-card h4 {
    padding: 20px 20px 10px;
    font-size: 1.125rem;
}

.ingredient-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    background: var(--bg-white);
}

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

.step-card {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
}

/* Testimonials */
.testimonials-preview {
    background: var(--bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rating {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.testimonial-text {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
}

.testimonial-author span {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

/* Clinical Studies */
.clinical-studies {
    background: var(--bg-white);
}

.studies-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.studies-list {
    list-style: none;
    margin: 20px 0;
}

.studies-list li {
    padding: 10px 0;
    font-size: 1.125rem;
    color: var(--text-light);
}

.studies-image {
    position: relative;
}

.certificates {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.certificates img {
    height: 80px;
    width: auto;
}

/* Order Section */
.order-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 80px 0;
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.order-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.order-features {
    margin: 30px 0;
}

.order-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 1.05rem;
}

.check-icon {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.price-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.price-label {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.25rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0;
}

.discount-badge {
    display: inline-block;
    background: var(--error-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.order-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group label {
    display: flex;
    align-items: start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-note {
    margin-top: 15px;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* FAQ */
.faq {
    background: var(--bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.faq-item h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.875rem;
    max-width: 900px;
    margin: 15px auto 0;
    line-height: 1.6;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 20px;
    transition: opacity 0.3s;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.cookie-consent-text p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-cookie-accept {
    background: var(--success-color);
    color: white;
}

.btn-cookie-accept:hover {
    background: #059669;
}

.btn-cookie-decline {
    background: var(--error-color);
    color: white;
}

.btn-cookie-decline:hover {
    background: #dc2626;
}

.btn-cookie-settings {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-cookie-settings:hover {
    background: var(--border-color);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--text-dark);
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-setting-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.cookie-setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-setting-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* FAQ Detailed Items */
.faq-item-detailed {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.faq-item-detailed:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-item-detailed h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.faq-item-detailed p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.faq-item-detailed p:last-child {
    margin-bottom: 0;
}

.faq-item-detailed ul, 
.faq-item-detailed ol {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.faq-item-detailed strong {
    color: var(--text-dark);
}

.faq-category {
    margin-bottom: 40px;
}

/* Payment Methods */
.payment-methods img {
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Responsive */

/* Планшеты (ландшафт) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .benefits-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .studies-content {
        grid-template-columns: 1fr;
    }
}

/* Планшеты (портрет) и большие телефоны */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content,
    .studies-content,
    .order-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .trust-badge {
        max-width: 70px;
        padding: 8px;
        bottom: 10px;
        right: 10px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefits-grid,
    .steps-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        justify-content: stretch;
    }
    
    .btn-cookie {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .order-form-container {
        padding: 25px;
    }
    
    .blog-article-grid {
        grid-template-columns: 1fr !important;
    }
}
