/*
|--------------------------------------------------------------------------
| Скованные Троном — основной стиль
|--------------------------------------------------------------------------
*/

:root {
    --color-background: #080c12;
    --color-background-soft: #0d131d;
    --color-surface: #121a26;
    --color-surface-light: #182231;
    --color-surface-glass: rgba(14, 21, 31, 0.82);

    --color-text: #f3f5f8;
    --color-text-soft: #c4ccd7;
    --color-muted: #8792a2;

    --color-accent: #b72f55;
    --color-accent-light: #dd6b89;
    --color-accent-dark: #741d39;

    --color-success: #55b58c;
    --color-warning: #d1a45e;
    --color-danger: #d75c68;
    --color-info: #6f91c5;

    --color-line: rgba(255, 255, 255, 0.08);
    --color-line-strong: rgba(255, 255, 255, 0.15);

    --shadow-small:
        0 14px 36px rgba(0, 0, 0, 0.22);

    --shadow-large:
        0 30px 90px rgba(0, 0, 0, 0.42);

    --header-height: 76px;
    --content-width: 1280px;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;
    --radius-pill: 999px;

    --transition-fast: 160ms ease;
    --transition-normal: 260ms ease;
}

/*
|--------------------------------------------------------------------------
| Сброс стандартных стилей
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--color-background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(126, 31, 59, 0.13),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #0b1018 0%,
            var(--color-background) 36%,
            #070a0f 100%
        );

    color: var(--color-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-top: 0;
    color: var(--color-text-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-text);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

/*
|--------------------------------------------------------------------------
| Доступность
|--------------------------------------------------------------------------
*/

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;

    padding: 11px 16px;

    border-radius: var(--radius-pill);
    background: var(--color-text);
    color: var(--color-background);

    font-size: 14px;
    font-weight: 800;

    transform: translateY(-150%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(221, 107, 137, 0.75);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Общие контейнеры
|--------------------------------------------------------------------------
*/

.site-main {
    min-height: calc(100vh - var(--header-height));
}

.container {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin-right: auto;
    margin-left: auto;
}

.section {
    padding: 88px 0;
}

.section--small {
    padding: 58px 0;
}

.section--dark {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent
        );
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;

    margin-bottom: 30px;
}

.section-heading__text {
    max-width: 760px;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    max-width: 680px;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #e0a0b1;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--color-accent-light);
    box-shadow:
        0 0 18px rgba(221, 107, 137, 0.72);

    content: "";
}

/*
|--------------------------------------------------------------------------
| Шапка
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;

    height: var(--header-height);

    border-bottom: 1px solid var(--color-line);

    background:
        rgba(8, 12, 18, 0.86);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(183, 47, 85, 0.55),
            transparent
        );

    content: "";
    opacity: 0.45;
}

.site-header__inner {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    height: 100%;
    margin-right: auto;
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-brand__mark,
.footer-brand__mark {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(221, 107, 137, 0.3);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(183, 47, 85, 0.26),
            rgba(116, 29, 57, 0.11)
        );

    color: #f3bdca;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.04em;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.25);
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand__text small {
    margin-bottom: 5px;

    color: var(--color-accent-light);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.site-brand__text strong {
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
}

.navigation-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 13px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: #9ca7b6;

    font-size: 13px;
    font-weight: 750;

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.navigation-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
}

.navigation-link.is-active {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
}

.navigation-link.is-active::after {
    position: absolute;
    right: 28%;
    bottom: 3px;
    left: 28%;

    height: 2px;

    border-radius: var(--radius-pill);
    background: var(--color-accent-light);

    content: "";
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-action-link,
.header-action-button,
.header-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

    border-radius: var(--radius-pill);

    font-size: 13px;
    font-weight: 800;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.header-action-link {
    border: 1px solid var(--color-line-strong);
    background: rgba(255, 255, 255, 0.025);
}

.header-action-button {
    border: 1px solid rgba(221, 107, 137, 0.35);
    background:
        linear-gradient(
            135deg,
            var(--color-accent),
            var(--color-accent-dark)
        );

    box-shadow:
        0 10px 28px rgba(116, 29, 57, 0.28);
}

.header-action-link:hover,
.header-action-button:hover,
.header-profile:hover {
    transform: translateY(-1px);
}

.header-profile {
    gap: 9px;
    padding-left: 7px;

    border: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.035);
}

.header-profile__avatar {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: var(--color-accent-dark);
    color: #ffffff;

    font-size: 12px;
    font-weight: 900;
}

.header-profile__name {
    max-width: 130px;
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Кнопка мобильного меню
|--------------------------------------------------------------------------
*/

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;
    padding: 11px;

    border: 1px solid var(--color-line-strong);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;
    margin: 4px 0;

    border-radius: var(--radius-pill);
    background: var(--color-text);

    transition:
        transform var(--transition-normal),
        opacity var(--transition-fast);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/*
|--------------------------------------------------------------------------
| Мобильное меню
|--------------------------------------------------------------------------
*/

