@font-face {
    font-family: 'Inter';
    src: url('/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #07080b;
    --bg-soft: #0d1017;
    --card: #11151f;
    --card-2: #151a25;
    --text: #f4f7fb;
    --muted: #9ca8b8;
    --line: rgba(255, 255, 255, .11);
    --blue: #1c69d4;
    --cyan: #00a3e0;
    --red: #e22726;
    --green: #7aff3e;
    --white: #ffffff;
    --plyr-color-main: #1c69d4;
    --radius: 28px;
    --shadow: 0 30px 90px rgba(0, 0, 0, .45);
    --max: 1240px;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--muted);
    border-radius: 20px;
    border: 2px solid transparent;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.m-stripe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m-stripe span {
    display: block;
    width: 28px;
    height: 5px;
    border-radius: 20px;
}

.m-stripe span:nth-child(1) {
    background: var(--blue);
}

.m-stripe span:nth-child(2) {
    background: var(--cyan);
}

.m-stripe span:nth-child(3) {
    background: var(--red);
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    padding: 20px 0;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}

.topbar.scrolled {
    background: rgba(7, 8, 11, .76);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 24px;
}

.logo img {
    width: 44px;
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.active {
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
}

.btn-primary {
    background: #fff;
    color: #05070b;
    border-color: #fff;
}

.btn-primary:hover {
    background: #e9eef6;
}

.btn-yandex {
    background: #fff;
    color: #05070b;
    border-color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-yandex:hover {
    background: #fff;
    scale: 1.03;
}

.leaflet-top,
.leaflet-bottom,
.leaflet-control {
    z-index: 51;
}

.menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}

.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 70px;
    isolation: isolate;
}

.hero-video,
.hero-fallback {
    filter: grayscale(100%) blur(3px);
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero-fallback {
    filter: grayscale(100%) blur(2px);
    background:
        linear-gradient(90deg, rgba(7, 8, 11, .96) 0%, rgba(7, 8, 11, .58) 42%, rgba(7, 8, 11, .86) 100%),
        url("/images/hero.png") center/cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, .92) 0%, rgba(7, 8, 11, .62) 46%, rgba(7, 8, 11, .18) 100%),
        linear-gradient(0deg, #07080b 0%, rgba(7, 8, 11, 0) 34%);
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 26px;
}

h1 {
    font-size: clamp(58px, 10vw, 100px);
    line-height: .86;
    letter-spacing: .02em;
    font-weight: 900;
    max-width: 980px;
    text-transform: uppercase;
}

.hero-title-small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(34px, 5.8vw, 55px);
    letter-spacing: .02em;
    margin-top: 10px;
}

.hero-text {
    margin-top: 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.42;
    font-weight: 500;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 760px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
    box-shadow: var(--shadow);
}

.stat {
    background: rgba(10, 13, 19, .72);
    backdrop-filter: blur(16px);
    padding: 24px;
}

.stat strong {
    display: block;
    font-size: 34px;
    letter-spacing: -.05em;
}

.stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

section {
    padding: 110px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 46px;
}

.section-kicker {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(38px, 5vw, 76px);
    line-height: .95;
    letter-spacing: -.065em;
    max-width: 820px;
    text-transform: uppercase;
}

.section-text {
    max-width: 430px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 300px;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.feature-card.large {
    grid-column: span 2;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 110px;
    height: 4px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--red));
    opacity: .9;
}

.feature-num {
    color: rgba(255, 255, 255, .35);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
}

.feature-card h3 {
    margin-top: 70px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.05em;
}

.feature-card p {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 500;
}

.how {
    background: #090b10;
    border-block: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step {
    padding: 34px;
    min-height: 360px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step b {
    font-size: 86px;
    letter-spacing: -.08em;
    line-height: .8;
    color: rgba(255, 255, 255, .13);
}

.step h3 {
    font-size: 32px;
    letter-spacing: -.05em;
    margin-bottom: 16px;
}

.step p {
    color: var(--muted);
    line-height: 1.55;
    font-weight: 500;
}

.club-card {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    padding: 52px;
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(17, 21, 31, .96) 0%, rgba(17, 21, 31, .82) 50%, rgba(17, 21, 31, .32) 100%),
        url("/images/about.png") center/cover;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.club-card h2 {
    max-width: 760px;
}

.club-card p {
    margin-top: 24px;
    color: rgba(255, 255, 255, .75);
    max-width: 620px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 500;
}

.club-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.tag {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.app-preview {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: stretch;
}

.phone {
    border-radius: 42px;
    border: 1px solid var(--line);
    background: #0e121a;
    padding: 16px;
    box-shadow: var(--shadow);
    max-width: 420px;
    justify-self: end;
}

.phone-screen {
    min-height: 690px;
    border-radius: 32px;
    background: #07080b;
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 18px;
    overflow: hidden;
}

.feed-post {
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 14px;
}

.feed-img {
    height: 260px;
    background: url("https://images.unsplash.com/photo-1556189250-72ba954cfc2b?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.feed-body {
    padding: 18px;
}

.feed-body h4 {
    font-size: 18px;
    letter-spacing: -.03em;
}

.feed-body p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.mini-list {
    display: flex;
    justify-content: space-around;
    max-width: 148px;
    width: 100%;
    margin-top: 10px;
}

.mini-item .soc-item,
.mini-item span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-item img {
    height: 35px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mini-item img:hover {
    scale: 1.1;
}

.preview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.preview-copy p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
    font-weight: 500;
    max-width: 580px;
    margin-top: 22px;
}

.cta {
    padding-top: 40px;
}

.cta-box {
    border-radius: 38px;
    padding: 58px;
    border: 1px solid var(--line);
    background: #fff;
    color: #07080b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-box h2 {
    color: #07080b;
    max-width: 780px;
}

.cta-box p {
    margin-top: 18px;
    color: rgba(7, 8, 11, .64);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    max-width: 680px;
}

.cta-box .btn {
    background: #07080b;
    color: #fff;
    border-color: #07080b;
    min-height: 58px;
    padding-inline: 28px;
}

.site-footer {
    padding: 56px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr 1.1fr;
    gap: 34px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 420px;
}

.footer-copy {
    margin-top: 18px;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.footer-col h3,
.footer-seo-links h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 15px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col span,
.footer-tags a {
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
    transition: .2s;
}

.footer-col a:hover,
.footer-tags a:hover {
    color: #fff;
}

.footer-seo-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 38px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.footer-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tags a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
}

@media(max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu {
    display: none;
}

@media (max-width: 980px) {
    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .mobile-menu {
        position: fixed;
        top: 86px;
        left: 14px;
        right: 14px;
        z-index: 28;
        display: none;
        padding: 18px;
        border-radius: 24px;
        background: rgba(12, 15, 22, .94);
        border: 1px solid var(--line);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 16px;
        border-radius: 16px;
        color: rgba(255, 255, 255, .82);
        font-weight: 800;
    }

    .mobile-menu a:hover {
        background: rgba(255, 255, 255, .06);
    }

    .mobile-menu a.active {
        color: var(--white) !important;
    }

    .mobile-menu-auth {
        background-color: var(--white) !important;
        color: var(--bg) !important;
        border-radius: 15px !important;
        padding: 15px 20px !important;
    }

    .hero {
        min-height: 920px;
        padding-bottom: 40px;
    }

    .hero-stats,
    .steps,
    .feature-grid,
    .app-preview {
        grid-template-columns: 1fr;
    }

    .feature-card.large {
        grid-column: span 1;
    }

    .section-head,
    .cta-box,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-copy {
        padding-right: 0;
    }

    .phone {
        justify-self: start;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .eyebrow {
        display: none;
    }

    .topbar {
        padding: 14px 0;
    }

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 780px;
        padding-top: 120px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        margin-top: 44px;
    }

    .stat {
        padding: 20px;
    }

    section {
        padding: 72px 0;
    }

    .feature-card,
    .step,
    .club-card,
    .cta-box {
        padding: 24px;
        border-radius: 26px;
    }

    .feature-card {
        min-height: 260px;
    }

    .feature-card h3 {
        margin-top: 52px;
        font-size: 26px;
    }

    .step {
        min-height: 300px;
    }

    .club-card {
        min-height: 560px;
    }

    .phone-screen {
        min-height: 560px;
    }

    .feed-img {
        height: 220px;
    }

    .cta-box .btn {
        width: 100%;
    }
}

.auth-page {
    min-height: 100vh;
    background: #07080b;
}

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.auth-visual {
    position: relative;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, .92), rgba(7, 8, 11, .48)),
        url("/images/about.png") center/cover;
}

.auth-visual::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
}

.auth-logo {
    position: relative;
    z-index: 2;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.auth-visual-content h1 {
    margin-top: 28px;
    font-size: clamp(48px, 7vw, 104px);
    line-height: .88;
}

.auth-visual-content p {
    margin-top: 26px;
    color: rgba(255, 255, 255, .74);
    font-size: 20px;
    line-height: 1.5;
    max-width: 560px;
}

.auth-benefits {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-benefits div {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
    font-size: 14px;
    backdrop-filter: blur(12px);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(28, 105, 212, .18), transparent 32%),
        #07080b;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    margin-bottom: 34px;
}

.auth-tab {
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .58);
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-tab.active {
    background: #fff;
    color: #07080b;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    font-size: 42px;
    line-height: .95;
}

.auth-heading p {
    margin-top: 12px;
    color: #9ca8b8;
    line-height: 1.5;
}

.auth-form label {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(28, 105, 212, .9);
    box-shadow: 0 0 0 4px rgba(28, 105, 212, .15);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, .36);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}

.auth-row a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 800;
}

.auth-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1c69d4;
}

