:root {
    --bento-primary: #6366F1;
    --bento-secondary: #8B5CF6;
    --bento-bg: #FAFAFA;
    --bento-card-bg: #FFFFFF;
    --bento-border: rgba(0, 0, 0, 0.08);
    --bento-shadow: 0px 4px 24px rgba(0, 0, 0, 0.04);
    --bento-hover-shadow: 0px 8px 32px rgba(0, 0, 0, 0.08);
    --bento-text: #1F2937;
    --bento-text-secondary: #6B7280;
}

main {
    position: relative; /* Делаем main относительно позиционированным */
}

.content-wrapper {
    display: flex;
    gap: 24px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.floating-nav {
    position: sticky;
    top: 120px;
}

.main-content {
    flex-grow: 1;
    max-width: calc(100% - 304px); /* 280px + 24px gap */
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        max-width: 100%;
    }
}

.hero-section {
    padding: 120px 0 80px;
    background: var(--bento-bg);
    border-radius: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Основной блок */
.hero-main {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--bento-card-bg);
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--bento-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--bento-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main:hover {
    box-shadow: var(--bento-hover-shadow);
    transform: translateY(-4px);
}

.hero-main h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--bento-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Статистика */
.hero-stats {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bento-card-bg);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--bento-shadow);
    border: 1px solid var(--bento-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--bento-hover-shadow);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bento-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--bento-text-secondary);
    line-height: 1.4;
}

/* Быстрые ссылки */
.hero-quick-links {
    grid-column: span 2;
    background: var(--bento-card-bg);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--bento-shadow);
    border: 1px solid var(--bento-border);
}

.hero-quick-links h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bento-text);
    margin-bottom: 24px;
}

.quick-links-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: column;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bento-bg);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--bento-border);
    text-decoration: none;
    color: var(--bento-text);
}

.quick-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 1.5rem;
    color: var(--bento-primary);
}

.quick-link span {
    font-size: 1rem;
    font-weight: 500;
}

/* Кнопки */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bento-primary);
    color: var(--bento-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main, .stat-card, .quick-link {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.quick-link:nth-child(2) {
    animation-delay: 0.3s;
}

.quick-link:nth-child(3) {
    animation-delay: 0.4s;
}

.quick-link:nth-child(4) {
    animation-delay: 0.5s;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .hero-main {
        grid-column: span 1;
        padding: 32px;
    }

    .hero-main h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-column: span 1;
    }

    .hero-quick-links {
        grid-column: span 1;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Обновляем стили для плавающего меню */
.floating-nav {
    position: sticky;
    padding-bottom: 20px;
    left: 24px;
    top: 120px; /* Отступ от верха, чтобы не перекрывать хедер */
    bottom: 120px; /* Отступ от низа, чтобы не перекрывать футер */
    width: 250px;
    z-index: 100;
    max-height: calc(100vh - 160px);
    overflow-y: auto; /* Добавляем скролл если контент не помещается */
    /* Стилизуем скроллбар */
    scrollbar-width: thin;
    scrollbar-color: var(--bento-primary) transparent;
}

/* Стили для скроллбара в Chrome */
.floating-nav::-webkit-scrollbar {
    width: 6px;
}

.floating-nav::-webkit-scrollbar-track {
    background: transparent;
}

.floating-nav::-webkit-scrollbar-thumb {
    background-color: var(--bento-primary);
    border-radius: 3px;
}

.floating-nav-content {
    background: var(--bento-card-bg);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--bento-border);
}

.floating-nav h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bento-text);
    margin-bottom: 16px;
}

.floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-nav li {
    margin-bottom: 8px;
}

.floating-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--bento-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.floating-nav a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--bento-primary);
}

.floating-nav a.active {
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    color: white;
}

/* Корректируем основной контейнер и отступы */
.container {
    width: calc(100% - 320px); /* Вычитаем ширину меню + отступ */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* Корректируем хедер */
header .container {
    width: 100% !important; /* Перезаписываем стили для хедера */
    max-width: 1400px;
    padding: 0 24px;
}

/* Корректируем футер */
footer .container {
    width: 100% !important; /* Перезаписываем стили для футера */
    max-width: 1400px;
    padding: 0 24px;
}

/* Медиа-запрос для адаптивности */
@media (max-width: 1200px) {
    .floating-nav {
        display: none;
    }
    
    .container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
}

/* Стили для секции методов тестирования */
.testing-methods {
    padding: 80px 0;
}

.testing-methods h2 {
    font-size: 2.5rem;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.method-card {
    background: var(--bento-card-bg);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--bento-shadow);
    border: 1px solid var(--bento-border);
    transition: all 0.3s ease;
}

.method-card:hover {
    box-shadow: var(--bento-hover-shadow);
    transform: translateY(-4px);
}

/* Размеры карточек */
.method-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.method-card.medium {
    grid-column: span 2;
    grid-row: span 2;
}

.method-card.small {
    grid-column: span 2;
    grid-row: span 1;
}

/* Стили заголовков */
.method-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.method-header i {
    font-size: 24px;
    color: var(--bento-primary);
}

.method-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bento-text);
}

/* Стили описания */
.method-description {
    font-size: 1.1rem;
    color: var(--bento-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Улучшаем стили для блока details */
.method-details {
    margin-top: 32px;
    padding: 32px;
    background: var(--bento-bg);
    border-radius: 20px;
    border: 1px solid var(--bento-border);
    box-shadow: var(--bento-shadow);
}

.detail-item h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bento-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bento-primary);
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.detail-item ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bento-card-bg);
    border-radius: 16px;
    box-shadow: var(--bento-shadow);
    border: 1px solid var(--bento-border);
    transition: all 0.3s ease;
}

