@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-It.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-Md.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-MdIt.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akzidenz Grotesk Pro";
    src: url("../fonts/AkzidenzGroteskPro-BoldIt.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-muted: #2a2a2a;
    --color-accent: #ffea00;
    --color-accent-dark: #e2cf00;
    --color-logo-bg: #ffef00;
    --color-border: #ececec;
    --shadow-soft: 0 30px 70px rgba(17, 17, 17, 0.08);
    --container-max: 1280px;
    --container-padding: clamp(20px, 3vw, 40px);
    --auth-safe-top-offset: 24px;
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Akzidenz Grotesk Pro", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

body.body--mobile-menu-open {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
    -webkit-text-fill-color: currentColor;
}

button {
    font: inherit;
}

.page-shell {
    max-width: var(--container-max);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--color-bg);
}

.page-shell--request {
    display: flex;
    flex-direction: column;
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
}

.topbar--with-nav {
    align-items: flex-start;
}

.topbar__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 500px);
    min-height: 142px;
    padding: 0 24px;
    background: var(--color-logo-bg);
    flex-shrink: 0;
}

.topbar__logo::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: max(0px, calc((100vw - var(--container-max)) / 2));
    background: var(--color-logo-bg);
}

.topbar__logo-image {
    display: block;
    width: min(100%, 270px);
    height: 142px;
    object-fit: contain;
}

.topbar__mobile-toggle,
.mobile-menu {
    display: none;
}

.topbar__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
    min-height: 142px;
    padding: 0 var(--container-padding) 0 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.2;
}

.topbar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 34px;
}

.topbar__nav-link {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px 7px;
    background: var(--color-accent);
    font-size: 0.95rem;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.topbar__nav-link:hover,
.topbar__nav-link--active {
    background: var(--color-accent-dark);
}

.topbar__nav-link:hover {
    transform: translateY(-1px);
}

.topbar__requests,
.topbar__user {
    margin: 0;
    white-space: nowrap;
    font-weight: 300;
}

.topbar__requests-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 300;
}

.topbar__requests-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.topbar__requests-label--short {
    display: none;
}

.topbar__requests-expiry {
    font-size: 0.72rem;
    line-height: 1.1;
    color: #5d5d5d;
}

.topbar__counter {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.topbar__counter span,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    background: var(--color-accent);
}

.topbar__counter span {
    width: 16px;
    min-width: 20px;
    font-weight: 400;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.help-popover {
    position: relative;
}

.help-popover__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 200px;
    height: 100px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.16);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.help-popover__panel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #ffffff;
    transform: translateX(-50%);
}

.help-popover__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #000000;
}

.help-popover__text a,
.help-popover__text a:link,
.help-popover__text a:visited,
.help-popover__text a:hover,
.help-popover__text a:active {
    color: #000000;
    -webkit-text-fill-color: #000000;
}

.help-popover--open .help-popover__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.icon-button {
    padding: 0;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
}

.icon-button--help {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-button--help:hover {
    transform: translateY(-1px);
    background: var(--color-accent-dark);
}

.icon-button--help {
    font-size: 1.5rem;
    line-height: 1;
}

/* .icon-button--logout {
    position: relative;
    width: 34px;
    overflow: visible;
    justify-content: flex-start;
    padding-left: 8px;
    font-size: 1.8rem;
    line-height: 1;
} */

.icon-button--logout {
    background-color: #FFF;
}

.icon-button--logout svg {
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
    right: -10px;
}

.icon-button--logout span {
    display: block;
    width: 28px;
    height: 28px;
    position: absolute;
    z-index: 0;
    background-color: var(--color-accent);
}

.icon-button--logout:hover svg {
    animation: arrow-slide 0.6s ease-in-out infinite;
}

@keyframes arrow-slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}


.icon-button--logout:hover {
    animation: logout-nudge 0.7s ease-in-out infinite;
}

.viralla {
    padding: clamp(28px, 4vw, 52px) var(--container-padding) 0;
}

.viralla__content {
    position: relative;
}

.viralla__copy {
    position: relative;
    z-index: 2;

    max-width: 100%;
    padding-top: clamp(12px, 2vw, 32px);
    padding-right: min(34vw, 430px);
}

