:root {
    --bg: #08130f;
    --bg-soft: #0f1f18;
    --paper: rgba(13, 30, 23, 0.86);
    --card: rgba(16, 36, 27, 0.82);
    --card-strong: #183828;
    --text: #e4f5eb;
    --text-soft: #98b6a6;
    --line: rgba(107, 170, 136, 0.16);
    --shadow: 0 20px 60px rgba(2, 10, 7, 0.42);
    --gold: #75d99b;
    --gold-deep: #2ea56f;
    --olive: #1f874f;
    --olive-soft: #173827;
    --wine: #103f2b;
    --mint: #11281d;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shell: min(1180px, calc(100vw - 32px));
    --header-row-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(117, 217, 155, 0.18), transparent 34%),
        radial-gradient(circle at right 15%, rgba(46, 165, 111, 0.12), transparent 26%),
        radial-gradient(circle at 78% 26%, rgba(31, 135, 79, 0.14), transparent 24%),
        linear-gradient(180deg, #0d1713 0%, #10231b 46%, #08120f 100%);
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
    min-height: calc(100vh - var(--header-row-height));
    min-height: calc(100dvh - var(--header-row-height));
}

.error-page main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.error-page .page-hero,
.error-page .compact-hero {
    width: 100%;
    padding: 0;
}

.error-page .hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.error-page .hero-copy .eyebrow,
.error-page .hero-copy .hero-text {
    margin-left: auto;
    margin-right: auto;
}

.error-page .hero-copy .hero-text {
    max-width: 28ch;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 217, 155, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(8, 21, 16, 0.78);
    border-bottom: 1px solid rgba(107, 170, 136, 0.12);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
    color: #f6ffff;
    font-family: "Unbounded", sans-serif;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep) 52%, var(--wine));
    box-shadow: 0 12px 30px rgba(47, 166, 125, 0.28);
}

.brand-mark-image {
    background: rgba(13, 30, 23, 0.82);
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.brand strong,
.hero-copy h1,
.section-heading h2,
.compact-hero h1,
.city-hero h1,
.product-visual h1 {
    font-family: "Unbounded", sans-serif;
    letter-spacing: -0.02em;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand small {
    display: block;
    color: var(--text-soft);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.desktop-nav a {
    position: relative;
    color: var(--text-soft);
    font-weight: 600;
}

.desktop-nav a.is-active,
.desktop-nav a:hover {
    color: var(--text);
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--wine));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-account-shell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-dice-link,
.mobile-dice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.desktop-nav .header-dice-link {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 2px;
}

.desktop-nav .header-dice-link::after,
.desktop-nav .header-dice-link:hover::after,
.desktop-nav .header-dice-link.is-active::after {
    display: none;
}

.header-dice-link:hover,
.mobile-dice-link:hover {
    transform: none;
    opacity: 0.9;
}

.header-dice-link img,
.mobile-dice-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.mobile-dice-link {
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 18px;
    justify-content: flex-start;
    gap: 14px;
    background:
        radial-gradient(circle at top left, rgba(235, 202, 109, 0.18), transparent 52%),
        linear-gradient(145deg, rgba(23, 49, 36, 0.96), rgba(10, 26, 19, 0.94));
    border: 1px solid rgba(235, 202, 109, 0.22);
    box-shadow: 0 16px 32px rgba(5, 15, 11, 0.28);
}

.mobile-nav-inner > a.mobile-dice-link {
    padding: 12px 14px;
    background:
        radial-gradient(circle at top left, rgba(235, 202, 109, 0.18), transparent 52%),
        linear-gradient(145deg, rgba(23, 49, 36, 0.96), rgba(10, 26, 19, 0.94));
    border-radius: 18px;
}

.mobile-dice-link::after {
    content: "\041A\0443\0431\0438\043A\A";
    white-space: pre-line;
    display: block;
    color: #f3fff8;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.mobile-dice-link img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.mobile-dice-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(243, 214, 128, 0.34);
    box-shadow: 0 20px 36px rgba(5, 15, 11, 0.34);
}

.header-icon-button.mobile-header-notice {
    display: none;
}

.header-icon-button,
.mobile-account-notice {
    position: relative;
    width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(16, 36, 27, 0.82);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-icon-button:hover,
.mobile-account-notice:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.32);
    background: rgba(18, 42, 31, 0.92);
}

.header-icon-button svg,
.mobile-account-notice svg {
    width: 22px;
    height: 22px;
}

.header-icon-dot {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    box-shadow: 0 0 0 3px rgba(8, 21, 16, 0.9);
}

.header-icon-dot[hidden] {
    display: none;
}

.header-balance-pill,
.mobile-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(16, 36, 27, 0.78);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-balance-pill:hover,
.mobile-balance-pill:hover,
.header-balance-pill.is-active,
.mobile-balance-pill.is-active {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.3);
    background: rgba(18, 42, 31, 0.92);
}

.header-balance-pill span,
.mobile-balance-pill span {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.header-balance-pill strong,
.mobile-balance-pill strong {
    font-size: 0.95rem;
}

.header-account-dropdown {
    position: relative;
}

.header-account-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 240px;
    height: 14px;
}

.header-account-trigger {
    gap: 8px;
}

.header-account-trigger svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.header-account-dropdown:hover .header-account-trigger svg,
.header-account-dropdown:focus-within .header-account-trigger svg {
    transform: rotate(180deg);
}

.header-account-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    padding: 10px;
    display: grid;
    gap: 8px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(10, 24, 18, 0.98);
    box-shadow: 0 22px 44px rgba(1, 8, 6, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.header-account-dropdown:hover .header-account-menu,
.header-account-dropdown:focus-within .header-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-account-item,
.mobile-account-link {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(16, 36, 27, 0.74);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-account-item:hover,
.mobile-account-link:hover,
.header-account-item.is-active,
.mobile-account-link.is-active {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.28);
    background: rgba(18, 42, 31, 0.92);
}

.header-account-item.is-danger,
.mobile-account-link.is-danger {
    color: #ffd7d7;
    border-color: rgba(210, 116, 116, 0.22);
    background: rgba(52, 20, 20, 0.48);
}

.header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(16, 36, 27, 0.78);
    border: 1px solid rgba(107, 170, 136, 0.16);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.32);
    background: rgba(18, 42, 31, 0.92);
}

.header-pill.is-primary {
    color: #f6ffff;
    border-color: rgba(117, 217, 155, 0.34);
    background: linear-gradient(135deg, rgba(117, 217, 155, 0.2), rgba(16, 36, 27, 0.92) 58%, rgba(16, 63, 43, 0.92));
}

.header-pill.is-active {
    border-color: rgba(117, 217, 155, 0.38);
    box-shadow: 0 12px 28px rgba(1, 8, 6, 0.22);
}

.mobile-auth-links {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    display: grid;
    gap: 12px;
}

.mobile-auth-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 36, 27, 0.78);
    border: 1px solid rgba(107, 170, 136, 0.16);
    font-weight: 700;
}

