/* ========================================
   ОСНОВНЫЕ СТИЛИ (загружаются асинхронно)
   ======================================== */

/* Блок "Что мы проверяем" */
#check-what {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

#check-what .section-title {
    margin-bottom: 2rem;
}

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

.check-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.check-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.check-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(226, 114, 91, 0.1);
}

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

.check-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Как работает */
.process {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary);
    z-index: 1;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

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

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Отзывы */
.reviews-section {
    background: #f8f9fa;
}

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

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.review-card .stars {
    color: #f5b342;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-card .review-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.review-card .review-author {
    font-weight: 600;
    color: var(--primary);
}

/* SEO текстовый блок */
.seo-content {
    background: white;
    border-radius: 16px;
    margin: 2rem auto;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.seo-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.seo-content h4 {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.seo-content p {
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.8;
}

.seo-content ul, .seo-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.seo-content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.seo-content strong {
    color: var(--primary);
}

/* FAQ блок */
.faq-block {
    margin-top: 2rem;
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--gray);
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    z-index: 2000;
}

.payment-modal.show {
    display: flex;
}

.payment-dialog {
    width: min(460px, 100%);
    background: #fff;
    color: var(--dark);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.payment-dialog h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.payment-dialog p {
    color: var(--gray);
    margin-bottom: 18px;
}

.payment-dialog .hero-buttons {
    margin-top: 0;
}

/* VIN форма */
.vin-service-box {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(4px);
    text-align: left;
}

.vin-service-price {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.vin-service-note {
    text-align: center;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.92);
}

.vin-info-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.92);
}

.vin-info-list li {
    margin-bottom: 0.53rem;
    line-height: 1.4;
}

.vin-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vin-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.vin-service-label {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.vin-sample-link {
    font-size: 0.85rem;
    color: #FF6A00;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.vin-sample-link:hover {
    opacity: 0.75;
}

.vin-consent-text {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

.vin-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.vin-service-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.95);
    color: var(--dark);
    font-size: 1rem;
    text-transform: uppercase;
}

.vin-service-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(226,114,91,0.22);
}

.vin-service-input.has-error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.18);
}

.vin-check-btn {
    white-space: nowrap;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    background: var(--secondary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vin-check-btn:hover {
    background: #d46550;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.vin-check-btn:active {
    transform: translateY(0);
}

.vin-check-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vin-status-box {
    display: none;
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: var(--dark);
}

.vin-status-box.show {
    display: block;
}

.vin-status-box.success {
    border-left: 4px solid #1f9d55;
}

.vin-status-box.error {
    border-left: 4px solid #d93025;
}

.vin-status-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.vin-status-text {
    color: var(--gray);
}

.vin-order-meta {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--gray);
}

.vin-download-links {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.vin-lang-group {
    border: 1px solid #d9e1ef;
    border-radius: 10px;
    overflow: hidden;
}

.vin-lang-group-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary);
    padding: 10px 14px;
    background: #eaf0fa;
    border-bottom: 1px solid #d9e1ef;
}

.vin-download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--primary);
    background: #f3f6fb;
    border-bottom: 1px solid #e8ecf2;
    font-weight: 600;
}

.vin-download-link:last-child {
    border-bottom: none;
}

.vin-download-link .dl-filename {
    flex: 1;
    word-break: break-word;
    min-width: 0;
}

.vin-dl-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vin-download-link:hover .vin-dl-icon {
    background: #1e2d6e;
}

.vin-dl-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.vin-new-check-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #2E3F91;
    background: transparent;
    color: #2E3F91;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

.vin-new-check-btn:hover {
    background: #2E3F91;
    color: #fff;
}

.vin-error-text {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ff6b6b;
    font-weight: 500;
    min-height: 1.4em;
}