.viralla__title {
    margin: 0 0 28px;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.viralla__subtitle {
    margin: 0 0 44px;
    font-size: 40px;
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.offer-card__link {
    display: block;
}

.offer-card--disabled .offer-card__link {
    cursor: default;
}

.offer-card--disabled {
    padding-bottom: 50px;
}

.offer-card__tag {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 22px;
    padding: 12px 30px 13px;
    min-width: min(100%, 365px);
    background: var(--color-accent);
    font-size: 35px;
    font-weight: 500;
    line-height: 1;
}

.offer-card--disabled .offer-card__tag {
    background: #d9d9d9;
}

.offer-card__tag-note {
    font-size: 0.62em;
}

.offer-card__text {
    max-width: 640px;
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.offer-card--disabled .offer-card__text,
.offer-card--disabled .offer-card__tag-note {
    color: #5f5f5f;
}

.offer-card__arrows {
    color: var(--color-accent);
    white-space: nowrap;
    letter-spacing: -0.08em;
}

.viralla__visual {
    position: static;
    min-height: 0;
}

.viralla__image {
    position: fixed;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: auto;
    height: 95vh;
    max-width: none;
    max-height: 95vh;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}

.request-viralla {
    padding-top: clamp(24px, 3vw, 38px);
    padding-bottom: 28px;
}

.request-viralla__copy {
    max-width: 100%;
    padding-right: min(42vw, 560px);
}

.request-intro {
    margin-bottom: 28px;
}

.request-intro__lead {
    max-width: 640px;
    margin: 0 0 22px;
    font-size: 30px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: -0.05em;
}

.request-intro__lead b {
   font-weight: 400; 
}

.request-intro__rules {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.rule-card {
    width: min(100%, 140px);
}

.rule-card__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 60px;
}

.rule-card__icon-image {
    display: block;
    width: auto;
    max-width: 64px;
    max-height: 64px;
    height: 52px;
}

.rule-card__title {
    margin: 0;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.request-intro__title {
    margin: 0;
    font-size: 40px;
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.request-intro__title b {
    font-weight: 400;
}

.request-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 468px);
    gap: 24px;
}

.request-form__field,
.request-form__group {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.request-form__label,
.request-form__legend {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.request-form__toggle {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font: inherit;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.request-form__toggle--active {
    background: var(--color-accent);
    text-decoration: none;
}

.request-form__textarea {
    width: 100%;
    min-height: 116px;
    padding: 16px 18px;
    border: 1px solid #505050;
    resize: vertical;
    font: inherit;
    font-size: 1rem;
    background: #ffffff;
    outline: none;
}

.request-form__input {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 1px solid #505050;
    font: inherit;
    font-size: 1rem;
    background: #ffffff;
    outline: none;
}

.request-form__textarea--hidden,
.request-form__input--hidden {
    display: none;
}

.request-form__textarea:focus {
    border-color: #111111;
}

.request-form__input:focus {
    border-color: #111111;
}

.request-form__error {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #c92828;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-pill {
    position: relative;
}

.choice-pill__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-pill__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 30px;
    padding: 5px 18px;
    border: 1px solid #505050;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.choice-pill:hover .choice-pill__label {
    border-color: var(--color-accent);
}

.choice-pill__input:checked + .choice-pill__label {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.choice-pill__input:focus-visible + .choice-pill__label {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.request-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 188px;
    height: 30px;
    margin-top: 4px;
    padding: 9px 10px 7px;
    border: 1px solid transparent;
    background: var(--color-accent);
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.08em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.request-form__submit:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.request-footnote {
    width: min(100%, 920px);
    margin: 0;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.25;
    color: #333333;
}

.request-footer {
    margin-top: auto;
    padding: 24px var(--container-padding) 100px;
}

.request-viralla__visual {
    position: static;
    min-height: 0;
}

.request-viralla__image {
    right: 0;
    bottom: 0;
    width: auto;
    height: 95vh;
    max-width: none;
    max-height: 95vh;
}

.requests-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 200;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.requests-popup--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.requests-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
}

.requests-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    min-height: 480px;
    padding: 16px 16px 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.24);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.requests-popup__title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
}

.requests-popup__icon {
    width: min(100%, 176px);
    margin: 0 auto 24px;
    display: block;
}

.requests-popup__description {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: center;
}

.requests-popup__remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #111111;
    cursor: pointer;
}

.requests-popup__remember[hidden] {
    display: none !important;
}

.requests-popup__remember-checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #898989;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

.requests-popup__remember-checkbox:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.requests-popup__remember-checkbox:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.2);
    outline-offset: 2px;
}

.requests-popup__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.requests-popup__status {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #5d5d5d;
}

.requests-popup__option {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #565656;
    background: #ffffff;
    color: #111111;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.requests-popup__option:hover,
.requests-popup__option--selected {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.requests-popup__submit {
    width: 100%;
    min-height: 38px;
    border: 0;
    background: var(--color-accent);
    color: #111111;
    font-size: 1rem;
    cursor: pointer;
    margin-top: auto;
}

.requests-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    background: var(--color-accent);
    color: #111111;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.requests-popup--compact .requests-popup__dialog {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 12px;
}

.requests-popup--compact .requests-popup__title {
    margin-bottom: 18px;
}

.requests-popup--compact .requests-popup__icon {
    width: min(100%, 156px);
    margin-bottom: 18px;
}

.requests-popup--compact .requests-popup__description {
    margin-bottom: 16px;
}

.requests-popup--requests-exhausted .requests-popup__dialog {
    width: min(100%, 320px);
    padding-bottom: 16px;
}

.requests-popup--load-more-confirmation .requests-popup__dialog {
    width: min(100%, 320px);
    padding-bottom: 16px;
}

.requests-popup--gift-script .requests-popup__dialog {
    width: min(100%, 320px);
    padding-bottom: 16px;
}

.requests-popup--simple-warning .requests-popup__dialog {
    width: min(100%, 320px);
    padding-bottom: 16px;
}

.requests-popup--requests-exhausted .requests-popup__icon {
    width: min(100%, 176px);
    margin-bottom: 20px;
}

.requests-popup--load-more-confirmation .requests-popup__icon {
    width: min(100%, 176px);
    margin-bottom: 20px;
}

.requests-popup--gift-script .requests-popup__icon {
    width: min(100%, 176px);
    margin-bottom: 20px;
}

.requests-popup--simple-warning .requests-popup__icon {
    width: min(100%, 176px);
    margin-bottom: 20px;
}

.requests-popup--requests-exhausted .requests-popup__description {
    margin-top: 4px;
}

.requests-popup--load-more-confirmation .requests-popup__description {
    margin-top: 4px;
}

.requests-popup--gift-script .requests-popup__description {
    margin-top: 4px;
}

.requests-popup--simple-warning .requests-popup__description {
    margin-top: 4px;
}

.requests-popup--payment-status .requests-popup__dialog {
    width: min(100%, 320px);
    padding-bottom: 16px;
}

.requests-popup--payment-status .requests-popup__icon {
    width: min(100%, 176px);
    margin-bottom: 20px;
}

.requests-popup--payment-status .requests-popup__description {
    margin-top: 4px;
}

.requests-popup--compact .requests-popup__remember {
    margin-bottom: 14px;
}

.result-page {
    flex: 1;
    padding: 28px var(--container-padding) 0;
}

.history-page {
    flex: 1;
    padding: 28px var(--container-padding) 0;
}

.history-page__container {
    max-width: 1180px;
    margin: 0 auto;
}

.history-page__title {
    margin: 0 0 28px;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.history-list--hidden {
    display: none;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.history-pagination--hidden {
    display: none;
}

.history-pagination__button {
    min-width: 110px;
    padding: 11px 18px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.history-pagination__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.article-hint-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.article-hint-modal--hidden {
    display: none;
}

.article-hint-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.38);
}

.article-hint-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 28px 24px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.article-hint-modal__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 600;
}

.article-hint-modal__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.45;
    color: #444444;
}

.article-hint-modal__actions {
    display: flex;
    gap: 12px;
}

.article-hint-modal__button {
    min-width: 120px;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #d3d3d3;
    background: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.article-hint-modal__button--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #111111;
}

.article-hint-modal__button--secondary:hover,
.article-hint-modal__button--secondary:focus-visible {
    border-color: #b5b5b5;
}

.article-hint-modal__button--primary:hover,
.article-hint-modal__button--primary:focus-visible {
    opacity: 0.92;
}

.history-pagination__page {
    min-width: 112px;
    text-align: center;
    font-size: 0.95rem;
}

.history-skeleton {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.history-skeleton__item,
.history-skeleton__date,
.history-skeleton__line,
.history-skeleton__action {
    position: relative;
    overflow: hidden;
    background: #ece7e0;
}

.history-skeleton__item::after,
.history-skeleton__date::after,
.history-skeleton__line::after,
.history-skeleton__action::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: skeleton-shimmer 1.4s infinite;
}

.history-skeleton__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.history-skeleton__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-skeleton__date {
    width: 128px;
    height: 18px;
}

.history-skeleton__line {
    width: 100%;
    height: 18px;
}

.history-skeleton__line--wide {
    width: 88%;
}

.history-skeleton__action {
    width: 84px;
    height: 30px;
}

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.history-item__content {
    min-width: 0;
}

.history-item__date {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.history-item__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.18;
}

.history-item__action {
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.history-item__arrows {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.history-item__arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #111111;
}

.result-page__container {
    max-width: 1180px;
    margin: 0 auto;
}

.result-page__content--hidden {
    display: none;
}

.result-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 420px;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 28px;
    text-align: center;
}

.result-error--hidden {
    display: none;
}

.result-error__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 201, 39, 0.16);
    color: #111111;
    font-size: 32px;
    font-weight: 500;
}