.mobile-navigation {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;

    visibility: hidden;
    overflow-y: auto;

    background:
        rgba(7, 10, 15, 0.97);

    opacity: 0;
    transform: translateY(-10px);

    transition:
        opacity var(--transition-normal),
        transform var(--transition-normal),
        visibility var(--transition-normal);
}

.mobile-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-navigation__inner {
    width: min(calc(100% - 32px), 680px);
    margin: 0 auto;
    padding: 28px 0 110px;
}

.mobile-navigation__link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 0 18px;

    border-bottom: 1px solid var(--color-line);

    color: var(--color-text-soft);

    font-size: 17px;
    font-weight: 750;
}

.mobile-navigation__link.is-active {
    color: #ffffff;
}

.mobile-navigation__link.is-active span:last-child {
    color: var(--color-accent-light);
}

.mobile-navigation__account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 24px;
}

.mobile-navigation__account a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 15px;

    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);

    background: rgba(255, 255, 255, 0.035);

    font-size: 14px;
    font-weight: 800;
}

.mobile-navigation__account a:last-child {
    border-color: rgba(221, 107, 137, 0.34);
    background: var(--color-accent-dark);
}

/*
|--------------------------------------------------------------------------
| Уведомления
|--------------------------------------------------------------------------
*/

.flash-container {
    position: fixed;
    z-index: 1200;
    top: calc(var(--header-height) + 16px);
    right: 18px;

    display: grid;
    gap: 10px;

    width: min(390px, calc(100% - 36px));
}

.flash-message {
    display: grid;
    grid-template-columns: 34px 1fr 30px;
    align-items: center;
    gap: 10px;

    padding: 13px 14px;

    border: 1px solid var(--color-line-strong);
    border-radius: 16px;

    background: rgba(17, 24, 35, 0.95);

    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
}

.flash-message__icon {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 900;
}

.flash-message__text {
    color: var(--color-text-soft);

    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.flash-message__close {
    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: transparent;
    color: var(--color-muted);

    font-size: 20px;
    cursor: pointer;
}

.flash-message--success .flash-message__icon {
    background: rgba(85, 181, 140, 0.15);
    color: var(--color-success);
}

.flash-message--error .flash-message__icon {
    background: rgba(215, 92, 104, 0.15);
    color: var(--color-danger);
}

.flash-message--warning .flash-message__icon {
    background: rgba(209, 164, 94, 0.15);
    color: var(--color-warning);
}

.flash-message--info .flash-message__icon {
    background: rgba(111, 145, 197, 0.15);
    color: var(--color-info);
}

/*
|--------------------------------------------------------------------------
| Общие кнопки
|--------------------------------------------------------------------------
*/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    border-color: rgba(221, 107, 137, 0.3);

    background:
        linear-gradient(
            135deg,
            var(--color-accent),
            var(--color-accent-dark)
        );

    color: #ffffff;

    box-shadow:
        0 14px 34px rgba(116, 29, 57, 0.28);
}

.button--secondary {
    border-color: var(--color-line-strong);
    background: rgba(255, 255, 255, 0.045);
    color: var(--color-text);
}

.button--ghost {
    border-color: var(--color-line);
    background: transparent;
    color: var(--color-text-soft);
}

