:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-pop: 0 0 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.06);
    --accent: #2d8fe1;
    --accent-light: #cfeeff;
    --accent-very-light: #f4fbff;
    --accent-soft: rgba(45, 143, 225, 0.18);
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a {
    color: inherit;
    text-decoration: none;
}

.link {
    transition: color 180ms ease;
}

.link:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
    border-radius: 10px;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

header.is-scrolled {
    box-shadow: var(--shadow);
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 0;
}

.logo .brand {
    font-size: 16px;
    line-height: 1;
}

.logo .brand .primary {
    color: rgba(15, 23, 42, 0.92);
}

.logo .brand .accent {
    color: var(--accent);
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    color: rgba(15, 23, 42, 0.62);
    font-weight: 600;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nav-toggle {
    display: none;
}

.mobile-menu-wrap {
    display: none;
}

main {
    flex: 1;
    padding: 48px 0 64px;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.sidebar-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}

.sidebar-card__header img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.sidebar-card__content {
    padding: 18px 18px;
}

.sidebar-card__content h1 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sidebar-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.sidebar-subtitle {
    margin: 14px 0 10px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.92);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.02);
    font-size: 13px;
    line-height: 1;
    color: rgba(15, 23, 42, 0.78);
    font-weight: 600;
}

.hero {
    padding: 28px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(42, 168, 255, 0.06), rgba(15, 23, 42, 0.01));
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0;
    max-width: 75ch;
    color: var(--muted);
}

.home-page {
    max-width: 880px;
    margin: 0 auto;
}

.home-hero {
    display: grid;
    gap: 14px;
    border: 0;
    background: linear-gradient(
        135deg,
        var(--accent-light) 0%,
        var(--accent-very-light) 100%
    );
}

.home-search {
    margin-top: 6px;
    width: 100%;
    position: relative;
}

.home-search__label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.66);
}

.home-search__row {
    display: flex;
    gap: 10px;
    width: 100%;
    position: relative;
}

.home-search__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.home-search__input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.home-search__input:focus {
    outline: none;
    border-color: rgba(45, 143, 225, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 143, 225, 0.12);
}

.home-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.home-search__status {
    padding: 12px 14px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.62);
}

.home-search__result-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.home-search__result-link:first-child {
    border-top: 0;
}

.home-search__result-link:hover {
    background: rgba(15, 23, 42, 0.03);
    color: var(--accent);
}

.home-search__result-name {
    font-weight: 600;
}

.home-search__result-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-search__result-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-search__result-price {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.62);
    white-space: nowrap;
}

.auth {
    min-height: calc(100vh - 72px - 120px);
    display: grid;
    place-items: center;
    padding: 48px 0 64px;
}

.auth-card {
    width: min(420px, 100%);
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 22px 22px;
}

.auth-card__header {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.auth-card__subtitle {
    margin: 0;
    color: rgba(15, 23, 42, 0.62);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.66);
}

.auth-field__input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-field__input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.auth-field__input:focus {
    outline: none;
    border-color: rgba(45, 143, 225, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 143, 225, 0.12);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.72);
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-link {
    font-size: 14px;
    color: rgba(15, 23, 42, 0.72);
}

.auth-message {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.auth-message--error {
    background: rgba(239, 68, 68, 0.08);
    color: rgba(185, 28, 28, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-message--notice {
    background: rgba(45, 143, 225, 0.1);
    color: rgba(12, 74, 110, 0.95);
    border: 1px solid rgba(45, 143, 225, 0.25);
}

.auth-submit {
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(45, 143, 225, 0.35);
    background: rgba(45, 143, 225, 0.10);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease,
        color 180ms ease;
}

.auth-submit:hover {
    background: rgba(45, 143, 225, 0.14);
    border-color: rgba(45, 143, 225, 0.5);
    color: var(--accent);
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.62);
    margin-top: 6px;
}

.dashboard-page {
    padding: 22px 0 56px;
}

.dashboard-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
}

.dashboard-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dashboard-account-card {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.02);
}

.dashboard-email {
    display: grid;
    gap: 4px;
}

.dashboard-email__label {
    color: rgba(15, 23, 42, 0.62);
    font-size: 13px;
}

.dashboard-email__value {
    font-weight: 600;
    word-break: break-word;
    color: rgba(15, 23, 42, 0.92);
}

.dashboard-tabs {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-tab {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: rgba(15, 23, 42, 0.72);
    font: inherit;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.dashboard-tab.is-active,
.dashboard-tab[aria-current="page"] {
    color: var(--accent);
    border-color: rgba(45, 143, 225, 0.38);
    background: rgba(45, 143, 225, 0.08);
}

.dashboard-tab-panels {
    margin-top: 14px;
}

.dashboard-tab-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.stores-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.stores-add-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(45, 143, 225, 0.35);
    background: rgba(45, 143, 225, 0.1);
    color: rgba(15, 23, 42, 0.9);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.stores-add-btn:hover {
    color: var(--accent);
    border-color: rgba(45, 143, 225, 0.5);
    background: rgba(45, 143, 225, 0.14);
}

.store-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.store-delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
    color: rgba(185, 28, 28, 0.9);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.store-delete-btn:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.14);
}

