/* ============================================
   КодЛог Скан — Стили блока на главной и страницы
   ============================================ */

/* === Блок на главной странице === */
.scanner-promo {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 40%, #24243e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.scanner-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: scannerBgPulse 15s ease-in-out infinite;
}

@keyframes scannerBgPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.scanner-promo .container {
    position: relative;
    z-index: 1;
}

.scanner-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.scanner-promo-text .scanner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

.scanner-badge-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: scannerDotPulse 2s ease-in-out infinite;
}

@keyframes scannerDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(102, 126, 234, 0); }
}

.scanner-promo-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.scanner-promo-text h2 .gradient-text-scan {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scanner-promo-text .scanner-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.scanner-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scanner-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scanner-highlight:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.scanner-highlight-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scanner-highlight-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.scanner-highlight span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.scanner-promo-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-scanner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-scanner-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-scanner-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-scanner-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-scanner-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Визуальная часть — анимированный сканер */
.scanner-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-device {
    position: relative;
    width: 320px;
    height: 420px;
}

.scanner-phone-frame {
    width: 260px;
    height: 400px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scanner-phone-notch {
    width: 100px;
    height: 22px;
    background: #1a202c;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.scanner-phone-screen {
    width: 100%;
    height: calc(100% - 22px);
    background: #111827;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.scanner-screen-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanner-screen-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.scanner-screen-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #4ade80;
    font-weight: 600;
}

.scanner-screen-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

.scanner-viewfinder {
    width: 80%;
    height: 55%;
    margin: 0 auto;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.scanner-viewfinder::before,
.scanner-viewfinder::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #667eea;
    border-style: solid;
}

.scanner-viewfinder::before {
    top: -1px;
    left: -1px;
    border-width: 3px 0 0 3px;
    border-radius: 8px 0 0 0;
}

.scanner-viewfinder::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 8px 0;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #a78bfa, #667eea, transparent);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    animation: scanLine 2.5s ease-in-out infinite;
}

@keyframes scanLine {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

.scanner-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.scanner-crosshair::before,
.scanner-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
}

.scanner-crosshair::before {
    width: 1px;
    height: 100%;
    left: 50%;
}

.scanner-crosshair::after {
    width: 100%;
    height: 1px;
    top: 50%;
}

.scanner-screen-result {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scanner-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    animation: resultFadeIn 0.5s ease forwards;
    opacity: 0;
}

.scanner-result-item:nth-child(1) { animation-delay: 0.5s; }
.scanner-result-item:nth-child(2) { animation-delay: 1.5s; }
.scanner-result-item:nth-child(3) { animation-delay: 2.5s; }

@keyframes resultFadeIn {
    to { opacity: 1; }
}

.scanner-result-icon {
    width: 18px;
    height: 18px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scanner-result-icon svg {
    width: 10px;
    height: 10px;
    stroke: white;
    stroke-width: 3;
}

.scanner-result-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Плавающие бейджи вокруг телефона */
.scanner-float-badge {
    position: absolute;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    animation: floatBadge 6s ease-in-out infinite;
}

.scanner-float-badge:nth-child(1) {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.scanner-float-badge:nth-child(2) {
    bottom: 25%;
    left: -20px;
    animation-delay: -2s;
}

.scanner-float-badge:nth-child(3) {
    bottom: 5%;
    right: 0;
    animation-delay: -4s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Инфографика — статистика */
.scanner-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
    padding: 2.5rem 0 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.scanner-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.scanner-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.25);
}

.ssc-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.6rem;
}

.ssc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ssc-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ssc-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ssc-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.ssc-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s ease;
}

.ssc-detail {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* ============================================
   Блок совместимых устройств
   ============================================ */

.dev-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dev-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.dev-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.dev-brand-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dev-brand-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.dev-brand-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.dev-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dev-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.dev-brand-tag {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.dev-model-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.dev-model {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.5;
}

.dev-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.dev-note {
    color: rgba(255, 255, 255, 0.35);
}

.dev-count {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-model-group {
    margin-bottom: 1rem;
}

.dev-group-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.dev-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dev-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dev-chip:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
    color: #a5b4fc;
}

@media (max-width: 768px) {
    .dev-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .dev-tab svg {
        display: none;
    }
}

/* ============================================
   Warehouse page responsive
   ============================================ */

@media (max-width: 900px) {
    #functions > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #functions > .container > div[style*="grid-template-columns: 1fr 1fr"] > div[style*="order: -1"] {
        order: 0 !important;
    }
}

/* ============================================
   Отдельная страница scanner.php
   ============================================ */

/* Хедер страницы */
.scanner-page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 40%, #24243e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.scanner-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
}

