:root {
    --fl-ink: #231936;
    --fl-muted: #665b76;
    --fl-accent: #602bd6;
    --fl-accent-hover: #4e1daf;
    --fl-line: #e9e1f1;
    --fl-paper: #fcfafc;
    --fl-lilac: #f1e8ff;
    --fl-font: "Inter", "Segoe UI", system-ui, sans-serif;
    --fl-heading-1: clamp(1.625rem, 1.4375rem + .75vw, 2rem);
    --fl-heading-2: clamp(1.25rem, 1.125rem + .5vw, 1.625rem);
    --fl-heading-3: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    --fl-heading-4: 1rem;
    --fl-heading-5: .9375rem;
    --fl-heading-6: .875rem;
}
.fl-site {
    background: var(--fl-paper);
    color: var(--fl-ink);
    font-family: var(--fl-font);
    line-height: 1.5;
}
.fl-site :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-family: inherit;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.fl-site h1 { font-size: var(--fl-heading-1); }
.fl-site h2 { font-size: var(--fl-heading-2); }
.fl-site h3 { font-size: var(--fl-heading-3); }
.fl-site h4 { font-size: var(--fl-heading-4); }
.fl-site h5 { font-size: var(--fl-heading-5); }
.fl-site h6 { font-size: var(--fl-heading-6); }
.fl-shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.fl-site a:focus-visible, .fl-site button:focus-visible, .fl-auth-modal :focus-visible {
    outline: 3px solid #9263ec;
    outline-offset: 3px;
}
.fl-skip {
    position: absolute;
    left: 12px;
    top: 8px;
    z-index: 1100;
    transform: translateY(-160%);
    padding: 8px 14px;
    background: #fff;
    color: var(--fl-ink);
    border-radius: 10px;
}
.fl-skip:focus { transform: translateY(0); }

.fl-nav { border-bottom: 1px solid var(--fl-line); background: #fff; }
.fl-nav-inner { display: flex; align-items: center; gap: clamp(22px, 4.3vw, 64px); min-height: 76px; }
.fl-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.07em;
    color: var(--fl-ink);
    text-decoration: none;
}
.fl-logo:hover { color: var(--fl-ink); text-decoration: none; }
.fl-logo small { display: block; font-size: 11px; line-height: 1; letter-spacing: .09em; color: var(--fl-muted); }
.fl-logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--fl-accent);
    border-radius: 14px;
    color: #fff;
    font-size: 23px;
    letter-spacing: 0;
}
.fl-logo-dot { color: var(--fl-accent); }
.fl-nav-links, .fl-nav-actions { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); }
.fl-nav-links { align-self: stretch; }
.fl-nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-inline: 6px;
    color: var(--fl-muted);
    font-weight: 600;
    text-decoration: none;
}
.fl-nav-links a:hover, .fl-nav-links a[aria-current] { color: var(--fl-accent); }
.fl-nav-links a[aria-current]::after {
    content: "";
    position: absolute;
    inset: auto 5px 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fl-accent);
}
.fl-nav-actions { margin-left: auto; gap: 9px; }
.fl-nav-icon {
    display: grid;
    width: 44px;
    min-width: 0;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #dccaf9;
    border-radius: 12px;
    color: var(--fl-accent);
    background: #fff;
}
.fl-nav-icon:is(:hover, [aria-current]) { color: var(--fl-accent-hover); background: var(--fl-lilac); }
.fl-nav-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }

.fl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 19px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--fl-font);
    font-size: .92rem;
    line-height: 1.3;
    font-weight: 680;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.fl-button:hover { text-decoration: none; }
