/* ============================================
   CSS Variables (Color Palette)
   ============================================ */
:root {
    /* Основные цвета */
    --primary: #2c4453;        /* Темно-синий (как логотип) */
    --primary-light: #3d5a6b;  /* Светлее для hover */
    --primary-dark: #1f3340;   /* Темнее для акцентов */
    
    /* Дополнительные цвета */
    --accent: #4a90e2;         /* Яркий синий для CTA */
    --accent-hover: #357abd;   /* Темнее для hover */
    
    /* Успех/действие */
    --success: #10b981;        /* Зеленый для успеха */
    --warning: #f59e0b;        /* Оранжевый для предупреждений */
    --discount: #ef4444;       /* Красный для акций/скидок */
    
    /* Нейтральные */
    --text-dark: #1f2937;      /* Темный текст */
    --text-gray: #6b7280;      /* Серый текст */
    --bg-light: #f9fafb;       /* Светлый фон */
    --bg-white: #ffffff;       /* Белый фон */
    --border: #e5e7eb;         /* Границы */
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ============================================
   Header
   ============================================ */
.header {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 46px;
    border: px solid white;
    border-radius: 43px;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

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

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

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 6px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-contacts {
    flex: 1;
    background: var(--primary);
    padding: 12px 12px;
    border-radius: 8px
}

.footer-contacts-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-contacts-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    width: 20px;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-contact-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    background: var(--primary);
    padding: 16px 12px;
    border-radius: 8px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-inn {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-contacts {
        width: 100%;
    }
    
    .footer-contacts-list {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .footer-info {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-copyright {
        text-align: left;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.footer-made {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-heart {
    color: #ff6b6b;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.footer-dev {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-dev-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-dev-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-made,
    .footer-dev {
        font-size: 0.85rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-5 {
    padding: 3rem 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

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

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

.hero-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-rotating-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    line-height: normal;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat {
    text-align: center;
}

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

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

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.trust-item svg {
    flex-shrink: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Section Common
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   Problems Section
   ============================================ */
.problems {
    padding: 100px 0;
    background: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.problems-column,
.solutions-column {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.problems-column:hover,
.solutions-column:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.problems-header,
.solutions-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.problems-column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.solutions-column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.problems-list,
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.problem-item,
.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
}

.problem-icon-wrapper,
.solution-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-top: 1px;
}

.problem-icon-wrapper {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.solution-icon-wrapper {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.problem-icon,
.solution-icon {
    width: 20px;
    height: 20px;
}

.problem-text,
.solution-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    flex: 1;
    padding-top: 7px;
}

.problem-text {
    font-weight: 500;
}

.solution-text {
    font-weight: 500;
}

@media (max-width: 968px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .problems-column,
    .solutions-column {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .problems {
        padding: 80px 0;
    }
    
    .problems-column,
    .solutions-column {
        padding: 30px 24px;
    }
    
    .problems-header,
    .solutions-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .problems-column-title,
    .solutions-column-title {
        font-size: 1.25rem;
    }
    
    .problems-list,
    .solutions-list {
        gap: 20px;
    }
    
    .problem-text,
    .solution-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .problem-icon-wrapper,
    .solution-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .problem-icon,
    .solution-icon {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   New Year Banner
   ============================================ */
/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: 80px 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto 40px;
    }
    
    /* Первые 3 тарифа занимают все колонки первого ряда */
    .pricing-card:nth-child(1) {
        grid-column: 1;
    }
    
    .pricing-card:nth-child(2) {
        grid-column: 2;
    }
    
    .pricing-card:nth-child(3) {
        grid-column: 3;
    }
    
    /* Обертка для нижних карточек */
    .pricing-bottom-row {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }
    
    .pricing-bottom-row .pricing-card {
        flex: 0 0 auto;
        width: 366px;
    }
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-left: 5px;
}

/* Стили для акции */
.price-old {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.price-amount-old {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: line-through;
    opacity: 0.7;
}

.price-new {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-left: 10px;
}

.price-new .price-amount {
    color: var(--discount);
}

.pricing-badge-discount {
    background: var(--discount) !important;
    top: -15px;
    right: 20px;
    left: auto;
    transform: none;
}

.pricing-card-popular .pricing-badge-discount {
    top: -16px;
}

.pricing-docs {
    font-size: 1rem;
    color: var(--text-gray);
}

.pricing-body {
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.icon-check {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

.feature-more {
    color: var(--text-gray);
    font-style: italic;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.pricing-footer {
    margin-top: auto;
}

.w-100 {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 100%);
    border-radius: 12px;
    border: 1px solid #D1E7FF;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.pricing-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.pricing-note p strong {
    color: var(--text-dark);
    font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-popular {
        transform: scale(1);
    }
    
    .pricing-card-popular:hover {
        transform: translateY(-8px);
    }
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: 80px 0;
    background: white;
}

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

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: -20px;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    margin-top: 60px;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step:not(:last-child)::after {
        content: '↓';
        top: auto;
        bottom: -30px;
        right: 50%;
        transform: translateX(50%);
    }
}

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

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.features-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 16px;
}

.features-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.features-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .features-cta {
        padding: 40px 20px;
    }
    
    .features-cta h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Comparison Section
   ============================================ */
.comparison {
    padding: 80px 0;
    background: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 0;
    border: 2px solid transparent;
}

.comparison-table {
    width: 100%;
    margin-bottom: 0;
    background: white;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

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

.comparison-table thead th {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 16px;
    text-align: center;
    border: none;
    vertical-align: middle;
}

.comparison-table thead th:first-child {
    text-align: left;
    background-color: var(--primary-dark);
    border-top-left-radius: 16px;
}

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

.comparison-table tbody td {
    padding: 20px 16px;
    text-align: center;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
    background: white;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #fafafa;
    color: var(--text-dark);
}

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

.comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.comparison-table tbody tr:hover td:not(:first-child) {
    background-color: #f8f9fa;
}

/* Выделение колонки HACCPro.ru */
.comparison-table thead th.comparison-option-primary {
    background-color: var(--accent);
    color: white;
    position: relative;
}

.comparison-table tbody td.comparison-option-primary {
    background-color: #f0f7ff;
    color: var(--text-dark);
    font-weight: 500;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.comparison-feature {
    color: var(--text-dark);
    font-size: 1rem;
}

.comparison-icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.comparison-icon-success {
    color: var(--success);
}

.comparison-icon-warning {
    color: var(--warning);
}

.comparison-icon-error {
    color: #dc3545;
}

@media (max-width: 768px) {
    .comparison {
        padding: 60px 0;
    }
    
    .comparison-table-wrapper {
        margin-top: 30px;
        border-radius: 12px;
    }
    
    .comparison-table {
        border-radius: 12px;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 14px 10px;
        font-size: 0.875rem;
    }
    
    .comparison-icon {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Trust & Guarantees Section
   ============================================ */
.trust-section {
    padding: 80px 0;
    background: white;
}

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

.trust-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, #0d9668 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trust-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.trust-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.trust-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 100%);
    border-radius: 12px;
    border: 1px solid #D1E7FF;
}

.trust-cta p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-section {
        padding: 60px 0;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .trust-item {
        font-size: 0.9rem;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.faq-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 40px;
}

.faq-cta p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.faq-cta a.btn-outline,
.faq-cta .btn-outline {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.faq-cta a.btn-outline:hover,
.faq-cta .btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
    padding: 5px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modal-plan-info {
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #D1E7FF;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.modal-plan-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 6px;
}

.form-error {
    font-size: 0.85rem;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-info svg {
    flex-shrink: 0;
    color: var(--accent);
}

.form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-gray);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
}

.payment-secure svg {
    color: var(--success);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-plan-price {
        font-size: 1.75rem;
    }
}

/* ============================================
   Documents Modal
   ============================================ */
.modal-documents {
    max-width: 600px;
}

.modal-plan-docs-count {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.modal-plan-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.documents-list {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 10px;
}

.documents-list::-webkit-scrollbar {
    width: 6px;
}

.documents-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.documents-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.documents-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.document-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    margin-top: 2px;
}

.document-name {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    flex: 1;
}

.btn-view-more-docs {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-style: italic;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.btn-view-more-docs:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.feature-more .btn-view-more-docs {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .modal-documents {
        max-width: 90%;
    }
    
    .documents-list {
        max-height: 50vh;
    }
    
    .document-name {
        font-size: 0.95rem;
    }
}

/* ============================================
   404 Error Page
   ============================================ */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: white;
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-icon {
    margin-bottom: 30px;
    color: var(--primary);
    opacity: 0.3;
}

.error-404-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.error-404-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.error-404-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.error-404-actions {
    margin-bottom: 40px;
}

.error-404-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.error-404-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.error-404-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .error-404 {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .error-404-icon {
        margin-bottom: 20px;
    }
    
    .error-404-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .error-404-title {
        font-size: 4rem;
    }
    
    .error-404-subtitle {
        font-size: 1.5rem;
    }
    
    .error-404-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .error-404-links {
        flex-direction: column;
        gap: 15px;
    }
}