.auth-check span {
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.35;
}

.auth-policy {
    margin: 24px 0 !important;
}

.auth-submit {
    width: 100%;
    min-height: 58px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #9ca8b8;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 980px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 520px;
        padding: 28px;
    }

    .auth-panel {
        padding: 24px 14px 40px;
    }
}

@media (max-width: 560px) {
    .auth-visual {
        display: none;
    }

    .auth-card {
        padding: 20px;
        border-radius: 26px;
    }

    .auth-heading h2 {
        font-size: 34px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.cabinet-page {
    background: #07080b;
    color: #fff;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh
}

.cabinet-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    border-right: 1px solid var(--line);
    background: #0b0e14
}

.cabinet-logo {
    margin-bottom: 42px
}

.cabinet-nav {
    display: grid;
    gap: 8px
}

.cabinet-nav a {
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--muted);
    font-weight: 800
}

.cabinet-nav a.active,
.cabinet-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff
}

.cabinet-new-post {
    width: 100%;
    margin-top: 32px
}

.cabinet-main {
    padding: 34px;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto
}

.cabinet-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

.cabinet-topbar h1 {
    font-size: 64px
}

.cabinet-user {
    display: flex;
    align-items: center;
    gap: 14px
}

.cabinet-user-info {
    text-align: right
}

.cabinet-user-info span {
    display: block;
    color: var(--muted);
    font-size: 13px
}

.cabinet-avatar,
.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 500px;
}

.cabinet-avatar img,
.post-avatar img {
    min-width: 48px;
    min-height: 48px;
    width: 100%;
    height: 100%;
    border-radius: 500px;
}

.profile-warning,
.create-post-card,
.club-post,
.side-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #151a25, #10141d);
    border-radius: 28px
}

.profile-warning {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px
}

.profile-warning p {
    color: var(--muted);
    margin-top: 6px
}

.feed-layout {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr)340px;
    gap: 24px
}

.feed-column {
    display: grid;
    gap: 18px
}

.create-post-card {
    padding: 18px;
    display: flex;
    gap: 14px
}

.create-post-card button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    text-align: left;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer
}

.club-post {
    padding: 22px;
    margin-top: 1rem;
}

.post-head {
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.post-author {
    display: flex;
    gap: 14px;
    align-items: center
}

.post-author span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px
}

.post-more {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 22px
}

.post-text {
    margin: 20px 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.5
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px
}

.reaction-btn,
.comment-toggle {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s;
}

.comment-toggle .pc-text {
    display: block;
}

.comment-toggle .mobile-text {
    display: none;
}

.reaction-btn svg * {
    fill: #fff;
    transition: all 0.3s;
}

.reaction-btn.active {
    background: #fff;
    color: #07080b
}

.reaction-btn.active svg * {
    fill: #07080b;
}


.comments-box {
    display: grid;
    gap: 12px;
}

.comment {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .06);
}

.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    color: #07080b;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.comment-head strong {
    color: #fff;
    font-size: 15px;
}

.comment-head time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.comment-text {
    margin-top: 6px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.45;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-actions button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.comment-actions button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 14px;
}

.comment-form input {
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    padding: 0 16px;
    outline: none;
}

.comment-form button {
    border: none;
    border-radius: 16px;
    background: #fff;
    color: #07080b;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
}

@media(max-width: 560px) {
    .comment {
        grid-template-columns: 40px 1fr;
        padding: 12px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form button {
        height: 46px;
    }

    .reaction-btn {
        padding: 12px;
    }

    .comment-toggle .pc-text {
        display: none;
    }

    .comment-toggle .mobile-text {
        display: flex;
        align-items: center;
        gap: 7px;
    }
}

.comment-edit-input {
    width: 100%;
    min-height: 92px;
    margin-top: 6px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    resize: vertical;
    outline: none;
    font: inherit;
    line-height: 1.45;
}

.comment-edit-input:focus {
    border-color: rgba(28, 105, 212, .8);
    box-shadow: 0 0 0 4px rgba(28, 105, 212, .14);
}

.comment-actions .save {
    background: #fff;
    color: #07080b;
    border-color: #fff;
}

.comment-actions .cancel {
    color: rgba(255, 255, 255, .65);
}

.post-media-uploader {
    display: grid;
    gap: 12px;
}

.post-media-hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.post-media-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.post-media-item {
    position: relative;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.post-media-item img,
.post-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 8, 11, .78);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.post-media-type {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(7, 8, 11, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

@media(max-width:560px) {
    .post-media-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-media-item {
        height: 130px;
    }
}

.comment-form input,
.garage-form input,
.garage-form textarea,
.post-form textarea {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    outline: none;
    width: 100%
}

.comment-form button {
    border: 0;
    border-radius: 16px;
    padding: 0 16px;
    font-weight: 800
}

.service-card {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.service-card div {
    background: rgba(255, 255, 255, .05);
    border-radius: 18px;
    padding: 16px
}

.service-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px
}

.right-panel {
    display: grid;
    gap: 16px;
    align-content: start;
    position: sticky;
    top: 24px
}

.side-card {
    padding: 22px
}

.side-card p {
    color: var(--muted);
    margin: 12px 0
}

.mobile-bottom-nav {
    display: none
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(10px);
    z-index: 502;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px
}

.modal-overlay.active {
    display: flex
}

.modal-sheet {
    width: min(720px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 28px;
    box-shadow: var(--shadow)
}

.sheet-handle {
    display: none
}

.modal-head {
    margin-bottom: 24px
}

.modal-head h2 {
    font-size: 44px
}

.modal-head p {
    color: var(--muted);
    margin-top: 10px
}

.modal-head.compact {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px
}

#workModalTitle {
    font-size: 2rem;
}

.garage-form,
.post-form {
    display: grid;
    gap: 16px
}

.garage-top-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.garage-top-grid .file-field {
    grid-row: 1 / 3;
    min-height: 160px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.garage-top-grid label {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .garage-top-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .garage-top-grid .file-field {
        grid-row: auto;
        min-height: 140px;
    }
}

.autocomplete-field {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 200;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #10141d;
    box-shadow: var(--shadow);
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-list::-webkit-scrollbar {
    width: 4px;
}

.autocomplete-list::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-list::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, .8);
    border-radius: 999px;
}

.modal-sheet::-webkit-scrollbar {
    width: 4px;
}

.modal-sheet::-webkit-scrollbar-track {
    background: transparent;
}

.modal-sheet::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, .8);
    border-radius: 999px;
}

.autocomplete-item {
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: rgba(255, 255, 255, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.garage-form label {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    font-size: 14px
}

.garage-form input,
.garage-form textarea {
    margin-top: 8px
}

.garage-form textarea,
.post-form textarea {
    min-height: 80px;
    resize: vertical
}

.file-field {
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    cursor: pointer
}

.file-field input {
    display: none
}

.file-field span {
    color: #fff;
    font-weight: 900
}

.image-upload-field {
    cursor: pointer;
    padding: 0;
}

.image-upload-field input {
    display: none;
}

.image-upload-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: .2s;
}

.image-upload-preview.has-image {
    background-size: cover;
    background-position: center;
    border-radius: 22px;
}

.image-upload-preview.has-image span {
    display: none;
}

.modal-actions {
    display: flex;
    gap: 12px
}

.hidden-later {
    opacity: 0;
    pointer-events: none
}

.hidden-later.visible {
    opacity: 1;
    pointer-events: auto
}

.post-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px
}

.post-type-grid button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 16px;
    padding: 14px;
    font-weight: 800
}