.mobile-auth-link.is-primary {
    color: #f6ffff;
    border-color: rgba(117, 217, 155, 0.28);
    background: linear-gradient(135deg, rgba(117, 217, 155, 0.24), rgba(16, 36, 27, 0.92) 62%, rgba(16, 63, 43, 0.92));
}

.mobile-auth-link.is-active {
    border-color: rgba(117, 217, 155, 0.36);
}

.mobile-account-panel {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    display: grid;
    gap: 14px;
}

.mobile-account-summary {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(16, 36, 27, 0.82);
    border: 1px solid rgba(107, 170, 136, 0.16);
}

.mobile-account-summary strong {
    font-size: 1rem;
}

.mobile-account-summary span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.mobile-account-summary.is-active {
    border-color: rgba(117, 217, 155, 0.36);
}

.mobile-account-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.mobile-account-topline .mobile-balance-pill {
    width: 100%;
    justify-content: space-between;
}

.mobile-account-menu {
    display: grid;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(107, 170, 136, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(117, 217, 155, 0.14), transparent 58%),
        linear-gradient(145deg, rgba(16, 36, 27, 0.96), rgba(9, 22, 17, 0.92));
    box-shadow: 0 14px 30px rgba(1, 8, 6, 0.24);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.3);
    box-shadow: 0 18px 36px rgba(1, 8, 6, 0.3);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(243, 255, 248, 0.96), rgba(117, 217, 155, 0.92));
    box-shadow: 0 0 14px rgba(117, 217, 155, 0.18);
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.menu-toggle span:nth-child(2) {
    width: 15px;
}

.menu-toggle[aria-expanded="true"] {
    border-color: rgba(117, 217, 155, 0.34);
    background:
        radial-gradient(circle at top left, rgba(117, 217, 155, 0.18), transparent 58%),
        linear-gradient(145deg, rgba(18, 42, 31, 0.98), rgba(10, 24, 18, 0.94));
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    width: 20px;
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    width: 20px;
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(9, 23, 18, 0.96);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-inner {
    padding: 18px 0 32px;
    display: grid;
    gap: 14px;
}

.mobile-nav-inner > a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 36, 27, 0.78);
}

.hero-section,
.page-hero {
    padding: 54px 0 28px;
}

.hero-grid,
.compact-hero-grid,
.city-hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
}

.hero-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.hero-copy,
.hero-panel,
.hero-badge-card,
.city-hero-card,
.filter-card,
.product-media,
.product-summary,
.summary-card,
.form-card,
.step-card,
.review-card,
.product-card,
.city-card,
.area-card,
.hero-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 42px;
}

.hero-copy h1,
.compact-hero h1,
.city-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.hero-text,
.compact-hero p,
.city-hero p,
.product-description {
    color: var(--text-soft);
    line-height: 1.7;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-deep);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-actions,
