/* Базовые стили */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2933;
    background: #f5f7fb;
    line-height: 1.5;
}

/* Контейнер */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1e90ff;
    border-color: #1e90ff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(30, 144, 255, 0.25);
}

.btn-primary:hover {
    background-color: #167ad6;
    border-color: #167ad6;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: #1e90ff;
    color: #1e90ff;
}

.btn-outline:hover {
    background: rgba(30, 144, 255, 0.06);
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Шапка */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0px 16px 6px; /* top / left-right / bottom */
}

.logo-block {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 104px;
    width: 104px;
    border-radius: 1px;
    object-fit: cover;

    transform: translateY(24px); /* опускаем значок ниже нижней границы шапки */
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-nav a {
    color: #4b5563;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
}

.main-nav a:hover {
    background: rgba(30, 144, 255, 0.08);
    color: #111827;
}

/* HERO */

.hero {
    background: linear-gradient(145deg, #f0f6ff 0%, #ffffff 55%, #f5f7fb 100%);
    padding: 40px 0 48px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-text {
    flex: 1.2;
}

.hero-app {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    background: #ffffff;
    object-fit: cover;
}

.app-badge {
    font-size: 13px;
    font-weight: 500;
    color: #1e90ff;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 144, 255, 0.08);
}

.hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 12px;
    color: #374151;
}

.hero-list {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #4b5563;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-note {
    font-size: 13px;
    color: #6b7280;
}

.hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
        max-width: 420px; /* или сколько тебе нужно */
    margin-left: auto; /* прижимает вправо внутри контейнера */
}

.hero-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    padding: 12px;
    max-width: 420px;
    width: 100%;
}
.hero-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}


.hero-screenshot {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Общие блоки */

.section {
    padding: 40px 0;
}

.section-alt {
    background: #ffffff;
}

h2 {
    font-size: 24px;
    margin: 0 0 16px;
    color: #0f172a;
}

h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #111827;
}

.section-lead {
    font-size: 15px;
    color: #4b5563;
    max-width: 720px;
    margin-bottom: 20px;
}

/* Карточки */

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    color: #4b5563;
}

.card-wide {
    max-width: 840px;
    margin: 0 auto;
}

.mt-24 {
    margin-top: 24px;
}

/* Бизнес-кейс */

.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.case-text p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.case-text ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #4b5563;
}

.case-media {
    display: block;
    width: 100%;
}


.case-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    padding: 10px;
}


.case-screenshot {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Шаги */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.steps-inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    color: #4b5563;
}

.section-alt .step {
    background: #f9fbff;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #1e90ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Скриншоты / галерея */

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.screenshot-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 12px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    font-size: 13px;
    color: #4b5563;
}

.screenshot-card img {
    width: 100%;
    height: 220px; /* увеличили высоту */
    object-fit: cover; /* чтобы картинка красиво обрезалась */
    border-radius: 8px;
    display: block;
}


.screenshot-card figcaption {
    margin-top: 8px;
}

/* Лайтбокс */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* Видео + вкладки */

.video-tabs {
    background: transparent;
    border-radius: 12px;
    max-width: 860px;
}

.video-tabs-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.video-tab {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid #1e90ff;
    background: #ffffff;
    color: #1e90ff;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.video-tab.active {
    background: #1e90ff;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(30, 144, 255, 0.25);
}

.video-tabs-panels {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    padding: 14px 16px 16px;
}

.video-tab-panel {
    display: none;
}

.video-tab-panel.active {
    display: block;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------ */
/*   FAQ NEW    */
/* ------------ */

#faq {
    padding: 40px 0;
}

.faq-title {
    font-size: 24px;
    margin: 0 0 20px;
    color: #0f172a;
}

/* Обёртка */
.faq-wrapper {
    width: 100%;
}

/* Masonry 2 колонки */
.faq-list {
    column-count: 2;
    column-gap: 24px;
    width: 100%;
}

/* Элемент FAQ */
.faq-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: block;
}

/* Summary */
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "▾";
    float: right;
    font-size: 13px;
    color: #6b7280;
    transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-180deg);
}

.faq-item p {
    margin: 10px 0 6px;
    font-size: 14px;
    color: #4b5563;
}

/* Мобилка — одна колонка */
@media (max-width: 768px) {
    .faq-list {
        column-count: 1;
    }
}

/* SEO-текст */

.seo-text {
    font-size: 11px;
    color: #9ca3af;
}

/* Подвал */

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 18px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.footer-brand {
    font-weight: 600;
    margin: 0 0 4px;
}

.footer-text {
    margin: 0;
    color: #9ca3af;
}

.footer-actions {
    display: flex;
    gap: 10px;
}

/* Центрирование */

.centered {
    text-align: center;
}

/* Адаптив */

