@font-face {
	font-family: 'OCRABecker';
	src: url(../fonts/ocrabeckerrus_lat.otf);
}
@font-face {
	font-family: 'Magistral';
	src: url(../fonts/ofont.ru_Magistral.ttf);
}
@font-face {
	font-family: 'MagistralBlack';
	src: url(../fonts/ofont.ru_MagistralBlack.ttf);
}
@font-face {
	font-family: 'MagistralBold';
	src: url(../fonts/ofont.ru_MagistralBold.ttf);
}

:root{
    /* brand */
    --blue: #0F00D6;
    --accent: #2110FF;
    --accent-light: #7268fd;
    --accent-soft: rgba(33, 16, 255, 0.16);

    /* surfaces */
    --ink: #030014;
    --ink-raised: #0b0824;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);

    /* text */
    --text: #fff;
    --text-dim: rgba(255, 255, 255, 0.72);
    --text-mute: rgba(255, 255, 255, 0.5);

    /* shape */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --container: 1120px;
}

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

html{
    scroll-behavior: smooth;
}
html:has(.lightbox:target){
    overflow: hidden;
}

body{
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'Magistral', sans-serif;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

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

p{
    margin: 0;
}

ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

a{
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.container{
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

.skip-link{
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: #fff;
    color: #000;
    padding: 10px 18px;
    border-radius: 0 0 var(--r-sm) 0;
    font-family: 'MagistralBold', sans-serif;
}
.skip-link:focus{
    left: 0;
}

/* ==== Buttons ==== */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'MagistralBold', sans-serif;
    border-radius: var(--r-md);
    padding: 15px 30px;
    font-size: clamp(15px, 1.6vw, 17px);
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn-primary{
    background: var(--accent);
    color: #fff;
    box-shadow: 0 16px 32px -18px rgba(33, 16, 255, 0.85);
}
.btn-primary:hover{
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -16px rgba(33, 16, 255, 0.9);
}
.btn-outline{
    margin-top: clamp(20px, 3vw, 28px);
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}
.btn-outline:hover{
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* ==== Fixed decorative backdrop (only visible where hero/header are transparent) ==== */
.page-backdrop{
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../img/bg.svg') no-repeat center top / cover;
}

main,
.partners-strip,
.site-footer{
    position: relative;
    background: var(--ink);
}

/* ==== Header ==== */
.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 0, 20, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header-inner{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-block: 14px;
}

/* Mobile nav toggle (checkbox hack, no JS) */
.nav-toggle{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.nav-toggle-btn{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.nav-toggle-btn span{
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.25s ease;
}
.nav-toggle:focus-visible ~ .nav-toggle-btn{
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}
.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2){
    opacity: 0;
}
.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(3, 0, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px clamp(20px, 5vw, 40px) 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.nav-toggle:checked ~ .site-nav{
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
}
.site-nav a{
    font-family: 'MagistralBold', sans-serif;
    font-size: 16px;
    color: var(--text-dim);
    padding: 13px 14px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible{
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 900px){
    .nav-toggle-btn{
        display: none;
    }
    .site-nav{
        position: static;
        flex-direction: row;
        align-items: center;
        gap: clamp(20px, 2.4vw, 34px);
        background: none;
        border-bottom: none;
        padding: 0;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
    }
    .site-nav a{
        position: relative;
        padding: 6px 0;
        border-radius: 0;
        border: none;
        font-size: 15px;
    }
    .site-nav a::after{
        content: '';
        position: absolute;
        left: 0;
        right: 100%;
        bottom: 0;
        height: 2px;
        background: var(--accent-light);
        transition: right 0.25s ease;
    }
    .site-nav a:hover,
    .site-nav a:focus-visible{
        background: none;
        color: #fff;
    }
    .site-nav a:hover::after,
    .site-nav a:focus-visible::after{
        right: 0;
    }
}

/* ==== Hero ==== */
.hero{
    padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 104px);
}
.hero-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(24px, 5vw, 44px);
}
.hero-logo img{
    width: clamp(180px, 26vw, 340px);
    height: auto;
    margin-inline: auto;
}
.hero-lead{
    font-family: 'OCRABecker', sans-serif;
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.45;
    max-width: 620px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.95);
}
.hero-title{
    font-family: 'MagistralBlack', sans-serif;
    color: #fff;
    font-size: clamp(24px, 4vw, 38px);
    text-transform: uppercase;
    margin: clamp(22px, 3vw, 34px) 0 clamp(16px, 2.5vw, 22px);
}
.category-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin-inline: auto clamp(28px, 4vw, 40px);
    margin-bottom: 2rem;
}
.category-list li{
    --chip-dot: var(--accent-light);
    --chip-border: var(--line);
    --chip-bg: rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 12px 20px 12px 34px;
    border-radius: var(--r-md);
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: #fff;
    font-family: 'MagistralBlack', sans-serif;
    font-size: clamp(14px, 1.7vw, 16px);
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-list li::before{
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--chip-dot);
    box-shadow: 0 0 10px var(--chip-dot);
}
.category-list li:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 26px -14px var(--chip-dot);
}
.category-list li:nth-child(1){ --chip-dot: #FFC93D; --chip-border: rgba(33, 16, 255, 0.8); --chip-bg: rgba(33, 16, 255, 0.52); }
.category-list li:nth-child(2){ --chip-dot: #FFB84D; --chip-border: rgba(108, 92, 231, 0.8); --chip-bg: rgba(108, 92, 231, 0.52); }
.category-list li:nth-child(3){ --chip-dot: #FF5A36; --chip-border: rgba(0, 180, 255, 0.8); --chip-bg: rgba(0, 180, 255, 0.52); }
.category-list li:nth-child(4){ --chip-dot: #FFCB6B; --chip-border: rgba(114, 104, 253, 0.8); --chip-bg: rgba(114, 104, 253, 0.52); }
.category-list li:nth-child(5){ --chip-dot: #FFA94D; --chip-border: rgba(67, 97, 238, 0.8); --chip-bg: rgba(67, 97, 238, 0.52); }
.hero-offer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hero-offer-meta{
    font-family: 'MagistralBold', sans-serif;
    font-size: clamp(14px, 1.8vw, 19px);
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.hero-offer-meta span{
    font-family: 'MagistralBlack', sans-serif;
    color: #fff;
}
.hero-offer-lead{
    font-size: clamp(14px, 1.6vw, 16px);
    color: var(--text-dim);
}
.hero-offer-actions{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

@media (min-width: 600px){
    .hero-offer-actions{
        flex-direction: row;
        align-items: center;
        width: auto;
    }
}

@media (min-width: 1000px){
    .hero-inner{
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .hero-logo{
        flex: 0 0 auto;
    }
    .hero-logo img{
        margin-inline: 0;
    }
    .hero-content{
        flex: 1;
    }
    .hero-lead{
        margin-inline: 0;
    }
    .category-list{
        justify-content: flex-start;
        margin-inline: 0 auto;
    }
    .hero-offer{
        align-items: flex-start;
    }
}

/* ==== Partners strip (right under hero) ==== */
.partners-strip{
    border-block: 1px solid var(--line);
}
.partners-strip-inner{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    padding-block: clamp(24px, 4vw, 32px);
}
.partners-strip-label{
    display: flex;
    align-items: center;
    height: 38px;
    font-family: 'MagistralBold', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.partners-strip-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}
.partners-strip-logo img{
    max-height: 100%;
    width: auto;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.25s ease;
}
.partners-strip-logo:hover img,
.partners-strip-logo:focus-visible img{
    opacity: 1;
}

/* ==== Section shell ==== */
.section{
    padding-block: clamp(56px, 8vw, 100px);
}
.section-title{
    position: relative;
    font-family: 'MagistralBlack', sans-serif;
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 clamp(32px, 4vw, 48px);
    padding-bottom: 18px;
}
.section-title::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-light);
}

/* ==== About ==== */
.about-section{
    text-align: center;
}
.about-copy{
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}
.about-copy p{
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    color: var(--text-dim);
}

/* ==== Program ==== */
.program-viewer{
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--ink-raised);
    overflow: hidden;
    overflow-anchor: none;
}
.program-viewport[hidden]{
    display: none;
}
.program-viewport:focus-visible{
    outline: 2px solid var(--accent-light);
    outline-offset: -3px;
}
.program-viewport{
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: none;
    scrollbar-gutter: stable;
    user-select: none;
    -webkit-user-select: none;
    background: #03091c;
}
.program-canvas{
    display: block;
    max-width: none;
}
.program-status{
    padding: 24px;
    color: var(--text-dim);
}
.program-section,
.photo-section{
    text-align: center;
}

/* ==== Gallery ==== */
.gallery-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin-inline: auto;
}
.gallery-item{
    display: block;
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img{
    transform: scale(1.06);
}

@media (min-width: 600px){
    .gallery-grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (min-width: 900px){
    .gallery-grid{
        gap: 16px;
    }
}

/* Lightbox — pure CSS, toggled via :target, no JS */
.lightbox{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox:target{
    display: flex;
}
.lightbox-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 20, 0.92);
}
.lightbox-body{
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 76vh;
    padding-inline: clamp(16px, 5vw, 40px);
}
.lightbox-body img{
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 76vh;
    margin-inline: auto;
    border-radius: var(--r-md);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-close,
.lightbox-nav{
    position: fixed;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.lightbox-close:hover,
.lightbox-nav:hover{
    border-color: var(--accent-light);
    background: var(--accent-soft);
}
.lightbox-close{
    top: 18px;
    right: clamp(16px, 5vw, 40px);
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
}

/* Mobile: prev/next sit in a bottom bar, centered, so they never cover the photo */
.lightbox-nav{
    left: 50%;
    bottom: clamp(14px, 4vw, 24px);
    width: 44px;
    height: 44px;
}
.lightbox-prev{
    transform: translateX(calc(-100% - 8px));
}
.lightbox-next{
    transform: translateX(8px);
}

@media (min-width: 700px){
    .lightbox-body,
    .lightbox-body img{
        max-height: 88vh;
    }
    .lightbox-nav{
        left: auto;
        top: 50%;
        bottom: auto;
        width: 46px;
        height: 46px;
    }
    .lightbox-prev{
        left: clamp(10px, 3vw, 28px);
        transform: translateY(-50%);
    }
    .lightbox-next{
        right: clamp(10px, 3vw, 28px);
        transform: translateY(-50%);
    }
}

/* ==== Partners ==== */
.partners-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin-inline: auto;
}
.partner-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: #fff;
    border-radius: var(--r-lg);
    padding: clamp(22px, 4vw, 30px);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.75);
}
.partner-logo{
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo img{
    max-width: 100%;
    max-height: 100%;
}
.partner-logo--round img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.partner-info h3{
    font-family: 'MagistralBold', sans-serif;
    color: var(--blue);
    font-size: clamp(16px, 2vw, 20px);
    margin: 0 0 8px;
}
.partner-info p{
    color: #2b2b2b;
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.6;
    margin: 0 0 10px;
}
.partner-link{
    display: inline-flex;
    font-family: 'MagistralBold', sans-serif;
    color: var(--accent);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.partner-link:hover{
    color: var(--accent-light);
}

@media (min-width: 700px){
    .partner-card{
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: clamp(24px, 3vw, 32px);
    }
}

/* ==== Footer ==== */
.site-footer{
    padding-block: clamp(28px, 5vw, 40px);
    border-top: 1px solid var(--line);
}
.footer-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer-logo{
    height: 34px;
    width: auto;
    opacity: 0.85;
    margin-inline: auto;
}
.social-links{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.social-link{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 9px 16px;
    font-family: 'MagistralBold', sans-serif;
    font-size: 13px;
}
.social-link:hover{
    color: #fff;
    border-color: var(--accent-light);
    background: var(--accent-soft);
}
.social-link--max img{
    opacity: 0.72;
    transition: opacity 0.2s ease;
}
.social-link--max:hover img{
    opacity: 1;
}

@media (min-width: 700px){
    .footer-inner{
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-logo{
        margin-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior: auto;
    }
    *, *::before, *::after{
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
