/* Apple-style animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}
.section-padding {
    padding: 80px 0;
}
@media (min-width: 768px) {
    .section-padding {
        padding: 120px 0;
    }
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Металлический фон сайта */
body {
    background: linear-gradient(135deg, #c4c8cc 0%, #e2e4e8 20%, #d0d4d8 40%, #e8eaee 60%, #d8dce0 80%, #c8ccd0 100%);
    background-attachment: fixed;
}
/* Apple-style navigation */
.nav-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* Шапка: grid вместо absolute — без наложения меню на телефон */
.site-nav-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    column-gap: 0.5rem;
    height: 4rem;
}

.site-nav-logo {
    flex-shrink: 0;
    z-index: 10;
}

.site-nav-logo .sb-sport-logo {
    height: 2rem;
    width: auto;
    max-width: 9.5rem;
}

@media (min-width: 480px) {
    .site-nav-logo .sb-sport-logo {
        height: 2.25rem;
        max-width: 10.75rem;
    }
}

@media (min-width: 1280px) {
    .site-nav-logo .sb-sport-logo {
        height: 2.5rem;
        max-width: none;
    }
}

.site-nav-links {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    min-width: 0;
    padding: 0 0.25rem;
}

@media (min-width: 1024px) {
    .site-nav-links {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .site-nav-links {
        gap: 0.5rem 2rem;
    }
}

.site-nav-links a {
    font-size: 0.8125rem;
    line-height: 1.25;
}

@media (min-width: 1280px) {
    .site-nav-links a {
        font-size: 0.875rem;
    }
}

.site-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    flex-shrink: 0;
    z-index: 10;
}

@media (min-width: 640px) {
    .site-nav-actions {
        gap: 0.75rem;
    }
}

.site-nav-desktop-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .site-nav-desktop-actions {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .site-nav-desktop-actions {
        gap: 1rem;
    }
}

.nav-phone-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem;
    border-radius: 9999px;
    color: #2563eb;
    font-weight: 500;
    white-space: nowrap;
}

.nav-phone-mobile:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
}

.nav-phone-mobile__text {
    display: none;
    font-size: 0.6875rem;
    letter-spacing: -0.01em;
}

@media (min-width: 400px) {
    .nav-phone-mobile__text {
        display: inline;
    }
}

@media (min-width: 480px) {
    .nav-phone-mobile__text {
        font-size: 0.75rem;
    }
}

.nav-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-phone-link .nav-phone-text {
    display: none;
}

@media (min-width: 1280px) {
    .nav-phone-link .nav-phone-text {
        display: inline;
    }
}

.nav-cta-label-short {
    display: inline;
}

.nav-cta-label-full {
    display: none;
}

@media (min-width: 1280px) {
    .nav-cta-label-short {
        display: none;
    }

    .nav-cta-label-full {
        display: inline;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav-desktop-actions .quiz-cta-btn {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}

@media (max-width: 1023px) {
    .nav-phone-mobile {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .nav-phone-mobile {
        display: none;
    }
}
/* Feature blocks */
.feature-block {
    transition: all 0.3s ease;
    position: relative;
}

/* Вариант 1: Легкое поднятие с тенью (Блок 1) */
.feature-block.hover-variant-1:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Вариант 2: Масштабирование с рамкой (Блок 2) */
.feature-block.hover-variant-2 {
    border-radius: 16px;
    padding: 2rem;
    margin: -2rem;
}
.feature-block.hover-variant-2:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

/* Вариант 3: Подсветка с градиентом (Блок 3) */
.feature-block.hover-variant-3:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin-left: -1.5rem;
}

/* Вариант 4: Блоки возможностей — акцент как tech-success.ru */
.feature-block.hover-variant-4 {
    border-radius: 24px;
    padding: 0;
    margin: -2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-block.hover-variant-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    z-index: 1;
}
.feature-block.hover-variant-4:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Вариант 5: Анимация границы (альтернатива для Блока 1) */
.feature-block.hover-variant-5 {
    border-radius: 16px;
    padding: 2rem;
    margin: -2rem;
    position: relative;
    overflow: hidden;
}
.feature-block.hover-variant-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}
.feature-block.hover-variant-5:hover::before {
    left: 100%;
}
.feature-block.hover-variant-5:hover {
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15);
}
.feature-block.hover-variant-5 > * {
    position: relative;
    z-index: 1;
}
.sb-sport-logo {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.integration-arrow {
    stroke: #3b82f6;
    stroke-width: 2;
    fill: none;
    marker-end: url(#arrowhead);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
/* Соответствия законодательству — акцентные карточки */
.advantage-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    overflow: hidden;
    border-radius: 24px;
}
.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}
.advantage-card:hover::after {
    opacity: 1;
}
/* Карусель скриншотов (только #screens-carousel) */
#screens-carousel .carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}
#screens-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
#screens-carousel .carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}
#screens-carousel .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
#screens-carousel .carousel-btn {
    opacity: 0.8;
}
#screens-carousel .carousel-btn:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
#screens-carousel .carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#screens-carousel .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
#screens-carousel .carousel-indicator.active {
    background: #3b82f6;
    width: 24px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    #screens-carousel .carousel-btn { padding: 0.5rem; }
    #screens-carousel .carousel-btn i { width: 1rem; height: 1rem; }
    #screens-carousel .carousel-container { aspect-ratio: 4/3; }
}
/* Screenshot container — картинка слита с блоком (без отдельной тени) */
#capabilities .screenshot-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #f8fafc;
}
#capabilities .screenshot-container img {
    display: block;
}
.screenshot-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
/* Quiz styles */
.quiz-container { display: none; }
.quiz-container.active { display: block; }
.quiz-question { display: none; }
.quiz-question.active { display: block; }
.quiz-option {
    transition: all 0.3s ease;
}
.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.quiz-option.selected {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}
/* Акцентная кнопка "Подобрать решение" — заметная, привлекающая внимание */
.quiz-cta-btn {
    animation: pulse-cta 2s ease-in-out infinite;
    position: relative;
}
.quiz-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}
.quiz-cta-btn:active {
    transform: scale(0.98);
}
@keyframes pulse-cta {
    0%, 100% { box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 6px 28px rgba(37, 99, 235, 0.8); }
}
.progress-bar {
    transition: width 0.5s ease;
}