.game-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.game-avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.04);
    flex: 0 0 auto;
}

.game-name-cell__title {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
}

.game-name-cell__slug {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.5);
    margin-top: 2px;
}

.update-edit-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(45, 143, 225, 0.28);
    background: rgba(45, 143, 225, 0.08);
    color: rgba(15, 23, 42, 0.84);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.update-edit-btn:hover {
    color: var(--accent);
    border-color: rgba(45, 143, 225, 0.42);
    background: rgba(45, 143, 225, 0.12);
}

.update-modal {
    border: 0;
    border-radius: 16px;
    padding: 0;
    width: min(520px, calc(100% - 24px));
    box-shadow: var(--shadow-pop);
}

.update-modal::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.update-modal__form {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.update-modal__form h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.update-modal__game {
    margin: 0;
    color: rgba(15, 23, 42, 0.68);
}

.update-modal__field {
    display: grid;
    gap: 6px;
}

.update-modal__field span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.66);
}

.update-modal__input {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--text);
}

.update-modal__input:focus {
    outline: none;
    border-color: rgba(45, 143, 225, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 143, 225, 0.12);
}

.update-modal__textarea {
    min-height: 120px;
    padding: 10px 12px;
    resize: vertical;
}

.report-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.update-modal__actions {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.update-modal__btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.update-modal__btn--ghost {
    border-color: var(--border);
    background: #fff;
    color: rgba(15, 23, 42, 0.82);
}

.update-modal__btn--primary {
    border-color: rgba(45, 143, 225, 0.35);
    background: rgba(45, 143, 225, 0.1);
    color: rgba(15, 23, 42, 0.9);
}

.dashboard-logout-form {
    margin: 0;
}

.dashboard-logout {
    min-width: 220px;
}

@media (max-width: 520px) {
    .auth {
        padding: 24px 0 48px;
        min-height: auto;
    }
    .auth-card {
        border-radius: 16px;
        padding: 18px 16px;
    }

    .dashboard-page {
        padding: 12px 0 40px;
    }

    .dashboard-head h1 {
        font-size: 24px;
    }

    .dashboard-account-card {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-logout {
        width: 100%;
    }
}

.home-search__button {
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(45, 143, 225, 0.35);
    border-radius: 12px;
    background: rgba(45, 143, 225, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-search__button:hover {
    color: var(--accent);
    background: rgba(45, 143, 225, 0.12);
    border-color: rgba(45, 143, 225, 0.5);
}

.content {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.card {
    padding: 18px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.text-page {
    max-width: 900px;
    margin: 0 auto;
}

.text-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.text-card h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
}

.text-card h2 {
    margin: 24px 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.text-card p {
    margin: 0;
    color: rgba(15, 23, 42, 0.78);
    line-height: 1.7;
}

.error-page {
    padding: 48px 0 72px;
}

.error-card {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 26px 24px;
}

.error-code {
    margin: 0 0 10px;
    font-size: clamp(36px, 8vw, 62px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.2);
}

.error-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.error-text {
    margin: 0;
    max-width: 64ch;
    color: rgba(15, 23, 42, 0.72);
}

.error-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.error-btn {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.error-btn--primary {
    border-color: rgba(45, 143, 225, 0.35);
    background: rgba(45, 143, 225, 0.1);
    color: rgba(15, 23, 42, 0.9);
}

.error-btn--primary:hover {
    color: var(--accent);
    border-color: rgba(45, 143, 225, 0.5);
    background: rgba(45, 143, 225, 0.14);
}

.error-btn--ghost {
    border-color: var(--border);
    background: #fff;
    color: rgba(15, 23, 42, 0.86);
}

.error-btn--ghost:hover {
    color: var(--accent);
}

.error-help {
    margin-top: 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.03);
    padding: 14px 14px;
    color: rgba(15, 23, 42, 0.72);
}

.error-help strong {
    display: block;
    margin-bottom: 6px;
}

.error-help ul {
    margin: 0;
    padding-left: 18px;
}

.error-help li + li {
    margin-top: 4px;
}

.page-content h2 {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.breadcrumbs {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.55);
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li + li::before {
    content: "›";
    color: rgba(15, 23, 42, 0.35);
}

.breadcrumbs a {
    color: inherit;
}

.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.price-table-scroll,
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

.price-table thead th {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.62);
    background: rgba(15, 23, 42, 0.02);
}

.price-table tbody td {
    border-top: 1px solid var(--border);
}

.price-table tbody tr.offer-row--status-error td {
    background: rgba(239, 68, 68, 0.12);
}

.price-table tbody td:first-child {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.86);
}

.price-table th:last-child,
.price-table td:last-child {
    text-align: right;
}

.price-table .num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.offer-store-name {
    display: inline;
}

.offer-meta-mobile {
    display: none;
}

.note {
    margin: 14px 0 0;
    line-height: 1.6;
    max-width: 80ch;
}

.updated {
    margin: 10px 0 0;
    color: rgba(15, 23, 42, 0.55);
    font-size: 13px;
}

.after-section {
    margin-top: 120px;
}

.info-card {
    border-radius: 16px;
    border: 0;
    background: rgba(15, 23, 42, 0.03);
    padding: 20px 18px;
    text-align: center;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.info-card__title {
    font-weight: 700;
    font-size: 25px;
    color: rgba(15, 23, 42, 0.92);
}

.info-card__text {
    color: rgba(15, 23, 42, 0.62);
    font-size: 14px;
    max-width: 60ch;
}

.report-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: rgba(15, 23, 42, 0.86);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.report-btn:hover {
    color: var(--accent);
}

.similar {
    margin-top: 110px;
}

.home-similar {
    margin-top: 28px;
}

.similar-more {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.similar-more[hidden] {
    display: none;
}

.similar-more__button {
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(45, 143, 225, 0.35);
    border-radius: 12px;
    background: rgba(45, 143, 225, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.similar-more__button:hover {
    color: var(--accent);
    background: rgba(45, 143, 225, 0.12);
    border-color: rgba(45, 143, 225, 0.5);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.similar-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.similar-card__link {
    display: grid;
    grid-template-rows: auto 1fr;
    color: inherit;
    min-height: 100%;
}

.similar-card__link:hover .similar-card__cta {
    color: var(--accent);
}

.similar-card img {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
}

.similar-card__body {
    padding: 12px 12px;
    display: grid;
    gap: 6px;
}

.similar-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(15, 23, 42, 0.9);
}

.similar-card__price {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.62);
}

.similar-card__stores {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.5);
    font-weight: 600;
}

.similar-card__cta {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.76);
    transition: color 180ms ease;
}

@media (max-width: 900px) {
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(45, 143, 225, 0.35);
    background: rgba(45, 143, 225, 0.08);
    color: var(--text);
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.buy-btn:hover {
    color: var(--accent);
    background: rgba(45, 143, 225, 0.12);
    border-color: rgba(45, 143, 225, 0.5);
}

footer {
    background: #f2f4f7;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-inner {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.copyright {
    color: var(--muted);
    align-self: stretch;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-self: stretch;
}

.footer-links a {
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 12px;
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .menu.menu-desktop {
        display: none;
    }

    .nav {
        position: relative;
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: rgba(15, 23, 42, 0.7);
        cursor: pointer;
        transition: background-color 180ms ease;
    }

    .nav-toggle:hover {
        background: rgba(15, 23, 42, 0.05);
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 999px;
        transition: transform 200ms ease, opacity 180ms ease, width 200ms ease;
    }

    .nav-toggle span + span {
        margin-top: 5px;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 22px;
    }

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

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 22px;
    }

    .mobile-menu-wrap {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-pop);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 260ms ease, opacity 180ms ease, transform 200ms ease;
    }

    .mobile-menu-wrap .menu {
        display: block;
        padding: 8px 0;
    }

    .mobile-menu-wrap .menu a {
        display: block;
        padding: 14px 0;
        border-radius: 0;
    }

    .mobile-menu-wrap .menu a + a {
        border-top: 1px solid var(--border);
    }

    body.nav-open .mobile-menu-wrap {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    header {
        z-index: 10;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sidebar-card {
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar-card__header img {
        height: 250px;
    }
}

@media (max-width: 520px) {
    .container {
        width: 100%;
    }

    .nav {
        height: 64px;
    }

    main {
        padding: 0 0 48px;
    }

    .hero {
        padding: 22px 18px;
    }

    .home-search__row {
        display: block;
    }

    .home-search__input {
        width: 100%;
    }

    .mobile-pad {
        padding-left: 16px;
        padding-right: 16px;
    }

    .error-page {
        padding: 24px 0 48px;
    }

    .error-card {
        padding: 20px 16px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .breadcrumbs {
        display: none;
    }

    .text-card {
        border-radius: 12px;
        padding: 18px;
    }

    .text-card h1 {
        font-size: 24px;
    }

    .text-card h2 {
        font-size: 18px;
    }

}

@media (max-width: 768px) {
    .table-scroll .price-table {
        min-width: 620px;
    }

    .table-scroll .price-table--offers {
        min-width: 0;
    }

    .price-table--offers th:nth-child(2),
    .price-table--offers td:nth-child(2),
    .price-table--offers th:nth-child(3),
    .price-table--offers td:nth-child(3) {
        display: none;
    }

    .price-table--offers .offer-store-name {
        display: block;
    }

    .price-table--offers .offer-meta-mobile {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.3;
        color: rgba(15, 23, 42, 0.55);
        font-weight: 500;
    }
}