.fl-button-primary { background: var(--fl-accent); color: #fff; }
.fl-button-primary:hover { background: var(--fl-accent-hover); color: #fff; }
.fl-button-outline { background: #fff; border-color: #dccaf9; color: var(--fl-accent); }
.fl-button-outline:hover, .fl-button-quiet:hover { background: #e9ddff; color: var(--fl-accent-hover); }
.fl-button-quiet { background: transparent; color: var(--fl-ink); }
.fl-button span[aria-hidden] { font-size: 1.25em; line-height: .9; }

.fl-account { position: relative; }
.fl-account summary { list-style: none; white-space: nowrap; }
.fl-account summary::-webkit-details-marker { display: none; }
.fl-account-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    padding: 7px;
    border: 1px solid var(--fl-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 36px #2319361c;
}
.fl-account-menu a { display: block; padding: 8px 10px; color: var(--fl-ink); text-decoration: none; border-radius: 7px; }
.fl-account-menu a:hover { background: var(--fl-lilac); color: var(--fl-accent); }

.fl-hero {
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    align-items: stretch;
    padding: 12px;
    margin-block: 32px 46px;
    min-height: 364px;
    border: 1px solid #e7d9fb;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6eeff, #f0e5fd 59%, #f4def5);
}
.fl-hero-copy { align-self: center; padding: clamp(24px, 4.2vw, 58px); }
.fl-hero h1 span { color: var(--fl-accent); }
.fl-hero p { color: var(--fl-muted); max-width: 395px; margin: 20px 0 24px; font-size: clamp(1rem, 1.55vw, 1.125rem); line-height: 1.53; }
.fl-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.fl-hero-picture { position: relative; min-width: 0; overflow: hidden; background: #d8bcaa; border-radius: 23px; }
.fl-hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }

.fl-feed-column {
    width: min(100%, 600px);
    margin-inline: auto;
}
.fl-feed-layout {
    scroll-margin-top: 18px;
    padding-block: 0 52px;
}
.fl-nav + .fl-shell > .fl-feed-layout:first-child { margin-top: 33px; }
.fl-feed-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.fl-feed-heading .fl-button { white-space: nowrap; }
.fl-feed .main_lenta { display: block; max-width: none; text-align: start; }
.fl-feed #new_block { padding: 0; }
.fl-feed .fl-categories { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.fl-feed .fl-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--fl-muted);
    background: #fff;
    border: 1px solid var(--fl-line);
    font-size: .875rem;
    font-weight: 610;
    text-decoration: none;
}
.fl-feed .fl-categories a:hover, .fl-feed .fl-categories a[aria-current] { background: var(--fl-lilac); color: var(--fl-accent); border-color: #e6d5fc; }
.fl-feed .fl-post, .fl-feed #new_block > .row[id^="lenta_block_"] {
    --bs-gutter-x: 0;
    margin: 0 0 19px !important;
    padding: clamp(13px, 2.15vw, 22px);
    background: #fff;
    border: 1px solid var(--fl-line)!important;
    border-radius: 22px !important;
    box-shadow: 0 3px 12px #33214907 !important;
}
.fl-post .fl-author-line { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 12px; }
.fl-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: #f0e7ff;
    color: #603bb0;
    font-size: 1.15rem;
    font-weight: 750;
    text-decoration: none;
    overflow: hidden;
}
.fl-avatar:hover { text-decoration: none; color: #4e1daf; }
.fl-avatar-w { background: #fce6e8; color: #962e58; }
.fl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fl-author-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 740; color: var(--fl-ink); text-decoration: none; }
.fl-author-details { min-width: 0; }
.fl-author-meta { color: var(--fl-muted); font-size: .875rem; line-height: 1.25; }
.fl-author-meta a { color: inherit; }
.fl-post .fl-post-title { margin: 0 0 6px; }
.fl-post .fl-post-title a { color: inherit; text-decoration: none; }
.fl-post .fl-post-title a:hover { text-decoration: underline; }
.fl-post .fl-post-text { padding: 0; margin-bottom: 14px; color: var(--fl-ink); overflow-wrap: anywhere; }
.fl-post .fl-post-media { display: grid; gap: 10px; min-width: 0; padding: 0; margin: 0 0 13px; container-type: inline-size; }
.fl-post-stage {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #f2eef7;
}
.fl-post-stage-video { aspect-ratio: 16 / 9; max-height: min(510px, 70svh); background: #1d1528; }
.fl-post-stage-video > :is(.fl-video-open, video) { width: 100%; height: 100%; min-height: 0; min-width: 0; }
.fl-post-stage-video :is(.fl-video-open img, video) { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.fl-post-stage-photo > .fl-photo-open { position: relative; display: grid; place-items: center; min-width: 0; }
.fl-post-stage-photo .fl-photo-open img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100cqi; }
.fl-post-photo-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px);
    transform: scale(1.14);
    pointer-events: none;
}
.fl-post-stage > .fl-photo-open:focus-visible, .fl-post-stage > .fl-video-open:focus-visible { outline-offset: -3px; }
.fl-post-media-vip { position: absolute; top: 8px; right: 8px; width: 39px; pointer-events: none; }
.fl-post-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; min-width: 0; gap: clamp(5px, 1.45vw, 8px); }
.fl-post-media .fl-post-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fl-post-stage-video + .fl-post-thumbnails:has(> :nth-child(7)) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fl-post-thumbnails .fl-photo-open {
    width: clamp(43px, 16%, 74px);
    aspect-ratio: 1;
    border: 1px solid var(--fl-line);
    border-radius: 10px;
    overflow: hidden;
    background: #f2eef7;
}
.fl-post-media .fl-post-thumbnails .fl-photo-open { width: 100%; }
.fl-post-thumbnails .fl-photo-open:hover { border-color: var(--fl-accent); }
.fl-post-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fl-feed .fl-empty {
    padding: 29px;
    background: #fff;
    border: 1px solid var(--fl-line);
    border-radius: 18px;
    color: var(--fl-muted);
}
.fl-feed .fl-empty strong { display: block; color: var(--fl-ink); margin-bottom: 4px; }
.fl-pagination { display: flex; flex-wrap: wrap; gap: 9px; }

.fl-footer { border-top: 1px solid var(--fl-line); background: #fff; color: var(--fl-muted); }
.fl-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding-block: 10px; }
.fl-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.fl-footer a { color: inherit; text-decoration: none; }
.fl-footer a:hover { color: var(--fl-accent); }
.fl-footer-brand { font-weight: 750; }
.fl-site .fl-cookie {
    bottom: 15px;
    right: 15px;
    z-index: 1035;
    width: min(395px, calc(100% - 30px));
    border: 1px solid var(--fl-line);
    border-radius: 15px;
    background: #fff;
    color: var(--fl-muted);
    box-shadow: 0 8px 28px #23193622;
    text-align: left;
}
.fl-cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px 9px 14px; }
.fl-cookie-inner p { font-size: .85rem; line-height: 1.35; }
.fl-cookie-inner button { min-height: 34px; padding: 5px 9px; font-size: .82rem; }
.fl-site #fl-learning-backdrop { left: 0; z-index: 1040 !important; }
.fl-site #modalWindow { z-index: 1055 !important; }
.fl-site #overlay { z-index: 1050; }