@media(max-width:720px) {
    .cabinet-user {
        display: none;
    }

    .modal-head h2 {
        font-size: 2rem;
    }
}

@media(max-width:980px) {
    .cabinet-page {
        display: block;
        padding-bottom: 80px
    }

    .cabinet-sidebar {
        display: none
    }

    .cabinet-main {
        padding: 20px 14px
    }

    .cabinet-topbar h1 {
        font-size: 44px
    }

    .feed-layout {
        display: flex;
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
    }

    .right-panel {
        position: static;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 501;
        display: grid;
        grid-template-columns: 1fr 1fr 56px 1fr 1fr;
        align-items: center;
        background: rgba(12, 15, 22, .92);
        border: 1px solid var(--line);
        backdrop-filter: blur(18px);
        border-radius: 15px 15px 0 0;
        padding: 8px
    }

    .create-post-card button {
        font-weight: 500;
    }

    .mobile-bottom-nav a {
        color: var(--muted);
        font-size: 12px;
        text-align: center;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-bottom-nav a svg {
        margin-bottom: 4px;
    }

    .mobile-bottom-nav a.active {
        color: #fff
    }

    .mobile-bottom-nav button {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 0;
        background: #fff;
        color: #07080b;
        font-size: 28px;
        font-weight: 900
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0
    }

    .modal-sheet {
        width: 100%;
        max-height: 88vh;
        border-radius: 28px 28px 0 0;
        padding: 20px;
        transform: translateY(0);
        transition: transform .2s ease
    }

    .sheet-handle {
        display: block;
        width: 54px;
        height: 5px;
        background: rgba(255, 255, 255, .28);
        border-radius: 99px;
        margin: 0 auto 18px
    }

    .form-grid,
    .service-card,
    .post-type-grid {
        grid-template-columns: 1fr
    }

    .profile-warning {
        flex-direction: column;
        align-items: flex-start
    }

    .modal-actions {
        flex-direction: column
    }

    .modal-actions .btn {
        width: 100%
    }
}

/* profile */
/* profile */
/* profile */

.profile-main {
    max-width: 1440px;
}

.profile-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: #10141d;
    margin-bottom: 22px;
    padding: 0;
}

.profile-cover {
    height: 260px;
}

.profile-hero-content {
    padding: 0 34px 34px;
    display: grid;
    grid-template-columns: 160px 1fr 260px;
    gap: 28px;
    align-items: end;
    margin-top: -78px;
}

.profile-avatar img {
    width: 148px;
    height: 148px;
    border-radius: 34px;
}

