:root{font-family:Manrope,system-ui,sans-serif}
:root[data-theme=dark]{--bg:#060a08;--surface:#0e1813;--raised:#15261c;--ink:#edf3ee;--muted:#b3c4b8;--edge:#294335;--control:#416b50;--active:#175c3a;--on-active:#f3faf5;--focus:#75bd8c;--star:#8dcc9f;background:var(--bg);color:var(--ink)}
body{background:radial-gradient(ellipse at 85% 0,rgba(30,108,64,.14),transparent 48%),var(--bg)}
header{padding:20px max(32px,calc((100vw - 1200px)/2));min-height:88px;background:transparent;border-color:var(--edge)}.brand{font-family:Jost,sans-serif;font-weight:400;font-size:24px;letter-spacing:.01em}.brand-icon{width:42px;height:42px;border-radius:50%;background:#ffffff}.headnote{font-size:12px;letter-spacing:.08em}.theme-toggle{border-radius:999px;padding:10px 20px;background:transparent}
main{max-width:1296px;padding:42px 48px 0}.catalog-title{font-family:Jost,sans-serif;font-size:clamp(40px,5.5vw,80px);font-weight:200;line-height:1.08;letter-spacing:-.025em;margin:0 0 18px;max-width:1100px}.intro{font-size:16px;line-height:1.7;max-width:700px;margin:0 0 34px}.catalog-tools{margin-bottom:28px}.toolbar{margin-bottom:16px}.search{min-height:56px;border-radius:999px;padding:0 22px;background:var(--surface);border-color:var(--edge)}.search input{height:54px}.search:focus-within{outline:1px solid var(--focus);outline-offset:3px}.categories{gap:10px}.category{border-radius:999px;background:transparent;border-color:var(--edge);padding:10px 18px;font-size:13px}.category[aria-pressed=true]{background:var(--active);color:var(--on-active);border-color:var(--active)}
.grid{gap:22px}.card{border-radius:22px;background:linear-gradient(145deg,rgba(24,55,35,.45),rgba(9,20,13,.95));border-color:var(--edge)}.face{height:90px;padding:26px 58px 18px 26px}.store-logo{height:40px;max-width:200px}.bottom{padding:8px 24px 24px}.code-button{gap:16px}.code-button img{height:84px;border-radius:8px;padding:8px}.card-number{font-size:16px;letter-spacing:.025em;font-weight:400}.code-hint{color:var(--muted);font-size:13px;text-decoration:none;letter-spacing:.02em}.favorite-toggle{width:48px;height:48px;top:6px;right:6px;color:var(--muted)}.favorite-toggle[aria-pressed=true]{color:var(--star)}
.store-logo{background:#ffffff;border-radius:5px;padding:5px}
.howto{margin-top:72px;background:transparent;border:0;border-top:1px solid var(--edge);border-radius:0;padding:40px 0 0}.howto h2{font-family:Jost,sans-serif;font-size:40px;font-weight:300;line-height:1.2;margin:0 0 24px}.howto p{max-width:750px;font-size:16px;line-height:1.8}.howto .open{border-radius:999px;min-height:52px;padding:14px 26px}.howto ol{gap:22px}.howto strong{font-weight:500}footer{margin-top:60px;padding-bottom:36px}
dialog,dialog.large{background:var(--surface);border-color:var(--edge);border-radius:24px;padding:32px}dialog h2{font-family:Jost,sans-serif;font-weight:300;font-size:36px}.close{border-radius:50%}.placeholder{margin:32px 0}.placeholder img{border-radius:8px}#back{border-radius:999px;min-height:52px}.empty{border-radius:22px;padding:36px}.empty .open{border-radius:999px}
@media(max-width:760px){header{padding:16px 20px;min-height:78px}.brand{font-size:20px;gap:9px}.brand-icon{width:36px;height:36px}.theme-toggle{padding:8px 12px;font-size:12px}main{padding:28px 20px 0}.catalog-title{font-size:clamp(38px,10.4vw,56px);line-height:1.12;margin-bottom:16px}.intro{font-size:14px;line-height:1.7;margin-bottom:24px}.search{min-height:52px;padding:0 16px}.search input{height:50px}.categories{gap:8px}.category{padding:10px 14px}.catalog-tools{margin-bottom:22px}.grid{gap:12px}.card{border-radius:18px}.face{height:66px;padding:18px 48px 10px 12px}.store-logo{height:30px}.favorite-toggle{width:44px;height:44px;top:2px;right:2px}.favorite-toggle svg{width:21px;height:21px}.bottom{padding:8px 10px 18px}.code-button img{height:58px;padding:5px;border-radius:5px}.code-button{gap:12px}.card-number{font-size:14px;letter-spacing:0}.howto{margin-top:56px;padding-top:28px}.howto h2{font-size:32px}.howto p{font-size:14px}dialog,dialog.large{padding:24px}.howto .open{width:100%}footer{margin-top:40px}}
@media(max-width:359px){.grid{grid-template-columns:1fr}.face{padding-left:48px}.brand{font-size:18px}.brand-icon{width:30px;height:30px}.theme-toggle{font-size:11px;padding:8px}.catalog-title{font-size:36px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .22s,border-color .22s,color .22s}.card{transition:border-color .22s}.card:hover{border-color:var(--control)}}

.headnote{display:block}
@media(max-width:760px){.headnote{display:none}.card-number{white-space:nowrap}.card[data-store=detmir] .card-number,.card[data-store=pyaterochka] .card-number,.card[data-store=perekrestok] .card-number{font-size:12px}}

:root,:root[data-theme=light]{--bg:#f5f7f4;--surface:#ffffff;--raised:#e9efea;--ink:#19271e;--muted:#526459;--edge:#d6e0d8;--control:#8dA795;--active:#175c3a;--on-active:#fff;--focus:#256c44;--star:#175c3a}
[data-theme=light] body{background:radial-gradient(ellipse at 85% 0,rgba(52,104,66,.05),transparent 48%),var(--bg)}
[data-theme=light] .card{background:linear-gradient(145deg,#fff,#edf3ee)}
.theme-toggle{display:block}
@media(max-width:760px){.headnote{display:none}}
/* Theme changes affect colour only, never the header geometry. */
.theme-toggle{width:136px;min-width:136px;text-align:center;flex:none}
@media(max-width:760px){.theme-toggle{width:108px;min-width:108px}}
@media(max-width:359px){.theme-toggle{width:92px;min-width:92px}}

:root .store-logo,:root .brand-icon{background-color:#ffffff}

/* Store artwork uses its original transparent SVG background. */
:root .store-logo{background:transparent;padding:0;border-radius:0}
