/* 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);
}
/* 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-aqua-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;
}
/* Карусель скриншотов */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}
.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);
}
.carousel-btn {
    opacity: 0.8;
}
.carousel-btn:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicator.active {
    background: #3b82f6;
    width: 24px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .carousel-btn { padding: 0.5rem; }
    .carousel-btn i { width: 1rem; height: 1rem; }
    .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;
}
/* Видео Rutube */
.aspect-video {
    aspect-ratio: 16 / 9;
}
#rutube-video {
    width: 100%;
    height: 100%;
}
/* Компоненты ServiceBook Аква — сверху/снизу компоненты, посередине картинка с логотипом */
.modules-stack {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.modules-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.modules-row-bottom {
    margin-bottom: 0;
    margin-top: 1.5rem;
}
.modules-center-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}
.modules-center-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modules-center-logo {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.95);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modules-center-logo img {
    max-height: 96px;
    width: auto;
    object-fit: contain;
}
.modules-center-logo .modules-logo-text {
    font-size: 3.5rem;
    font-weight: bold;
}
/* Возможности системы — белый фон на всю ширину экрана */
#capabilities {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}
/* 6 причин — белый фон на всю ширину экрана */
#reasons-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .modules-row {
        grid-template-columns: 1fr;
        margin-bottom: 1rem;
    }
    .modules-row-bottom { margin-top: 1rem; }
    .modules-connections { display: none; }
}