.profile-status {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(28, 105, 212, .18);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.profile-info h1 {
    font-size: clamp(42px, 5vw, 72px);
}

.profile-info p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 680px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.member-card-mini {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.member-card-mini span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.member-card-mini strong {
    display: block;
    margin: 10px 0 22px;
    font-size: 28px;
    letter-spacing: -.05em;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
    padding: 0;
}

.profile-stat-card {
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.profile-stat-card span {
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

.profile-stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 42px;
    letter-spacing: -.06em;
}

.profile-stat-card p {
    margin-top: 6px;
    color: var(--muted);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 22px;
    padding: 0;
}

.profile-left,
.profile-right {
    display: grid;
    gap: 22px;
    align-content: start;
}

.profile-section-card {
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.profile-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.profile-section-head h2,
.profile-section-card h2 {
    font-size: 38px;
}

.garage-cards {
    display: grid;
    gap: 16px;
}

.car-title-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-edit-car {
    background-color: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.car-card-profile {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
}

.car-image {
    height: 100%;
    min-height: 300px;
    border-bottom-right-radius: 22px;
    background-size: cover;
    background-position: center;
}

.car-content {
    padding: 24px;
}

.car-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.car-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.car-badge.public {
    background: rgba(28, 105, 212, .2);
    color: #fff;
}

.car-badge.private {
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}

.privacy-switch {
    position: relative;
    width: 54px;
    height: 30px;
    cursor: pointer;
}

.privacy-switch input {
    display: none;
}

.privacy-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    transition: .2s ease;
}

.privacy-switch span::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 4px;
    left: 4px;
    border-radius: 50%;
    background: #fff;
    transition: .2s ease;
}

.privacy-switch input:checked+span {
    background: #1c69d4;
}

.privacy-switch input:checked+span::after {
    transform: translateX(24px);
}

.car-content h3 {
    font-size: 34px;
    letter-spacing: -.05em;
}

.car-content p {
    margin-top: 8px;
    color: var(--muted);
}

.car-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.car-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
}

.car-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.textarea-counter {
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
}

.service-timeline {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    grid-template-columns: 1fr 1fr;
}

.service-timeline>*:nth-child(odd):last-child {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .service-timeline {
        grid-template-columns: 1fr;
    }

    .service-timeline>*:nth-child(odd):last-child {
        grid-column: auto;
    }
}

.timeline-item {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border-left: 4px solid #1c69d4;
}

.timeline-item span {
    color: var(--muted);
    font-size: 12px;
}

.timeline-item strong {
    display: block;
    margin-top: 6px;
}

.timeline-item p {
    margin-top: 4px;
    font-size: 14px;
}

.timeline-actions {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    gap: 5px;
}

.timeline-action-btn {
    width: 32px;
    height: 32px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    background: rgba(255, 255, 255, .06);
    transition: .2s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-action-btn:hover {
    background: rgba(255, 255, 255, .12);
}

.timeline-action-btn.edit:hover {
    color: #1c69d4;
}

.timeline-action-btn.delete:hover {
    color: #ff5a5a;
}

.car-work-btn {
    margin-top: 18px;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.activity-item b {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.activity-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.level-card p,
.qr-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.level-progress {
    height: 12px;
    margin-top: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.level-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--red));
}

.level-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.trophy-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    opacity: 1;
}

.trophy-card b {
    display: block;
    font-size: 28px;
    margin-bottom: 12px;
}

.trophy-card img {
    width: 100%;
}

.trophy-card strong {
    display: block;
    text-align: center;
    line-height: 1.15;
    margin-top: 4px;
}

.trophy-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.qr-card {
    text-align: center;
}

.fake-qr {
    width: 180px;
    height: 180px;
    margin: 24px auto;
    border-radius: 18px;
    background:
        linear-gradient(90deg, #fff 12px, transparent 12px) 0 0/24px 24px,
        linear-gradient(#fff 12px, transparent 12px) 0 0/24px 24px,
        #07080b;
    border: 14px solid #fff;
}

@media (max-width: 1180px) {
    .profile-hero-content {
        grid-template-columns: 140px 1fr;
    }

    .member-card-mini {
        grid-column: 1 / -1;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-right {
        grid-template-columns: repeat(2, 1fr);
        order: 1;
    }

    .profile-left {
        order: 2;
    }

    .qr-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-hero-content {
        grid-template-columns: 1fr;
        margin-top: -70px;
        padding: 0 20px 24px;
    }

    .profile-avatar {
        text-align: center;
    }

    .profile-avatar img {
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }

    .mini-list {
        max-width: 128px;
        margin: 0 auto;
    }

    .profile-right {
        grid-template-columns: 1fr;
    }

    .car-image {
        min-height: 260px;
        border-bottom-right-radius: 0;
    }

    .car-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .profile-cover {
        height: 220px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-section-card {
        padding: 20px;
        border-radius: 24px;
    }

    .profile-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-section-head .btn {
        width: 100%;
    }

    .car-content h3 {
        font-size: 30px;
    }

    .car-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* events */

.events-main {
    max-width: 1500px;
}

.events-topbar p {
    color: var(--muted);
    margin-top: 10px;
}

.events-hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, #151a25, #10141d);
    margin-bottom: 34px;
}

.events-hero-panel h2 {
    margin-top: 22px;
    font-size: 54px;
}

.events-hero-panel p {
    margin-top: 14px;
    color: var(--muted);
    max-width: 680px;
}

.events-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    min-width: 440px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--line);
    height: max-content;
    margin-top: auto;
    margin-bottom: auto;
}

.events-hero-stats div {
    background: rgba(255, 255, 255, .05);
    padding: 24px;
    height: 100%;
}

.events-hero-stats strong {
    display: block;
    font-size: 38px;
}

.events-hero-stats span {
    color: var(--muted);
}

.events-section {
    margin-top: 38px;
    padding: 0;
}

.events-section-head {
    margin-bottom: 18px;
}

.events-section-head h2 {
    font-size: 52px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.event-card {
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #151a25, #10141d);
    cursor: pointer;
}

.event-card.wide {
    grid-column: span 2;
}

.event-image {
    position: relative;
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.event-status {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-status.upcoming {
    background: #fff;
    color: #07080b;
}

.event-status.past {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.event-content {
    padding: 22px;
}

.event-date {
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
}

.event-content h3 {
    margin-top: 12px;
    font-size: 30px;
    line-height: 1;
}

.event-content p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.event-meta-row span {
    padding: 9px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 800;
}

.event-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.event-card-actions .btn {
    flex: 1;
}

.event-media-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: 150px 150px;
    gap: 6px;
}

.event-media-grid div {
    background-size: cover;
    background-position: center;
}

.event-media-grid div:first-child {
    grid-row: span 2;
}

.video-tile {
    display: grid;
    place-items: center;
    font-size: 44px;
    color: #fff;
    background-blend-mode: multiply;
}

.event-modal-sheet {
    width: min(860px, 100%);
}

.event-modal-media {
    min-height: 360px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.event-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-modal-meta span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.event-modal-info p {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.55;
}

.event-modal-reactions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

@media(max-width:1180px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-hero-panel {
        flex-direction: column;
    }
}

@media(max-width:720px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-hero-stats {
        min-width: 100px;
        width: 100%;
        grid-template-columns: repeat(1, 1fr);
    }

    .event-card.wide {
        grid-column: span 1;
    }

    .events-hero-panel {
        padding: 24px;
    }

    .events-hero-panel h2 {
        font-size: 38px;
    }

    .event-card-actions {
        flex-direction: column;
    }

    .event-media-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 160px);
    }

    .event-media-grid div:first-child {
        grid-row: span 1;
    }

    .event-modal-media {
        min-height: 240px;
    }
}

/* challenges */

.challenges-main {
    max-width: 1500px;
}

.challenges-topbar p {
    color: var(--muted);
    margin-top: 10px;
}

.challenges-hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, #151a25, #10141d);
    margin-bottom: 28px;
}

.challenges-hero-panel h2 {
    margin-top: 22px;
    font-size: 54px;
    max-width: 780px;
}

.challenges-hero-panel p {
    margin-top: 14px;
    color: var(--muted);
    max-width: 680px;
}

.challenge-rules-card {
    min-width: 300px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    align-content: center;
}

.challenge-rules-card strong {
    font-size: 26px;
}

.challenge-rules-card span {
    color: var(--muted);
    font-weight: 800;
}

.challenges-list {
    display: grid;
    padding: 0;
    gap: 18px;
}

.challenge-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #151a25, #10141d);
    cursor: pointer;
}

.challenge-image {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.challenge-content {
    padding: 28px;
    display: grid;
    align-content: space-between;
    gap: 24px;
}

.challenge-content h3 {
    margin-top: 10px;
    font-size: 38px;
    line-height: 1;
}

.challenge-content p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.challenge-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.challenge-details-grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
}

.challenge-details-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.challenge-details-grid strong {
    display: block;
    line-height: 1.2;
}

.challenge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.challenge-winner-line {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-weight: 900;
}

.challenge-modal-sheet {
    width: min(980px, 100%);
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}

.challenge-modal-sheet::-webkit-scrollbar {
    width: 4px;
}

.challenge-modal-sheet::-webkit-scrollbar-track {
    background: transparent;
}

.challenge-modal-sheet::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, .8);
    border-radius: 999px;
}

.challenge-modal-image {
    min-height: 360px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.challenge-modal-info p {
    color: var(--muted);
    line-height: 1.55;
}

.challenge-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.challenge-modal-stats div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
}

.challenge-modal-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.challenge-upload-box {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
}

.challenge-upload-box p {
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.challenge-upload-box.disabled {
    display: none;
}

.challenge-submissions {
    padding: 0;
}

.challenge-submissions h3 {
    font-size: 30px;
}

.submissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.submission-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
}

.submission-card.winner {
    border-color: rgba(255, 255, 255, .32);
}

.submission-image {
    height: 210px;
    background-size: cover;
    background-position: center;
}

.submission-body {
    padding: 16px;
}

.submission-body strong,
.submission-body span {
    display: block;
}

.submission-body span {
    margin-top: 6px;
    color: var(--muted);
}

.vote-btn {
    width: 100%;
    margin-top: 14px;
}

.vote-btn.voted {
    background: #fff;
    color: #07080b;
}

@media(max-width:1180px) {
    .challenges-hero-panel {
        flex-direction: column;
    }

    .challenge-rules-card {
        min-width: 0;
    }

    .challenge-card {
        grid-template-columns: 300px 1fr;
    }

    .challenge-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:780px) {
    .challenge-card {
        grid-template-columns: 1fr;
    }

    .challenge-image {
        min-height: 260px;
    }

    .challenges-hero-panel {
        padding: 24px;
    }

    .challenges-hero-panel h2 {
        font-size: 38px;
    }

    .challenge-content h3 {
        font-size: 32px;
    }

    .challenge-details-grid,
    .challenge-modal-stats,
    .submissions-grid {
        grid-template-columns: 1fr;
    }

    .challenge-actions .btn {
        width: 100%;
    }

    .challenge-modal-image {
        min-height: 240px;
    }
}

.auth-error {
    margin-top: 6px;
    color: #ff5a5a;
    font-size: 13px;
    font-weight: 600;
}

.has-error input {
    border-color: #ff5a5a !important;
}

.has-error input:focus {
    box-shadow: 0 0 0 3px rgba(255, 90, 90, .15);
}

.auth-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 90, 90, .12);
    border: 1px solid rgba(255, 90, 90, .25);
    color: #ff7d7d;
    font-size: 14px;
    line-height: 1.4;
}