.section-heading {
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    color: #f6ffff;
    border-color: rgba(117, 217, 155, 0.34);
    background: linear-gradient(135deg, #78e3a6 0%, #59d490 52%, #37b776 100%);
    box-shadow:
        0 18px 35px rgba(17, 74, 49, 0.32),
        inset 0 1px 0 rgba(243, 255, 248, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    border-color: rgba(134, 235, 177, 0.44);
    background: linear-gradient(135deg, #89ecb4 0%, #67dea0 52%, #43c583 100%);
    box-shadow:
        0 20px 38px rgba(17, 74, 49, 0.36),
        inset 0 1px 0 rgba(243, 255, 248, 0.24);
}

.btn-secondary {
    background: rgba(16, 36, 27, 0.82);
    border-color: rgba(107, 170, 136, 0.16);
}

.btn-danger-soft {
    color: #ffe3e0;
    background: rgba(58, 22, 22, 0.82);
    border-color: rgba(212, 114, 114, 0.24);
}

.btn-danger-soft:hover {
    transform: translateY(-1px);
    border-color: rgba(226, 132, 132, 0.36);
    background: rgba(74, 28, 28, 0.9);
}

.btn-full {
    width: 100%;
}

.btn-compact {
    min-height: 42px;
    padding: 9px 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hero-stats article {
    padding: 16px;
    border-radius: 20px;
    background: rgba(18, 41, 31, 0.82);
}

.hero-stats strong {
    display: block;
    font-size: 1.5rem;
}

.hero-stats span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.hero-panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-card {
    height: 100%;
    padding: 34px;
    background:
        radial-gradient(circle at 10% 20%, rgba(46, 165, 111, 0.24), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(117, 217, 155, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(15, 35, 27, 0.96), rgba(9, 22, 17, 0.94));
}

.hero-card-top,
.city-card-top,
.area-card-top,
.summary-top,
.summary-line,
.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hero-card h2 {
    margin: 12px 0;
    font-size: 2rem;
}

.hero-card p,
.hero-preview-list p,
.city-card p,
.step-card p,
.review-card p,
.area-card p,
.summary-card p,
.filter-note p,
.footer-note p {
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-city-badges,
.detail-pills,
.selector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-city-badges span,
.detail-pills span,
.tag,
.selector-chip,
.active-filter-strip,
.hero-badge-card span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 39, 29, 0.84);
    border: 1px solid rgba(107, 170, 136, 0.12);
}

.hero-preview-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.hero-preview-list article {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(17, 39, 29, 0.74);
}

.section {
    padding: 34px 0 42px;
}

.section-tight {
    padding-top: 18px;
    padding-bottom: 12px;
}

.section-soft {
    background: rgba(12, 27, 20, 0.72);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.7rem);
    max-width: 860px;
    line-height: 1.12;
}

.city-grid,
.product-grid,
.review-grid,
.area-grid {
    display: grid;
    gap: 20px;
}

.city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-card,
.step-card,
.review-card,
.area-card {
    padding: 26px;
}

.city-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.city-card:hover,
.product-card:hover,
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(1, 8, 6, 0.38);
}

.city-name {
    font-size: 1.25rem;
    font-weight: 800;
}

.city-meta,
.muted,
.checkout-note,
.footer-note small {
    color: var(--text-soft);
}

.city-card-bottom strong,
.area-card-top h3 {
    display: block;
    margin-bottom: 10px;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    overflow: hidden;
    padding: 0;
}

.product-card-simple {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-main {
    display: block;
    color: inherit;
    flex: 1;
}

.product-card-simple .product-card-body {
    padding: 20px 22px 24px;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.product-card-simple h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card-simple p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card-placeholder {
    min-height: clamp(140px, 18vw, 190px);
    align-items: flex-start;
    justify-content: flex-end;
}

.product-card-placeholder-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(9, 22, 17, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: rgba(243, 255, 248, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
}

.product-card-actions {
    display: grid;
    gap: 10px;
    padding: 0 22px 22px;
    width: 100%;
    min-width: 0;
    justify-items: stretch;
}

.card-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    border-radius: 14px;
    background: rgba(17, 39, 29, 0.84);
    color: var(--gold);
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.card-more:hover {
    border-color: rgba(117, 217, 155, 0.28);
    background: rgba(20, 46, 34, 0.92);
    color: #f3fff8;
}

.product-card-actions > * {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.product-card-actions .btn {
    width: 100%;
    min-width: 0;
}

.card-select {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
}

.modal-open {
    overflow: hidden;
}

.product-preview-modal[hidden] {
    display: none;
}

.product-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    justify-items: center;
    align-items: start;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.product-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 7, 0.72);
    backdrop-filter: blur(6px);
}

.product-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(13, 30, 23, 0.96);
    box-shadow: 0 30px 80px rgba(1, 8, 6, 0.46);
}

.product-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(9, 22, 17, 0.46);
    color: #f3fff8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.product-preview-visual {
    flex: 0 0 auto;
    min-height: 220px;
    padding: 22px;
}

.product-preview-body {
    flex: 1 1 auto;
    padding: 22px 22px 24px;
    display: grid;
    gap: 16px;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.product-preview-body h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-preview-body p {
    margin: 0;
    max-width: 100%;
    color: var(--text-soft);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-preview-actions {
    display: flex;
}

.product-preview-actions .btn {
    min-width: 0;
}

.product-card-visual,
.product-visual {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-image {
    padding: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(9, 22, 17, 0.92);
}

.product-card-image::before,
.product-card-image::after {
    display: none;
}

.product-card-visual::before,
.product-visual::before,
.product-card-visual::after,
.product-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.8;
}

.product-card-visual::before,
.product-visual::before {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -90px;
    background: rgba(255, 255, 255, 0.08);
}

.product-card-visual::after,
.product-visual::after {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: -80px;
    background: rgba(117, 217, 155, 0.08);
}

.accent-wheat {
    color: #f3fff8;
    background: linear-gradient(135deg, #61cd8c, #25764f 45%, #123a29);
}

.accent-flour {
    color: #f3fff8;
    background: linear-gradient(135deg, #52c57f, #216b49 44%, #112f24);
}

.accent-buckwheat {
    color: #f3fff8;
    background: linear-gradient(135deg, #42b367, #1f6a41 44%, #10311f);
}

.accent-rice {
    color: #f3fff8;
    background: linear-gradient(135deg, #72d79b, #2d8b5d 44%, #123826);
}

.accent-semolina {
    color: #f3fff8;
    background: linear-gradient(135deg, #89e0af, #357d58 46%, #143326);
}

.product-badge,
.product-visual-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(9, 22, 17, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.product-card-visual h3,
.product-visual h1 {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
}

.product-card-body {
    padding: 22px 24px 24px;
}

.product-meta {
    margin-top: 16px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.card-link {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 800;
    color: var(--gold-deep);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.step-card span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(46, 165, 111, 0.2);
    color: var(--gold-deep);
    font-weight: 800;
}

.review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-rating {
    margin-bottom: 14px;
    color: var(--gold-deep);
    letter-spacing: 0.18em;
}

.reviews-carousel-shell {
    --reviews-gap: 20px;
    --reviews-per-view: 3;
    display: grid;
    gap: 22px;
}

.reviews-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.reviews-carousel-note {
    margin: 0;
    max-width: 720px;
}

.reviews-carousel-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.reviews-carousel-btn {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(107, 170, 136, 0.18);
    border-radius: 16px;
    background: rgba(13, 30, 23, 0.9);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reviews-carousel-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(117, 217, 155, 0.3);
    background: rgba(17, 39, 29, 0.96);
}

.reviews-carousel-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.reviews-carousel-viewport {
    overflow: hidden;
}

.reviews-carousel-track {
    display: flex;
    gap: var(--reviews-gap);
    align-items: stretch;
    will-change: transform;
}

.reviews-carousel-slide {
    flex: 0 0 calc((100% - (var(--reviews-gap) * (var(--reviews-per-view) - 1))) / var(--reviews-per-view));
    min-width: 0;
}

.reviews-carousel-shell .review-card {
    height: 100%;
    display: grid;
    gap: 16px;
    align-content: start;
    background: rgba(13, 30, 23, 0.96);
    box-shadow: 0 10px 24px rgba(2, 10, 7, 0.12);
}

.review-text {
    margin: 0;
}

.review-card-footer {
    display: grid;
    gap: 6px;
    margin-top: auto;
}

.review-card-footer strong {
    display: block;
}

.review-card-footer span {
    color: var(--text-soft);
}

.review-stars-fill,
.review-stars-muted {
    display: inline;
}

.review-stars-muted {
    color: rgba(188, 215, 199, 0.22);
}

.reviews-carousel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews-carousel-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(188, 215, 199, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reviews-carousel-dot.is-active {
    background: linear-gradient(135deg, #72d79b, #25764f);
    transform: scale(1.08);
}

.reviews-carousel-dot:hover {
    background: rgba(117, 217, 155, 0.52);
}

.compact-hero-grid {
    align-items: end;
}

.hero-badge-card,
.city-hero-card {
    padding: 30px;
    display: grid;
    gap: 12px;
}

.hero-badge-card strong,
.city-hero-card strong {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.catalog-layout,
.checkout-layout,
.product-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.filter-card,
.summary-card,
.form-card {
    padding: 26px;
}

.filter-form,
.checkout-form {
    display: grid;
    gap: 16px;
}

.filter-form label,
.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
}

.filter-form select,
.filter-form input,
.form-grid input,
.form-grid textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(9, 22, 17, 0.92);
    color: var(--text);
}

.form-grid textarea {
    min-height: 132px;
    resize: vertical;
}

.filter-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
}

.active-filter-strip {
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-wizard-shell,
.catalog-wizard-content {
    display: grid;
    gap: 18px;
}

.catalog-inline-summary {
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(13, 30, 23, 0.86);
    box-shadow: var(--shadow);
}

.catalog-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.catalog-inline-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(14, 31, 24, 0.72);
}

.catalog-inline-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(46, 165, 111, 0.18);
    color: var(--gold);
    font-weight: 800;
}

.catalog-inline-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.catalog-inline-item strong,
.catalog-step-head h2 {
    margin: 0;
}

.catalog-inline-value {
    font-size: 1.06rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.catalog-inline-item small {
    display: block;
    color: var(--text-soft);
    line-height: 1.5;
}

.catalog-inline-caption {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-inline-edit {
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 700;
    justify-self: start;
    white-space: nowrap;
}

.catalog-inline-edit:hover {
    color: var(--gold-deep);
}

.catalog-inline-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.catalog-step {
    padding: 26px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(13, 30, 23, 0.86);
    box-shadow: var(--shadow);
}

.catalog-step.is-locked {
    opacity: 0.72;
}

.catalog-step-head {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.catalog-step-head h2 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.catalog-step-state {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 39, 29, 0.84);
    border: 1px solid rgba(107, 170, 136, 0.12);
    color: var(--text-soft);
    font-size: 0.95rem;
    white-space: nowrap;
}

.catalog-step-note {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(14, 31, 24, 0.72);
    display: grid;
    gap: 6px;
}

.catalog-step-note strong {
    display: block;
}

.catalog-step-note span {
    color: var(--text-soft);
    line-height: 1.6;
}

.catalog-choice-card {
    display: block;
    border: 1px solid rgba(107, 170, 136, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card.catalog-choice-card {
    display: flex;
    flex-direction: column;
}

.product-card.catalog-choice-card .product-card-actions {
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

.product-card.catalog-choice-card .card-more,
.product-card.catalog-choice-card .card-select {
    justify-self: stretch;
}

.catalog-choice-card:hover,
.catalog-choice-card.is-selected {
    transform: translateY(-3px);
    border-color: rgba(57, 200, 106, 0.34);
    box-shadow: 0 24px 50px rgba(1, 8, 6, 0.38);
}

.catalog-choice-card.is-selected .card-link,
.catalog-choice-card.is-selected .city-name,
.catalog-choice-card.is-selected .area-card-top h3 {
    color: var(--gold);
}

.catalog-step-complete {
    overflow: hidden;
    min-width: 0;
}

.catalog-order-summary {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.catalog-order-visual {
    min-height: 260px;
    aspect-ratio: 4 / 3;
    padding: 24px;
    align-self: start;
    justify-content: flex-end;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.catalog-order-body,
.catalog-order-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.catalog-order-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(14, 31, 24, 0.76);
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.catalog-order-row span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.catalog-order-row strong,
.catalog-order-row p {
    margin: 0;
}

.catalog-order-row strong {
    font-size: 1.02rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.catalog-order-row p {
    color: var(--text-soft);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.catalog-order-row-wide {
    align-items: start;
}

.catalog-order-row-wide p {
    grid-column: 2 / 4;
}

.catalog-order-row-total {
    border-color: rgba(117, 217, 155, 0.2);
    background: linear-gradient(145deg, rgba(19, 44, 32, 0.92), rgba(12, 26, 20, 0.86));
}

.catalog-order-row-total strong {
    color: var(--gold);
    font-size: 1.15rem;
}

.catalog-order-warning {
    margin: 2px 0 0;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(14, 31, 24, 0.7);
    color: var(--text-soft);
    line-height: 1.6;
}

.catalog-order-edit {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.catalog-order-edit:hover {
    color: var(--gold-deep);
}

.catalog-finish-actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-finish-actions .btn {
    min-width: min(100%, 320px);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
}

.catalog-unavailable-state h3 {
    margin: 0 0 28px;
}

.catalog-unavailable-actions {
    justify-content: center;
}

.product-layout {
    grid-template-columns: 1.1fr 0.9fr;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-soft);
}

.card-shadow {
    box-shadow: var(--shadow);
}

.product-media {
    padding: 0;
    overflow: hidden;
}

.product-points {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.product-points article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.product-points strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(46, 165, 111, 0.2);
    color: var(--gold-deep);
}

.product-summary {
    padding: 30px;
}

.selector-block {
    margin-top: 24px;
}

.selector-block h3,
.form-card h2,
.filter-card h2,
.summary-card h2 {
    margin: 0 0 14px;
}

.selector-chip {
    font-weight: 700;
}

.selector-chip.is-active {
    background: linear-gradient(135deg, var(--olive), var(--wine));
    color: #f6ffff;
}

.package-list {
    display: grid;
    gap: 12px;
}

.package-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    align-items: center;
    width: 100%;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(14, 31, 24, 0.88);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.package-card:hover,
.package-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(57, 200, 106, 0.42);
}

.package-card small {
    grid-column: 1 / -1;
    color: var(--text-soft);
}

.checkout-card {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 34, 26, 0.96), rgba(9, 22, 17, 0.94));
    border: 1px solid rgba(107, 170, 136, 0.14);
}

.checkout-card p {
    margin: 0 0 6px;
}

.checkout-card strong {
    font-size: 1.35rem;
}

.checkout-note {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.contact-card-value,
.contact-card a {
    overflow-wrap: anywhere;
}

.rules-card {
    padding: 32px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.rules-content-block {
    min-width: 0;
    max-width: 100%;
    color: var(--text-soft);
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.auth-page-grid {
    align-items: start;
    justify-items: center;
    grid-template-columns: minmax(0, 1fr);
}

.auth-copy {
    display: grid;
    gap: 22px;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-benefit {
    padding: 22px;
    display: grid;
    gap: 10px;
}

.auth-benefit strong {
    font-size: 1.05rem;
}

.auth-benefit p {
    margin: 0;
}

.auth-card {
    display: grid;
    gap: 24px;
    padding: 34px;
    width: min(100%, 760px);
}

.auth-card-head {
    display: grid;
    gap: 10px;
}

.auth-card-head h2 {
    margin: 0;
}

.auth-card-head p {
    margin: 0;
    color: var(--text-soft);
}

.auth-form {
    gap: 14px;
}

.auth-form-stack {
    grid-template-columns: 1fr;
}

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

.auth-inline-note {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    color: var(--text-soft);
}

.auth-switch a {
    color: var(--gold);
    font-weight: 800;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(13, 30, 23, 0.88);
    color: var(--text);
    line-height: 1.6;
}

.auth-alert.is-error {
    border-color: rgba(230, 118, 118, 0.24);
    background: rgba(56, 18, 18, 0.42);
    color: #ffd2d2;
}

.auth-field-error {
    color: #ffb8b8;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-captcha-prompt {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    line-height: 1.6;
}

.auth-captcha-visual {
    display: block;
    margin-bottom: 10px;
    width: min(100%, 560px);
    min-height: 84px;
}

.auth-captcha-image {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-captcha-hint,
.auth-attempts-note {
    display: block;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-captcha-hint {
    margin-bottom: 8px;
}

.auth-attempts-note strong {
    color: var(--text);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gold-deep);
}

.profile-card {
    gap: 28px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-shell-main {
    min-width: 0;
}

.profile-sidebar-card {
    position: sticky;
    top: 108px;
    padding: 26px;
    display: grid;
    gap: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(13, 30, 23, 0.86);
    box-shadow: var(--shadow);
}

.profile-sidebar-head {
    display: grid;
    gap: 8px;
}

.profile-sidebar-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.profile-sidebar-head p {
    margin: 0;
    color: var(--text-soft);
}

.profile-sidebar-balance {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.88);
}

.profile-sidebar-balance span,
.profile-sidebar-balance small {
    color: var(--text-soft);
}

.profile-sidebar-balance strong {
    font-size: 1.5rem;
}

.profile-nav {
    display: grid;
    gap: 10px;
}

.profile-nav-link {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(16, 36, 27, 0.74);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-nav-link:hover,
.profile-nav-link.is-active {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.28);
    background: rgba(18, 42, 31, 0.92);
}

.profile-panel {
    display: grid;
    gap: 22px;
    padding: 30px;
}

.profile-panel-head {
    display: grid;
    gap: 10px;
}

.profile-panel-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.profile-panel-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.profile-notice {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(117, 217, 155, 0.18);
    background: rgba(20, 48, 35, 0.92);
    color: #e7fff1;
    line-height: 1.6;
}

.profile-notice.is-error {
    border-color: rgba(230, 89, 89, 0.22);
    background: rgba(58, 20, 20, 0.48);
    color: #ffcbcb;
}

.profile-summary-grid,
.profile-referral-grid,
.profile-payment-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-summary-card,
.profile-placeholder-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.82);
}

.profile-summary-card h3,
.profile-referral-box h3,
.profile-placeholder-card strong {
    margin: 0;
    font-size: 1.15rem;
}

.profile-placeholder-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.profile-inline-list,
.profile-stat-grid,
.profile-ticket-list {
    display: grid;
    gap: 14px;
}

.profile-inline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-inline-item,
.profile-stat-card,
.profile-referral-box,
.profile-ticket-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(16, 36, 27, 0.74);
}

.profile-inline-item span,
.profile-stat-card span,
.profile-ticket-item small,
.profile-referral-field {
    color: var(--text-soft);
}

.profile-inline-item strong,
.profile-stat-card strong {
    font-size: 1.06rem;
    line-height: 1.5;
}

.profile-ticket-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.profile-ticket-meta span {
    color: var(--gold);
    font-weight: 700;
}

.profile-ticket-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-orders-list,
.profile-support-compose,
.profile-support-layout {
    display: grid;
    gap: 18px;
}

.profile-order-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.82);
}

.profile-order-head {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: start;
}

.profile-order-head strong,
.profile-ticket-item strong {
    font-size: 1.08rem;
    line-height: 1.4;
}

.profile-order-head p,
.profile-support-copy,
.profile-thread-head p,
.profile-order-comment {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.profile-order-price {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(117, 217, 155, 0.18);
    background: rgba(16, 36, 27, 0.74);
    font-weight: 800;
    white-space: nowrap;
}

.profile-order-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-order-meta-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(16, 36, 27, 0.72);
}

.profile-order-meta-item span,
.profile-support-hint {
    color: var(--text-soft);
}

.profile-order-actions {
    display: flex;
    justify-content: flex-start;
}

.profile-support-layout {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
    align-items: start;
}

.profile-support-sidebar,
.profile-support-thread {
    min-width: 0;
}

.profile-support-form {
    display: grid;
    gap: 16px;
}

.profile-support-form textarea {
    width: 100%;
    min-height: 128px;
    padding: 14px 16px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(9, 22, 17, 0.92);
    color: var(--text);
    font: inherit;
}

.profile-support-form input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(107, 170, 136, 0.2);
    background: rgba(9, 22, 17, 0.72);
    color: var(--text-soft);
}

.field-error {
    color: #ffb4b4;
    line-height: 1.5;
}

.profile-ticket-item {
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.profile-ticket-item:hover,
.profile-ticket-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.28);
    background: rgba(18, 42, 31, 0.92);
}

.profile-ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(117, 217, 155, 0.18);
    background: rgba(26, 58, 42, 0.58);
    color: #dfffe9;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.profile-ticket-status.is-resolved,
.profile-ticket-status.is-closed {
    border-color: rgba(117, 217, 155, 0.24);
    background: rgba(27, 65, 47, 0.72);
}

.profile-ticket-status.is-rejected {
    border-color: rgba(230, 89, 89, 0.24);
    background: rgba(65, 24, 24, 0.72);
    color: #ffd6d6;
}

.profile-thread-head {
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
}

.profile-thread-head h3,
.profile-thread-admin-note strong {
    margin: 0;
}

.profile-thread-messages {
    display: grid;
    gap: 14px;
}

.profile-thread-message {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(15, 32, 24, 0.74);
}

.profile-thread-message.is-admin {
    border-color: rgba(117, 217, 155, 0.22);
    background: rgba(18, 42, 31, 0.88);
}

.profile-thread-message-head {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: start;
}

.profile-thread-message-head span {
    color: var(--text-soft);
    white-space: nowrap;
}

.profile-thread-message p,
.profile-thread-admin-note p {
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-thread-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 10px;
}

.profile-thread-image {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(8, 18, 14, 0.92);
}

.profile-thread-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.profile-thread-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(16, 36, 27, 0.72);
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.profile-thread-admin-note {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(117, 217, 155, 0.18);
    background: rgba(18, 42, 31, 0.82);
}

.profile-topup-form {
    display: grid;
    gap: 18px;
}

.profile-topup-methods {
    display: grid;
    gap: 14px;
}

.profile-topup-form label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
}

.profile-topup-form input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(9, 22, 17, 0.92);
    color: var(--text);
}

.profile-topup-inline-note {
    margin: -6px 0 2px;
    color: var(--text-soft);
    line-height: 1.6;
}

.profile-topup-range-line {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.profile-topup-summary p {
    margin: 0;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 700;
}

.profile-referral-box {
    background: rgba(9, 22, 17, 0.82);
}

.profile-referral-field {
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(6, 17, 13, 0.86);
    overflow-wrap: anywhere;
}

.profile-referral-link {
    color: #d9ffea;
}

.profile-referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-copy-button {
    min-width: 220px;
}

.profile-referral-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-metric {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.82);
}

.profile-metric span {
    color: var(--text-soft);
}

.profile-metric strong {
    font-size: 1.05rem;
}

.area-card a {
    margin-top: 8px;
    display: inline-flex;
    color: var(--gold-deep);
    font-weight: 800;
}

.checkout-layout {
    grid-template-columns: 1.15fr 0.85fr;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.payment-groups {
    display: grid;
    gap: 12px;
}

.payment-fixed-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-group {
    border-radius: 24px;
    background: rgba(14, 31, 24, 0.88);
    border: 1px solid rgba(107, 170, 136, 0.14);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.payment-group.is-active {
    border-color: rgba(73, 204, 128, 0.42);
    box-shadow: inset 0 0 0 1px rgba(73, 204, 128, 0.1);
}

.payment-group-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 14px;
    width: 100%;
    padding: 18px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    align-items: center;
    cursor: pointer;
}

.payment-group-toggle:hover {
    background: rgba(16, 36, 27, 0.18);
}

.payment-group-toggle:focus-visible {
    outline: 2px solid rgba(117, 217, 155, 0.42);
    outline-offset: -2px;
}

.payment-group-toggle input,
.payment-method input {
    margin-top: 4px;
}

.payment-group-copy,
.payment-method div,
.payment-method-copy {
    display: grid;
    gap: 8px;
}

.payment-group-copy span,
.payment-method span,
.checkout-selected-payment {
    color: var(--text-soft);
    line-height: 1.6;
}

.payment-method-badge {
    justify-self: start;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(94, 163, 122, 0.16);
    border: 1px solid rgba(94, 163, 122, 0.24);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-group-copy strong {
    font-size: 1.08rem;
}

.payment-group-chevron {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    justify-self: end;
    border-right: 2px solid rgba(228, 245, 235, 0.7);
    border-bottom: 2px solid rgba(228, 245, 235, 0.7);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.payment-group.is-active .payment-group-chevron {
    transform: rotate(225deg);
}

.payment-method-list {
    padding: 0 18px 18px 18px;
    display: grid;
    gap: 10px;
}

.payment-method-list[hidden] {
    display: none;
}

.payment-method {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(9, 22, 17, 0.38);
    border: 1px solid rgba(107, 170, 136, 0.14);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.payment-method:hover,
.payment-method.is-selected {
    border-color: rgba(73, 204, 128, 0.42);
    background: rgba(16, 36, 27, 0.94);
    transform: translateY(-1px);
}

.payment-method-note {
    color: var(--text-soft);
    line-height: 1.5;
}

.payment-method.is-disabled,
.payment-method.is-disabled:hover {
    cursor: not-allowed;
    opacity: 0.66;
    border-color: rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.24);
    transform: none;
}

.checkout-selected-payment {
    margin: 0 0 16px;
}

.checkout-selected-payment strong {
    color: var(--text);
}

.checkout-rules-link {
    color: #4cb7ff;
}

.payment-details-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(13, 30, 23, 0.86);
    box-shadow: var(--shadow);
}

.payment-details-card h2 {
    margin: 0 0 22px;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.delivery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 22px;
    align-items: start;
}

.delivery-main,
.delivery-aside {
    display: grid;
    gap: 22px;
}

.delivery-status-card,
.delivery-gallery-card,
.delivery-links-card,
.delivery-order-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(13, 30, 23, 0.86);
    box-shadow: var(--shadow);
}

.delivery-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.delivery-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(117, 217, 155, 0.22), rgba(46, 165, 111, 0.18));
    border: 1px solid rgba(117, 217, 155, 0.18);
    color: #f3fff8;
    font-weight: 700;
}

.delivery-status-card h2,
.delivery-links-card h2,
.delivery-order-card h2,
.delivery-support-card h2 {
    margin: 0 0 12px;
}

.delivery-status-card p,
.delivery-links-card p,
.delivery-support-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.delivery-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.delivery-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(107, 170, 136, 0.16);
    background: rgba(9, 22, 17, 0.92);
}

.delivery-gallery-button {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.delivery-links-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.delivery-links-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.58);
}

.delivery-links-label {
    color: #f3fff8;
    font-weight: 700;
}

.delivery-links-anchor {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.delivery-links-anchor:hover,
.delivery-links-anchor:focus-visible {
    color: var(--accent-2);
    text-decoration: underline;
}

.delivery-gallery-link-card {
    height: 100%;
    min-height: 220px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(117, 217, 155, 0.08), transparent 38%),
        rgba(9, 22, 17, 0.92);
}

.delivery-gallery-link-copy {
    display: grid;
    gap: 10px;
}

.delivery-gallery-link-copy strong {
    font-size: 1.05rem;
}

.delivery-gallery-link-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.delivery-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.delivery-gallery-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

.delivery-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.delivery-gallery-button:hover img,
.delivery-gallery-button:focus-visible img {
    transform: scale(1.03);
    filter: brightness(1.04);
}

.delivery-gallery-hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(8, 21, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3fff8;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(3, 10, 7, 0.26);
}

.delivery-photo-modal[hidden] {
    display: none;
}

.delivery-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
}

.delivery-photo-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    display: block;
    padding-top: 68px;
}

.delivery-photo-stage {
    position: relative;
    display: grid;
    gap: 14px;
    min-width: 0;
    width: min(100%, 980px);
    margin: 0 auto;
    touch-action: pan-y;
}

.delivery-photo-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(107, 170, 136, 0.18);
    background: rgba(7, 18, 14, 0.96);
    box-shadow: 0 30px 80px rgba(1, 8, 6, 0.52);
}

.delivery-photo-figure img {
    width: 100%;
    max-height: min(78vh, 860px);
    display: block;
    object-fit: contain;
    background: radial-gradient(circle at top, rgba(117, 217, 155, 0.08), transparent 48%), rgba(7, 18, 14, 0.96);
}

.delivery-photo-thumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    margin: 0 auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

.delivery-photo-thumb {
    flex: 0 0 84px;
    height: 84px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(107, 170, 136, 0.16);
    border-radius: 20px;
    background: rgba(9, 22, 17, 0.92);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.delivery-photo-thumb:hover,
.delivery-photo-thumb.is-active {
    opacity: 1;
    border-color: rgba(117, 217, 155, 0.36);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(1, 8, 6, 0.24);
}

.delivery-photo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.delivery-photo-close,
.delivery-photo-nav {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(107, 170, 136, 0.2);
    border-radius: 18px;
    background: rgba(9, 22, 17, 0.92);
    color: #f3fff8;
    box-shadow: 0 18px 36px rgba(1, 8, 6, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.delivery-photo-close:hover,
.delivery-photo-nav:hover {
    border-color: rgba(117, 217, 155, 0.34);
    background: rgba(14, 31, 24, 0.96);
}

.delivery-photo-nav:hover {
    transform: translateY(-50%) scale(1.02);
}

.delivery-photo-close:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.34);
}

.delivery-photo-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    font-size: 1.8rem;
    line-height: 1;
}

.delivery-photo-nav {
    position: absolute;
    top: calc(50% - 52px);
    z-index: 2;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.delivery-photo-nav[hidden] {
    display: none;
}

.delivery-photo-nav-prev {
    left: 20px;
}

.delivery-photo-nav-next {
    right: 20px;
}

.delivery-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.delivery-meta-item {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(9, 22, 17, 0.9);
}

.delivery-meta-item span {
    color: var(--text-soft);
}

.delivery-meta-item strong {
    line-height: 1.5;
}

.delivery-meta-item.full {
    grid-column: 1 / -1;
}

.delivery-review-form {
    display: grid;
    gap: 18px;
}

.delivery-review-stars {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.delivery-review-stars legend {
    padding: 0;
    color: var(--text-soft);
}

.review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.review-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-stars label {
    cursor: pointer;
    color: rgba(152, 182, 166, 0.28);
    font-size: 2.2rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.review-stars label:hover,
.review-stars label:hover ~ label,
.review-stars input:checked ~ label {
    color: var(--gold);
    text-shadow: 0 8px 18px rgba(46, 165, 111, 0.28);
    transform: translateY(-1px);
}

.delivery-review-status {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(117, 217, 155, 0.16);
    background: rgba(19, 44, 32, 0.92);
    color: #e7fff1;
    line-height: 1.6;
}

.delivery-review-status.is-error {
    border-color: rgba(230, 89, 89, 0.22);
    background: rgba(58, 20, 20, 0.5);
    color: #ffbebd;
}

.delivery-support-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.payment-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.payment-amount-box,
.payment-requisites-box {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(107, 170, 136, 0.14);
    background: rgba(14, 31, 24, 0.76);
}

.payment-amount-box span,
.payment-requisites-box span,
.payment-request-info p,
.payment-note {
    color: var(--text-soft);
    line-height: 1.6;
}

.payment-amount-box strong,
.payment-requisites-box strong {
    font-size: 1.35rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.payment-request-info {
    margin-bottom: 22px;
}

.payment-request-info p {
    margin: 0 0 12px;
}

.payment-data-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.payment-data-list span {
    color: var(--text-soft);
}

.payment-note {
    margin: 0 0 18px;
}

.payment-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-status-modal[hidden] {
    display: none;
}

.payment-status-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.payment-status-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 7, 0.76);
    backdrop-filter: blur(6px);
}

.payment-status-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(107, 170, 136, 0.18);
    background: rgba(13, 30, 23, 0.96);
    box-shadow: 0 30px 80px rgba(1, 8, 6, 0.46);
    text-align: center;
}

.payment-status-dialog h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.payment-status-dialog p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.payment-status-spinner,
.payment-status-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 999px;
}

.payment-status-spinner[hidden],
.payment-status-error-icon[hidden],
.payment-status-close[hidden] {
    display: none;
}

.payment-status-spinner {
    border: 4px solid rgba(107, 170, 136, 0.18);
    border-top-color: var(--gold);
    animation: spin 0.9s linear infinite;
}

.payment-status-error-icon {
    display: grid;
    place-items: center;
    background: rgba(168, 47, 47, 0.16);
    border: 1px solid rgba(230, 89, 89, 0.2);
    color: #ffb2b2;
    font-size: 2rem;
    font-weight: 800;
}

.payment-status-close {
    margin-top: 22px;
    border-color: rgba(117, 217, 155, 0.34);
    background: linear-gradient(145deg, rgba(39, 89, 62, 0.98), rgba(25, 57, 40, 0.96));
    box-shadow: 0 16px 34px rgba(3, 12, 9, 0.28);
    color: #f2fff7;
}

.payment-status-close:hover {
    border-color: rgba(117, 217, 155, 0.5);
    background: linear-gradient(145deg, rgba(58, 122, 88, 0.98), rgba(32, 74, 51, 0.96));
}

.notification-dialog {
    width: min(100%, 560px);
    max-height: min(82vh, 720px);
    overflow: auto;
    text-align: left;
    overflow-x: hidden;
}

.notification-header {
    position: sticky;
    top: -28px;
    z-index: 5;
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: -28px -28px 16px;
    padding: 28px 28px 16px;
    border-bottom: 1px solid rgba(117, 217, 155, 0.18);
    background: linear-gradient(180deg, rgba(13, 30, 23, 1) 0%, rgba(13, 30, 23, 0.99) 72%, rgba(13, 30, 23, 0.94) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 28px rgba(3, 12, 9, 0.22);
}

.notification-dialog h2 {
    margin: 0;
    text-align: left;
}

.notification-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.notification-icon-action {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(117, 217, 155, 0.3);
    border-radius: 999px;
    background: rgba(8, 22, 17, 0.72);
    color: #eafff1;
    cursor: pointer;
    display: grid;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    place-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notification-icon-action:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.52);
    background: rgba(24, 70, 47, 0.86);
}

.notification-icon-action span {
    display: block;
}

.notification-icon-action.is-refreshing span {
    animation: notification-refresh-spin 0.65s linear infinite;
}

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

.payment-status-dialog .notification-summary,
.payment-status-dialog .notification-empty {
    color: var(--text-soft);
    line-height: 1.6;
}

.notification-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    min-width: 0;
}

.notification-item {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(117, 217, 155, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(11, 30, 22, 0.94), rgba(8, 22, 17, 0.96));
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 8px;
    padding: 14px 16px;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 217, 155, 0.36);
    background: linear-gradient(145deg, rgba(17, 44, 32, 0.96), rgba(10, 28, 20, 0.98));
}

.notification-item.is-unread {
    border-color: rgba(232, 190, 109, 0.42);
    box-shadow: inset 3px 0 0 rgba(232, 190, 109, 0.78);
}

.notification-item.is-pinned {
    border-color: rgba(117, 217, 155, 0.42);
    box-shadow: inset 3px 0 0 rgba(117, 217, 155, 0.78);
}

.notification-item-title {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-item-heading {
    min-width: 0;
}

.notification-item-meta {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
}

.notification-badge {
    border-radius: 999px;
    background: rgba(117, 217, 155, 0.12);
    color: #a8f3c2;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    text-transform: uppercase;
}

.notification-action-hint {
    border: 1px solid rgba(117, 217, 155, 0.28);
    border-radius: 999px;
    background: rgba(117, 217, 155, 0.08);
    color: #b8f5cb;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 8px;
}

.notification-action-hint::after {
    content: " ›";
}

.notification-delete-action {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 150, 150, 0.22);
    border-radius: 999px;
    background: rgba(90, 28, 28, 0.18);
    color: #ffc7c7;
    cursor: pointer;
    display: grid;
    flex: 0 0 auto;
    font: inherit;
    padding: 0;
    place-items: center;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.notification-delete-action[hidden] {
    display: none;
}

.notification-delete-action svg {
    width: 17px;
    height: 17px;
}

.notification-delete-action:hover {
    border-color: rgba(255, 150, 150, 0.48);
    background: rgba(140, 40, 40, 0.24);
    color: #ffe0e0;
}

.notification-delete-action:disabled {
    cursor: wait;
    opacity: 0.6;
}

.notification-item-body {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-item-time {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.notification-detail {
    margin-top: 18px;
    border: 1px solid rgba(117, 217, 155, 0.18);
    border-radius: 20px;
    background: rgba(8, 22, 17, 0.72);
    padding: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-detail[hidden],
.notification-list[hidden],
.notification-empty[hidden] {
    display: none;
}

.notification-detail h3 {
    margin: 12px 0 10px;
}

.notification-detail-topline {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.payment-status-dialog .notification-detail p {
    color: var(--text-soft);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-detail-back {
    border: 0;
    background: transparent;
    color: #9cf1ba;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.muted-card {
    background: linear-gradient(145deg, rgba(19, 44, 32, 0.92), rgba(12, 26, 20, 0.86));
}

.order-summary {
    display: grid;
    gap: 16px;
}

.summary-line {
    padding: 14px 0;
    border-bottom: 1px solid rgba(107, 170, 136, 0.1);
}

.summary-line.total {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 1.05rem;
}

.summary-card.small {
    padding: 22px;
}

.site-footer {
    margin-top: auto;
    padding: 34px 0 48px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    background: rgba(8, 21, 16, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.8fr) minmax(220px, 0.95fr);
    gap: 28px 40px;
    align-items: start;
}

.footer-brand {
    max-width: 460px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-brand-link strong {
    display: block;
    font-size: 1.05rem;
}

.footer-brand-link small {
    display: block;
    color: var(--text-soft);
}

.footer-brand p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.footer-column {
    display: grid;
    gap: 12px;
}

.footer-heading {
    margin: 0;
    color: var(--gold-deep);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--text);
    font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact span {
    color: var(--text-soft);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 170, 136, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 0.7s ease forwards;
}

.reveal-delay {
    animation-delay: 0.16s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1080px) {
    .desktop-nav,
    .header-auth-links,
    .header-account-shell {
        display: none;
    }

    .header-row {
        gap: 16px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand > span:last-child {
        min-width: 0;
    }

    .brand strong,
    .brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-actions {
        margin-left: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .header-icon-button.mobile-header-notice {
        display: inline-flex;
        order: 1;
    }

    .mobile-account-notice {
        display: none;
    }

    .city-grid,
    .product-grid,
    .review-grid,
    .area-grid,
    .steps-grid,
    .hero-grid,
    .compact-hero-grid,
    .city-hero-grid,
    .catalog-layout,
    .delivery-layout,
    .checkout-layout,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .payment-amounts {
        grid-template-columns: 1fr;
    }

    .catalog-order-summary {
        grid-template-columns: 1fr;
    }

    .auth-page-grid,
    .auth-benefits {
        grid-template-columns: 1fr;
    }

    .profile-shell,
    .profile-summary-grid,
    .profile-referral-grid,
    .profile-payment-layout {
        grid-template-columns: 1fr;
    }

    .profile-support-layout,
    .profile-order-meta {
        grid-template-columns: 1fr;
    }

    .profile-sidebar-card {
        position: static;
    }

    .profile-referral-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-carousel-shell {
        --reviews-per-view: 2;
    }

    .reviews-carousel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviews-carousel-nav {
        align-self: flex-end;
    }
}

@media (max-width: 720px) {
    :root {
        --shell: min(100vw - 24px, 1180px);
        --radius-xl: 24px;
    }

    .header-row {
        min-height: 76px;
        gap: 12px;
    }

    .brand {
        gap: 12px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand strong {
        font-size: 0.92rem;
    }

    .brand small {
        font-size: 0.8rem;
    }

    .header-actions {
        gap: 10px;
    }

    .hero-copy,
    .hero-card,
    .filter-card,
    .product-summary,
    .summary-card,
    .form-card,
    .city-card,
    .area-card,
    .step-card,
    .review-card {
        padding: 22px;
    }

    .hero-copy h1,
    .compact-hero h1,
    .city-hero h1 {
        font-size: 2rem;
    }

    .hero-actions,
    .summary-top,
    .product-meta,
    .catalog-step-head,
    .hero-card-top,
    .city-card-top,
    .area-card-top {
        flex-direction: column;
        align-items: start;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-grid > .product-card:only-child {
        grid-column: 1 / -1;
    }

    .catalog-inline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-inline-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        min-height: 84px;
        padding: 12px;
    }

    .catalog-inline-index {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .catalog-inline-copy {
        gap: 4px;
    }

    .catalog-inline-value {
        font-size: 0.98rem;
    }

    .catalog-inline-caption {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .catalog-inline-edit {
        font-size: 0.82rem;
    }

    .product-card-simple .product-card-body {
        padding: 16px 16px 18px;
        gap: 10px;
    }

    .product-card-actions {
        padding: 0 16px 16px;
    }

    .product-card-placeholder {
        min-height: 118px;
        padding: 16px;
    }

    .product-grid .product-card-simple .product-card-body {
        gap: 0;
    }

    .product-grid .product-card-image {
        min-height: 0;
        aspect-ratio: 4 / 3;
        background-size: cover;
        background-position: center center;
        background-color: rgba(9, 22, 17, 0.96);
    }

    .product-grid .product-card-simple p {
        display: none;
    }

    .product-card-placeholder-badge {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .product-card-simple p {
        -webkit-line-clamp: 2;
    }

    .product-preview-modal {
        padding: 14px;
    }

    .product-preview-dialog {
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        border-radius: 22px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-switch {
        align-items: start;
        flex-direction: column;
    }

    .mobile-account-topline {
        grid-template-columns: 1fr;
    }

    .mobile-account-notice {
        width: 100%;
    }

    .mobile-nav {
        max-height: calc(100vh - 76px);
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel,
    .profile-sidebar-card,
    .profile-summary-card,
    .profile-placeholder-card {
        padding: 22px;
    }

    .profile-inline-list,
    .profile-referral-stats {
        grid-template-columns: 1fr;
    }

    .profile-order-head,
    .profile-thread-head,
    .profile-thread-message-head {
        flex-direction: column;
    }

    .profile-copy-button {
        width: 100%;
        min-width: 0;
    }

    .profile-ticket-meta {
        flex-direction: column;
    }

    .product-preview-visual {
        min-height: 210px;
        padding: 16px;
    }

    .product-preview-body {
        padding: 18px 18px 20px;
    }

    .payment-status-modal {
        padding: 14px;
    }

    .payment-status-dialog {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .delivery-status-card,
    .delivery-gallery-card,
    .delivery-links-card,
    .delivery-order-card {
        padding: 22px;
    }

    .delivery-status-head {
        align-items: stretch;
        flex-direction: column;
    }

    .delivery-meta-grid {
        grid-template-columns: 1fr;
    }

    .delivery-gallery {
        gap: 12px;
    }

    .delivery-gallery-item,
    .delivery-gallery-item:first-child,
    .delivery-gallery-item:not(:first-child) {
        aspect-ratio: 4 / 3;
    }

    .delivery-links-item {
        align-items: start;
        flex-direction: column;
    }

    .delivery-links-anchor {
        white-space: normal;
    }

    .delivery-photo-modal {
        padding: 14px;
    }

    .delivery-photo-dialog {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 62px;
    }

    .delivery-photo-thumbs {
        gap: 8px;
        padding-bottom: 2px;
    }

    .delivery-photo-thumb {
        flex-basis: 68px;
        height: 68px;
        border-radius: 16px;
    }

    .delivery-photo-nav {
        display: none;
    }

    .delivery-photo-close {
        top: 0;
        right: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .payment-group-toggle {
        grid-template-columns: minmax(0, 1fr) 14px;
        padding: 16px;
    }

    .payment-method-list {
        padding: 0 16px 16px;
    }

    .catalog-order-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
        padding: 18px 16px;
    }

    .catalog-order-summary,
    .catalog-order-body,
    .catalog-order-list {
        width: 100%;
        min-width: 0;
    }

    .catalog-order-visual {
        width: 100%;
        max-width: none;
        min-height: 152px;
        aspect-ratio: auto;
        justify-self: stretch;
        padding: 20px 18px;
        border-radius: 22px;
        gap: 12px;
        overflow: hidden;
    }

    .catalog-order-visual::before {
        width: 150px;
        height: 150px;
        right: -42px;
        top: -52px;
    }

    .catalog-order-visual::after {
        width: 110px;
        height: 110px;
        left: -24px;
        bottom: -36px;
    }

    .catalog-order-row span {
        font-size: 0.84rem;
    }

    .catalog-order-row strong {
        font-size: 1.08rem;
    }

    .catalog-order-row-wide p {
        grid-column: auto;
    }

    .catalog-order-edit {
        justify-self: start;
    }

    .catalog-finish-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }

    .reviews-carousel-shell {
        --reviews-per-view: 1;
        --reviews-gap: 14px;
        gap: 18px;
    }

    .reviews-carousel-nav {
        display: none;
    }

    .reviews-carousel-note {
        max-width: none;
    }

    .reviews-carousel-slide {
        flex-basis: 100%;
    }
}