.detail-item li::before {
    content: '✓';
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-item li:hover {
    transform: translateX(8px);
    box-shadow: var(--bento-hover-shadow);
    border-color: var(--bento-primary);
}

/* Стили фич */
.method-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: var(--bento-primary);
}

/* Стили статистики */
.stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bento-primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--bento-text-secondary);
    font-size: 0.9rem;
}

/* Стили для блока подхода */
.approach {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.approach h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bento-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 16px;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(4px);
}

.method-section {
    margin-bottom: 48px;
    padding: 60px;
    background: var(--bento-bg);
    border-radius: 30px;
}

.method-section h3 {
    font-size: 2.5rem;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-section h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, var(--bento-primary), var(--bento-secondary));
    border-radius: 4px;
}

.method-card {
    background: var(--bento-card-bg);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--bento-shadow);
    border: 1px solid var(--bento-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.method-card:hover {
    box-shadow: var(--bento-hover-shadow);
    transform: translateY(-4px);
    border-color: var(--bento-primary);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bento-border);
}

.method-header i {
    font-size: 24px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    color: white;
}

.method-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bento-text);
    margin: 0;
}

.tools-list,
.methods-list,
.limitations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-list li,
.methods-list li,
.limitations-list li {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bento-bg);
    border-radius: 12px;
    color: var(--bento-text);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.tools-list li:hover,
.methods-list li:hover,
.limitations-list li:hover {
    background: var(--bento-primary);
    color: white;
}

.tools-list li::before,
.methods-list li::before,
.limitations-list li::before {
    content: "•";
    color: var(--bento-primary);
    font-size: 1.5em;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    color: white;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.method-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bento-text-secondary);
    margin-bottom: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.method-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.checklist-methods {
    padding: 20px 0;
}

.checklist-methods h2 {
    font-size: 2.5rem;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.method-card:nth-child(1) { animation-delay: 0.1s; }
.method-card:nth-child(2) { animation-delay: 0.2s; }
.method-card:nth-child(3) { animation-delay: 0.3s; }
.method-card:nth-child(4) { animation-delay: 0.4s; }
.method-card:nth-child(5) { animation-delay: 0.5s; grid-column: span 4;}

/* Добавляем анимацию для секции чек-листа */
#checklist .method-card:nth-child(1) { animation-delay: 0.6s; }
#checklist .method-card:nth-child(2) { animation-delay: 0.7s; }
#checklist .method-card:nth-child(3) { animation-delay: 0.8s; }
#checklist .method-card:nth-child(4) { animation-delay: 0.9s; }
#checklist .method-card:nth-child(5) { animation-delay: 1s; grid-column: span 4; }

/* Адаптивность */
@media (max-width: 1024px) {
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .method-card.large,
    .method-card.medium,
    .method-card.small {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    main {
        margin-left: 0;
        max-width: 100%;
    }

    .methods-grid {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
    }
    
    .method-card.large,
    .method-card.medium,
    .method-card.small {
        grid-column: span 4;
    }

    .method-section h3 {
        font-size: 1.2rem;
    }
}

/* Обновленные стили для промо-блока чекера */
.checker-promo {
    margin: 48px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 32px;
    padding: 48px;
}

.promo-content {
    display: flex;
    gap: 48px;
    align-items: center;
}

/* Стили для текстового контента промо-блока чекера */
.promo-info {
    flex: 1;
}

.promo-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bento-text);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-info p {
    font-size: 1.1rem;
    color: var(--bento-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 540px;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.promo-features li:hover {
    transform: translateX(8px);
}

.promo-features i {
    color: var(--bento-primary);
    font-size: 1.2rem;
}

.promo-features span {
    color: var(--bento-text);
    font-size: 1.1rem;
}

/* Адаптивность для текстового контента */
@media (max-width: 768px) {
    .promo-info h3 {
        font-size: 1.6rem;
    }

    .promo-info p {
        font-size: 1rem;
    }

    .promo-features li {
        padding: 10px 14px;
    }

    .promo-features span {
        font-size: 1rem;
    }
}

/* Анимация чекера */
.promo-animation {
    flex: 1;
    max-width: 500px;
    aspect-ratio: 4/3;
    position: relative;
}

.checker-animation {
    width: 100%;
    height: 100%;
    background: var(--bento-card-bg);
    border-radius: 16px;
    box-shadow: var(--bento-shadow);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bento-primary), var(--bento-secondary));
    animation: scan 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.code-line {
    height: 12px;
    background: #E5E7EB;
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 80%; }
.code-line:nth-child(2) { width: 60%; }
.code-line:nth-child(3) { width: 70%; }
.code-line:nth-child(4) { width: 40%; }

.results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 1s;
}

.result-item {
    height: 16px;
    border-radius: 4px;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.result-item.success {
    background: #34D399;
    animation-delay: 1.2s;
}

.result-item.warning {
    background: #FBBF24;
    animation-delay: 1.4s;
}

.result-item.error {
    background: #EF4444;
    animation-delay: 1.6s;
}

@keyframes scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Обновленные стили для CTA блока */
.testing-cta {
    margin: 48px 0;
    background: linear-gradient(135deg, var(--bento-primary), var(--bento-secondary));
    border-radius: 32px;
    padding: 48px;
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.cta-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.cta-feature-card:hover {
    transform: translateY(-4px);
}

.cta-feature-card i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature-card span {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
    }

    .promo-animation {
        max-width: 100%;
    }

    .cta-features {
        grid-template-columns: 1fr;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    .testing-cta {
        padding: 32px 24px;
    }

    .cta-feature-card {
        padding: 20px;
    }
}