.button--wide {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Карточки
|--------------------------------------------------------------------------
*/

.card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            180deg,
            rgba(22, 31, 44, 0.92),
            rgba(13, 19, 29, 0.96)
        );

    box-shadow: var(--shadow-small);
}

.card__body {
    padding: 26px;
}

.card__header {
    padding: 24px 26px 0;
}

.card__footer {
    padding: 0 26px 24px;
}

/*
|--------------------------------------------------------------------------
| Формы
|--------------------------------------------------------------------------
*/

.form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    color: var(--color-text-soft);

    font-size: 13px;
    font-weight: 750;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;

    border: 1px solid var(--color-line-strong);
    border-radius: 14px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);
    color: var(--color-text);

    font-size: 15px;
    font-weight: 600;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

textarea.form-control {
    min-height: 150px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.form-control::placeholder {
    color: #687383;
}

.form-control:focus {
    border-color: rgba(221, 107, 137, 0.58);
    background: rgba(255, 255, 255, 0.055);

    box-shadow:
        0 0 0 4px rgba(183, 47, 85, 0.1);
}

.form-error {
    color: #f08b96;

    font-size: 12px;
    font-weight: 700;
}

.form-help {
    color: var(--color-muted);

    font-size: 12px;
    line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| Временная страница
|--------------------------------------------------------------------------
*/

.temporary-page {
    width: min(
        calc(100% - 40px),
        760px
    );

    margin: 0 auto;
    padding: 110px 0;
}

.temporary-badge {
    display: inline-flex;
    align-items: center;

    padding: 8px 13px;

    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);

    background: rgba(255, 255, 255, 0.04);
    color: #dda0b0;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.temporary-page h1 {
    margin: 22px 0 16px;
}

.temporary-page p {
    max-width: 620px;

    color: var(--color-text-soft);

    font-size: 17px;
    line-height: 1.75;
}

.temporary-status {
    margin-top: 34px;
    padding: 22px;

    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            180deg,
            rgba(21, 29, 42, 0.9),
            rgba(13, 19, 28, 0.94)
        );
}

.temporary-status strong {
    display: block;
    margin-bottom: 8px;
}

.temporary-status code {
    color: #e6a9b8;

    font-size: 13px;
    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| Подвал
|--------------------------------------------------------------------------
*/

.site-footer {
    border-top: 1px solid var(--color-line);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            rgba(0, 0, 0, 0.12)
        );
}

.site-footer__inner {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;
    padding: 46px 0 34px;

    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    align-items: start;
    gap: 46px;
}