.scanner-page-header .container {
    position: relative;
    z-index: 1;
}

.scanner-page-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.scanner-page-header h1 {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.scanner-page-header h1 .gradient-text-scan {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scanner-page-header .scanner-page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.scanner-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scanner-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Секция «Как работает» */
.scanner-how-works {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.scanner-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.scanner-pipeline::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12.5%;
    width: 75%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.scanner-pipeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.scanner-pipeline-num {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 4px solid var(--bg-secondary);
}

.scanner-pipeline-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.scanner-pipeline-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Секция «Ключевые возможности» */
.scanner-capabilities {
    padding: 5rem 0;
}

.scanner-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.scanner-cap-card {
    background: white;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scanner-cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scanner-cap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scanner-cap-card:hover::before {
    opacity: 1;
}

.scanner-cap-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.scanner-cap-icon.icon-purple { background: rgba(102, 126, 234, 0.1); }
.scanner-cap-icon.icon-green { background: rgba(74, 222, 128, 0.1); }
.scanner-cap-icon.icon-blue { background: rgba(79, 172, 254, 0.1); }
.scanner-cap-icon.icon-orange { background: rgba(251, 146, 60, 0.1); }
.scanner-cap-icon.icon-red { background: rgba(248, 113, 113, 0.1); }
.scanner-cap-icon.icon-teal { background: rgba(45, 212, 191, 0.1); }

.scanner-cap-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.scanner-cap-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.scanner-cap-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.scanner-cap-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.scanner-cap-card ul li::before {
    content: '→';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

/* Секция «Двойной источник» */
.scanner-dual {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.scanner-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.scanner-dual-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.scanner-dual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scanner-dual-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.scanner-dual-icon.camera-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
}

.scanner-dual-icon.laser-icon {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(251, 146, 60, 0.15));
}

.scanner-dual-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.scanner-dual-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.scanner-dual-tech {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Секция «Технические характеристики» */
.scanner-specs {
    padding: 5rem 0;
}

.scanner-specs-table {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.scanner-specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.scanner-specs-table thead {
    background: var(--primary-gradient);
    color: white;
}

.scanner-specs-table th {
    padding: 1.25rem 2rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.scanner-specs-table td {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.scanner-specs-table tr:last-child td {
    border-bottom: none;
}

.scanner-specs-table tbody tr {
    transition: background 0.2s ease;
}

.scanner-specs-table tbody tr:hover {
    background: var(--bg-secondary);
}

.scanner-specs-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.scanner-specs-table td:last-child {
    color: var(--text-secondary);
}

/* Секция «Преимущества» */
.scanner-advantages {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.scanner-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.scanner-adv-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.scanner-adv-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scanner-adv-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scanner-adv-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.scanner-adv-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.scanner-adv-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Секция «Поддерживаемые форматы» */
.scanner-formats {
    padding: 5rem 0;
}

.scanner-formats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.scanner-format-chip {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.scanner-format-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.scanner-format-chip.highlighted {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* CTA секция */
.scanner-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.scanner-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.scanner-cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scanner-cta .btn-scanner-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scanner-cta .btn-scanner-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 968px) {
    .scanner-promo-grid,
    .scanner-page-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scanner-promo-text h2,
    .scanner-page-header h1 {
        font-size: 2.25rem;
    }

    .scanner-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .scanner-promo-buttons {
        justify-content: center;
    }

    .scanner-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .scanner-device {
        width: 260px;
        height: 360px;
    }

    .scanner-phone-frame {
        width: 220px;
        height: 340px;
    }

    .scanner-float-badge {
        display: none;
    }

    .scanner-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .scanner-pipeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .scanner-pipeline::before {
        display: none;
    }

    .scanner-cap-grid {
        grid-template-columns: 1fr;
    }

    .scanner-dual-grid {
        grid-template-columns: 1fr;
    }

    .scanner-adv-grid {
        grid-template-columns: 1fr;
    }

    .scanner-page-tags {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .scanner-promo {
        padding: 4rem 0 2rem;
    }

    .scanner-promo-text h2 {
        font-size: 1.75rem;
    }

    .scanner-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scanner-pipeline {
        grid-template-columns: 1fr;
    }

    .scanner-device {
        width: 220px;
        height: 320px;
    }

    .scanner-phone-frame {
        width: 190px;
        height: 300px;
    }

    .scanner-specs-table th,
    .scanner-specs-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .scanner-page-header {
        padding: 120px 0 60px;
    }

    .scanner-page-header h1 {
        font-size: 1.85rem;
    }
}