/* bmw toast */

.bmw-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 360px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(16, 20, 29, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: .25s ease;
}

.bmw-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.bmw-toast.error {
    border-color: rgba(255, 90, 90, .35);
    color: #ff8a8a;
}

.bmw-toast.success {
    border-color: rgba(28, 105, 212, .45);
}

@media(max-width: 560px) {
    .bmw-toast {
        left: 14px;
        right: 14px;
        bottom: 90px;
        max-width: none;
    }
}

/* settings */

.settings-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 22px;
    padding: 0;
}

.settings-left,
.settings-right {
    display: grid;
    gap: 22px;
    align-content: start;
}

.settings-card {
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.settings-card h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.settings-user-row h2 {
    margin-bottom: 5px;
}

.settings-cover-preview {
    height: 180px;
    border-radius: 24px 24px 0 0;
}

.settings-user-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: -42px;
    padding-left: 18px;
}

.settings-avatar-preview img {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    border: 6px solid #10141d;
}

.settings-user-row p {
    color: var(--muted);
    margin-top: 6px;
}

.image-upload-preview.small {
    height: 150px;
}

@media(max-width: 980px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* error  */

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, .96), rgba(7, 8, 11, .65)),
        url("/images/about.png") center/cover;
}

.error-card {
    width: min(720px, 100%);
    padding: 44px;
    border-radius: 36px;
    border: 1px solid var(--line);
    background: rgba(16, 20, 29, .82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.error-stripe {
    margin-top: 44px;
}

.error-card h1 {
    margin-top: 24px;
    font-size: clamp(96px, 18vw, 180px);
}

.error-card h2 {
    font-size: clamp(36px, 5vw, 64px);
}

.error-card p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    max-width: 560px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

@media(max-width: 560px) {
    .error-card {
        padding: 26px;
        border-radius: 28px;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* ios switcher */

.ios-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ios-switch input {
    display: none;
}

.ios-switch i {
    display: block;
    width: 58px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    position: relative;
    cursor: pointer;
}

.ios-switch i::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
}

.ios-switch input:checked+i {
    background: #1c69d4;
}

.ios-switch input:checked+i::after {
    transform: translateX(24px);
}

/* feed post gallery */

.post-gallery {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 24px;
}

.post-gallery-item {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    min-height: 180px;
}

.post-gallery-item img,
.post-gallery-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 1 */
.post-gallery-1 {
    grid-template-columns: 1fr;
}

.post-gallery-1 .post-gallery-item {
    height: 520px;
}

/* 2 */
.post-gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-gallery-2 .post-gallery-item {
    height: 360px;
}

/* 3 */
.post-gallery-3 {
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: repeat(2, 220px);
}

.post-gallery-3 .post-gallery-item:first-child {
    grid-row: span 2;
}

/* 4 */
.post-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
}

.post-gallery-4 .post-gallery-item {
    height: 260px;
}

/* 5 */
.post-gallery-5 {
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: repeat(2, 210px);
}

.post-gallery-5 .post-gallery-item:first-child {
    grid-row: span 2;
}

/* 6 */
.post-gallery-6 {
    grid-template-columns: repeat(3, 1fr);
}

.post-gallery-6 .post-gallery-item {
    height: 210px;
}

/* 7-10 */
.post-gallery-7,
.post-gallery-8,
.post-gallery-9,
.post-gallery-10 {
    grid-template-columns: repeat(3, 1fr);
}

.post-gallery-7 .post-gallery-item,
.post-gallery-8 .post-gallery-item,
.post-gallery-9 .post-gallery-item,
.post-gallery-10 .post-gallery-item {
    height: 190px;
}

/* Красивый hover */
.post-gallery-item img,
.post-gallery-item video {
    transition: transform .25s ease;
}

.post-gallery-item:hover img,
.post-gallery-item:hover video {
    transform: scale(1.025);
}

/* 7-10 desktop: ровная компактная сетка */
.post-gallery-7,
.post-gallery-8,
.post-gallery-9,
.post-gallery-10 {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
}

.post-gallery-7 .post-gallery-item,
.post-gallery-8 .post-gallery-item,
.post-gallery-9 .post-gallery-item,
.post-gallery-10 .post-gallery-item {
    height: auto;
    min-height: 0;
}

/* 7: первая чуть крупнее, но без гигантизма */
.post-gallery-7 .post-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* 8: ровная сетка 4x2 */
.post-gallery-8 {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 155px;
}

/* 9: ровная сетка 3x3 выглядит лучше */
.post-gallery-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 170px;
}

/* 10: 5x2 на широких экранах */
.post-gallery-10 {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 145px;
}

/* Mobile */
@media(max-width: 720px) {

    .post-gallery-7,
    .post-gallery-8,
    .post-gallery-9,
    .post-gallery-10 {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 125px;
    }

    .post-gallery-7 .post-gallery-item:first-child,
    .post-gallery-8 .post-gallery-item:first-child,
    .post-gallery-9 .post-gallery-item:first-child,
    .post-gallery-10 .post-gallery-item:first-child {
        grid-column: auto;
        grid-row: auto;
        height: auto;
    }

    .post-gallery-8 {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 165px;
    }

    .post-gallery-10 {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

@media(max-width: 420px) {

    .post-gallery-7,
    .post-gallery-8,
    .post-gallery-9,
    .post-gallery-10 {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 145px;
    }

    .post-gallery-10 {
        grid-auto-rows: 135px;
    }
}

/* Mobile */
@media(max-width: 720px) {
    .post-gallery {
        border-radius: 20px;
        gap: 4px;
    }

    .post-gallery-1 .post-gallery-item {
        height: 360px;
    }

    .post-gallery-2 {
        grid-template-columns: 1fr;
    }

    .post-gallery-2 .post-gallery-item {
        height: 260px;
    }

    .post-gallery-3,
    .post-gallery-4,
    .post-gallery-5,
    .post-gallery-6,
    .post-gallery-7,
    .post-gallery-8,
    .post-gallery-9,
    .post-gallery-10 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .post-gallery-3 .post-gallery-item:first-child,
    .post-gallery-5 .post-gallery-item:first-child,
    .post-gallery-7 .post-gallery-item:first-child,
    .post-gallery-8 .post-gallery-item:first-child,
    .post-gallery-9 .post-gallery-item:first-child,
    .post-gallery-10 .post-gallery-item:first-child {
        grid-column: span 2;
        grid-row: auto;
        height: 280px;
    }

    .post-gallery-3 .post-gallery-item,
    .post-gallery-4 .post-gallery-item,
    .post-gallery-5 .post-gallery-item,
    .post-gallery-6 .post-gallery-item,
    .post-gallery-7 .post-gallery-item,
    .post-gallery-8 .post-gallery-item,
    .post-gallery-9 .post-gallery-item,
    .post-gallery-10 .post-gallery-item {
        height: 170px;
    }
}

@media(max-width: 420px) {
    .post-gallery-1 .post-gallery-item {
        height: 300px;
    }

    .post-gallery-3 .post-gallery-item,
    .post-gallery-4 .post-gallery-item,
    .post-gallery-5 .post-gallery-item,
    .post-gallery-6 .post-gallery-item,
    .post-gallery-7 .post-gallery-item,
    .post-gallery-8 .post-gallery-item,
    .post-gallery-9 .post-gallery-item,
    .post-gallery-10 .post-gallery-item {
        height: 145px;
    }
}

.post-gallery-item {
    cursor: pointer;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)),
        #090b10;
    color: #fff;
}

.video-placeholder span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    font-size: 24px;
}

