:root {
    --blue-900: #020b4a;
    --blue-800: #061a8c;
    --blue-700: #0a2fc4;
    --blue-500: #1e6bff;
    --cyan: #3fd0ff;
    --red: #ff2a55;
    --white: #ffffff;
    --white-70: rgba(255, 255, 255, 0.7);
    --white-15: rgba(255, 255, 255, 0.15);
    --white-08: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--white);
    background: var(--blue-900);
    line-height: 1.5;
}

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

button{
    background: transparent;
}

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border: 2px solid var(--white);
    border-radius: 40px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, opacity 0.25s;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}


.btn-container{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.btn:hover {
    background: var(--white);
    color: var(--blue-800);
}

.btn--light {
    background: var(--white);
    color: var(--blue-800);
}

.btn--light:hover {
    background: transparent;
    color: var(--white);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
background: 
  linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)), 
  var(--blue-900) url('img/sgg-bg.webp') center / cover no-repeat; 
}

.hero__emblem {
    position: absolute;
    top: 0;
    right: 0;
    width: min(55vw, 1000px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
}

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

.partners__logo {
    height: 130px;
    width: auto;
}

.partners__logo--mon {
    height: 103px;
}

.partners__logo--mintrud {
    height: 115px;
}

.partners__logo--reu {
    height: 64px;
}

.hero__content {
    margin: auto 0;
    padding-top: 60px;
}

.hero__title {
    font-size: clamp(32px, 5.2vw, 76px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero__line,
.section-line {
    display: block;
    width: 170px;
    height: 2px;
    margin: 40px 0 28px;
    background: var(--white);
}

.hero__subtitle {
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 400;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin: 48px 0 40px;
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__meta-label {
    font-size: 13px;
    color: var(--white-70);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero__meta-value {
    font-size: 18px;
    font-weight: 600;
}

/* ---------- Заголовки секций ---------- */
.section-title {
    font-size: clamp(28px, 3.4vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-line {
    margin: 24px 0 40px;
}

/* ---------- О проекте ---------- */
.about {
    padding: 110px 0;
    background: linear-gradient(180deg, var(--blue-900) 0%, #04136a 100%);
}

.about__lead {
    max-width: 860px;
    font-size: 19px;
    font-weight: 300;
    color: var(--white-70);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.stats__item {
    padding: 32px 28px;
    border: 1px solid var(--white-15);
    border-radius: 16px;
    background: var(--white-08);
    backdrop-filter: blur(6px);
}

.stats__num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--white), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats__text {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--white-70);
}

/* ---------- Программа ---------- */
.program {
    position: relative;
    padding: 110px 0;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(30, 107, 255, 0.35), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(63, 208, 255, 0.18), transparent 50%),
        #04136a;
}

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.tabs__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px;
    border: 1px solid var(--white-15);
    border-radius: 14px;
    background: transparent;
    color: var(--white-70);
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.tabs__btn:hover {
    border-color: var(--white);
    color: var(--white);
}

.tabs__btn.is-active {
    border-color: var(--white);
    background: var(--white);
    color: var(--blue-800);
}

.tabs__day {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.tabs__date {
    font-size: 14px;
}

.schedule {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.schedule.is-active {
    display: flex;
}

.event {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 28px 32px;
    border: 1px solid var(--white-15);
    border-radius: 16px;
    background: var(--white-08);
    transition: border-color 0.25s, transform 0.25s;
}

.event:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.event--accent {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(30, 107, 255, 0.45), rgba(255, 255, 255, 0.06));
}

.event--accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--white) 0 33%, var(--blue-500) 33% 66%, var(--red) 66%);
}

.event__time {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.event__tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--cyan);
    color: var(--blue-900);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event__tag--muted {
    background: var(--white-15);
    color: var(--white);
}

.event__title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.event__text {
    margin-top: 10px;
    color: var(--white-70);
    font-size: 15px;
}

.event__list {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--white-70);
    font-size: 15px;
}

.event__list li + li {
    margin-top: 4px;
}

.event__place {
    margin-top: 12px;
    font-size: 14px;
    color: var(--white-70);
}

.event__place::before {
    content: '● ';
    color: var(--red);
}

/* ---------- CTA ---------- */
.cta {
    padding: 90px 0;
    background: var(--blue-800) url('img/sgg-bg.png') center 70% / cover no-repeat;
}

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

.cta__title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
}

.cta__text {
    margin-top: 12px;
    max-width: 560px;
    font-size: 17px;
    color: var(--white-70);
}

/* ---------- Footer ---------- */
.footer {
    padding: 28px 0;
    background: var(--blue-900);
    font-size: 14px;
    color: var(--white-70);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ---------- Модалка ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 11, 74, 0.75);
    backdrop-filter: blur(6px);
}

.modal__window {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 48px 44px 40px;
    border: 1px solid var(--white-15);
    border-radius: 20px;
    background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(20px);
    transition: transform 0.25s;
}

.modal.is-open .modal__window {
    transform: translateY(0);
}

.modal__window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 44px;
    right: 44px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--white) 0 33%, var(--blue-500) 33% 66%, var(--red) 66%);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--white-70);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.modal__close:hover {
    background: var(--white-15);
    color: var(--white);
}

.modal__title {
    padding-right: 32px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.modal__line {
    display: block;
    width: 100px;
    height: 2px;
    margin: 20px 0;
    background: var(--white);
}

.modal__text {
    font-size: 15px;
    color: var(--white-70);
}

.modal__text p + p {
    margin-top: 12px;
}

.modal__text a {
    color: var(--cyan);
}

.modal__check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 28px 0;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.modal__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modal__checkmark {
    flex-shrink: 0;
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid var(--white);
    border-radius: 6px;
    transition: background 0.2s;
}

.modal__check input:checked + .modal__checkmark {
    background: var(--white);
}

.modal__check input:checked + .modal__checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 1px;
    width: 7px;
    height: 13px;
    border: solid var(--blue-800);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.modal__check input:focus-visible + .modal__checkmark {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.modal__submit {
    width: 100%;
}

.modal__submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .modal__window {
        padding: 40px 20px 24px;
    }

    .modal__window::before {
        left: 20px;
        right: 20px;
    }

    .modal__title {
        font-size: 19px;
    }

    .partners__logo {
        height: 48px;
    }

    .partners__logo--mon,
    .partners__logo--mintrud {
        height: 40px;
    }

    .partners__logo--reu {
        height: 30px;
    }

    .hero__emblem {
        width: 90vw;
        opacity: 0.6;
    }

    .hero__meta {
        gap: 24px;
    }

    .about,
    .program {
        padding: 72px 0;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .event {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 20px;
    }

    .event__time {
        font-size: 17px;
    }

    .event__title {
        font-size: 18px;
    }

    .tabs__btn {
        flex: 1;
        padding: 14px 18px;
    }

    .cta__inner,
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
