:root {
    --navy-950: #020714;
    --navy-900: #03102b;
    --navy-800: #061b45;
    --blue: #087cf5;
    --blue-bright: #1aa8ff;
    --yellow: #ffd500;
    --yellow-deep: #ffae00;
    --red: #ef2429;
    --white: #ffffff;
    --muted: #aebbd0;
    --line: rgba(255,255,255,.13);
    --shadow: 0 20px 60px rgba(0,0,0,.35);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 113, 255, .12), transparent 30%),
        radial-gradient(circle at 85% 55%, rgba(239, 36, 41, .08), transparent 28%),
        var(--navy-950);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}

.section--dark {
    background:
        linear-gradient(135deg, rgba(4, 20, 54, .96), rgba(2, 7, 20, .98));
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.03;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -.04em;
}

h2 span,
h1 span {
    color: var(--yellow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--yellow {
    color: #08101f;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
    box-shadow: 0 10px 30px rgba(255, 196, 0, .2);
}

.btn--outline {
    border-color: rgba(255,255,255,.35);
}

.btn--outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* HEADER */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(2, 7, 20, .78);
    backdrop-filter: blur(16px);
}

.header__inner {
    display: flex;
    align-items: center;
    min-height: 82px;
    gap: 18px;
}

.brand {
    flex: 0 0 108px;
}

.brand img {
    width: 108px;
    height: 64px;
    object-fit: contain;
}

.city-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border: 0;
    color: var(--white);
    background: transparent;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.city-select__arrow {
    color: var(--yellow);
}

.city-select__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--navy-900);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: .2s ease;
}

.city-select.is-open .city-select__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-left: auto;
}

.main-nav a {
    color: #d8e1ee;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--yellow);
}

.header-vk {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
}

.header-cta {
    min-height: 42px;
    padding-inline: 17px;
    font-size: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
}

/* HERO */
.hero {
    position: relative;
    min-height: 850px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-950);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2,7,20,.55), rgba(2,7,20,.08) 50%, rgba(2,7,20,.48)),
        url("../images/hero-bg.png");
    background-size: cover;
    background-position: center;
    opacity: .9;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--navy-950));
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .22;
}

.hero__glow--one {
    width: 300px;
    height: 300px;
    top: 18%;
    left: 8%;
    background: var(--blue);
}

.hero__glow--two {
    width: 250px;
    height: 250px;
    right: 8%;
    bottom: 15%;
    background: var(--red);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    align-items: center;
    min-height: 850px;
    padding-top: 82px;
}

.hero__content {
    max-width: 650px;
}

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(42px, 5.0vw, 72px);
    letter-spacing: -.055em;
}

.hero__content > p {
    max-width: 570px;
    color: #d6dfed;
    font-size: 19px;
}

.hero__facts {
    display: flex;
    gap: 12px;
    margin-top: 42px;
}

.hero__facts div {
    min-width: 130px;
    padding: 17px 20px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(2,7,20,.38);
    backdrop-filter: blur(10px);
}

.hero__facts strong {
    display: block;
    color: var(--yellow);
    font-size: 31px;
    line-height: 1;
}

.hero__facts span {
    display: block;
    margin-top: 6px;
    color: #c7d1e0;
    font-size: 11px;
    text-transform: uppercase;
}

.hero__logo {
    justify-self: center;
    width: min(100%, 600px);
    /*transform: translateY(25px) rotate(-1deg);*/
    filter: drop-shadow(0 30px 40px rgba(0,0,0,.5));
}

.hero__logo img {
    width: 100%;
}

.hero__character-slot {
    position: absolute;
    right: -30px;
    bottom: 0;
    width: 330px;
    height: 520px;
    pointer-events: none;
}

.scroll-hint {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    color: #aebbd0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.scroll-hint b {
    color: var(--yellow);
    font-size: 20px;
}

/* SCHEDULE */
.schedule {
    background:
        radial-gradient(circle at 90% 20%, rgba(0, 137, 255, .14), transparent 28%),
        var(--navy-950);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: end;
    gap: 40px;
    margin-bottom: 48px;
}

.section-heading p {
    margin-bottom: 25px;
    color: var(--muted);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}



/* FRANCHISE */
.afisha_head_inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    
}

.afisha_head__text p {
    max-width: 470px;

    margin-bottom: 28px;
    color: var(--muted);
}

.franchise__text .btn {
    min-width: 210px;
}