.video-placeholder strong {
    margin-top: -28px;
    font-size: 13px;
    color: var(--muted);
}

.media-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .92);
}

.media-viewer.active {
    display: grid;
}

.media-viewer-content {
    position: relative;
    z-index: 2;
}

.media-viewer-content img,
.media-viewer-content video {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 18px;
    object-fit: contain;
}

.media-viewer-close {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-nav {
    position: fixed;
    top: 50%;
    z-index: 10002;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-nav.prev {
    left: 24px;
}

.media-viewer-nav.next {
    right: 24px;
}

.media-viewer-nav.hidden {
    display: none;
}

.media-viewer-counter {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10002;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

@media(max-width: 720px) {
    .media-viewer {
        padding: 12px;
    }

    .media-viewer-nav {
        width: 48px;
        height: 48px;
        font-size: 40px;
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .media-viewer-nav.prev {
        left: 18px;
    }

    .media-viewer-nav.next {
        right: 18px;
    }

    .media-viewer-counter {
        bottom: 28px;
    }

    .media-viewer-close {
        top: 14px;
        right: 14px;
    }
}

.feed-loader {
    min-height: 60px;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    opacity: 0;
}

.feed-loader.active {
    opacity: 1;
}

.video-play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .8);
    pointer-events: none;
}

.video-play-badge::before {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(7, 8, 11, .55);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.media-viewer-content video {
    touch-action: auto;
}

.media-viewer-content img {
    touch-action: pan-y;
}

.media-viewer-video {
    pointer-events: auto;
}

.media-viewer-nav {
    pointer-events: auto;
}

.media-viewer .plyr {
    width: min(96vw, 1200px);
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
}

.media-viewer .plyr--video {
    background: #000;
}

.post-menu-wrap {
    position: relative;
    cursor: pointer;
}

.post-menu {
    position: absolute;
    top: calc(100% - 15px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    padding: 8px;
    border-radius: 18px;
    background: #10141d;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
}

.post-menu.active {
    display: grid;
}

.post-menu button {
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.post-menu button:hover {
    background: rgba(255, 255, 255, .07);
}

.post-menu button.danger {
    color: #ff7d7d;
}

.edit-post-existing-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.edit-media-item {
    position: relative;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.edit-media-item img,
.edit-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-media-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 8, 11, .8);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* remove modal  */

.confirm-sheet {
    max-width: 460px;
}

.confirm-text {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 22px;
}

.danger-btn {
    background: rgba(255, 90, 90, .16);
    color: #ff7d7d;
    border: 1px solid rgba(255, 90, 90, .28);
}

.danger-text {
    color: var(--red) !important;
}

/* price input  */

.price-input {
    position: relative;
    display: flex;
}

.price-input .currency {
    position: absolute;
    right: 16px;
    top: 33px;
    transform: translateY(-50%);
    color: #777;
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
}

/* bmw map  */

.bmw-map-page {
    padding: 0;
    min-height: calc(100vh - 120px);
}

.bmw-map-shell {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 18px;
    height: calc(100vh - 190px);
    min-height: 720px;
}

.map-panel {
    position: relative;
    z-index: 2;
    width: auto;
    height: 100%;
    padding: 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.bmw-map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 30px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #07080b;
}

.map-panel-head {
    flex-shrink: 0;
}

.map-panel h2 {
    margin-top: 4px;
    font-size: 30px;
}

.map-filters {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.map-filters> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.map-place-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    padding-right: 4px;
}

.map-info-card {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1000;
    width: 420px;
    max-width: calc(100vw - 56px);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(16, 20, 29, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: none;
}

.map-info-card.active {
    display: block;
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

.leaflet-pane {
    z-index: 40;
}

@media(max-width: 900px) {
    .bmw-map-page {
        min-height: auto;
    }

    .bmw-map-shell {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
        min-height: 0;
        gap: 14px;
    }

    .map-panel {
        order: 1;
        height: auto;
        max-height: none;
        padding: 16px;
        border-radius: 24px;
    }

    .bmw-map {
        order: 2;
        height: 62vh;
        min-height: 430px;
        border-radius: 24px;
    }

    .map-place-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        padding-right: 0;
        scroll-snap-type: x mandatory;
    }

    .map-place-item {
        min-width: 260px;
        scroll-snap-align: start;
    }

    .map-info-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        z-index: 1200;
    }

    .map-info-media {
        height: 150px;
    }
}

@media(max-width: 520px) {
    .bmw-map {
        height: 70vh;
        min-height: 380px;
    }

    .map-panel h2 {
        font-size: 24px;
    }

    .map-filter {
        font-size: 12px;
        height: 40px;
        padding: 0 8px;
    }

    .map-place-item {
        min-width: 230px;
    }
}

.map-filter {
    position: relative;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .55);
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .2s ease;
}

.map-filter:hover {
    background: rgba(255, 255, 255, .075);
    color: #fff;
}

.map-filter.active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .18);
}

.map-filter .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 18px currentColor;
    background: var(--muted);
    color: var(--muted);
}

.map-filter.active .dot.red {
    background: var(--red);
    color: var(--red);
}

.map-filter.active .dot.cyan {
    background: var(--cyan);
    color: var(--cyan);
}

.map-filter.active .dot.blue {
    background: var(--blue);
    color: var(--blue);
}

.map-place-list {
    padding-top: 14px;
    display: grid;
    gap: 12px;
}

.map-place-item {
    width: 100%;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: rgba(255, 255, 255, .045);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.map-place-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .16);
}

.map-place-item.active {
    background: rgba(28, 105, 212, .12);
    border-color: rgba(28, 105, 212, .42);
}

.map-place-item strong {
    display: block;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
}

.map-place-item small {
    display: -webkit-box;
    margin-top: 5px;
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-map-marker {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .06);
    backdrop-filter: blur(2px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 26px;
}

.custom-map-marker.partner {
    border: 2px solid var(--red);
}

.custom-map-marker.meet {
    border: 2px solid var(--cyan);
    background-image: url("/images/icons/meet-location.svg");
}

.custom-map-marker.photo {
    border: 2px solid var(--blue);
    background-image: url("/images/icons/photo-location.svg");
}

.bmw-map-marker-wrap {
    background: transparent;
    border: none;
}

@media(max-width: 900px) {
    .map-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-filter {
        height: 46px;
        justify-content: center;
        padding: 0 10px;
        border-radius: 16px;
        font-size: 13px;
    }

    .map-place-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
    }

    .map-place-item {
        min-width: 260px;
        grid-template-columns: 46px 1fr;
        padding: 12px;
        border-radius: 18px;
    }

    .custom-map-marker {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        background-size: 22px;
    }
}