.result-error__title {
    margin: 0;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.result-error__text {
    max-width: 420px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.72);
}

.result-error__redirect {
    max-width: 460px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.64);
}

.result-error__action {
    margin-top: 8px;
    text-decoration: none;
}

.result-skeleton {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.result-skeleton--hidden {
    display: none;
}

.result-skeleton--status-only {
    gap: 0;
    margin-bottom: 24px;
}

.result-skeleton--status-only .result-skeleton__title,
.result-skeleton--status-only .result-skeleton__grid {
    display: none;
}

.result-skeleton__title,
.result-skeleton__heading,
.result-skeleton__line,
.result-skeleton__media,
.result-skeleton__avatar,
.result-skeleton__button {
    position: relative;
    overflow: hidden;
    background: #ece7e0;
}

.result-skeleton__title::after,
.result-skeleton__heading::after,
.result-skeleton__line::after,
.result-skeleton__media::after,
.result-skeleton__avatar::after,
.result-skeleton__button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: skeleton-shimmer 1.4s infinite;
}

.result-skeleton__title {
    width: min(100%, 760px);
    height: 74px;
}

.result-skeleton__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 248, 230, 0.9);
    color: #2a2a2a;
    text-align: center;
}

.result-skeleton__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 201, 39, 0.18);
    flex-shrink: 0;
}