.game-card {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(13, 47, 103, .92), rgba(3, 14, 37, .96));
    box-shadow: var(--shadow);
}

.game-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(10, 139, 255, .18);
}

.game-card--accent::before {
    background: rgba(239, 36, 41, .17);
}

.game-card > * {
    position: relative;
    z-index: 1;
}

.game-card__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.game-card__date,
.game-card__time{
    font-weight: 900;
    font-size: 18px;
}

.game-card__time {
    color: var(--yellow);
}

.game-card__tag {
	color: var(--blue-bright);
	
    /*margin-bottom: 10px;
    font-weight: 900;
    font-size: 10px;
    
    letter-spacing: .18em;
	*/
}

.game-card h3 {
    max-width: 550px;
    margin-bottom: 15px;
    font-size: 32px;
}

.game-card__description {
    min-height: 22px; 
    color: var(--muted);
    font-size: 14px;
}

.game-card__meta {
    display: grid;
    gap: 6px;
    margin: 5px 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: #dce5f2;
    font-size: 13px;
}

.schedule-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 17px 20px;
    border-radius: 15px;
    background: rgba(255,255,255,.045);
}

.schedule-note span {
    color: var(--yellow);
    font-size: 22px;
}

.schedule-note p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ABOUT */
.about {
    background-color: var(--navy-900);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about__image {
    justify-self: center;
    width: min(100%, 550px);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
}

.about__image img {
    width: 100%;
}

.about__intro p {
    max-width: 690px;
    color: var(--muted);
    font-size: 16px;
}

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

.stat-card {
    min-height: 170px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
}

.stat-card strong {
    display: block;
    color: var(--yellow);
    font-size: clamp(46px, 5vw, 68px);
    line-height: .9;
}

.stat-card span {
    display: block;
    margin-top: 14px;
    color: #d9e2ef;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 70px;
}

.feature {
    padding: 26px;
    border-top: 2px solid var(--blue);
    background: rgba(0,0,0,.13);
}

.feature:nth-child(2) { border-color: var(--yellow); }
.feature:nth-child(3) { border-color: var(--red); }

.feature__icon {
    margin-bottom: 20px;
    color: var(--yellow);
    font-size: 28px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.feature p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

/* CORPORATE */
.corporate {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 213, 0, .13), transparent 24%),
        linear-gradient(135deg, #061b45, #020714);
}

.corporate__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.corporate__content {
    max-width: 720px;
}

.corporate__content p {
    max-width: 620px;
    color: #d1dceb;
    font-size: 17px;
}

.corporate__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 28px;
    margin-top: 28px;
}

.corporate__contacts a:first-child {
    color: var(--yellow);
    font-size: 23px;
    font-weight: 900;
}

.corporate__contacts a:last-child {
    align-self: center;
    color: #dce5f2;
    font-weight: 700;
}

.corporate__badge {
    justify-self: end;
    width: min(100%, 410px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 50px;
    border: 2px solid rgba(255,213,0,.55);
    border-radius: 50%;
    transform: rotate(7deg);
    background:
        radial-gradient(circle, rgba(255,213,0,.15), transparent 62%),
        rgba(0,0,0,.17);
    box-shadow: 0 0 80px rgba(255,174,0,.1);
    text-align: center;
	background-image:url(../images/turbo1.png);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat no-repeat;
}

.corporate__badge span {
    color: var(--blue-bright);
    font-size: 34px;
    font-weight: 900;
    line-height: .9;
}

.corporate__badge strong {
    color: var(--yellow);
    font-size: 78px;
    line-height: .8;
}

.corporate__badge small {
    margin-top: 18px;
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

/* FRANCHISE */
.franchise__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(9, 38, 87, .85), rgba(4, 15, 37, .9));
}

.franchise__text p {
    max-width: 470px;
    margin-bottom: 28px;
    color: var(--muted);
}

.franchise__text .btn {
    min-width: 210px;
}

/* FOOTER */
.site-footer {
    padding: 65px 0 25px;
    background: #01040c;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer__main {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr auto;
    gap: 50px;
    align-items: start;
}

.footer__brand img {
    width: 170px;
    margin-bottom: 16px;
}

.footer__brand p {
    max-width: 260px;
    color: var(--muted);
    font-size: 13px;
}