@media(max-width: 490px) {
    .map-filters {
        grid-template-columns: repeat(1, 1fr);
    }

    .map-filters> :last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.map-place-modal {
    max-width: 620px;
}

.map-modal-media {
    width: 100%;
    border-radius: 24px;
}

.map-modal-body {
    padding: 22px;
}

.map-modal-description {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.map-info-address {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    line-height: 1.45;
}

.map-info-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 18px;
}

@media(max-width: 560px) {
    .map-place-modal {
        max-width: none;
    }

    .map-modal-media {
        height: 210px;
        margin: 0 16px;
        border-radius: 20px;
    }

    .map-modal-body {
        padding: 16px;
    }

    .map-info-actions .btn {
        width: 100%;
    }
}

/* events  */

.events-hero-panel {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.events-hero-panel h2 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 62px);
}

.events-hero-panel p {
    margin-top: 12px;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.55;
}

.events-section {
    margin-top: 28px;
}

.events-section-head {
    margin-bottom: 16px;
}

.events-section-head h2 {
    font-size: 34px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.event-card {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.event-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-status {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(7, 8, 11, .72);
}

.event-status.upcoming {
    color: var(--cyan);
}

.event-status.past {
    color: var(--muted);
}

.event-content {
    padding: 20px;
}

.event-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.event-content h3 {
    margin-top: 12px;
    font-size: 24px;
}

.event-content p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.event-card-actions {
    margin-top: 18px;
}

.event-modal-sheet {
    max-width: 760px;
}

.event-modal-cover {
    height: 320px;
    margin: 0 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .06) center/cover no-repeat;
}

.event-modal-body {
    padding: 22px;
}

.event-modal-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 800;
}

.event-countdown {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(28, 105, 212, .12);
    border: 1px solid rgba(28, 105, 212, .25);
    font-weight: 900;
}

.event-modal-body p {
    margin-top: 16px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.55;
}

.event-modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.event-modal-gallery img,
.event-modal-gallery video {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
}

.event-modal-actions {
    margin-top: 18px;
}

@media(max-width: 980px) {
    .events-hero-panel {
        flex-direction: column;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-modal-media-item {
    position: relative;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.event-modal-media-item img,
.event-modal-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#eventCommentsList {
    margin-top: 1rem;
}

/* challenges */

.challenges-list {
    display: grid;
    gap: 22px;
}

.challenge-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.challenge-image {
    min-height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.challenge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(7, 8, 11, .75);
    font-weight: 900;
}

.challenge-status.active {
    color: var(--green);
}

.challenge-status.past {
    color: var(--muted);
}

.challenge-content {
    padding: 26px;
}

.challenge-main-info h3 {
    font-size: 34px;
}

.challenge-main-info p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.challenge-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.challenge-details-grid div,
.challenge-modal-stats div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.challenge-details-grid span,
.challenge-modal-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.challenge-details-grid strong,
.challenge-modal-stats strong {
    display: block;
    margin-top: 6px;
    color: #fff;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.challenge-winner-line {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    font-weight: 900;
}

.challenge-modal-sheet {
    max-width: 900px;
}

.challenge-modal-image {
    height: 320px;
    margin: 0 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .06) center/cover no-repeat;
}

.challenge-modal-info {
    padding: 22px;
}

.challenge-modal-info p {
    color: var(--muted);
    line-height: 1.55;
}

.challenge-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.challenge-upload-box {
    display: grid;
    gap: 12px;
    margin: 0 22px 22px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(28, 105, 212, .1);
    border: 1px solid rgba(28, 105, 212, .25);
}

.challenge-upload-box p {
    color: var(--muted);
    font-size: 13px;
}

.challenge-submissions {
    padding: 0 22px 26px;
}

.submissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.submission-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
}

.submission-card.winner {
    border-color: rgba(255, 215, 0, .45);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, .18);
}

.submission-card.mine {
    border-color: rgba(28, 105, 212, .5);
}

.submission-image {
    position: relative;
    height: 180px;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.submission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-body {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.submission-body span {
    color: var(--muted);
    font-weight: 800;
}

.vote-btn.active {
    background: #fff;
    color: #07080b;
}

@media(max-width: 900px) {
    .challenge-card {
        grid-template-columns: 1fr;
    }

    .challenge-details-grid,
    .challenge-modal-stats,
    .submissions-grid {
        grid-template-columns: 1fr;
    }

    .challenge-modal-image {
        height: 220px;
        margin: 0 16px;
    }

    .challenge-actions {
        flex-direction: column;
    }
}

.vote-btn.danger {
    background: rgba(255, 90, 90, .14);
    color: #ff7d7d;
    border: 1px solid rgba(255, 90, 90, .28);
}

.challenge-upload-preview {
    display: none;
    position: relative;
    height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.challenge-upload-preview.active {
    display: block;
}

.challenge-upload-preview img,
.challenge-upload-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.challenge-upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 8, 11, .78);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.challenge-upload-type {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(7, 8, 11, .7);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* mobile menu  */

#mobileMenuModal {
    z-index: 10000;
}

.mobile-menu-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    max-height: 85vh;

    background: #0f131a;

    border-radius: 32px 32px 0 0;

    overflow: auto;

    transform: translateY(100%);
    transition: transform .28s ease;

    padding: 0;
}

#mobileMenuModal.active .mobile-menu-sheet {
    transform: translateY(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px;
}

.mobile-menu-head h2 {
    margin: 0;

    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.mobile-menu-head button {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    color: #fff;

    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;

    padding: 0 20px 30px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;

    min-height: 58px;

    padding: 0 18px;

    color: #fff;
    text-decoration: none;
    font-weight: 800;

    transition: .2s;

    border-bottom: 1px solid var(--line);
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, .06);
}

.club-preview-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: var(--card-2);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
    transition: .2s ease;
}

.club-preview-card:hover {
    transform: translateY(-2px);
    border: 1px solid var(--blue);
}

.club-preview-image {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

.club-preview-content span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.club-preview-content strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.25;
}

.club-preview-content small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .65);
    font-weight: 800;
}

/* AI Photographer  */

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.ai-tool-card {
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
}

.ai-tool-card.disabled {
    opacity: .45;
    pointer-events: none;
}

.ai-tool-card.disabled .ai-tool-cover {
    filter: grayscale(1);
}

.ai-tool-cover {
    height: 260px;
    background: rgba(255, 255, 255, .06) center/cover no-repeat;
}

.ai-tool-body {
    padding: 24px;
}

.ai-tool-body span,
.ai-generation-body span {
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
}

.ai-tool-body h2 {
    margin-top: 8px;
    font-size: 34px;
}

.ai-tool-body p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.ai-photo-hero {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.ai-photo-hero h2 {
    margin-top: 18px;
    font-size: clamp(40px, 7vw, 76px);
}

.ai-photo-hero p {
    margin-top: 12px;
    color: var(--muted);
    max-width: 760px;
    line-height: 1.55;
}

.ai-limit-card {
    min-width: 180px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(28, 105, 212, .12);
    border: 1px solid rgba(28, 105, 212, .3);
    align-self: end;
}

.ai-limit-card strong {
    display: block;
    font-size: 48px;
}

.ai-limit-card span {
    color: var(--muted);
    font-weight: 900;
}

.ai-photo-workspace {
    margin-top: 24px;
    padding: 0;
}

.ai-photo-form {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
}

.ai-upload-zone,
.ai-template-section {
    padding: 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    height: max-content;
}

.ai-upload-zone .image-upload-preview {
    height: max-content;
    min-height: 200px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    border: 2px dashed var(--muted);
}

.ai-template-section h3 {
    font-size: 28px;
}

.ai-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
    overflow: auto;
    max-height: 400px;
    height: 100%;
}

