/* ============================================================
   КУЛИСА — лендинг в стиле MONS (синий «дворник»)
   Палитра: #013668 (база), #032749 (тёмная), #0C4E8A (карточки),
            #E2ECF4 (светлые секции), #3780C7 (кнопка)
   Шрифты:  Bebas Neue Pro (заголовки), Pangram Sans (текст)
   ============================================================ */

/* ---------- Шрифты (self-hosted, без CDN) ---------- */
@font-face {
    font-family: 'Bebas Neue Pro';
    src: url('../fonts/bebas/BebasNeuePro-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pangram Sans';
    src: url('../fonts/pangram/pppangramsans-compactregular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pangram Sans Bold';
    src: url('../fonts/pangram/pppangramsans-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ---------- Базовое ---------- */
:root {
    --c-base: #013668;
    --c-dark: #032749;
    --c-card: #0C4E8A;
    --c-light: #E2ECF4;
    --c-accent: #3780C7;
    --c-accent-hover: #498CCE;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;

    font-family: 'Pangram Sans', sans-serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.4;
    letter-spacing: 0.3px;
    color: var(--c-base);
    background-color: var(--c-light);
}

h1,
h2 {
    margin: 0;

    font-family: 'Bebas Neue Pro', sans-serif;
    text-transform: uppercase;
    font-size: 40px;
    line-height: 0.9;
    letter-spacing: 0;
    text-align: center;
}

a {
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Видимый фокус для клавиатурной навигации */
a:focus-visible {
    outline: 3px solid var(--c-accent-hover);
    outline-offset: 3px;
    border-radius: 4px;
}

.section--dark a:focus-visible,
.hero a:focus-visible,
.header a:focus-visible {
    outline-color: #FFFFFF;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    width: 100%;
    padding-top: 32px;

    color: #FFFFFF;
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header__logo img {
    width: 40px;
    height: 40px;
}

.header__logo-text {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.header__nav {
    display: none;
    align-items: center;
}

.header__nav a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.header__nav a:hover {
    opacity: 1;
}

.header__nav a:not(:last-child) {
    margin-right: 28px;
}

@media (max-width: 380px) {
    .header__logo-text {
        font-size: 24px;
    }
}

/* ---------- Hero ---------- */
.hero {
    background-color: var(--c-base);
    background-image: url('../img/hero-bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 100px;

    color: #FFFFFF;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
}

.hero__subtitle {
    max-width: 760px;
    margin: 24px 0 0;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

.hero__lead {
    max-width: 720px;
    margin: 28px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.hero__lead .accent {
    color: #FFFFFF;
    font-family: 'Pangram Sans Bold', sans-serif;
}

/* ---------- Общие секции ---------- */
.section {
    padding: 80px 0;
}

.section--light {
    background-color: var(--c-light);
}

.section--light h2 {
    color: var(--c-base);
}

.section--dark {
    background-color: var(--c-base);
    background-image: url('../img/functions-bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
}

.section__lead {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.section--light .section__lead {
    color: var(--c-base);
}

.section--dark .section__lead {
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Для кого ---------- */
.audience__grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.aud-card {
    background-color: var(--c-card);
    border-radius: 16px;
    padding: 28px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.aud-card__ico {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--c-base);
    margin-bottom: 20px;
}

.aud-card__ico svg {
    width: 26px;
    height: 26px;
}

.aud-card h3 {
    margin: 0 0 14px;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 20px;
    line-height: 1.15;
}

.aud-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.aud-card__pain {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
}

.aud-card__pain-lbl {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Разделы (шахматка: скрин + текст) ---------- */
.features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.feature__num {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-size: 36px;
    line-height: 1;
    color: var(--c-accent-hover);
    opacity: 0.8;
}

.feature__text h3 {
    margin: 12px 0 14px;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 24px;
    line-height: 1.15;
    color: #FFFFFF;
}

.feature__text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.feature__shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--c-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
}

.feature__shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
}

/* Вертикальный скрин телефона — та же по размеру рамка, но вписываем целиком */
.feature__shot--phone img {
    object-fit: contain;
    background-color: var(--c-base);
}

/* ---------- Документация ---------- */
.docs__title {
    display: flex;
    justify-content: center;
}

.docs__title h2 {
    position: relative;
}

.docs__title h2::after {
    display: block;
    width: 220px;
    height: 60px;
    position: absolute;
    top: 100%;
    right: -16px;
    content: '';
    background-image: url('../img/title-deco.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.docs__list {
    list-style: none;
    padding: 0 20px;
    margin: 90px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.docs__list li {
    margin: 0;
}

.docs__list a {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 16px 18px;
    border: 1px solid #FFFFFF;
    border-radius: 16px;
    box-shadow: 4px 3px 10px 0 rgba(3, 39, 73, 0.05), 2px 1px 2px 0 rgba(3, 39, 73, 0.03);

    text-decoration: none;
    color: var(--c-base);
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 16px;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.docs__list a:hover {
    box-shadow: 5px 4px 16px 0 rgba(3, 39, 73, 0.12), 3px 2px 4px 0 rgba(3, 39, 73, 0.04);
    transform: translateY(-2px);
}

.docs__list svg {
    display: block;
    margin-right: 16px;
    width: 40px;
    flex-shrink: 0;
}

/* ---------- Условия приобретения ---------- */
.conditions {
    background-image: url('../img/conditions-bg.svg');
    text-align: center;
}

.conditions__text {
    max-width: 900px;
    margin: 24px auto 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.conditions__text b {
    color: #FFFFFF;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-weight: normal;
}

.conditions__cta {
    max-width: 760px;
    margin: 40px auto 0;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #FFFFFF;
}

.conditions__cta a {
    color: var(--c-accent-hover);
    text-decoration: underline;
}

.conditions__cta a:hover {
    color: #FFFFFF;
}

/* ---------- Контакты ---------- */
.contacts {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.contacts::after {
    content: '';
    display: block;
    width: 50%;
    height: 350px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url('../img/contacts-bg.svg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    opacity: 0.2;
    pointer-events: none;
}

.contacts__content {
    position: relative;
    z-index: 1;
    margin: 48px auto 0;
    max-width: 720px;
}

.contacts__name {
    margin: 0;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 18px;
    color: var(--c-base);
}

.contacts__item {
    margin-top: 24px;
}

.contacts__label {
    font-size: 15px;
    margin: 0;
    opacity: 0.6;
}

.contacts__text {
    margin: 6px 0 0;
    color: var(--c-base);
}

.contacts__text--bold {
    font-family: 'Pangram Sans Bold', sans-serif;
}

.contacts__text a {
    color: inherit;
    text-decoration: none;
}

.contacts__text a:hover {
    color: var(--c-accent);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--c-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 28px 0;
    font-size: 14px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }

    h1,
    h2 {
        font-size: 72px;
    }

    .hero h1 {
        font-size: 110px;
    }

    .hero__subtitle {
        font-size: 22px;
    }

    .section {
        padding: 100px 0;
    }

    .audience__grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 60px;
    }

    .features {
        margin-top: 60px;
        gap: 64px;
    }

    .feature {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    /* Шахматка: по умолчанию скрин слева / текст справа */
    .feature__text {
        order: 2;
    }

    .feature__shot {
        order: 1;
    }

    /* Чётные блоки — текст слева / скрин справа */
    .feature--reverse .feature__text {
        order: 1;
    }

    .feature--reverse .feature__shot {
        order: 2;
    }

    .feature__num {
        font-size: 44px;
    }

    .docs__list {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 120px;
    }

    .docs__title h2::after {
        width: 320px;
        height: 90px;
    }
}

@media (min-width: 1024px) {
    h1,
    h2 {
        font-size: 92px;
    }

    .hero h1 {
        font-size: 150px;
    }

    .header__wrapper {
        justify-content: flex-start;
    }

    .header__nav {
        display: flex;
        margin-left: auto;
        margin-right: 28px;
    }

    .audience__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features {
        gap: 80px;
    }

    .feature {
        gap: 64px;
    }

    .section {
        padding: 130px 0;
    }

    .docs__title h2::after {
        width: 420px;
        height: 120px;
    }
}

@media (min-width: 1440px) {
    .hero h1 {
        font-size: 180px;
    }
}

/* ---------- PDF-модалка ---------- */
.pdf-modal {
    padding: 0;
    border: none;
    border-radius: 16px;
    width: min(96vw, 1100px);
    height: min(92vh, 860px);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(3, 39, 73, 0.32);
}

.pdf-modal[open] {
    display: flex;
    flex-direction: column;
}

.pdf-modal::backdrop {
    background: rgba(3, 39, 73, 0.72);
    backdrop-filter: blur(4px);
}

.pdf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background-color: var(--c-base);
    color: #FFFFFF;
    flex-shrink: 0;
}

.pdf-modal__title {
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pdf-modal__btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-family: 'Pangram Sans Bold', sans-serif;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out;
}

.pdf-modal__btn--newtab {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.pdf-modal__btn--newtab:hover {
    background-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.pdf-modal__btn--download {
    background-color: var(--c-accent);
    color: #FFFFFF;
}

.pdf-modal__btn--download:hover {
    background-color: var(--c-accent-hover);
    color: #FFFFFF;
}

.pdf-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease-in-out;
}

.pdf-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

.pdf-modal__close svg {
    display: block;
}

.pdf-modal__frame {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
    min-height: 0;
}

@media (max-width: 600px) {
    .pdf-modal {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        inset: 0;
        margin: 0;
    }

    .pdf-modal__btn--newtab {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