@media (max-width: 1200px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

@media (max-width: 960px) {
    .hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .steps,
    .steps-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 8px 12px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .card-grid.two,
    .card-grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps,
    .steps-inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* --- Галерея — выравнивание и стиль --- */

.screenshot-swiper {
    padding: 20px 40px 50px;
    position: relative;
}

/* Слайды */
.screenshot-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    margin-right: 10px !important;
}

.screenshot-card {
    max-width: 360px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
}

/* Картинка */
.screenshot-card img {
    border-radius: 12px;
}

/* Подпись */
.screenshot-card figcaption {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #4b5563;
}

/* --- Пагинация --- */
.screenshot-swiper .swiper-pagination {
    bottom: 10px !important;
}

.screenshot-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d7e2;
    opacity: 1;
}

.screenshot-swiper .swiper-pagination-bullet-active {
    background: #1e90ff;
}

/* --- Стрелки Swiper --- */
.screens-prev,
.screens-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    color: #1e90ff;
    z-index: 20;
}


.screens-prev::after,
.screens-next::after {
    font-size: 28px;
}

.screens-prev {
    left: 10px;
}

.screens-next {
    right: 10px;
}


/* Адаптив */
@media (max-width: 768px) {
    .screenshot-swiper {
        padding-left: 0;
        padding-right: 0;
    }
}
    
    /* ---- Галерея бизнес-кейса ---- */

.case-swiper {
    padding: 20px 40px 40px;
}

.case-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.case-swiper .case-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease;
}

.case-swiper .case-card:hover {
    transform: translateY(-4px);
}

.case-swiper img {
    border-radius: 12px;
}

.case-swiper .swiper-button-prev,
.case-swiper .swiper-button-next {
    color: #1e90ff;
}

.case-swiper .swiper-pagination-bullet {
    background: #cdd5df;
    opacity: 1;
}

.case-swiper .swiper-pagination-bullet-active {
    background: #1e90ff;
}


.case-pagination,
.case-swiper .swiper-pagination {
    width: 100% !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
}

.case-swiper {
    padding-bottom: 40px;
}

.case-swiper .swiper-pagination {
    bottom: 10px !important;
}

/* --- Глобальное расположение точек для галереи приложения --- */

.screenshot-swiper {
    position: relative;
    padding-bottom: 50px; /* место под точки */
}

.screenshot-swiper .swiper-pagination {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

/* ГЛОБАЛЬНЫЕ СТРЕЛКИ ДЛЯ СЕКЦИИ СКРИНШОТОВ */
.screens-prev,
.screens-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1e90ff;
    width: 38px;
    height: 38px;
    z-index: 50;
    cursor: pointer;
}

.screens-prev { left: 10px; }
.screens-next { right: 10px; }

.section-features .card {
    background: #f9fbff;
}
/* === 1. Делаем контейнер слайдера шире, чтобы стрелки были в "воздухе" === */
.case-swiper {
    position: relative;
    overflow: visible !important; /* самое главное */
    padding-left: 60px;
    padding-right: 60px;
}

/* === 2. Стрелки выносим изнутри карточки в свободное пространство === */
.case-swiper .swiper-button-prev,
.case-swiper .swiper-button-next {
    color: #1e90ff !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    z-index: 50 !important; /* чтобы были поверх всего */
}

/* === 3. Смещаем стрелки в реальные "поля воздуха" === */
.case-swiper .swiper-button-prev {
    left: -20px !important;
}

.case-swiper .swiper-button-next {
    right: -20px !important;
}

/* === 4. На маленьких экранах стрелки ближе === */
@media (max-width: 768px) {
    .case-swiper .swiper-button-prev { left: -10px !important; }
    .case-swiper .swiper-button-next { right: -10px !important; }
}

.site-header {
    overflow: visible; /* вдруг где-то по умолчанию станет hidden */
}

.header-actions {
    flex: 0 0 auto;
    white-space: nowrap;
}
.main-nav {
    flex: 1 1 auto;
    min-width: 0;   /* супер важно! */
    display: flex;
    justify-content: center;
    gap: 16px;
}

.section-features .card {
    background: #f9fbff !important;
}

section.section.section-alt.section-features .card {
    background: #f9fbff !important;
}

/* Блок с логотипом в подвале */
.footer-actions {
    margin-left: auto;          /* прижимаем его вправо */
}

/* Ссылка-обёртка логотипа */
.dfs-footer-logo {
    display: inline-flex;
    align-items: center;
}

/* Картинка логотипа */
.dfs-footer-logo img {
    width: 200px;               /* фиксированная ширина */
    height: auto;               /* сохраняем пропорции */
    display: block;
    object-fit: contain;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Ховер-эффект */
.dfs-footer-logo:hover img {
    opacity: 0.9;
    transform: translateY(-1px);
}

footer.site-footer .container.footer-inner .footer-actions .dfs-footer-logo img {
    width: 200px !important;
    height: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
    border: 3px solid red !important; /* для проверки */
}