.fl-auth-modal, .fl-auth-page { color: var(--fl-ink); font-family: var(--fl-font); }
.fl-auth-modal .modal-dialog { max-width: min(480px, calc(100% - 24px)); margin-inline: auto; }
.fl-auth-modal .modal-content, .fl-auth-panel {
    border: 1px solid var(--fl-line);
    border-radius: 23px;
    box-shadow: 0 18px 52px #27194024;
}
.fl-auth-modal .modal-header { padding: 23px 25px 5px; border: 0; }
.fl-auth-modal .modal-title, .fl-auth-panel h1 { color: var(--fl-ink); }
.fl-auth-modal .modal-body { padding: 15px 25px 23px; }
.fl-auth-form { display: flex; flex-direction: column; gap: 12px; }
.fl-auth-form label { display: block; min-width: 0; color: var(--fl-ink); font-size: .9rem; font-weight: 650; }
.fl-auth-form input:not([type="hidden"]) {
    width: 100%;
    min-height: 43px;
    display: block;
    padding: 9px 11px;
    margin-top: 4px;
    border: 1px solid #ded4ea;
    background: #fcfaff;
    border-radius: 10px;
    color: var(--fl-ink);
    font: 400 1rem var(--fl-font);
}
.fl-auth-form input:focus { outline: 2px solid #ac87ef; outline-offset: 1px; }
.fl-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-auth-help { color: var(--fl-muted); font-size: .82rem; margin-top: -8px; }
.fl-auth-check { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fl-auth-check input:not([type="hidden"]) { width: 62px; min-height: 38px; margin-top: 0; text-align: center; }
.fl-auth-password { position: relative; display: block; }
.fl-auth-password input:not([type="hidden"]) { padding-right: 93px; }
.fl-auth-password button, .fl-auth-switch button {
    border: 0;
    color: var(--fl-accent);
    background: transparent;
    font: 650 .9rem var(--fl-font);
}
.fl-auth-password button { position: absolute; right: 6px; top: 4px; bottom: 4px; padding-inline: 6px; }
.fl-auth-forgot { align-self: flex-end; font-size: .9rem; }
.fl-auth-form a, .fl-auth-switch a { color: var(--fl-accent); }
.fl-auth-submit { width: 100%; }
.fl-auth-terms, .fl-auth-switch { color: var(--fl-muted); font-size: .88rem; line-height: 1.35; }
.fl-auth-switch { border-top: 1px solid var(--fl-line); margin-top: 15px; padding-top: 13px; text-align: center; }
.fl-auth-page { min-height: min(730px, 80vh); padding: 38px 0 52px; }
.fl-auth-panel { width: min(500px, 100%); background: #fff; padding: clamp(18px, 4vw, 30px); margin-inline: auto; }
.fl-auth-panel h1 { margin-bottom: 17px; }

@media (max-width: 940px) {
    .fl-shell { width: calc(100% - 38px); }
    .fl-hero { margin-top: 24px; min-height: 308px; }
    .fl-hero-copy { padding: 25px 20px; }
}
@media (max-width: 720px) {
    .fl-site { --fl-mobile-gutter: 14px; }
    .fl-shell { width: calc(100% - 2 * var(--fl-mobile-gutter, 14px)); }
    .fl-nav-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; min-height: 64px; padding-top: 8px; }
    .fl-nav-links { grid-row: 2; grid-column: 1 / -1; min-height: 46px; gap: 18px; }
    .fl-nav-actions { grid-column: 2; grid-row: 1; margin-left: 0; }
    .fl-logo { gap: 7px; font-size: 21px; }
    .fl-logo small { font-size: 9px; }
    .fl-logo-mark { width: 35px; height: 35px; font-size: 18px; border-radius: 12px; }
    .fl-nav-actions .fl-button { padding: 8px 10px; min-height: 38px; font-size: .86rem; }
    .fl-nav-icon { width: 38px; height: 38px; }
    .fl-nav-messages { display: none; }
    .fl-hero { grid-template-columns: 1fr; margin-block: 16px 29px; padding: 9px; border-radius: 24px; }
    .fl-hero-copy { padding: 22px 15px 17px; }
    .fl-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl-hero-actions > .fl-button { width: 100%; min-width: 0; padding-inline: 4px; font-size: clamp(.78rem, 3.4vw, .93rem); }
    .fl-hero p { margin-block: 13px 16px; }
    .fl-hero-picture { aspect-ratio: 2 / 1; border-radius: 17px; }
    .fl-feed-layout { padding-bottom: 34px; }
    .fl-nav + .fl-shell > .fl-feed-layout:first-child { margin-top: 21px; }
    .fl-feed-heading .fl-button { padding: 7px 9px; font-size: .8rem; min-height: 38px; }
    .fl-feed-heading { gap: 7px; }
    .fl-feed .fl-post { border-radius: 17px !important; }
    .fl-auth-page { padding-top: 25px; }
    .fl-auth-modal .modal-header, .fl-auth-modal .modal-body { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 350px) {
    .fl-nav-signed-in { gap: 4px; }
    .fl-nav-signed-in .fl-nav-icon { width: 38px; height: 38px; }
    .fl-nav-signed-in .fl-button { padding-inline: 7px; font-size: .82rem; }
    .fl-nav-inner:has(.fl-nav-signed-in) { column-gap: 4px; }
    .fl-nav-inner:has(.fl-nav-signed-in) .fl-logo { font-size: 19px; gap: 5px; }
    .fl-nav-inner:has(.fl-nav-signed-in) .fl-logo-mark { width: 32px; height: 32px; }
    .fl-feed-heading { align-items: flex-start; flex-direction: column; }
    .fl-auth-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .fl-button { transition: none; }
}