.result-skeleton__status-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(17, 17, 17, 0.15);
    border-top-color: #ffc927;
    border-radius: 50%;
    animation: result-spin 0.8s linear infinite;
}

.result-skeleton__status-text {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
}

.result-skeleton__status-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 22px;
}

.result-skeleton__status-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.22;
    animation: result-loading-dot 1.2s infinite ease-in-out;
}

.result-skeleton__status-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.result-skeleton__status-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.result-skeleton__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 22px;
    align-items: start;
}

.result-skeleton__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 350px);
}

.result-skeleton__heading {
    width: 72%;
    height: 34px;
}

.result-skeleton__line {
    width: 100%;
    height: 14px;
}

.result-skeleton__line--wide {
    width: 92%;
}

.result-skeleton__line--short {
    width: 58%;
}

.result-skeleton__media {
    width: 100%;
    height: 120px;
}

.result-skeleton__creator {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.result-skeleton__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.result-skeleton__stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.result-skeleton__button {
    width: 140px;
    height: 38px;
    margin-top: auto;
}

.result-page__title {
    max-width: 1100px;
    margin: 0 0 40px;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.result-page__title-text--hidden {
    display: none;
}

.result-page__title-skeleton {
    display: block;
    width: min(100%, 760px);
    height: 74px;
    position: relative;
    overflow: hidden;
    background: #ece7e0;
}

.result-page__title-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: skeleton-shimmer 1.4s infinite;
}

.result-page__title-skeleton--hidden {
    display: none;
}

.result-page__title strong {
    font-weight: 400;
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 22px;
    align-items: start;
}

.result-card {
    position: relative;
    min-width: 0;
    height: calc(100vh - 350px);
    display: flex;
    flex-direction: column;
}

.result-card__loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
}

.result-card__loading[hidden] {
    display: none !important;
}

.result-card__loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 64px 0 70px;
}

.result-card__loading-heading,
.result-card__loading-line,
.result-card__loading-media,
.result-card__loading-avatar,
.result-card__loading-button {
    position: relative;
    overflow: hidden;
    background: #ececec;
}

.result-card__loading-heading::after,
.result-card__loading-line::after,
.result-card__loading-media::after,
.result-card__loading-avatar::after,
.result-card__loading-button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    animation: skeleton-shimmer 1.4s infinite;
}

.result-card__loading-heading {
    width: 66%;
    height: 34px;
    margin-left: 0;
    border-radius: 2px;
}

.result-card__loading-line {
    width: 100%;
    height: 14px;
    border-radius: 999px;
}

.result-card__loading-line--wide {
    width: 92%;
}

.result-card__loading-line--short {
    width: 64%;
}

.result-card__loading-media {
    width: 100%;
    height: 128px;
    border-radius: 18px;
}

.result-card__loading-button {
    width: 138px;
    height: 42px;
    margin-top: auto;
    border-radius: 999px;
}

.result-card__loading-creator {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.result-card__loading-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.result-card__loading-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card__loading-skeleton--scripts .result-card__loading-line:nth-of-type(2) {
    margin-top: 2px;
}

.result-card__loading-skeleton--integrations {
    gap: 12px;
}

.result-card__loading-skeleton--bloggers {
    gap: 12px;
}

.result-card::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 40px;
    bottom: 48px;
    width: 1px;
    background: rgba(17, 17, 17, 0.55);
}

.result-grid > .result-card:first-child::before {
    display: none;
}

.result-card__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.result-card__heading--hidden {
    visibility: hidden;
}

.result-card__title {
    margin: 0;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.result-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: var(--color-accent);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.result-card__download-icon {
    display: block;
    width: 28px;
    height: 28px;
}

.result-card__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.08;
    color: #000;
}

.result-card__body strong {
    font-weight: 400;
}