.footer__main h3 {
    margin-bottom: 16px;
    color: var(--yellow);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer__nav,
.footer__contacts {
    display: grid;
    gap: 8px;
}

.footer__nav a,
.footer__contacts a {
    color: #bac6d7;
    font-size: 13px;
}

.footer__nav a:hover,
.footer__contacts a:hover {
    color: var(--white);
}

.footer__cta {
    align-self: center;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #68768d;
    font-size: 11px;
}

.footer__bottom a:hover {
    color: var(--white);
}

/* MOBILE */
@media (max-width: 1050px) {
    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .header-cta {
        display: none;
    }

    .hero__inner {
        grid-template-columns: 1fr .8fr;
    }

    .hero__character-slot {
        display: none;
    }
}

@media (max-width: 850px) {
    .section {
        padding: 80px 0;
    }

    .header__inner {
        min-height: 72px;
    }

    .brand {
        flex-basis: 92px;
    }

    .brand img {
        width: 92px;
        height: 56px;
    }

    .city-select {
        margin-left: auto;
    }

    .header-vk {
        display: none;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 20px;
        right: 20px;
        display: grid;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(2,7,20,.97);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav a {
        padding: 13px 12px;
        font-size: 13px;
    }

    .hero {
        min-height: 760px;
    }

    .hero__inner {
        min-height: 760px;
        grid-template-columns: 1fr;
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .hero__content {
        text-align: center;
        margin-inline: auto;
    }

    .hero__content > p {
        margin-inline: auto;
    }

    .hero__logo {
        order: -1;
        width: min(80vw, 440px);
        transform: none;
    }

    .hero__facts {
        justify-content: center;
    }

    .section-heading,
    .about-grid,
    .corporate__inner,
    .franchise__inner {
        grid-template-columns: 1fr;
    }
	.about__image {
		order: -1;
		width: min(80vw, 440px);
	}

    .section-heading {
        gap: 10px;
    }

    .section-heading p {
        margin-bottom: 0;
    }

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

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .corporate__badge {
        justify-self: center;
        width: min(70vw, 340px);
    }

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

    .footer__cta {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    h2 {
        font-size: 36px;
    }

    .hero {
        min-height: 720px;
    }

    .hero__inner {
        min-height: 720px;
    }

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

    .hero__content > p {
        font-size: 16px;
    }

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

    .hero__facts div {
        min-width: 0;
        padding: 13px 8px;
        text-align: center;
    }

    .hero__facts strong {
        font-size: 25px;
    }

    .hero__facts span {
        font-size: 9px;
    }

    .game-card {
        padding: 24px;
    }

    .game-card h3 {
        font-size: 27px;
    }

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

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

    .stat-card {
        min-height: 135px;
        padding: 20px;
    }

    .corporate__badge {
        width: 280px;
    }

    .corporate__badge strong {
        font-size: 62px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bottom {
        flex-wrap: wrap;
    }
}

/* DYNAMIC EVENTS / MODAL */
.city-select-wrap { position: relative; }
.city-select__dropdown { display: grid; gap: 4px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-900); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .2s ease; }
.city-select-wrap.is-open .city-select__dropdown { opacity: 1; visibility: visible; transform: none; }
.city-select__dropdown a { padding: 9px 10px; border-radius: 8px; font-size: 13px; }
.city-select__dropdown a:hover { background: rgba(255,255,255,.07); color: var(--yellow); }
.game-card { display:flex; flex-direction:column; }
.game-card__poster { aspect-ratio: 16/9; margin: -34px -34px 28px; overflow:hidden; background:#03102b; }
.game-card__poster img { width:100%; height:100%; object-fit:cover; }
.game-card__body { display:flex; flex-direction:column; flex:1; }
.game-card__body .btn { align-self:flex-start; margin-top:auto; }
.empty-card { grid-column:1/-1; padding:40px; border:1px solid var(--line); border-radius:var(--radius); color:var(--muted); text-align:center; }
.modal { position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; padding:20px; }
.modal.is-open { display:flex; }
.modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.modal__box { position:relative; z-index:1; width:min(100%,560px); max-height:90vh; overflow:auto; padding:34px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(145deg,#092657,#020714); box-shadow:var(--shadow); }
.modal__close { position:absolute; top:12px; right:15px; border:0; background:none; color:white; font-size:34px; cursor:pointer; }
#registration-form { display:grid; gap:14px; }
#registration-form label { display:grid; gap:6px; color:#dce5f2; font-size:13px; font-weight:700; }
#registration-form input, #registration-form textarea { width:100%; padding:12px 13px; border:1px solid rgba(255,255,255,.15); border-radius:10px; outline:none; color:white; background:rgba(0,0,0,.2); font:inherit; }
#registration-form input:focus, #registration-form textarea:focus { border-color:var(--yellow); }
#registration-form .check { display:flex; grid-template-columns:none; flex-direction:row; align-items:flex-start; font-weight:400; }
#registration-form .check input { width:auto; margin-top:3px; }
.form-message { min-height:20px; font-size:13px; }
.form-message.is-error { color:#ff7277; }
.form-message.is-success, .success-text { color:#bfe5ff; }
.city-chooser { min-height:100vh; display:flex; align-items:center; padding:60px 0; background:radial-gradient(circle at 70% 20%,rgba(0,124,245,.2),transparent 30%),var(--navy-950); }
.city-chooser__logo { width:min(260px,70vw); margin:0 auto 45px; }
.city-chooser .container { text-align:center; }
.city-chooser h1 { font-size:clamp(42px,6vw,76px); margin-bottom:35px; }
.city-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:15px; max-width:800px; margin:auto; }
.city-item { display:grid; gap:8px; padding:25px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.04); text-align:left; transition:.2s; }
.city-item:hover { transform:translateY(-3px); border-color:var(--yellow); }
.city-item strong { font-size:24px; }
.city-item span { color:var(--muted); font-size:12px; }









/* =========================================================
   ADMIN MODAL
   Универсальное модальное окно админки.

   В дальнейшем используем эти же классы
   для городов, команд, пользователей и т.д.
   ========================================================= */

body.modal-open {
    overflow: hidden;
}


.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.admin-modal.is-open {
    display: flex;
}


/* Затемнение страницы */

.admin-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .72);

    backdrop-filter: blur(5px);
}


/* Само окно */

.admin-modal__window {
    position: relative;
    z-index: 1;

    width: min(100%, 620px);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: var(--navy-900);

    box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}


/* Верхняя часть */

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 25px;

    border-bottom: 1px solid var(--line);
}


.admin-modal__header h2 {
    margin: 0;

    font-size: 25px;
}


/* Крестик */

.admin-modal__close {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    color: var(--white);

    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


.admin-modal__close:hover {
    color: var(--yellow);
    background: rgba(255,255,255,.06);
}


/* Тело формы */

.admin-modal .admin-form {
    padding: 25px;
}


/* Подсказка под полем */

.admin-form__hint {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 11px;
}


/* Checkbox */

.admin-checkbox {
    display: flex !important;
    flex-direction: row !important;

    align-items: center;

    gap: 10px;
}


.admin-checkbox input {
    width: auto !important;
}


/* Кнопки снизу */

.admin-modal__footer {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--line);
}


/* Сообщение об ошибке */

.admin-modal__message {
    margin-top: 15px;

    color: var(--muted);

    font-size: 13px;
}


.admin-modal__message--error {
    color: #ff7272;
}


/* Кнопка в таблице */

.btn--small {
    min-height: 36px;

    padding: 0 14px;

    font-size: 10px;
}


/* Кнопки действий над таблицей */

.admin-page-actions {
    display: flex;

    justify-content: flex-end;

    margin-bottom: 20px;
}


/* Кнопки в последнем столбце */

.admin-table__actions {
    width: 1%;
    white-space: nowrap;
}


/* Мобильная версия */

@media (max-width: 600px) {

    .admin-modal {
        padding: 10px;
    }

    .admin-modal__window {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .admin-modal__header {
        padding: 18px;
    }

    .admin-modal .admin-form {
        padding: 18px;
    }

    .admin-modal__footer {
        flex-direction: column-reverse;
    }

    .admin-modal__footer .btn {
        width: 100%;
    }

}





/* =========================================================
   ГАЛЕРЕИ-КАРУСЕЛИ (отзывы и фото)
   ========================================================= */

/* Заголовок галереи */
.gallery-heading {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
}
.gallery-heading h2 {
    margin-bottom: 12px;
}
.gallery-subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

/* Карусель */
.tb-carousel {
    position: relative;
}

.tb-carousel__viewport {
    overflow: hidden;
    padding: 24px 0;
}

.tb-carousel__track {
    display: flex;
    align-items: center;
    gap: 24px;
    will-change: transform;
}

.tb-carousel__slide {
    flex: 0 0 calc(50% - 12px);
    box-sizing: border-box;
    opacity: .4;
    transform: scale(.9);
    transition: opacity .5s ease, transform .5s ease;
}
.tb-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* --- Отзывы: без рамки, квадратные --- */
.tb-carousel--reviews .tb-carousel__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* --- Фото: белая рамка, горизонтальные 3:2 --- */
.tb-carousel--photos .tb-carousel__slide {
    background: #fff;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .4);
}
.tb-carousel--photos .tb-carousel__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
}

/* --- Стрелки --- */
.tb-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(3, 16, 43, .85);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: border-color .2s, color .2s;
}
.tb-carousel__arrow:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}
.tb-carousel__arrow--prev { left: 8px; }
.tb-carousel__arrow--next { right: 8px; }

/* --- Мобильные --- */
@media (max-width: 700px) {
    .tb-carousel__slide { flex: 0 0 82%; }
    .tb-carousel__track { gap: 16px; }
    .tb-carousel__arrow { width: 42px; height: 42px; font-size: 22px; }
    .tb-carousel__arrow--prev { left: 4px; }
    .tb-carousel__arrow--next { right: 4px; }
}




/* =========================================================
   КТО СОЗДАЛ ТУРБОБОЙ
   ========================================================= */

.creators-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
}

.creators-plus {
    display: grid;
    place-items: center;
    align-self: center;
    width: 72px;
    height: 72px;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    color: var(--yellow);
    font-size: 36px;
    font-weight: 900;
    background: rgba(255, 213, 0, .05);
    box-shadow: 0 0 40px rgba(255, 213, 0, .15);
    flex-shrink: 0;
}

.creator-card {
    position: relative;
    padding: 38px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(13, 47, 103, .55), rgba(3, 14, 37, .85));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.creator-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 213, 0, .08);
    filter: blur(40px);
    pointer-events: none;
}

