/* =====================================================
   ШРИФТЫ
   Widock TRIAL Bold — капсовый дисплейный: заголовки,
   номера шагов, подписи дисциплин.
   Etude Noire — весь наборный текст, меню, кнопки.
   ===================================================== */
@font-face {
    font-family: 'Widock';
    src: url('fonts/Widock Trial/Widock TRIAL Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('fonts/BenzinBold.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Etude Noire';
    src: url('fonts/Etude Noire/Etude Noire Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Etude Noire';
    src: url('fonts/Etude Noire/Etude Noire Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Etude Noire';
    src: url('fonts/Etude Noire/Etude Noire Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Etude Noire';
    src: url('fonts/Etude Noire/Etude Noire Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --display: 'Widock', 'Benzin', 'Segoe UI', Arial, sans-serif;
    --text: 'Etude Noire', 'Segoe UI', Arial, sans-serif;

    --blue: #2F80ED;
    --line: #2F6FD0;
    --bg: #050A16;
    --card: #080E1C;
    --muted: #C9D3E2;
    --glow: 47, 128, 237;

    --pad: 118px;      /* боковые отступы секций */
    --col-steps: 845px;   /* колонка с фото в блоке «Как сделать ставку» */
    --col-pluses: 772px;  /* колонка с фото в блоке «Плюсы» */
    --col-cards: 840px;   /* колонка с карточками в блоке «Плюсы» */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--text);
    font-weight: 400;
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ol, ul {
    list-style: none;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* =====================================================
   СРЕЗАННЫЕ УГЛЫ
   clip-path обрезает и рамку тоже, поэтому там, где нужна
   обводка, диагональ дорисовывается элементом .notch-line,
   повёрнутым ровно под угол среза.
   --nx / --ny — катеты среза в px (без единиц).
   ===================================================== */
.notched {
    --nx: 95;
    --ny: 130;
    position: relative;
    border: 1px solid var(--line);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        calc(var(--nx) * 1px) 100%,
        0 calc(100% - var(--ny) * 1px)
    );
}

.notch-line {
    position: absolute;
    left: -1px;
    top: calc(100% - var(--ny) * 1px + 1px);
    width: calc(1px * sqrt(var(--nx) * var(--nx) + var(--ny) * var(--ny)) + 4px);
    height: 1px;
    background: var(--line);
    transform-origin: 0 0;
    transform: rotate(atan2(var(--ny), var(--nx))) translate(-2px, -1px);
    pointer-events: none;
}

/* заливные элементы без обводки — достаточно одного clip-path */
.cut-bl {
    --cut: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.cut-br {
    --cut: 30px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* =====================================================
   СВЕЧЕНИЕ
   filter применяется до clip-path, поэтому тень вешаем на
   обёртку — иначе clip-path её срежет.
   ===================================================== */
.glow {
    display: inline-flex;
}

.glow-strong {
    filter: drop-shadow(0 0 16px rgba(var(--glow), 0.55))
            drop-shadow(0 0 42px rgba(var(--glow), 0.32));
}

.glow-soft {
    filter: drop-shadow(0 0 12px rgba(var(--glow), 0.30))
            drop-shadow(0 0 30px rgba(var(--glow), 0.16));
}

/* =====================================================
   КНОПКИ
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--text);
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    transition: filter 0.15s;
}

.btn:hover { filter: brightness(1.12); }

.btn-primary { background: var(--blue); }

.btn-ghost { background: transparent; }

.btn-label { position: relative; }

/* =====================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ===================================================== */
.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 62px;
    line-height: 1.06;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18),
                 0 0 70px rgba(var(--glow), 0.35);
}

.section-title-right {
    text-align: right;
}

/* =====================================================
   ХЕДЕР
   ===================================================== */
.page {
    position: relative;
    min-height: 100vh;
    background: url('assets/Background.png') center / cover no-repeat, var(--bg);
    display: flex;
    flex-direction: column;
}

.header {
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    height: 118px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 35px;
    background: rgba(3, 7, 16, 0.92);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-left  { justify-content: flex-end;   padding-right: 55px; }
.nav-right { justify-content: flex-start; padding-left: 55px; }

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    padding: 8px 10px;
    transition: text-shadow 0.2s;
}

.nav-link:hover {
    text-shadow: 0 0 14px rgba(var(--glow), 0.9);
}

.logo img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(var(--glow), 0.5))
            drop-shadow(0 0 32px rgba(var(--glow), 0.28));
}

.header-btn {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
}

.header-btn .btn {
    min-width: 290px;
    height: 60px;
    font-size: 21px;
}

/* =====================================================
   ПЕРВЫЙ ЭКРАН
   ===================================================== */
.hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.hero-person {
    position: absolute;
    left: 150px;
    bottom: 0;
    height: 86%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 45px rgba(var(--glow), 0.32))
            drop-shadow(0 0 110px rgba(var(--glow), 0.20));
}

.hero-content {
    position: absolute;
    right: 135px;
    top: 29%;
    z-index: 2;
    width: 890px;
    max-width: calc(100% - 170px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.hero-card {
    --nx: 95;
    --ny: 130;
    width: 100%;
    container-type: inline-size;
    padding: 34px 55px 30px 110px;
    background: rgba(5, 10, 22, 0.18);
}

.hero-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 8.5cqw;
    line-height: 0.98;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.16),
                 0 0 80px rgba(var(--glow), 0.30);
}

.hero-subtitle {
    font-size: 3.3cqw;
    font-weight: 400;
    color: #E4E9F2;
    margin-top: 12px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.hero-actions .btn {
    height: 86px;
    padding: 0 55px;
    font-size: 24px;
}

.hero-actions .btn-ghost {
    --nx: 34;
    --ny: 34;
}

.hero-actions .btn-primary {
    --cut: 34px;
}

/* =====================================================
   ЧИПЫ ДИСЦИПЛИН (общие для героя и чёрной полосы)
   ===================================================== */
.disciplines {
    display: flex;
    gap: 12px;
}

.discipline {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: rgba(8, 16, 34, 0.55);
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.discipline img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* =====================================================
   СЕКЦИИ
   ===================================================== */
.section {
    position: relative;
    border-top: 1px solid var(--line);
}

.section-steps,
.section-pluses {
    background:
        linear-gradient(rgba(4, 8, 18, 0.82), rgba(4, 8, 18, 0.88)),
        url('assets/Background.png') center / cover no-repeat,
        var(--bg);
    padding: 110px 0 120px;
}

/* ---------- Как сделать ставку ---------- */
.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 45px;
}

.steps-col {
    flex: 1 1 auto;
    min-width: 0;
}

.steps {
    margin-top: 62px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-num {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.04em;
    color: var(--blue);
    margin-bottom: 22px;
}

.step-text {
    font-size: 31px;
    font-weight: 400;
    line-height: 1.08;
    color: #fff;
}

.steps-btn {
    margin-top: 38px;
}

.steps-btn .btn {
    --cut: 30px;
    width: 425px;
    height: 88px;
    font-size: 26px;
}

/* ---------- фотоблоки ---------- */
.photos {
    position: relative;
}

.photo {
    position: absolute;
    max-width: none;
    height: auto;
}

.photos-steps {
    flex: 0 0 var(--col-steps);
    width: var(--col-steps);
    height: 690px;
    margin-top: 128px;
}
.photo-a { left: 0;  top: 0;    width: 845px; }
.photo-b { right: 0; bottom: 0; width: 562px; }

.photos-pluses {
    flex: 0 0 var(--col-pluses);
    width: var(--col-pluses);
    height: 625px;
}
.photo-c { left: 0;     top: 0;     width: 692px; }
.photo-d { left: 140px; top: 267px; width: 632px; }

/* ---------- На что можно ставить ---------- */
.section-disciplines {
    background: #000;
    border-top: none;
    padding: 58px 20px 62px;
    text-align: center;
}

.band-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 0 0 34px rgba(255, 255, 255, 0.28),
                 0 0 90px rgba(255, 255, 255, 0.14);
}

.disciplines-band {
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.disciplines-band .discipline {
    height: 62px;
    padding: 0 20px;
    gap: 12px;
    font-size: 19px;
    background: transparent;
}

.disciplines-band .discipline img {
    width: 30px;
    height: 30px;
}

.band-caption {
    margin-top: 36px;
    font-size: 26px;
    font-weight: 400;
    color: #fff;
}

/* ---------- Плюсы ставок ---------- */
.pluses-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 72px;
    margin-top: 44px;
}

.cards {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.card {
    position: relative;
    min-height: 118px;
    padding: 22px 30px;
    border: 1px solid var(--line);
    background: var(--card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-family: var(--text);
    font-weight: 700;
    font-size: 27px;
    line-height: 1.2;
}

.card-text {
    margin-top: 6px;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--muted);
}

.card-bonus {
    min-height: 252px;
    justify-content: flex-start;
    padding-top: 30px;
    background:
        linear-gradient(rgba(6, 12, 26, 0.80), rgba(6, 12, 26, 0.86)),
        url('assets/image 89.png') center / cover no-repeat,
        var(--card);
}

.card-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
}

.card-btn .btn {
    --cut: 26px;
    width: 395px;
    height: 62px;
    font-size: 22px;
}

/* =====================================================
   ПОДВАЛ
   ===================================================== */
.footer {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(4, 8, 18, 0.90), rgba(4, 8, 18, 0.94)),
        url('assets/Background.png') center / cover no-repeat,
        var(--bg);
    padding: 46px 20px 48px;
    text-align: center;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 52px;
}

.footer-note {
    margin-top: 34px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
}

.footer-rule {
    display: block;
    width: 760px;
    max-width: 100%;
    height: 1px;
    margin: 34px auto;
    background: #fff;
}

.footer-copy {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
}

/* =====================================================
   АДАПТИВ
   ===================================================== */
@media (max-width: 1700px) {
    :root { --pad: 60px; --col-steps: 720px; --col-pluses: 660px; }

    .hero-content { right: 60px; width: 800px; }
    .hero-person  { left: 60px; }
    .hero-card    { padding: 30px 46px 26px 95px; --nx: 85; --ny: 115; }
    .hero-actions .btn { height: 76px; padding: 0 44px; font-size: 21px; }

    .section-title { font-size: 52px; }
    .band-title    { font-size: 60px; }

    .steps       { margin-top: 48px; gap: 32px; }
    .step-text   { font-size: 25px; }
    .step-num    { font-size: 28px; margin-bottom: 16px; }
    .steps-btn   { margin-top: 46px; }
    .steps-btn .btn { width: 360px; height: 76px; font-size: 22px; }

    .photos-steps { height: 590px; margin-top: 100px; }
    .photo-a { width: 720px; }
    .photo-b { width: 480px; }

    .photos-pluses { height: 535px; }
    .photo-c { width: 590px; }
    .photo-d { left: 120px; top: 228px; width: 540px; }

    .pluses-grid { gap: 56px; }
    .cards { gap: 34px; }
    .card  { min-height: 104px; padding: 18px 26px; }
    .card-title { font-size: 24px; }
    .card-text  { font-size: 19px; }
    .card-bonus { min-height: 226px; }
    .card-btn .btn { width: 330px; height: 56px; font-size: 20px; }
}

@media (max-width: 1440px) {
    :root { --pad: 40px; --col-steps: 560px; --col-pluses: 520px; }

    .hero-content { right: 40px; width: 690px; top: 26%; }
    .hero-person  { left: 20px; height: 80%; }
    .hero-card    { padding: 26px 38px 24px 80px; --nx: 72; --ny: 100; }
    .discipline   { height: 48px; padding: 0 14px; font-size: 15px; }
    .discipline img { width: 22px; height: 22px; }
    .hero-actions .btn { height: 66px; padding: 0 34px; font-size: 19px; }

    .nav-link  { font-size: 17px; }
    .nav-left  { padding-right: 26px; }
    .nav-right { padding-left: 26px; }
    .header-btn .btn { min-width: 230px; height: 54px; font-size: 18px; }

    .section-steps, .section-pluses { padding: 80px 0 90px; }
    .section-title { font-size: 44px; }
    .band-title    { font-size: 46px; }
    .band-caption  { font-size: 22px; }

    .step-text { font-size: 21px; }
    .step-num  { font-size: 24px; }

    .photos-steps { height: 470px; margin-top: 74px; }
    .photo-a { width: 560px; }
    .photo-b { width: 375px; }

    .photos-pluses { height: 420px; }
    .photo-c { width: 460px; }
    .photo-d { left: 95px; top: 178px; width: 420px; }

    .pluses-grid { gap: 44px; }
    .cards { gap: 26px; }
    .card-title { font-size: 21px; }
    .card-text  { font-size: 17px; }
    .card-bonus { min-height: 200px; }
    .card-btn .btn { width: 270px; height: 50px; font-size: 18px; }
}

@media (max-width: 1100px) {
    :root { --pad: 24px; }

    .header {
        height: 90px;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0 20px;
    }
    .nav { display: none; }
    .header-btn { right: 20px; }
    .header-btn .btn { min-width: 0; padding: 0 22px; height: 46px; font-size: 15px; }
    .logo img { height: 40px; }

    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }
    .hero-person {
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.22;
        height: 90%;
    }
    .hero-content {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 640px;
        align-items: stretch;
    }
    .hero-card { --nx: 50; --ny: 60; padding: 26px 22px 24px 40px; }
    .hero-title    { font-size: 7.4cqw; white-space: normal; }
    .hero-subtitle { font-size: 3.6cqw; }
    .disciplines   { flex-wrap: wrap; }
    .hero-actions  { flex-wrap: wrap; }
    .hero-actions .glow { flex: 1 1 auto; }
    .hero-actions .btn  { width: 100%; }

    /* секции в одну колонку */
    .steps-grid,
    .pluses-grid {
        flex-direction: column;
        gap: 48px;
    }
    .steps-col { flex: 1 1 auto; width: 100%; }

    .photos {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .photo { position: static; width: 100% !important; left: auto; top: auto; }

    .cards { flex: 1 1 auto; width: 100%; }

    .section-title,
    .section-title-right { text-align: left; font-size: 36px; }

    .band-title { font-size: 32px; }
    .disciplines-band { gap: 10px; }
    .band-caption { font-size: 18px; }

    .card-bonus { min-height: 0; padding-bottom: 90px; }
    .card-btn { right: 16px; bottom: 16px; }
}

@media (max-width: 560px) {
    .hero-card { --nx: 34; --ny: 40; padding: 22px 16px 20px 26px; }
    .hero-title    { font-size: 9cqw; }
    .hero-subtitle { font-size: 4.4cqw; }
    .discipline { height: 42px; padding: 0 10px; font-size: 13px; }
    .discipline img { width: 18px; height: 18px; }
    .hero-actions .btn { height: 56px; padding: 0 20px; font-size: 16px; }

    .section-steps, .section-pluses { padding: 56px 0 64px; }
    .section-title, .section-title-right { font-size: 28px; }
    .step-text { font-size: 17px; }
    .steps-btn .btn { width: 100%; height: 60px; font-size: 18px; }

    .band-title { font-size: 24px; }
    .disciplines-band .discipline { height: 46px; padding: 0 12px; font-size: 14px; }
    .disciplines-band .discipline img { width: 22px; height: 22px; }

    .card-btn { position: static; margin-top: 18px; }
    .card-btn .btn { width: 100%; }
    .card-bonus { padding-bottom: 22px; }

    .footer-note { font-size: 15px; }
    .footer-copy { font-size: 14px; }
}