#hero-cta,
#hero-categories-section,
#skud-access,
#capabilities,
#equipment,
#faq,
#contact-form {
    scroll-margin-top: 5rem;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

#skud-access img {
    object-position: center 35%;
}

/* Hero carousel — как sb-otel.ru / sb-eda.ru */
.hero-carousel-wrap { overflow-x: hidden; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
#sport-hero-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: clamp(380px, 58vh, 620px);
    overflow: hidden;
}
#sport-hero-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
#sport-hero-carousel .carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}
#sport-hero-carousel .carousel-slide .hero-slide-title {
    font-size: clamp(1.25rem, 4.5vw, 2.25rem);
    line-height: 1.2;
}
#sport-hero-carousel .carousel-slide .hero-slide-text {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    line-height: 1.5;
}
#sport-hero-carousel .carousel-slide .hero-slide-kicker {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}
#sport-hero-carousel .carousel-btn { opacity: 0.85; }
#sport-hero-carousel .carousel-btn:hover:not(:disabled) { opacity: 1; }
#sport-hero-carousel .carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#sport-hero-carousel .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}
#sport-hero-carousel .carousel-indicator.active {
    background: #059669;
    width: 24px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    #sport-hero-carousel .carousel-container {
        height: min(520px, calc(100svh - 4.5rem));
    }
    #sport-hero-carousel .carousel-btn { padding: 0.5rem; }
    #sport-hero-carousel .carousel-slide .hero-slide-bullets { display: none; }
    #sport-hero-carousel .carousel-slide .max-w-2xl {
        max-width: 100%;
        padding-right: 2.5rem;
    }
    #sport-hero-carousel .carousel-slide .h-full.flex {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Возможности программы автоматизации — benefits как sb-eda.ru */
.benefits-wrap {
    background:
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(59, 130, 246, 0.07), transparent 50%),
        radial-gradient(ellipse 80% 40% at 0% 100%, rgba(16, 185, 129, 0.05), transparent 45%),
        radial-gradient(ellipse 80% 40% at 100% 60%, rgba(37, 99, 235, 0.04), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #fafbfc 50%, #f1f5f9 100%);
}
.benefits-hero { background: transparent; }
.benefits-rows { --benefit-gap: clamp(3rem, 7vw, 5.5rem); }
.benefits-row { transition: opacity 0.35s ease; }
.benefits-row + .benefits-row { margin-top: var(--benefit-gap); }
.benefits-img-wrap {
    overflow: hidden;
    border-radius: 0 0 1.125rem 1.125rem;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 20px 40px -16px rgba(15, 23, 42, 0.14);
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
    .benefits-img-wrap {
        border-radius: 1.25rem;
        min-height: min(42vh, 400px);
        align-self: stretch;
    }
    .benefits-img-wrap img {
        transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .benefits-row:hover .benefits-img-wrap img { transform: scale(1.02); }
    .benefits-row:hover .benefits-img-wrap {
        box-shadow:
            0 4px 8px rgba(15, 23, 42, 0.06),
            0 28px 56px -12px rgba(59, 130, 246, 0.14);
    }
}
.benefits-step-num {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: rgba(59, 130, 246, 0.18);
}
/* 6 причин — белый фон на всю ширину экрана */
#reasons-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}