.ai-template-grid::-webkit-scrollbar {
    width: 4px;
}

.ai-template-grid::-webkit-scrollbar-track {
    background: transparent;
}

.ai-template-grid::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, .8);
    border-radius: 999px;
}

.ai-template-card {
    display: block;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
}

.ai-template-card input {
    display: none;
}

.ai-template-card:has(input:checked) {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(28, 105, 212, .18);
}

.ai-template-cover {
    height: 140px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06) center/cover no-repeat;
    margin-bottom: 12px;
}

.ai-template-card strong {
    display: block;
    color: #fff;
}

.ai-template-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.ai-template-section .auth-submit {
    margin-top: 18px;
    width: 100%;
}

.ai-generations-section {
    margin-top: 30px;
    padding: 0;
}

.ai-generations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ai-generation-card {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.ai-generation-image {
    height: 260px;
    cursor: pointer;
}

.ai-generation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-generation-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.ai-generation-body .btn-primary {
    width: 100%;
}

@media(max-width: 980px) {

    .ai-tools-grid,
    .ai-photo-form,
    .ai-generations-grid {
        grid-template-columns: 1fr;
    }

    .ai-photo-hero {
        flex-direction: column;
    }

    .ai-template-grid {
        grid-template-columns: 1fr;
    }

    .ai-limit-card {
        align-self: center;
        text-align: center;
    }
}

.ai-generation-card.is-processing .ai-generation-image img {
    filter: grayscale(1) blur(7px);
    transform: scale(1.04);
    animation: aiProcessingPulse 1.8s ease-in-out infinite;
}

.ai-generation-card.is-processing .ai-generation-image {
    position: relative;
    overflow: hidden;
}

.ai-generation-card.is-processing .ai-generation-image::after {
    content: "Генерация...";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 950;
    font-size: 18px;
    background: rgba(7, 8, 11, .28);
    backdrop-filter: blur(2px);
}

@keyframes aiProcessingPulse {

    0%,
    100% {
        opacity: .72;
        transform: scale(1.04);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* news  */

.news-hero {
    padding: 150px 0 70px;
    background: radial-gradient(circle at top, rgba(28, 105, 212, .25), transparent 45%), #07080b;
}

.news-hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 7vw, 86px);
}

.news-hero p {
    margin-top: 16px;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 18px;
}

.news-catalog {
    padding: 60px 0 90px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
}

.news-card-image {
    display: block;
    height: 230px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 22px;
}

.news-card-body time,
.news-article-head time {
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
}

.news-card-body h2 {
    margin-top: 10px;
    font-size: 25px;
    line-height: 1.15;
}

.news-card-body h2 a {
    color: #fff;
    text-decoration: none;
}

.news-card-body p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.45;
}

.news-pagination {
    margin-top: 34px;
}

.news-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.news-pagination a,
.news-pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--line);
}

.news-pagination .active a {
    background: var(--blue);
}

.news-article {
    padding: 140px 0 90px;
}

.news-article img {
    width: 100%;
    border-radius: 25px;
    margin-top: 1rem;
}

.news-back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 900;
}

.news-article-head h1 {
    margin-top: 14px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: .95;
}

.news-article-head p {
    margin-top: 20px;
    max-width: 820px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 19px;
}

.news-main-image {
    margin: 34px 0;
    border-radius: 34px;
    overflow: hidden;
}

.news-main-image img {
    width: 100%;
    display: block;
}

.news-content {
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.75;
}

.news-content h2 {
    word-wrap: break-word;
    font-size: 2.2rem;
    margin-top: 34px;
    color: #fff;
    line-height: 1.15;
}

.news-content h3 {
    word-wrap: break-word;
    font-size: 1.9rem;
    margin-top: 34px;
    color: #fff;
    line-height: 1.15;
}

.news-content ul {
    margin-left: 1rem;
}

.news-content p {
    margin-top: 18px;
}

.news-content a {
    color: var(--cyan);
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.news-gallery figure {
    margin: 0;
}

.news-gallery img {
    width: 100%;
    border-radius: 24px;
}

.news-gallery figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

@media(max-width: 900px) {

    .news-grid,
    .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-hero,
    .news-article {
        padding-top: 110px;
    }
}

.news-content-image {
    width: 100%;
    border-radius: 25px;
}

.model-hero-grid .breadcrumbs {
    margin-bottom: 1rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: end;
}

.breadcrumbs li:not(:last-child) {
    color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
    display: inline-block;
    margin: 0 0.25rem;
    content: "/";
}

.related-news {
    padding-top: 0;
}

.related-news h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-news-card {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
}

.related-news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.related-news-card span {
    display: block;
    padding: 16px 18px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.related-news-card strong {
    display: block;
    padding: 8px 18px 18px;
    font-size: 18px;
    line-height: 1.25;
}

@media(max-width: 800px) {
    .related-news-grid {
        grid-template-columns: 1fr;
    }
}

/* legal  */

.legal-page {
    background: #07080b;
}

.legal-hero {
    padding: 145px 0 55px;
    background: radial-gradient(circle at top, rgba(28, 105, 212, .22), transparent 42%);
}

.legal-hero h1 {
    margin-top: 14px;
    font-size: clamp(40px, 7vw, 72px);
}

.legal-hero p {
    margin-top: 16px;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 18px;
}

.legal-content-section {
    padding: 40px 0 90px;
}

.legal-content {
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    color: rgba(255, 255, 255, .82);
    line-height: 1.75;
}

.legal-content h2 {
    margin-top: 30px;
    color: #fff;
    font-size: 28px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-top: 12px;
}

.legal-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.legal-social-grid a {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    transition: .2s;
}

.legal-social-grid a:hover {
    background: rgba(255, 255, 255, .1);
}

@media(max-width: 700px) {
    .legal-social-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 22px;
    }
}

.legal-content ul {
    margin-left: 1rem;
}

/* models */

.models-hero,
.model-detail-hero {
    padding: 145px 0 70px;
    background: radial-gradient(circle at top, rgba(28, 105, 212, .22), transparent 42%), #07080b;
}

.models-hero h1,
.model-detail-hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
}

.models-hero p,
.model-detail-hero p {
    margin-top: 16px;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 18px;
}

.models-catalog,
.model-detail-content {
    padding: 60px 0 90px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.model-card {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
}

.model-card-image {
    height: 230px;
    overflow: hidden;
}

.model-card-image img,
.model-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-card-body {
    padding: 22px;
}

.model-card-body span {
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
}

.model-card-body h2 {
    margin-top: 8px;
    font-size: 28px;
}

.model-card-body p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.45;
}

.model-hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 34px;
    align-items: center;
}

.model-hero-image {
    height: 320px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.model-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.model-spec-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

.model-spec-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.model-spec-card strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    line-height: 1.4;
}

.model-description {
    margin-top: 36px;
    padding: 32px;
    border-radius: 30px;
    background: linear-gradient(180deg, #151a25, #10141d);
    border: 1px solid var(--line);
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.75;
}

.model-description h2,
.model-description h3 {
    color: var(--white);
    line-height: 1.15;
}

.model-info-columns h2 {
    font-size: 2rem;
    color: var(--white);
}

.model-description p {
    margin-top: 18px;
}

.model-info-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.model-info-columns section {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.6;
}

@media(max-width: 900px) {

    .models-grid,
    .model-hero-grid,
    .model-specs-grid,
    .model-info-columns {
        grid-template-columns: 1fr;
    }

    .model-hero-image {
        height: 240px;
    }

    .model-detail-content {
        padding: 0;
    }
}