.site-footer__brand p {
    max-width: 420px;
    margin: 18px 0 0;

    color: var(--color-muted);

    font-size: 13px;
    line-height: 1.65;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand__text {
    display: flex;
    flex-direction: column;
}

.footer-brand__text strong {
    font-size: 15px;
    font-weight: 850;
}

.footer-brand__text small {
    margin-top: 4px;

    color: var(--color-accent-light);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 24px;
}

.site-footer__navigation a {
    color: var(--color-muted);

    font-size: 13px;
    font-weight: 700;

    transition: color var(--transition-fast);
}

.site-footer__navigation a:hover {
    color: var(--color-text);
}

.site-footer__account {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;

    text-align: right;
}

.site-footer__account span {
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer__account a {
    color: #e2a5b4;

    font-size: 13px;
    font-weight: 800;
}

.site-footer__bottom {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;
    padding: 17px 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid var(--color-line);

    color: #697484;

    font-size: 11px;
    font-weight: 650;
}

/*
|--------------------------------------------------------------------------
| Нижняя мобильная панель
|--------------------------------------------------------------------------
*/

.mobile-tabbar {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Планшеты
|--------------------------------------------------------------------------
*/

@media (max-width: 1120px) {
    :root {
        --header-height: 70px;
    }

    .desktop-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .site-footer__inner {
        grid-template-columns: 1fr auto;
    }

    .site-footer__navigation {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Телефоны
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
        font-size: 15px;
    }

    .container,
    .site-header__inner,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(
            calc(100% - 24px),
            var(--content-width)
        );
    }

    .section {
        padding: 58px 0;
    }

    .section--small {
        padding: 40px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .site-brand__mark {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .site-brand__text strong {
        font-size: 13px;
    }

    .header-action-link,
    .header-action-button,
    .header-profile {
        display: none;
    }

    .flash-container {
        top: calc(var(--header-height) + 10px);
        right: 12px;
        left: 12px;

        width: auto;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 34px;
    }

    .site-footer__account {
        align-items: flex-start;
        text-align: left;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;

        padding-bottom: 22px;
    }

    .mobile-tabbar {
        position: fixed;
        z-index: 950;
        right: 0;
        bottom: 0;
        left: 0;

        display: grid;
        grid-template-columns: repeat(5, 1fr);

        min-height: 68px;
        padding:
            6px
            max(7px, env(safe-area-inset-right))
            calc(6px + env(safe-area-inset-bottom))
            max(7px, env(safe-area-inset-left));

        border-top: 1px solid var(--color-line-strong);

        background: rgba(8, 12, 18, 0.94);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-tabbar__item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;

        min-width: 0;

        border-radius: 12px;

        color: #778292;

        transition:
            color var(--transition-fast),
            background var(--transition-fast);
    }

    .mobile-tabbar__item.is-active {
        background: rgba(183, 47, 85, 0.1);
        color: #efb3c2;
    }

    .mobile-tabbar__icon {
        font-size: 17px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-tabbar__label {
        font-size: 9px;
        font-weight: 750;
        line-height: 1;
    }

    .temporary-page {
        width: min(calc(100% - 24px), 760px);
        padding: 74px 0;
    }

    .temporary-page p {
        font-size: 15px;
    }
}

/*
|--------------------------------------------------------------------------
| Маленькие телефоны
|--------------------------------------------------------------------------
*/

@media (max-width: 430px) {
    .site-brand__text small {
        display: none;
    }

    .site-brand__text strong {
        max-width: 170px;
        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-navigation__account {
        grid-template-columns: 1fr;
    }

    .flash-message {
        grid-template-columns: 30px 1fr 28px;
        padding: 11px 12px;
    }

    .card__body {
        padding: 20px;
    }

    .button {
        min-height: 46px;
        padding-right: 17px;
        padding-left: 17px;
    }
}

/*
|--------------------------------------------------------------------------
| Уменьшение анимаций
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/*
|--------------------------------------------------------------------------
| Состояния JavaScript
|--------------------------------------------------------------------------
*/

.site-header {
    transition:
        transform var(--transition-normal),
        background var(--transition-normal),
        box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
    background: rgba(7, 11, 17, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.flash-message {
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.flash-message.is-closing {
    opacity: 0;
    transform: translateX(24px);
}

body.dialog-open {
    overflow: hidden;
}
```css
/* ==========================================================================
   Telegram authorization — «Скованные Троном»
   ========================================================================== */

.telegram-login-page,
.telegram-access {
    position: relative;
    isolation: isolate;

    display: grid;
    min-height: calc(100svh - 150px);
    overflow: hidden;

    color: #f5f7fb;

    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(141, 42, 73, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 75%,
            rgba(71, 91, 139, 0.11),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #080c13 0%,
            #0d121b 52%,
            #090d14 100%
        );
}

.telegram-login-page::before,
.telegram-access::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: 0.3;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 54px 54px;

    pointer-events: none;
}

.telegram-login-page::after,
.telegram-access::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            to bottom,
            rgba(6, 9, 14, 0.12),
            rgba(6, 9, 14, 0.76)
        );

    pointer-events: none;
}

/* ==========================================================================
   Login page
   ========================================================================== */

.telegram-login-page__glow {
    position: absolute;
    top: 4%;
    left: 50%;
    z-index: -1;

    width: min(700px, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(142, 42, 75, 0.23),
            rgba(142, 42, 75, 0.05) 45%,
            transparent 72%
        );

    filter: blur(12px);
    transform: translateX(-50%);

    pointer-events: none;
}

.telegram-login-page__container,
.telegram-access__container {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 64px 20px;

    display: grid;
    place-items: center;
}

/* ==========================================================================
   Main cards
   ========================================================================== */

.telegram-login-card,
.telegram-access__card {
    position: relative;

    width: min(100%, 590px);
    padding: clamp(28px, 5vw, 48px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 31, 43, 0.97),
            rgba(12, 17, 25, 0.97)
        );

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.telegram-login-card::before,
.telegram-access__card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(228, 137, 163, 0.75),
            transparent
        );
}

.telegram-login-card::after,
.telegram-access__card::after {
    content: "";

    position: absolute;
    top: -110px;
    right: -110px;

    width: 260px;
    height: 260px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(144, 38, 69, 0.16),
            transparent 70%
        );

    pointer-events: none;
}

/* ==========================================================================
   Telegram emblem
   ========================================================================== */

.telegram-login-card__emblem,
.telegram-access__icon {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 76px;
    height: 76px;
    margin: 0 auto 24px;

    border: 1px solid rgba(81, 174, 239, 0.32);
    border-radius: 23px;

    color: #67baf1;

    background:
        linear-gradient(
            145deg,
            rgba(55, 151, 219, 0.2),
            rgba(55, 151, 219, 0.07)
        );

    box-shadow:
        0 18px 44px rgba(30, 127, 194, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.telegram-login-card__emblem svg,
.telegram-access__icon svg {
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.telegram-login-card__eyebrow,
.telegram-access__eyebrow {
    margin: 0 0 10px;

    color: #d58ca3;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.telegram-login-card__title,
.telegram-access__title {
    margin: 0;

    color: #f8f9fc;

    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-align: center;
    text-wrap: balance;
}

.telegram-login-card__description,
.telegram-access__welcome {
    max-width: 480px;
    margin: 18px auto 0;

    color: #aeb8c6;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    text-wrap: pretty;
}

/* ==========================================================================
   Telegram widget
   ========================================================================== */

.telegram-login-card__widget {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 58px;
    margin-top: 30px;
}

.telegram-login-card__widget iframe {
    max-width: 100% !important;
}

.telegram-login-card__noscript {
    margin: 0;
    padding: 14px 16px;

    border: 1px solid rgba(224, 119, 119, 0.24);
    border-radius: 14px;

    color: #efb0b0;
    background: rgba(132, 42, 42, 0.13);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.telegram-login-card__notice,
.telegram-access__notice {
    margin-top: 24px;
    padding: 15px 17px;

    border: 1px solid transparent;
    border-radius: 15px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

.telegram-login-card__notice--error,
.telegram-access__notice--error {
    border-color: rgba(225, 107, 119, 0.28);

    color: #f1b6bd;

    background:
        linear-gradient(
            135deg,
            rgba(136, 39, 51, 0.17),
            rgba(92, 26, 38, 0.1)
        );
}

.telegram-login-card__notice--success {
    border-color: rgba(89, 195, 143, 0.28);

    color: #ade5c9;

    background:
        linear-gradient(
            135deg,
            rgba(34, 119, 77, 0.18),
            rgba(25, 78, 55, 0.1)
        );
}

.telegram-access__notice--warning {
    border-color: rgba(221, 172, 87, 0.3);

    color: #ead09f;

    background:
        linear-gradient(
            135deg,
            rgba(136, 95, 31, 0.18),
            rgba(91, 61, 23, 0.1)
        );
}

/* ==========================================================================
   Channel blocks
   ========================================================================== */

.telegram-login-card__channel,
.telegram-access__channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 28px;
    padding: 17px 18px;

    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );
}

.telegram-login-card__channel-copy {
    display: grid;
    gap: 4px;
}

.telegram-login-card__channel-label,
.telegram-access__channel-label {
    color: #7f8b9b;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.telegram-login-card__channel-name,
.telegram-access__channel-name {
    color: #f1f4f8;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.telegram-login-card__channel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 15px;

    border: 1px solid rgba(73, 168, 231, 0.26);
    border-radius: 12px;

    color: #8bcdf5;

    background: rgba(55, 151, 219, 0.09);

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.telegram-login-card__channel-link:hover {
    border-color: rgba(87, 184, 247, 0.52);

    color: #c0e6ff;
    background: rgba(55, 151, 219, 0.16);

    transform: translateY(-2px);
}

/* ==========================================================================
   Login steps
   ========================================================================== */

.telegram-login-card__steps {
    display: grid;
    gap: 10px;

    margin: 26px 0 0;
    padding: 0;

    list-style: none;
}

.telegram-login-card__steps li {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 50px;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;

    color: #b9c2ce;
    background: rgba(255, 255, 255, 0.021);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.telegram-login-card__steps span {
    display: grid;
    flex: 0 0 31px;
    place-items: center;

    width: 31px;
    height: 31px;

    border: 1px solid rgba(209, 120, 147, 0.25);
    border-radius: 10px;

    color: #db93a9;
    background: rgba(131, 40, 67, 0.1);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.telegram-login-card__privacy,
.telegram-access__hint {
    max-width: 470px;
    margin: 24px auto 0;

    color: #717d8d;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
}

/* ==========================================================================
   Subscription page
   ========================================================================== */

.telegram-access__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(131, 39, 69, 0.14),
            transparent 42%
        );

    pointer-events: none;
}

.telegram-access__channel {
    display: grid;
    justify-content: center;
    gap: 5px;

    text-align: center;
}

.telegram-access__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 24px;
}

.telegram-access__form {
    display: contents;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.telegram-access .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.telegram-access .button:hover {
    transform: translateY(-2px);
}

.telegram-access .button:active {
    transform: translateY(0);
}

.telegram-access .button--telegram {
    border-color: rgba(71, 170, 235, 0.32);

    color: #eef9ff;

    background:
        linear-gradient(
            135deg,
            #258ccc,
            #1d73ae
        );

    box-shadow:
        0 13px 30px rgba(28, 119, 179, 0.22);
}

.telegram-access .button--telegram:hover {
    box-shadow:
        0 17px 36px rgba(28, 119, 179, 0.32);
}

.telegram-access .button--primary {
    border-color: rgba(207, 113, 141, 0.3);

    color: #fff5f8;

    background:
        linear-gradient(
            135deg,
            #8f2f4d,
            #6f203a
        );

    box-shadow:
        0 13px 30px rgba(111, 32, 58, 0.25);
}

.telegram-access .button--primary:hover {
    box-shadow:
        0 17px 36px rgba(126, 37, 67, 0.34);
}

.telegram-access .button:focus-visible,
.telegram-login-card__channel-link:focus-visible {
    outline: 3px solid rgba(104, 190, 244, 0.35);
    outline-offset: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
    .telegram-login-page,
    .telegram-access {
        min-height: calc(100svh - 110px);
    }

    .telegram-login-page__container,
    .telegram-access__container {
        padding: 34px 14px;
    }

    .telegram-login-card,
    .telegram-access__card {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .telegram-login-card__emblem,
    .telegram-access__icon {
        width: 66px;
        height: 66px;
        margin-bottom: 20px;
        border-radius: 20px;
    }

    .telegram-login-card__emblem svg,
    .telegram-access__icon svg {
        width: 36px;
        height: 36px;
    }

    .telegram-login-card__title,
    .telegram-access__title {
        font-size: clamp(30px, 10vw, 40px);
    }

    .telegram-login-card__description,
    .telegram-access__welcome {
        font-size: 15px;
        line-height: 1.65;
    }

    .telegram-login-card__channel {
        align-items: stretch;
        flex-direction: column;
    }

    .telegram-login-card__channel-link {
        width: 100%;
        min-height: 44px;
    }

    .telegram-access__actions {
        grid-template-columns: 1fr;
    }

    .telegram-access .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .telegram-login-page__container,
    .telegram-access__container {
        padding-inline: 10px;
    }

    .telegram-login-card,
    .telegram-access__card {
        padding-inline: 15px;
        border-radius: 19px;
    }

    .telegram-login-card__steps li {
        align-items: flex-start;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .telegram-login-card__channel-link,
    .telegram-access .button {
        transition: none;
    }

    .telegram-login-card__channel-link:hover,
    .telegram-access .button:hover {
        transform: none;
    }
}
.header-profile__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}