:root {
    --accent: #FF6600;
    --accent-dark: #FF6600;
    --surface: #fffaf5;
    --ink: #211c19;
    --muted: #746b66;
    --line: #eadfd7;
    --card: #ffffff;
    --soft: #f7eee8;
    --success: #248a52;
    --warning: #c87817;
    --danger: #c72f2f;
    --shadow: 0 18px 54px rgba(61, 37, 25, .10);
    --radius: 24px;
}

* { box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 8% -2%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 31rem),
        var(--surface);
    color: var(--ink);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: 90px;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
html {
    -webkit-text-size-adjust: 100%;
}

.field {
    min-width: 0;
}

.field input,
.field select,
.field textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
section#app-current-order {
    grid-template-columns: 1fr;
}
.app-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 14px 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: auto; height: 54px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.phone-link { font-weight: 800; letter-spacing: -.02em; }
.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 12px 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.cart-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cart-button strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    font-size: 12px;
}
.cart-icon { font-size: 18px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 520px;
    padding: clamp(56px, 7vw, 100px) 0;
}
.hero-copy { max-width: 820px; }
.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    margin: 14px 0 20px;
    font-size: clamp(43px, 7vw, 88px);
    line-height: .98;
    letter-spacing: -.065em;
}
.hero-copy > p {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.button-primary:hover { background: var(--accent-dark); }
.button-soft { border-color: var(--line); background: var(--card); color: var(--ink); }
.button-soft:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
button.button.button-soft.install-button.red {
background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}
.button-block { width: 100%; }
.hero-card {
    position: relative;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--line);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}
.hero-card::before {
    content: "🍣";
    position: absolute;
    right: -10px;
    top: -30px;
    font-size: 110px;
    opacity: .08;
    transform: rotate(-12deg);
}
.hero-card div { display: grid; gap: 5px; padding: 28px; background: color-mix(in srgb, var(--card) 95%, var(--accent)); }
.hero-card strong { font-size: 23px; letter-spacing: -.03em; }
.hero-card span { color: var(--muted); font-size: 14px; }

