@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0088cc;
    --primary-dark: #006699;
    --accent: #ff6b6b;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #e1e8ed;
}

body {
    font-family: 'Inter', 'Manrope', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo img.emoji {
    width: 1.6rem;
    height: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* Hero */
.hero-section {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Features */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-icon img {
    width: 3rem;
    height: 3rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Protocols */
.protocols-section {
    padding: 80px 0;
}

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

.protocol-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.protocol-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.protocol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.protocol-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.protocol-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.protocol-card ul {
    list-style: none;
}

.protocol-card ul li {
    padding: 0.3rem 0;
    color: var(--text-light);
}

/* How it works */
.how-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.step-arrow {
    display: none;
}

/* Pricing */
.pricing-section {
    padding: 80px 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 3px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

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

.plan-card.featured {
    border-color: var(--primary);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-light);
}

.amount {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary);
}

.period {
    font-size: 1.2rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.check {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-outline {
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

.pricing-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* CTA */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: white;
    color: var(--primary);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.cta-guarantee {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Модальное окно оплаты */
.checkout-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.checkout-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.checkout-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.checkout-modal-close:hover,
.checkout-modal-close:focus {
    color: #000;
}

.checkout-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.checkout-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-item-info span:first-child {
    font-weight: 500;
}

.checkout-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.checkout-field {
    margin-bottom: 20px;
}

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

.checkout-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.checkout-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-promo {
    margin-bottom: 20px;
}

.checkout-promo a {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkout-promo input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.checkout-agreement {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
}

.checkout-payment {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-btn:hover {
    background: #333;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .checkout-modal-content {
        padding: 25px;
        width: 95%;
    }
}

/* Кнопки тарифов */
button.btn-outline {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

/* Выбор периода подписки в модальном окне */
.checkout-period-selection {
    margin-bottom: 25px;
}

.checkout-period-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.checkout-period-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fafafa;
    border: 3px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-period-card:hover {
    border-color: var(--primary);
    background: #f5f9fc;
}

.checkout-period-card.selected {
    border-color: var(--primary);
    background: #e8f4fd;
}

.checkout-period-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    color: var(--primary);
}

.checkout-period-card.selected .checkout-period-icon {
    background: var(--primary);
    color: white;
}

.checkout-period-content {
    flex: 1;
}

.checkout-period-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.checkout-period-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.checkout-period-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.checkout-period-badge.best {
    background: #10b981;
    color: white;
}

.checkout-period-price {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.checkout-period-savings {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}