.vin-support-text {
    margin-top: 14px;
    padding: 10px 0 2px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.vin-support-text a {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.vin-support-text a:hover {
    opacity: 0.75;
}

.maintenance-notice {
    text-align: center;
    padding: 28px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.specs-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.development-message {
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
}

/* ========================================
   МЕДИА-ЗАПРОСЫ (адаптивность)
   ======================================== */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        min-height: 700px;
        height: auto;
        padding: 130px 0 70px;
    }
    
    #check-what {
        padding-top: 2rem;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.9rem 0;
    }
    
    .header-scrolled {
        padding: 0.45rem 0;
    }
    
    .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .logo {
        font-size: 1.5rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    .logo i {
        font-size: 1.7rem;
        margin-right: 8px;
    }
    
    nav ul {
        margin-top: 0;
        flex-direction: column;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary);
        z-index: 1000;
        padding: 1rem 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        font-size: 1.5rem;
        height: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 60px;
    }
    
    .tabs-header {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-bottom: 0;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
        min-width: auto;
        flex: 1;
        max-width: 48%;
        margin-bottom: 0;
        height: auto;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 8px 8px 0 0 !important;
    }
    
    .tab-btn,
    .tab-btn.active,
    .tab-btn.terracotta,
    .tab-btn.terracotta.active,
    .tab-btn:first-child,
    .tab-btn:first-child.active,
    .tab-btn:last-child,
    .tab-btn:last-child.active {
        border-radius: 8px 8px 0 0 !important;
    }
    
    .tab-btn:first-child:not(.active) {
        background: var(--primary);
        opacity: 0.8;
    }
    
    .tab-btn.terracotta:not(.active) {
        background: var(--secondary);
        opacity: 0.8;
    }
    
    .tab-btn.active {
        opacity: 1;
    }
    
    .tab-btn:first-child.active {
        background: var(--primary);
        opacity: 1;
    }
    
    .tab-btn.terracotta.active {
        background: var(--secondary);
        opacity: 1;
    }
    
    .tab-btn:hover:not(.active) {
        opacity: 0.9;
    }
    
    .tab-content {
        border-radius: 0 0 10px 10px !important;
        padding: 1.8rem;
        margin-top: 0;
        min-height: 200px;
    }
    
    .tab-pane p, .specs-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    #check-what {
        padding-top: 1.5rem;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        margin-bottom: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 10px 20px;
    }
    
    .development-message {
        font-size: 1.3rem;
        padding: 1.5rem;
    }
    
    .seo-content {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }

    .vin-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .vin-input-wrapper {
        width: 100%;
    }
    .vin-check-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .check-form {
        padding: 1.5rem;
    }
    
    .check-card {
        padding: 2rem 1.5rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.6rem;
        margin-right: 6px;
    }
    
    .mobile-menu {
        font-size: 1.4rem;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    .header-scrolled {
        padding: 0.4rem 0;
    }
    
    .hero {
        min-height: 550px;
        height: auto;
        padding: 110px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-height: 55px;
        line-height: 1.2;
    }
    
    .tab-content {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .tab-pane p, .specs-description {
        font-size: 1rem;
    }
    
    #check-what {
        padding-top: 1rem;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .development-message {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .hero {
        min-height: 500px;
        height: auto;
        padding: 105px 0 45px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .tabs-header {
        gap: 5px;
    }
    
    .tab-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
        min-height: 50px;
        max-width: 49%;
    }
    
    #check-what {
        padding-top: 0.8rem;
    }
}

@media (min-width: 769px) {
    .tab-btn {
        flex: 1;
        border-radius: 8px 8px 0 0;
    }
    
    .tab-btn:first-child {
        background: var(--primary);
        opacity: 0.8;
    }
    
    .tab-btn.terracotta {
        background: var(--secondary);
        opacity: 0.8;
    }
    
    .tab-btn.active {
        opacity: 1;
    }
    
    .tab-btn:first-child.active {
        background: var(--primary);
        opacity: 1;
    }
    
    .tab-btn.terracotta.active {
        background: var(--secondary);
        opacity: 1;
    }
    
    .tab-btn:hover:not(.active) {
        opacity: 0.9;
    }
    
    .tabs-header .tab-btn:first-child:not(.active) {
        border-radius: 8px 0 0 0;
    }
    
    .tab-btn.terracotta:not(.active) {
        border-radius: 0 8px 0 0;
    }
    
    .tab-btn:first-child.active {
        border-radius: 8px 0 0 0;
    }
    
    .tab-btn.terracotta.active {
        border-radius: 0 8px 0 0 !important;
    }

    .tab-content.terracotta.active-tab-2 {
        border-radius: 0 0 10px 10px !important;
    }
    
    .tab-content.active-tab-1 {
        border-radius: 0 10px 10px 10px;
    }
}