.catalog-section { padding: 42px 0 90px; scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.045em; }
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
}
.search-box span { color: var(--muted); font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-nav {
    display: flex;
    gap: 9px;
    margin: 0 calc(clamp(16px, 4vw, 64px) * -1) 30px;
    padding: 2px clamp(16px, 4vw, 64px) 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.category-button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.catalog-status { padding: 52px 0; color: var(--muted); text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 28px rgba(61, 37, 25, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}
.field  input[type="radio"] {
    width: auto;
    min-height: auto;
    appearance: auto;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--soft), #fff); cursor: pointer; }
.product-image-wrap:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -3px; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image { transform: scale(1.035); }
.product-placeholder, .product-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); font-size: 54px; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 19px; }
.product-category { color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-name { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.product-weight { margin: -3px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.product-description { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 5px; }
.product-price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.add-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.add-button:hover { background: var(--accent-dark); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0 44px; border-top: 1px solid var(--line); }
.site-footer strong { font-size: 20px; }
.site-footer p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.drawer-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(25, 18, 14, .45); backdrop-filter: blur(3px); }
.cart-drawer {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(460px, 100%);
    height: 100dvh;
    padding: 24px;
    background: var(--card);
    transform: translateX(105%);
    transition: transform .28s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header, .checkout-header, .settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drawer-header h2, .checkout-header h2 { margin: 5px 0 0; font-size: 30px; letter-spacing: -.04em; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--ink); font-size: 27px; cursor: pointer; }
.cart-items { display: grid; gap: 12px; margin: 24px -5px; padding: 0 5px; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 17px; }
.cart-row img, .cart-row-placeholder, .cart-row-image-placeholder { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.cart-row-placeholder, .cart-row-image-placeholder { display: grid; place-items: center; font-size: 25px; }
.cart-row-info { min-width: 0; }
.cart-row-info strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cart-row-info small { color: var(--muted); }
.quantity-control { display: flex; align-items: center; gap: 6px; }
.quantity-control button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); cursor: pointer; }
.quantity-control span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 800; }
.cart-empty { margin: auto; padding: 30px; text-align: center; }
.cart-empty > span { display: block; margin-bottom: 14px; font-size: 50px; }
.cart-empty strong { display: block; font-size: 20px; }
.cart-empty p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cart-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-total, .summary-total, .summary-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.cart-total { margin-bottom: 17px; }
.cart-total strong, .summary-total strong { font-size: 24px; }

.checkout-dialog {
    width: min(1100px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(22, 13, 9, .28);
}
.checkout-dialog::backdrop { background: rgba(25, 18, 14, .55); backdrop-filter: blur(5px); }
.checkout { max-height: calc(100dvh - 28px); overflow-y: auto; }
.checkout-header { position: sticky; z-index: 3; top: 0; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.checkout-fields { padding: 8px 28px 30px; }
.form-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; font-size: 18px; }
.form-section h3 > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--soft); color: var(--accent-dark); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.field-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.delivery-time-field { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
.inline-choices { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 46px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.inline-choices label { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 650; }
.inline-choices input { width: auto; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.choice-card input { margin-top: 3px; accent-color: var(--accent); }
.choice-card strong { display: block; font-size: 13px; }
.choice-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.form-hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.address-autocomplete { position: relative; margin-bottom: 13px; }
.suggestions { position: absolute; z-index: 10; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.suggestion-button { display: block; width: 100%; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; }
.suggestion-button:last-child { border-bottom: 0; }
.suggestion-button:hover { background: var(--soft); }
.suggestion-button strong { display: block; font-size: 13px; }
.suggestion-button small { color: var(--muted); }
.delivery-result { margin-top: 12px; padding: 13px 15px; border-radius: 13px; background: color-mix(in srgb, var(--success) 10%, var(--card)); color: var(--success); font-size: 13px; font-weight: 700; }
.delivery-result.is-warning { background: color-mix(in srgb, var(--warning) 11%, var(--card)); color: #8d570d; }
.checkout-summary { position: sticky; top: 90px; align-self: start; min-height: 100%; padding: 28px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 50%, var(--card)); }
.checkout-summary h3 { font-size: 19px; }
.checkout-summary-item { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.checkout-summary-item span:first-child { min-width: 0; }
.summary-row { padding: 13px 0; color: var(--muted); font-size: 13px; }
.summary-total { margin: 15px 0 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.checkout-total-values { display: inline-flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.checkout-total-values del { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration-thickness: 1.5px; }
.legal { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: calc(91px + env(safe-area-inset-bottom)); max-width: min(390px, calc(100% - 40px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.toast.is-error { background: var(--danger); }

.status-body, .settings-body { min-height: 100vh; }
.status-page, .settings-page { width: min(760px, calc(100% - 30px)); margin: 0 auto; padding: 36px 0 60px; }
.status-brand { margin-bottom: 28px; }
.status-card, .settings-card { overflow: hidden; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.status-card-head h1, .settings-card h1 { margin: 7px 0 10px; font-size: clamp(34px, 7vw, 52px); letter-spacing: -.05em; }
.status-card-head p, .settings-card > p { color: var(--muted); }
.status-steps { display: grid; gap: 0; margin: 32px 0; padding: 0; list-style: none; }
.status-steps li { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; min-height: 82px; color: #aaa19b; }
.status-steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; bottom: 0; left: 20px; width: 2px; background: var(--line); }
.status-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); font-size: 13px; font-weight: 800; }
.status-steps li strong { display: block; color: inherit; font-size: 16px; }
.status-steps li small { display: block; margin-top: 4px; color: inherit; }
.status-steps li.is-active { color: var(--success); }
.status-steps li.is-active > span { background: var(--success); color: #fff; box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 12%, transparent); }
.status-steps li.is-complete { color: var(--muted); }
.status-steps li.is-complete > span { background: var(--soft); color: var(--muted); }
.status-steps li time { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.status-order { padding: 22px 0; border-top: 1px solid var(--line); }
.status-order h2 { font-size: 20px; }
.status-item { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; color: var(--muted); font-size: 13px; }
.status-item strong { color: var(--ink); white-space: nowrap; }
.status-error, .form-alert { margin: 20px 0; padding: 14px 16px; border-radius: 13px; background: color-mix(in srgb, var(--danger) 9%, var(--card)); color: var(--danger); font-size: 13px; font-weight: 700; }
.status-actions, .settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.settings-login { width: min(460px, 100%); margin: 60px auto 0; }
.settings-login .field { margin: 22px 0 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 28px; }
.color-field input { min-height: 52px; padding: 6px; }
.form-alert.success { background: color-mix(in srgb, var(--success) 9%, var(--card)); color: var(--success); }
.settings-actions { justify-content: flex-end; padding-top: 20px; }
.title-sub {
    font-size: 20px;
    margin-bottom: 20px;
    text-wrap: balance;
}
.title-sub span {
    font-weight: 900;
    color: var(--accent);
}
.current-order-card {
    display: grid;
    grid-template-columns: 1fr;
}
@media (max-width: 1100px) {
    .current-order-card { grid-template-columns: 1fr; align-items: stretch; }
    .current-order-card .button { justify-self: start; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-card { grid-template-columns: repeat(3, minmax(0, 1fr)); transform: none; }
    .hero-card div { padding: 19px; }
    .hero-card strong { font-size: 17px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 580px) {
    .site-header { min-height: 72px; }
    .brand img { max-width: 140px; height: 43px; }
    .phone-link { display: none; }
    .cart-button { min-height: 44px; padding-left: 13px; }
    .cart-button > span:nth-child(2) { display: none; }
    .hero { padding: 48px 0 68px; }
    .hero h1 { font-size: clamp(42px, 13vw, 62px); }
    .hero-card { grid-template-columns: 1fr; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .search-box { width: 100%; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-card { border-radius: 18px; }
    .product-body { gap: 7px; padding: 12px; }
    .product-name { font-size: 14px; }
    .product-description { display: none; }
    .product-price { font-size: 16px; }
    .add-button { width: 38px; height: 38px; border-radius: 12px; }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .cart-drawer {
    padding: 19px 19px 100px;
}
.hero h1.sm {
    font-size: clamp(36px, 9vw, 62px);
}
.checkout-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
}
    .checkout { max-height: 100dvh; }
    .checkout-header { padding: 18px; }
    .checkout-fields, .checkout-summary { padding: 8px 18px 24px; }
    .field-grid, .field-grid.two-columns { grid-template-columns: 1fr 1fr; }
    .field-grid .field-wide { grid-column: 1 / -1; }
    .choice-grid { grid-template-columns: 1fr; }
    .status-page, .settings-page { padding-top: 20px; }
    .status-card, .settings-card { padding: 22px 18px; border-radius: 21px; }
    .settings-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .mobile-bottom-nav #cart-open.cart-received-item { animation: none !important; }
}

.dev-banner { position: sticky; z-index: 1000; top: 0; padding: 8px 16px; background: #2d2a26; color: #fff; text-align: center; font-size: 12px; font-weight: 800; }
.account-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-soft); }
.profile-page { padding: 38px 0 70px; }
.profile-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft); }
.profile-card + .profile-card, .profile-grid { margin-top: 20px; }
.profile-card-heading, .profile-order-head, .profile-order-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-card-heading h2, .profile-card h2 { margin-bottom: 16px; }
.profile-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 14px; }
.profile-grid { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 20px; align-items: start; }
.profile-address-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.profile-address-list li { padding: 12px 14px; border-radius: 14px; background: var(--surface); font-weight: 700; }
.profile-orders-card { min-width: 0; }
.profile-order { padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.profile-order + .profile-order { margin-top: 12px; }
.profile-order small { display: block; margin: 5px 0 12px; color: var(--muted); }
.profile-order ul { display: grid; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.profile-order li { display: flex; justify-content: space-between; gap: 12px; }
.profile-order-total { padding-top: 12px; border-top: 1px solid var(--line); }
.order-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff1d6; color: #8a5700; font-size: 12px; font-weight: 800; }
.status-completed { background: #e4f7ec; color: #176b3a; }.status-canceled, .status-cancelled { background: #fde8e7; color: #9d2420; }.status-processing { background: #e8f0ff; color: #2659a8; }.status-in_transit { background: #e6f6f0; color: #176b3a; }
.empty-copy { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
    .account-link { min-height: 38px; padding: 0 12px; }
    .profile-form, .profile-grid { grid-template-columns: 1fr; }
    .profile-page { padding-top: 24px; }
}

/* Mobile application navigation and customer dashboard */
.app-shell { padding-bottom: 96px; }
.mobile-bottom-nav {
    position: fixed;
    z-index: 80;
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    width: min(420px, calc(100% - 24px));
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    box-shadow: 0 18px 50px rgba(39, 25, 18, .18);
    backdrop-filter: blur(18px);
    transform: translateX(50%);
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
    position: relative;
    display: flex;
    min-height: 55px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}
.mobile-bottom-nav i { font-size: 19px; }
.mobile-bottom-nav .is-active, .mobile-bottom-nav a:hover, .mobile-bottom-nav button:hover { background: var(--soft); color: var(--accent-dark); }
.mobile-bottom-nav b {
    position: absolute;
    top: 4px;
    left: calc(50% + 8px);
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid var(--card);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
}
.fly-to-cart-item {
    position: fixed;
    z-index: 10000;
    overflow: hidden;
    pointer-events: none;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 16px 42px rgba(39, 25, 18, .28);
    transform-origin: center;
}
.fly-to-cart-item img { width: 100%; height: 100%; object-fit: cover; }
.mobile-bottom-nav #cart-open.cart-received-item { animation: cart-received-item .48s ease; }
@keyframes cart-received-item {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.14); background: var(--soft); color: var(--accent-dark); }
}
.saved-address-field { margin-bottom: 14px; }

.profile-body { background: #f4f5f7; }
.profile-shell { width: min(980px, 100%); }
.profile-page { padding: 22px 0 120px; }
.auth-card { width: min(520px, 100%); margin: 5vh auto 0; padding: clamp(24px, 6vw, 44px); }
.auth-brand {
    display: block;
    margin-bottom: 10px;
}
.auth-brand img { width: auto; height: 50px; object-fit: contain; }
.auth-card h1 { margin: 8px 0 12px; font-size: clamp(30px, 7vw, 44px); letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); line-height: 1.55; }
.auth-card form { display: grid; gap: 14px; }
.auth-card #call-panel .button { margin: 4px 8px 4px 0; }

.profile-dashboard { display: grid; gap: 18px; }
.profile-dashboard-header {
    position: relative;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px 4px;
}
.app-global-header {
    position: sticky;
    top: 0;
    padding: 12px 4px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
}
.profile-person { display: flex; min-width: 0; gap: 14px; align-items: center; }
.app-global-header .profile-person > span:last-child { display: grid; min-width: 0; }
.global-profile-name {
    overflow: hidden;
    max-width: min(55vw, 520px);
    font-size: clamp(16px, 4vw, 34px);
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-global-header .profile-person small { color: var(--muted); font-size: 13px; }
.app-global-header .profile-person small b { color: var(--accent-dark); }
.profile-avatar {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 21px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, #fff), var(--card));
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, var(--line));
    font-size: 25px;
    font-weight: 800;
}
.profile-person h1 { overflow: hidden; margin: 0; font-size: clamp(23px, 5vw, 34px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.profile-person p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-person p strong { color: var(--accent-dark); }
.burger-button {
    display: grid;
    width: 50px;
    height: 50px;
    padding: 13px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--card);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(39, 25, 18, .08);
}
.burger-button span { width: 22px; height: 2px; border-radius: 99px; background: var(--ink); transition: transform .22s ease, opacity .2s ease; }
.burger-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-button.is-open span:nth-child(2) { opacity: 0; }
.burger-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.profile-menu {
    position: absolute;
    top: 72px;
    right: 0;
    display: grid;
    width: min(300px, calc(100vw - 32px));
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(39, 25, 18, .2);
}
.profile-menu[hidden], .profile-menu-backdrop[hidden] { display: none; }
.profile-menu a, .profile-menu button { display: flex; gap: 13px; align-items: center; min-height: 50px; padding: 0 14px; border: 0; border-radius: 13px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 750; text-align: left; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--soft); color: var(--accent-dark); }
.profile-menu i { width: 22px; color: var(--accent); text-align: center; }
.profile-menu-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(24, 18, 15, .18); backdrop-filter: blur(2px); }
.profile-menu-open { overflow: hidden; }

.profile-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-quick-grid { margin: 12px 0 8px; }
.profile-quick-card {
    display: grid;
    min-width: 0;
    min-height: 142px;
    padding: 19px;
    align-content: start;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-radius: 24px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}
.profile-quick-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(39, 25, 18, .09); }
.profile-quick-card:disabled { cursor: default; opacity: .55; transform: none; }
.profile-quick-card i { margin-bottom: 12px; color: var(--accent); font-size: 23px; }
.profile-quick-card strong { font-size: clamp(17px, 3vw, 22px); letter-spacing: -.025em; }
.profile-quick-card span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.profile-banner {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(24px, 5vw, 42px);
    border-radius: 30px;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent));
    color: #fff;
}
.profile-banner::after { position: absolute; right: -60px; bottom: -110px; width: 260px; height: 260px; border: 42px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.profile-banner > div { position: relative; z-index: 1; max-width: 610px; }
.profile-banner .eyebrow { color: rgba(255,255,255,.78); }
.profile-banner h2 { margin: 8px 0; font-size: clamp(26px, 5vw, 42px); letter-spacing: -.045em; }
.profile-banner p { max-width: 570px; margin: 0; color: rgba(255,255,255,.84); line-height: 1.55; }
.profile-banner > i { position: relative; z-index: 1; margin-right: 5%; color: rgba(255,255,255,.24); font-size: clamp(64px, 12vw, 118px); transform: rotate(8deg); }

.current-order-card, .profile-content-card {
    scroll-margin-top: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: 27px;
    background: var(--card);
    box-shadow: 0 12px 40px rgba(39, 25, 18, .06);
}
.current-order-card { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.5fr) auto; align-items: center; gap: 24px; padding: clamp(22px, 4vw, 32px); }
.current-order-card .status-steps { margin: 0; }
.current-order-card .button { justify-self: end; }
.status-steps-compact li { min-height: 66px; }
.status-steps-compact li:not(:last-child)::after { top: 36px; left: 17px; }
.status-steps-compact li > span { width: 36px; height: 36px; }
.status-steps-compact li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.home-current-order { margin: 0 0 48px; }
.catalog-page-section { padding-top: 34px; }
.profile-promotions-section { min-height: 320px; }
.current-order-card[hidden] { display: none; }
.current-order-card h2 { margin: 7px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.current-order-card p { margin: 6px 0 0; color: var(--muted); }
.profile-content-card { padding: clamp(20px, 4vw, 32px); }
.profile-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.profile-section-heading h2 { margin: 6px 0 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.04em; }
.profile-form-modern { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-form-modern > .button { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.profile-field { display: flex; min-width: 0; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 17px; background: #fafafa; }
.profile-field > i { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; background: var(--soft); color: var(--accent-dark); }
.profile-field > span { min-width: 0; flex: 1; }
.profile-field small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.profile-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 750; }
.profile-address-list li { display: flex; gap: 12px; align-items: center; background: #fafafa; }
.profile-address-list i { color: var(--accent); }
.profile-order { padding: 20px; border-color: color-mix(in srgb, var(--line) 78%, transparent); border-radius: 20px; background: #fafafa; }
.profile-order-head > div { min-width: 0; }
.profile-order-head strong { font-size: 17px; }
.profile-order-head small { margin: 4px 0 0; }
.profile-order-total > span { display: flex; gap: 8px; align-items: baseline; }
.repeat-order-button { gap: 8px; min-height: 42px; }

.product-quick-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: visible; border: 0; border-radius: 28px; background: var(--card); color: var(--ink); box-shadow: 0 28px 90px rgba(28,18,13,.28); }
.product-quick-dialog::backdrop { background: rgba(25,18,14,.58); backdrop-filter: blur(5px); }
.product-quick-content { position: relative; display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: inherit; }
.product-quick-close { position: absolute; z-index: 3; top: 14px; right: 14px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(39,25,18,.13); }
.product-quick-image { min-height: 410px;}
.product-quick-photo, .product-quick-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-quick-photo-placeholder { display: grid; place-items: center; color: var(--accent); font-size: 76px; }
.product-quick-info { display: flex; min-width: 0; flex-direction: column; padding: clamp(28px, 5vw, 46px); }
.product-quick-info h2 { margin: 10px 0 12px; font-size: clamp(27px, 5vw, 39px); line-height: 1.08; letter-spacing: -.045em; }
.product-quick-description { margin: 19px 0 26px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.product-quick-bottom { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: auto; }
.product-quick-bottom strong { font-size: 25px; white-space: nowrap; }

.delivery-datetime-trigger {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.delivery-datetime-trigger[hidden] { display: none; }
.delivery-datetime-trigger > i:first-child { color: var(--accent); }
.delivery-datetime-trigger > i:last-child { color: var(--muted); font-size: 12px; }

.delivery-time-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(22, 13, 9, .28);
}
.delivery-time-dialog::backdrop { background: rgba(25, 18, 14, .58); backdrop-filter: blur(5px); }
.delivery-time-sheet { max-height: calc(100dvh - 28px); padding: 13px 28px 26px; overflow-y: auto; }
.delivery-time-handle { width: 54px; height: 5px; margin: 0 auto 22px; border-radius: 99px; background: var(--line); }
.delivery-time-heading { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.delivery-time-heading h2 { margin: 5px 0 0; font-size: clamp(25px, 5vw, 36px); }
.delivery-time-selected { display: grid; gap: 7px; margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--soft); }
.delivery-time-selected span { color: var(--muted); font-size: 13px; font-weight: 700; }
.delivery-time-selected strong { font-size: clamp(19px, 4vw, 25px); }
.delivery-time-section { margin-top: 24px; }
.delivery-time-section h3 { margin: 0 0 13px; font-size: 19px; }
.delivery-date-scroller { display: flex; gap: 10px; padding: 2px 2px 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.delivery-date-card { flex: 0 0 104px; min-height: 126px; padding: 14px 9px; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.delivery-date-card span, .delivery-date-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: lowercase; }
.delivery-date-card strong { display: block; margin: 6px 0; font-size: 27px; }
.delivery-date-card.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); }
.delivery-date-card:disabled { opacity: .4; cursor: not-allowed; }
.delivery-wheel-picker { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 10px; align-items: center; max-width: 460px; margin: 0 auto; }
.delivery-wheel-column { position: relative; min-width: 0; }
.delivery-wheel-column > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.delivery-wheel { height: 216px; padding-block: 84px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(var(--card), color-mix(in srgb, var(--soft) 55%, var(--card)) 42%, color-mix(in srgb, var(--soft) 55%, var(--card)) 58%, var(--card)); }
.delivery-wheel::-webkit-scrollbar { display: none; }
.delivery-wheel button { display: block; width: calc(100% - 18px); height: 48px; margin: 0 9px; padding: 0; scroll-snap-align: center; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: inherit; font-size: 20px; cursor: pointer; }
.delivery-wheel button.is-selected { background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--ink); font-size: 25px; font-weight: 800; }
.delivery-wheel-separator { padding-top: 27px; font-size: 28px; font-weight: 800; text-align: center; }
.delivery-time-message { margin: 14px 0 0; color: var(--warning); font-weight: 700; text-align: center; }
.delivery-time-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }

@media (max-width: 700px) {
    .profile-shell { padding-right: 14px; padding-left: 14px; }
    .profile-page { padding-top: 8px; }
.profile-dashboard-header {
    position: fixed;
    margin-top: 6px;
    padding: 12px;
    background: #ffffff85;
    backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(39, 25, 18, .06);
    width: calc(100% - 32px);
    left: 16px;
}
    .profile-avatar { width: 54px; height: 54px; flex-basis: 54px; border-radius: 18px; }
    .profile-person h1 { max-width: calc(100vw - 150px); }
    .profile-quick-grid { gap: 8px; }
    .home-quick-grid { margin-top: 6px; }
    .profile-quick-card { min-height: 126px; padding: 15px 12px; border-radius: 20px; }
    .profile-quick-card i { margin-bottom: 8px; }
    .profile-banner { min-height: 174px; border-radius: 25px; }
    .profile-banner > i { position: absolute; right: -8px; bottom: 8px; opacity: .5; }
    .profile-banner > div { max-width: 78%; }
    .profile-form-modern { grid-template-columns: 1fr; }
    .current-order-card { align-items: flex-end; }
    .profile-order li { font-size: 13px; }
    .profile-order-total { align-items: center; }
    .product-quick-content { grid-template-columns: 1fr; max-height: calc(100dvh - 28px); overflow-y: auto; }
    .product-quick-image { min-height: 240px; max-height: 38vh; }
    .product-quick-info { padding: 24px 19px; }
    .delivery-time-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
    .delivery-time-sheet { max-height: 92dvh; padding: 11px 17px calc(22px + env(safe-area-inset-bottom)); }
    .delivery-time-actions { position: sticky; bottom: -1px; z-index: 2; padding-top: 12px; background: var(--card); }
}

@media (max-width: 430px) {
    .mobile-bottom-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
    .profile-quick-card strong { font-size: 16px; }
    .profile-quick-card span { font-size: 11px; }
    .profile-banner > div { max-width: 88%; }
    .current-order-card { display: grid; }
    .current-order-card .button { width: 100%; }
    .profile-order-head { align-items: flex-start; }
    .profile-order-total { display: grid; }
    .repeat-order-button { width: 100%; }
    .delivery-date-card { flex-basis: 92px; min-height: 118px; }
    .delivery-time-actions { grid-template-columns: 1fr 1fr; }
    .delivery-time-actions .button-primary { grid-column: 1 / -1; grid-row: 1; }
}

/* Система баллов */
.loyalty-checkout {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
}
.loyalty-checkout-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.loyalty-checkout-heading span { font-size: 13px; color: var(--muted); }
.loyalty-checkout .button { margin-top: 10px; }
.loyalty-checkout .form-hint { margin: 9px 0 0; }
.loyalty-summary strong { color: var(--accent); }
.promo-checkout {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
}
.promo-input-row{display:flex;gap:8px;align-items:stretch}.promo-input-row input{min-width:0;flex:1;text-transform:uppercase}.promo-input-row .button{flex:0 0 auto}.promo-checkout .form-hint{margin:8px 0 0;color:#27844b}.promo-checkout .form-hint.is-error{color:#c83d3d}
@media(max-width:480px){.promo-input-row{align-items:stretch}.promo-input-row .button{padding-inline:12px}}

/* Инструкция установки PWA на iPhone */
.install-guide-open { overflow: hidden; }
.install-guide-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(28,18,13,.28);
}
.install-guide-dialog::backdrop { background: rgba(25,18,14,.62); backdrop-filter: blur(6px); }
.install-guide { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; max-height: calc(100dvh - 24px); }
.install-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 12px; }
.install-guide-header h2 { margin: 4px 0 0; font-size: clamp(21px,5vw,28px); line-height: 1.12; }
.install-guide-track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.install-guide-track::-webkit-scrollbar { display: none; }
.install-guide-slide { flex: 0 0 100%; min-width: 0; padding: 0 20px; overflow-y: auto; scroll-snap-align: start; }
.install-guide-slide img { display: block; width: auto; max-width: 100%; height: min(48dvh,560px); margin: 0 auto 14px; border-radius: 20px; object-fit: contain; }
.install-guide-slide > div { padding: 0 4px; }
.install-guide-slide span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.install-guide-slide h3 { margin: 5px 0 6px; font-size: 22px; line-height: 1.2; }
.install-guide-slide p { margin: 0; color: var(--muted); line-height: 1.5; }
.install-guide-dots { display: flex; justify-content: center; gap: 7px; padding: 15px 20px 8px; }
.install-guide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .2s ease, background .2s ease; cursor: pointer; }
.install-guide-dots button.is-active { width: 24px; background: var(--accent); }
.install-guide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 20px calc(18px + env(safe-area-inset-bottom)); }
.install-guide-actions .button { margin: 0; }
@media (max-width: 560px) {
    .install-guide-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
    .install-guide { max-height: 94dvh; }
    .install-guide-slide img { height: min(47dvh,500px); }
}