.creator-card > * {
    position: relative;
    z-index: 1;
}

.creator-card__logo {
    height: 90px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.creator-card__logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.creator-card__title {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.1;
    text-align: center;
}
.creator-card__title a {
    color: var(--yellow);
    transition: color .2s;
}
.creator-card__title a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
}

.creator-card__lead {
    margin: 0 0 22px;
    color: #d6dfed;
    font-size: 15px;
    line-height: 1.6;
}
.creator-card__lead b {
    color: var(--white);
}

.creator-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.creator-card__stats > div {
    text-align: center;
}
.creator-card__stats strong {
    display: block;
    color: var(--yellow);
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}
.creator-card__stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.creator-card__founders {
    margin-top: auto;
}
.creator-card__founders-title {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.creator-card__founders-list {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform .2s;
}
.founder:hover {
    transform: translateY(-3px);
}

.founder img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--yellow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.founder span {
    color: #e8effc;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: color .2s;
}

.founder:hover span {
    color: var(--yellow);
}

/* ОБЪЕДИНЯЮЩИЙ БЛОК */
.creators-summary {
    position: relative;
    margin-top: 50px;
    padding: 46px 44px;
    border: 1px solid var(--yellow);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 213, 0, .08), rgba(13, 47, 103, .4));
    text-align: center;
    box-shadow: 0 0 60px rgba(255, 213, 0, .08);
}

.creators-summary__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    background: var(--yellow);
    color: #08101f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
    border-radius: 20px;
}

.creators-summary h3 {
    margin: 6px 0 16px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.15;
}
.creators-summary h3 span {
    color: var(--yellow);
}
.creators-summary p {
    max-width: 760px;
    margin: 0 auto;
    color: #d6dfed;
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================================
   МОБИЛКИ
   ========================================================= */
@media (max-width: 900px) {
    .creators-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .creators-plus {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin: 0 auto;
    }
    .creators-summary {
        padding: 38px 24px;
    }
}

@media (max-width: 560px) {
    .creator-card {
        padding: 26px 22px;
    }
    .creator-card__stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .creator-card__stats > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .creator-card__stats strong {
        margin: 0;
    }
}



/* 		Таблица кнопок внутри Устройств	*/
.admin-table--nested {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
}
.admin-table--nested th,
.admin-table--nested td {
    font-size: 12px;
    padding: 8px;
}
.device-buttons-wrap {
    padding: 15px;
}
.device-buttons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.device-buttons-header h3 {
    margin: 0;
    font-size: 16px;
}