.result-card__body--media,
.result-card__body--creators {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card__items--media,
.result-card__items--creators {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card__inline-skeleton,
.result-card__inline-heading,
.result-card__inline-line,
.result-card__inline-media,
.result-card__inline-avatar,
.result-card__inline-button {
    position: relative;
    overflow: hidden;
    background: #ece7e0;
}

.result-card__inline-skeleton::after,
.result-card__inline-heading::after,
.result-card__inline-line::after,
.result-card__inline-media::after,
.result-card__inline-avatar::after,
.result-card__inline-button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: skeleton-shimmer 1.4s infinite;
}

.result-card__inline-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-card__inline-skeleton--hidden {
    display: none;
}

.result-card__inline-line {
    width: 100%;
    height: 14px;
}

.result-card__inline-heading {
    width: 72%;
    height: 34px;
}

.result-card__inline-line--wide {
    width: 92%;
}

.result-card__inline-line--short {
    width: 58%;
}

.result-card__inline-media {
    width: 100%;
    height: 120px;
}

.result-card__inline-creator {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.result-card__inline-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.result-card__inline-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.result-card__inline-button {
    width: 140px;
    height: 38px;
    margin-top: auto;
}

.result-card__subtitle {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.05;
}

.result-card__subtitle span {
    color: #666666;
}

.result-script {
    margin: 0;
    padding-left: 0;
}

.result-script ul {
    margin: 0;
    padding-left: 18px;
}

.result-script li {
    margin-bottom: 8px;
}

.result-script p,
.result-script h1,
.result-script h2,
.result-script h3,
.result-script h4,
.result-script h5,
.result-script h6 {
    margin: 0 0 10px;
}

.result-script h1,
.result-script h2,
.result-script h3,
.result-script h4,
.result-script h5,
.result-script h6 {
    font-size: 1rem;
    line-height: 1.25;
}

.result-script code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #f2f2f2;
}

.result-script__entry + .result-script__entry {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.result-script--hooks {
    margin-top: 18px;
    padding-left: 0;
}

.result-script--hooks p {
    margin: 0 0 4px;
}

.result-script--hooks p:has(strong) {
    margin-top: 20px;
}

.media-item,
.creator-item {
    display: grid;
    gap: 12px;
    align-items: start;
}

.media-item {
    grid-template-columns: 72px minmax(0, 1fr);
}

.media-item--without-video {
    grid-template-columns: minmax(0, 1fr);
}

.creator-item {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.creator-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.creator-item__summary {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 20px;
}

.creator-item__summary-text p {
    margin: 0 0 2px;
}

.media-item__thumb {
    position: relative;
    width: 72px;
    height: 118px;
    border-radius: 2px;
    overflow: hidden;
}

.media-item__thumb--small {
    width: 72px;
    height: 118px;
}


.media-item__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #ff6d90;
    font-size: 1rem;
    transform: translate(-50%, -50%);
}

.video-trigger {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-trigger__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    z-index: 1;
}

.video-trigger__loader {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: result-spin 0.9s linear infinite;
}

.video-trigger__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.video-trigger__image--hidden {
    display: none;
}

.video-trigger__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.12);
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.video-trigger__play::before {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.video-trigger__play::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #ffffff;
}

.video-trigger:hover .video-trigger__play,
.video-trigger:focus-visible .video-trigger__play {
    opacity: 0.2;
}

.media-item__content p,
.creator-item__content p {
    margin: 0 0 2px;
}

.creator-item__audience {
    margin: 0;
}

.creator-item__audience b {
    font-weight: 400;
}

.media-item__content p b,
.creator-item__content p b {
    font-weight: 400;
}

.result-creator-link,
.creator-item__profile-link {
    color: inherit;
    text-decoration: none;
}

.result-creator-link:hover,
.result-creator-link:focus-visible,
.creator-item__profile-link:hover,
.creator-item__profile-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.creator-item__avatar {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.creator-item__avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
}

.creator-item__profile-link {
    display: inline;
}

.creator-item__avatar--hidden {
    display: none;
}

.creator-item__avatar-fallback {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
}

.creator-item__avatar-fallback[hidden] {
    display: none;
}

.creator-item__avatar-fallback--0 {
    background: #d66f4d;
}

.creator-item__avatar-fallback--1 {
    background: #3b7a89;
}

.creator-item__avatar-fallback--2 {
    background: #6d5ca8;
}

.creator-item__avatar-fallback--3 {
    background: #4b8f5b;
}

.creator-item__integrations {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.creator-item__integrations-title {
    margin: 20px 0 0;
}

.creator-item__integration {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.creator-item__integration-thumb {
    margin-top: 2px;
    align-self: start;
}

.creator-item__integration-content {
    min-width: 0;
}

.creator-item__integration-content p {
    margin: 0 0 2px;
}

.creator-item__products {
    margin: 6px 0 0;
    padding-left: 0;
    list-style: none;
}

.creator-item__products li {
    margin-bottom: 6px;
}

.creator-item__products li b {
    font-weight: 400;
}

.creator-item__products li span {
    display: block;
    color: #5d5d5d;
}

.creator-item__products-empty {
    margin: 8px 0 0;
    color: #5d5d5d;
}

.creator-item__analytics {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    grid-column: 1 / -1;
}

.creator-item__analytics-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: #111111;
}

.creator-item__analytics-text,
.creator-item__analytics-meta {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.08;
    color: #000;
}

.creator-item__analytics-text b,
.creator-item__analytics-meta b,
.creator-item__analytics-text strong,
.creator-item__analytics-meta strong {
    font-weight: 400;
}

.result-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-width: 128px;
    min-height: 38px;
    margin-top: 10px;
    padding: 3px 10px;
    border: 0;
    background: var(--color-accent);
    color: #111111;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    -webkit-text-fill-color: #111111;
}

.result-card__more,
.result-card__more:link,
.result-card__more:visited,
.result-card__more:hover,
.result-card__more:active,
.result-card__more:focus {
    color: #111111;
    -webkit-text-fill-color: #111111;
}

.result-card__more--hidden {
    visibility: hidden;
}

.result-card__more:disabled[data-loading="true"] {
    background: var(--color-accent);
    color: #111111;
    -webkit-text-fill-color: #111111;
    cursor: wait;
}

.result-card__more[data-loading="true"] {
    cursor: wait;
}

.result-card__more[data-loading="true"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 34%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.18) 66%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-135%);
    animation: button-shimmer 1.15s linear infinite;
    pointer-events: none;
}

