.mobile-screen-only,
.mobile-site-header {
    display: none;
}

@media (min-width: 801px) {
    .offer-page .offer-main { grid-area: 1 / 1; }
    .offer-page .offer-sidebar { grid-area: 1 / 2; }
}

@media (min-width: 551px) and (max-width: 800px) {
    .claim-primary { max-width: 500px; }
}

@media (max-width: 550px) {
    @font-face {
        font-family: "Skidkabon Inter";
        src: url("Inter.ttf") format("truetype");
        font-weight: 100 900;
        font-display: swap;
    }

    .mobile-screen {
        --mobile-surface: #fff;
        --mobile-muted: #454a53;
        --mobile-field: #f5f6f8;
        background: var(--mobile-surface);
        font-family: "Skidkabon Inter", Inter, system-ui, sans-serif;
    }

    .mobile-screen .shell { width: calc(100% - 36px); }
    .mobile-screen .mobile-screen-only { display: block; }
    .mobile-screen .standard-screen-only,
    .mobile-screen .standard-header-part,
    .mobile-screen .topline { display: none; }
    .mobile-screen > header { background: #080808; }

    .mobile-site-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 10;
        height: 56px;
        color: #fff;
    }

    .mobile-site-header .mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 24px;
    }

    .mobile-site-header .site-brand-mark,
    .mobile-site-header .brand-icon { width: 33px; height: 33px; }
    .mobile-site-header .site-brand-mark { display: block; }
    .mobile-header-title,
    .mobile-screen--auth .mobile-header-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .mobile-header-title { font-weight: 650; }
    .mobile-site-header .mobile-header-icon {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .mobile-header-icon .icon { width: 23px; height: 23px; }
    .mobile-offer-favorite { margin-left: auto; }
    .mobile-offer-favorite[aria-pressed="true"] .icon { color: var(--yellow); fill: currentColor; }
    .mobile-screen--auth .mobile-site-menu { margin-left: auto; }
    .mobile-site-menu summary { list-style: none; }
    .mobile-site-menu summary::-webkit-details-marker { display: none; }

    .mobile-menu-panel {
        position: absolute;
        top: 100%;
        inset-inline: -18px;
        max-height: calc(100vh - 56px);
        max-height: calc(100dvh - 56px);
        overflow: auto;
        padding: 12px 18px 16px;
        background: #080808;
        border-top: 1px solid #343434;
        box-shadow: 0 10px 18px #0003;
    }

    .mobile-menu-panel .city-form { gap: 8px; max-width: none; margin: 0 0 8px; }
    .mobile-menu-panel .city-form .icon { display: block; }
    .mobile-menu-panel .city-form select { max-width: 75%; min-height: 44px; }
    .mobile-menu-panel .search { margin: 0 0 8px; min-height: 44px; color: var(--ink); }
    .mobile-menu-panel .search input { font-size: 16px; }
    .mobile-menu-links { display: flex; flex-direction: column; }
    .mobile-menu-links a,
    .mobile-menu-links button {
        display: flex;
        align-items: center;
        min-height: 44px;
        color: #fff;
        font-size: 14px;
        text-align: left;
    }

    .mobile-menu-links button { padding: 0; border: 0; background: none; }

    .mobile-screen--auth main.main-content { width: calc(100% - 46px); }
    .mobile-screen--auth .auth-layout {
        margin: 10px auto 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .mobile-screen--auth .auth-story,
    .mobile-screen--auth .auth-card > .section-kicker { display: none; }
    .mobile-screen--auth .auth-card { padding: 0; }
    .mobile-auth-title { margin: 2px 0 5px; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; }
    .mobile-auth-description { margin: 0 0 13px; color: var(--mobile-muted); font-size: 14px; line-height: 1.4; }
    .mobile-screen .mobile-auth-promo {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 61px;
        margin: 0 0 14px;
        padding: 9px 14px;
        border-radius: 10px;
        background: var(--blue);
        color: #fff;
        font-weight: 600;
        line-height: 1.3;
    }

    .mobile-auth-promo .icon { color: var(--yellow); width: 28px; height: 28px; stroke-width: 1.8; }
    .mobile-screen--auth .stack-form { gap: 9px; }
    .mobile-screen--auth .stack-form label { gap: 4px; line-height: 1.25; font-weight: 600; }
    .mobile-screen--auth .stack-form input:not([type=checkbox]),
    .mobile-screen--coupons .coupon-search input {
        min-height: 46px;
        padding: 8px 12px;
        border-color: var(--line);
        border-radius: 12px;
        background: var(--mobile-field);
        font-size: 16px;
    }

    .mobile-screen--auth .password-field input { padding-right: 48px !important; }
    .mobile-screen--auth .password-field button {
        inset: 0 1px 0 auto;
        width: 44px;
        min-height: 44px;
        padding: 0;
        color: var(--mobile-muted);
        font-size: 0;
    }

    .mobile-screen--auth .password-field button::before {
        display: inline-block;
        width: 16px;
        height: 12px;
        border: 2px solid currentColor;
        border-radius: 65%;
        background: radial-gradient(circle, currentColor 0 2px, transparent 3px);
        content: "";
    }

    .mobile-screen--auth .password-field input[type="text"] + button::after {
        position: absolute;
        top: 50%;
        left: 11px;
        width: 22px;
        height: 2px;
        transform: rotate(-42deg);
        background: currentColor;
        content: "";
    }

    .mobile-screen--auth .stack-form .checkbox-label { gap: 9px; padding-block: 3px; font-size: 13px; line-height: 1.3; font-weight: 400; }
    .mobile-screen--auth .checkbox-label input { width: 18px; height: 18px; }
    .mobile-screen--auth .form-link { display: flex; align-items: center; min-height: 34px; font-weight: 600; }
    .mobile-screen--auth .auth-switch { margin: 14px 0 0; text-align: center; }

    .mobile-screen--auth .stack-form > .button,
    .mobile-screen--auth .auth-card > .button,
    .mobile-screen--coupons .coupon-item-code .button,
    .mobile-screen--offer .claim-primary .button {
        border-color: var(--yellow);
        border-radius: 8px;
        background: var(--yellow);
        color: var(--ink);
        font-weight: 700;
    }

    .mobile-screen--auth .stack-form > .button,
    .mobile-screen--auth .auth-card > .button,
    .mobile-screen--offer .claim-primary .button { min-height: 48px; padding: 8px 12px; }

    .mobile-screen .mobile-account-summary {
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        margin: 14px 0 16px;
    }

    .mobile-account-summary > span {
        display: grid;
        height: 43px;
        place-items: center;
        border-radius: 9px;
        background: var(--yellow);
        font-size: 21px;
        font-weight: 700;
    }

    .mobile-account-identity { display: grid; gap: 4px; overflow-wrap: anywhere; }
    .mobile-account-identity strong { font-size: 16px; line-height: 1.25; }
    .mobile-account-identity span { color: var(--mobile-muted); font-size: 13px; line-height: 1.35; }
    .mobile-account-summary a { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 13px; font-weight: 600; }
    .mobile-screen--coupons .page-heading > :not(h1) { display: none; }
    .mobile-screen--coupons .page-heading h1 { margin: 0 0 10px; font-size: 23px; }
    .mobile-screen--coupons .page-heading h1 span { font-size: 17px; }
    .mobile-screen--coupons .toolbar { gap: 10px; margin-bottom: 14px; }
    .mobile-screen--coupons .toolbar .tabs {
        display: grid;
        grid-template-columns: .95fr 1.42fr .92fr .62fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #92959b;
        border-radius: 24px;
    }

    .mobile-screen--coupons .tabs a {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        min-width: 0;
        padding: 0 3px;
        border-right: 1px solid var(--line);
        border-radius: 0;
        font-size: 12px;
    }

    .mobile-screen--coupons .tabs a:last-child { border-right: 0; }
    .mobile-screen--coupons .tabs a.active { background: #eef0f3; color: var(--ink); font-weight: 700; }
    .mobile-screen--coupons .tabs a:focus-visible { outline-offset: -3px; }
    .mobile-screen--coupons .coupon-search .button { min-height: 44px; padding: 8px 12px; }
    .mobile-screen--coupons .coupon-list { gap: 12px; }
    .mobile-screen--coupons .coupon-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 14px; border-radius: 12px; }
    .mobile-screen--coupons .coupon-thumb { border-radius: 9px; overflow: hidden; background: var(--mobile-field); }
    .mobile-screen--coupons .coupon-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
    .mobile-screen--coupons .coupon-item h2 { margin: 5px 0; font-size: 16px; font-weight: 650; line-height: 1.25; }
    .mobile-screen--coupons .coupon-item p { margin: 3px 0; font-size: 13px; line-height: 1.4; }
    .mobile-screen--coupons .coupon-item-code { min-width: 0; flex-wrap: nowrap; gap: 8px; padding: 8px 0 0; border-top: 1px solid var(--line); }
    .mobile-screen--coupons .coupon-item-code strong { min-width: 0; font-size: 17px; }
    .mobile-screen--coupons .coupon-item-code .button { display: grid; flex-shrink: 0; width: auto; min-height: 44px; place-items: center; padding: 8px 11px; font-size: 13px; }

    .mobile-profile-title { margin: 0 0 12px; font-size: 23px; line-height: 1.2; }
    .mobile-screen--profile .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0 0 17px;
    }

    .mobile-screen--profile .account-stats > a {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 4px 9px;
        padding: 11px;
        border-radius: 12px;
    }

    .mobile-screen--profile .account-stats .icon { width: 22px; height: 22px; }
    .mobile-screen--profile .account-stats strong { font-size: 21px; }
    .mobile-screen--profile .account-stats span { font-size: 12px; line-height: 1.35; }
    .mobile-screen--profile .account-columns > .content-panel,
    .mobile-screen--profile .account-deletion-panel { padding: 15px; border-radius: 12px; }
    .mobile-screen--profile .content-panel h2 { margin: 0 0 12px; font-size: 19px; }
    .mobile-screen--profile .stack-form,
    .mobile-screen--profile .form-grid { gap: 12px; }
    .mobile-screen--profile .stack-form label { gap: 5px; line-height: 1.35; }
    .mobile-screen--profile .stack-form input:not([type=checkbox]),
    .mobile-screen--profile .stack-form select {
        min-height: 46px;
        padding-block: 8px;
        border-color: var(--line);
        border-radius: 12px;
        background-color: var(--mobile-field);
        font-size: 16px;
    }

    .mobile-screen--profile .stack-form > .button {
        min-height: 48px;
        justify-content: center;
        border-color: var(--yellow);
        border-radius: 8px;
        background: var(--yellow);
        color: var(--ink);
        font-weight: 700;
    }

    .mobile-screen--offer main.main-content { padding-top: 0; }
    .mobile-screen--offer .offer-page { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
    .mobile-screen--offer .offer-layout,
    .mobile-screen--offer .offer-main,
    .mobile-screen--offer .offer-sidebar { display: contents; }
    .mobile-screen--offer .offer-main > * { order: 5; }
    .mobile-screen--offer .photo-carousel { order: 1; margin: 0 -18px 9px; }
    .mobile-screen--offer .offer-gallery { border-radius: 0; }
    .mobile-screen--offer .gallery-main-button > .offer-main-image {
        height: auto;
        max-height: 420px;
        max-height: min(55svh, 420px);
        aspect-ratio: auto;
        object-fit: contain;
    }
    .mobile-screen--offer .offer-discount { inset: auto auto 10px 18px; padding: 6px 10px; font-size: 13px; border-radius: 6px; }
    .mobile-screen--offer .offer-discount .mobile-screen-only { display: inline; }
    .mobile-screen--offer .gallery-thumbs { display: none; }
    .mobile-screen--offer .gallery-arrow,
    .mobile-screen--offer .gallery-pause { min-width: 44px; min-height: 44px; }

    .mobile-screen .mobile-offer-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        order: 2;
        gap: 4px 10px;
        margin-bottom: 7px;
        color: var(--mobile-muted);
        font-size: 12px;
        line-height: 1.4;
    }

    .mobile-offer-summary dl,
    .mobile-offer-summary dl > div { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
    .mobile-offer-summary dl > div { gap: 3px; }
    .mobile-offer-summary dd { margin: 0; color: var(--ink); font-weight: 600; }
    .mobile-screen--offer .offer-heading { order: 3; gap: 0; margin: 0 0 9px; }
    .mobile-screen--offer .offer-heading > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 7px 10px;
        width: 100%;
    }
    .mobile-screen--offer .offer-heading .section-kicker,
    .mobile-screen--offer .claim-card > .section-kicker,
    .mobile-screen--offer .claim-card > .muted,
    .mobile-screen--offer .claim-summary { display: none; }
    .mobile-screen--offer .offer-heading h1 {
        flex-basis: 100%;
        min-width: 0;
        margin: 0;
        font-size: clamp(22px, 6.15vw, 26px);
        line-height: 1.2;
        letter-spacing: -.35px;
        overflow-wrap: anywhere;
    }

    .mobile-offer-provider { flex: 1 1 10rem; margin: 0; color: var(--mobile-muted); font-size: 13px; overflow-wrap: anywhere; }
    .mobile-screen--offer .offer-minimum-price { margin: 0; padding: 4px 8px; border: 0; background: var(--mobile-field); font-size: 15px; }
    .mobile-screen--offer .claim-card { grid-row: auto; order: 4; padding: 0; border: 0; background: transparent; }
    .mobile-screen--offer .claim-card h2 { margin: 0 0 8px; font-size: 18px; }
    .mobile-screen--offer .claim-card:has(.claim-primary) h2 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .mobile-screen--offer .offer-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        margin: 0 0 9px;
        padding: 8px 9px;
        border-radius: 9px;
        background: var(--mobile-field);
        font-size: 13px;
    }

    .mobile-screen--offer .offer-facts > div { flex-direction: column; align-items: flex-start; gap: 1px; margin: 0; }
    .mobile-screen--offer .claim-card .stack-form { gap: 9px; }
    .mobile-screen--offer .claim-hint { margin: 6px 0 0; text-align: center; font-size: 13px; }
    .mobile-screen--offer .detail-countdown { margin-top: 12px; padding: 8px 10px; font-size: 13px; }
    .mobile-screen--offer .claim-primary {
        position: fixed;
        z-index: 5;
        inset: auto 0 0;
        display: grid;
        gap: 5px;
        padding: 8px 18px max(9px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--mobile-surface);
    }

    .mobile-screen--offer #claim-form:has(input:focus) .claim-primary { position: static; padding-inline: 0; }
    .mobile-screen--offer .claim-primary .button { display: flex; justify-content: center; gap: 8px; align-items: center; }
    .mobile-screen--offer .claim-primary .button .icon { width: 20px; height: 20px; }
    .mobile-screen--offer .claim-primary .claim-hint { margin: 0; }
    .mobile-screen--offer:has(.claim-primary) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    html:has(.mobile-screen--offer .claim-primary) { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