.result-card__more[data-loading="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.result-card__more--inactive,
.result-card__more:disabled:not([data-loading="true"]) {
    background: #d7d7d7;
    color: #666666;
    cursor: not-allowed;
}

.result-card__more--depleted,
.result-card__more--depleted:link,
.result-card__more--depleted:visited,
.result-card__more--depleted:hover,
.result-card__more--depleted:active,
.result-card__more--depleted:focus {
    background: #fbe500;
    color: #111111;
    -webkit-text-fill-color: #111111;
    cursor: pointer;
}

@keyframes result-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes button-shimmer {
    to {
        transform: translateX(135%);
    }
}

@keyframes result-loading-dot {
    0%, 80%, 100% {
        opacity: 0.22;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

.video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: min(100%, 520px);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.24);
    padding: 16px 16px 12px;
}

.video-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: var(--color-accent);
    color: #111111;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.video-modal__frame {
    position: relative;
    width: min(100%, 420px);
}

.video-modal__player {
    display: block;
    width: 100%;
    max-height: 80vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border: 0;
    background: #000000;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}



@media (max-width: 1100px) {
    .topbar {
        min-height: 142px;
        flex-direction: row;
        align-items: stretch;
        gap: 24px;
    }

    .topbar__logo {
        width: min(100%, 300px);
        justify-content: center;
        padding: 0 24px;
    }

    .topbar__meta {
        min-height: 142px;
        flex-wrap: nowrap;
        justify-content: flex-end;
        padding: 0 var(--container-padding) 0 0;
    }

    .topbar__nav {
        padding-top: 34px;
    }

    .topbar__requests-label {
        display: none;
    }

    .topbar__requests-label--short {
        display: inline;
    }

    .help-popover__panel {
        left: 0;
        transform: translateX(0);
    }

    .help-popover__panel::before {
        left: 14px;
        transform: none;
    }

    .help-popover--open .help-popover__panel {
        transform: translateY(0);
    }

    .viralla__copy {
        width: 100%;
        padding-right: 0;
    }

    .viralla__image {
        position: fixed;
        right: 0;
        bottom: 0;
        width: auto;
        height: 72vh;
        max-width: 72vw;
        max-height: 72vh;
    }

    .viralla__visual {
        min-height: 0;
        margin-top: 0;
        display: block;
    }

    .request-viralla__copy {
        width: 100%;
        padding-right: 0;
    }

    .request-viralla__image {
        position: fixed;
        right: 0;
        bottom: 0;
        width: auto;
        height: 90vh;
        max-width: 90vw;
        max-height: 90vh;
    }

    .request-viralla__visual {
        min-height: 0;
        margin-top: 0;
        display: block;
    }

    .request-footer {
        padding-bottom: 72px;
    }

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

    .result-card::before {
        display: none;
    }

    .result-card {
        height: auto;
    }

    .result-card__body {
        overflow: visible;
        padding-right: 0;
    }

    .result-page__title {
        max-width: none;
    }

    .history-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .history-item__action {
        grid-column: 1 / -1;
    }

    .requests-popup__dialog {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .page-shell {
        overflow-x: hidden;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0;
        min-height: auto;
    }

    .topbar--with-nav {
        align-items: stretch;
    }

    .topbar__logo {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-height: 90px;
        padding: 0 14px;
        justify-content: flex-start;
    }

    .topbar__logo::before {
        width: max(0px, calc((100vw - var(--container-max)) / 2));
    }

    .topbar__logo-image {
        height: 90px;
        width: auto;
        max-width: 100%;
    }

    .topbar__mobile-toggle {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 84px;
        min-height: 90px;
        padding: 0;
        border: 0;
        background: var(--color-logo-bg);
        cursor: pointer;
        position: relative;
        z-index: 210;
    }

    .topbar__mobile-toggle span {
        display: block;
        width: 28px;
        height: 2px;
        background: #111111;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .body--mobile-menu-open .topbar__mobile-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .body--mobile-menu-open .topbar__mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .body--mobile-menu-open .topbar__mobile-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .topbar__meta {
        display: none;
    }

    .topbar__nav {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        display: block;
        pointer-events: none;
        z-index: 190;
    }

    .mobile-menu__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(17, 17, 17, 0.2);
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .mobile-menu__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100vw, 320px);
        padding: 24px 18px 24px;
        background: var(--color-logo-bg);
        box-shadow: -12px 0 36px rgba(17, 17, 17, 0.18);
        display: flex;
        flex-direction: column;
        gap: 18px;
        transform: translateX(100%);
        transition: transform 0.24s ease;
    }

    .mobile-menu--open {
        pointer-events: auto;
    }

    .mobile-menu--open .mobile-menu__backdrop {
        opacity: 1;
    }

    .mobile-menu--open .mobile-menu__panel {
        transform: translateX(0);
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 72px;
    }

    .mobile-menu__link {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.1rem;
        line-height: 1.2;
        padding: 4px 0;
        font-weight: 400;
        text-align: left;
    }

    .mobile-menu__bottom {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .mobile-menu__requests {
        width: 100%;
        min-height: 0;
        white-space: normal;
        font-weight: 400;
    }

    .mobile-menu__requests .topbar__counter {
        gap: 4px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .mobile-menu__requests .topbar__counter span {
        min-width: 24px;
        min-height: 24px;
        background: rgba(255, 255, 255, 0.55);
    }

    .mobile-menu__user {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.3;
        word-break: break-word;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu__user-value {
        font-size: 1rem;
        color: #111111;
    }

    .mobile-menu__text-button,
    .mobile-menu__text-link {
        display: inline-flex;
        align-self: flex-start;
        padding: 0;
        border: 0;
        background: transparent;
        font: inherit;
        font-size: 1rem;
        line-height: 1.2;
        color: #111111;
        cursor: pointer;
        -webkit-text-fill-color: #111111;
    }

    .mobile-menu__text-button,
    .mobile-menu__text-button:link,
    .mobile-menu__text-button:visited,
    .mobile-menu__text-button:hover,
    .mobile-menu__text-button:active,
    .mobile-menu__text-button:focus,
    .mobile-menu__text-link,
    .mobile-menu__text-link:link,
    .mobile-menu__text-link:visited,
    .mobile-menu__text-link:hover,
    .mobile-menu__text-link:active,
    .mobile-menu__text-link:focus {
        color: #111111;
        -webkit-text-fill-color: #111111;
    }

    .help-popover--mobile {
        width: 100%;
    }

    .help-popover--mobile .help-popover__panel {
        position: static;
        width: 100%;
        margin-top: 10px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 1px solid rgba(17, 17, 17, 0.12);
        background: rgba(255, 255, 255, 0.62);
        display: none;
    }

    .help-popover--mobile .help-popover__panel::before {
        display: none;
    }

    .help-popover--mobile.help-popover--open .help-popover__panel {
        display: block;
    }

    .viralla {
        padding-top: 20px;
    }

    .viralla__subtitle br {
        display: none;
    }

    .offer-list {
        gap: 28px;
    }

    .offer-card__tag {
        min-width: 0;
        width: 100%;
        justify-content: center;
        padding-left: 18px;
        padding-right: 18px;
    }

    .viralla__visual {
        display: none;
    }

    .request-intro__rules {
        gap: 12px;
    }

    .rule-card {
        width: calc(33% - 10px);
    }

    .request-form {
        gap: 20px;
    }

    .request-form__field,
    .request-form__group {
        width: 100%;
    }

    .choice-row {
        gap: 10px;
    }

    .choice-pill__label {
        min-width: 132px;
    }

    .request-viralla__visual {
        display: none;
    }

    .result-page {
        padding-top: 20px;
    }

    .history-page {
        padding-top: 20px;
    }

    .media-item,
    .creator-item {
        grid-template-columns: 1fr;
    }

    .creator-item__summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .media-item__thumb,
    .media-item__thumb--small,
    .creator-item__avatar {
        margin-bottom: 6px;
    }

    .requests-popup {
        padding: 0;
    }

    .requests-popup__dialog {
        width: 100%;
        min-height: 100vh;
        padding: 24px 16px 28px;
        box-shadow: none;
    }

    .requests-popup__options {
        gap: 16px;
        margin-bottom: 32px;
    }

    .video-modal {
        padding: 12px;
    }

    .video-modal__dialog {
        width: 100%;
        padding: 12px 12px 10px;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .history-item__action {
        width: 100%;
    }

}

@media (max-width: 520px) {
    .topbar__logo {
        min-height: 90px;
        padding: 0 12px;
    }

    .topbar__logo-image {
        height: 90px;
        width: auto;
        max-width: 100%;
    }

    .topbar__meta {
        min-height: 90px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .topbar__user {
        max-width: 132px;
    }

    .viralla__title {
        margin-bottom: 20px;
    }

    .viralla__subtitle {
        margin-bottom: 32px;
    }

    .offer-card__text {
        font-size: 1.2rem;
        line-height: 1.15;
    }

    .request-intro__lead {
        margin-bottom: 18px;
    }

    /* .rule-card {
        width: 100%;
    } */

    .rule-card__icon {
        min-height: 48px;
    }

    .rule-card__icon-image {
        max-width: 52px;
        max-height: 52px;
    }

    .choice-pill__label {
        width: 100%;
        min-width: 0;
    }

    .choice-pill {
        width: 100%;
    }

    .request-form__submit {
        width: 100%;
    }

    .request-footer {
        padding-bottom: 40px;
    }

    .result-card__heading {
        align-items: flex-start;
    }

    .result-card__title {
        font-size: 1.5rem;
    }

}

.topbar--login {
    justify-content: flex-start;
    gap: 0;
    min-height: auto;
}

.topbar--login .topbar__logo {
    width: min(100%, 340px);
}

.login-page {
    flex: 1;
    min-height: 0;
    position: relative;
    padding: var(--auth-safe-top-offset) 16px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 16px 26px 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22);
}

.login-card__title {
    margin: 10px 0 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
}

.login-card__subtitle {
    margin: 0 0 20px;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #4b4b4b;
}

.not-found-card {
    width: min(100%, 420px);
    padding-top: 22px;
    box-shadow: none;
}

.not-found-card__code {
    margin: 0 0 8px;
    text-align: center;
    font-size: 120px;
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: var(--color-accent);
}

.not-found-card .login-card__title,
.not-found-card .login-card__subtitle {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form__field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-form__password-wrap {
    position: relative;
    display: block;
}

.login-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #111111;
    cursor: pointer;
}

.login-form__checkbox-label > span {
    display: block;
}

.login-form__checkbox-label a {
    color: inherit;
    text-decoration: underline;
}

.login-form__checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #898989;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

.login-form__checkbox:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.login-form__checkbox:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.28);
    outline-offset: 2px;
}

.login-form__input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #898989;
    background: #ffffff;
    font: inherit;
    font-size: 0.92rem;
    color: #111111;
}

.login-form__input--password {
    padding-right: 42px;
}

.login-form__input::placeholder {
    color: #6f6f6f;
}

.login-form__input--error {
    border-color: #c92828;
}

.login-form__error {
    display: none;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #c92828;
}

.login-form__error:not(:empty) {
    display: block;
}

.login-form__success {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #1f7a1f;
}

.login-form__helper {
    margin: -6px 0 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #5d5d5d;
}

.login-form__toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f5f5f;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-form__toggle-password--active {
    color: #111111;
}

.login-form__toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.login-form__submit {
    width: 100%;
    height: 38px;
    border: 0;
    background: var(--color-accent);
    color: #111111;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-form__submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.login-form__submit--secondary {
    width: auto;
    height: auto;
    padding: 0;
    align-self: flex-start;
    background: transparent;
    color: #5d5d5d;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-form__submit--secondary:hover {
    background: transparent;
    color: #000000;
    transform: none;
}

.login-form__submit--secondary:disabled {
    color: #9a9a9a;
    cursor: not-allowed;
}

.login-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-form__link {
    font-size: 0.9rem;
    color: #5d5d5d;
}

.login-form__link:hover {
    color: #000000;
}

@media (max-width: 760px) {
    .login-page {
        padding: var(--auth-safe-top-offset) 16px 24px;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: var(--auth-safe-top-offset) 0 20px;
    }

    .login-card {
        width: 100%;
        max-width: none;
        padding: 18px 16px 20px;
        box-shadow: none;
    }

    .login-form__actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-height: 820px) {
    .login-page {
        padding-top: var(--auth-safe-top-offset);
    }
}
