
:root {
  --canvas: #f7f9f8;
  --white: #fff;
  --ink: #17231d;
  --muted: #5f7167;
  --line: #e3eae5;
  --green: #15803d;
  --primary: #16a34a;
  --mint: #dcfce7;
  --shadow: 0 2px 6px #17352007;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI", sans-serif; min-width: 300px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a:any-link { text-decoration: none; }
:where(a:any-link) { color: inherit; }
a, button, input { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: 9px; font-size: 1.39rem; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; color: #fff; background: var(--green); flex: none; }
.brand-dot { color: var(--primary); margin-left: -8px; }
.header nav, .header-actions { display: flex; align-items: center; gap: 27px; }
.header nav a, .login-link { font-weight: 640; font-size: .9rem; color: #45564c; white-space: nowrap; }
.header nav a:hover, .login-link:hover { color: var(--green); }
.header-actions { justify-content: flex-end; gap: 14px; }
.login-link { display: inline-flex; gap: 6px; align-items: center; }
.account-link span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; gap: 8px; padding: 9px 17px; border-radius: 8px; border: 1px solid transparent; background: var(--green); color: white; font-weight: 700; font-size: .92rem; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .15s; }
.button:hover { background: #166534; }
.button.compact { min-height: 37px; padding: 7px 13px; font-size: .88rem; }
.button.outline { background: white; color: #27673f; border-color: #dbe8df; }
.button.outline:hover { background: #edf9f1; }
.button.wide { width: 100%; }
.main { min-height: 65vh; padding: 29px 0 65px; }
.hero { position: relative; isolation: isolate; overflow: hidden; height: 323px; display: flex; align-items: center; border-radius: 20px; border: 1px solid #d9eee0; background: #eaf8ef; }
.hero-copy { z-index: 1; padding: 26px 52px; max-width: 70%; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 4.15vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.065em; }
.hero h1 span { color: var(--green); }
.hero p { margin: 19px 0 22px; color: #435e4c; max-width: 42ch; line-height: 1.5; }
.hero-art { position: absolute; inset: 0 0 0 56%; background-image: radial-gradient(#a6cdb3 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(90deg, transparent, #000 19%); }
.orbit { position: absolute; border: 1px solid #b8dfc5; border-radius: 100%; width: 315px; height: 315px; top: 3px; left: 9%; }
.orbit-two { inset: 24px auto auto 13%; width: 274px; height: 274px; }
.art-tile { display: grid; place-items: center; position: absolute; border-radius: 23px; box-shadow: 0 12px 24px #26533718; }
.art-bag { width: 148px; height: 148px; top: 80px; left: 24%; transform: rotate(-12deg); background: #17773d; color: #e7f8ed; border: 5px solid #ffffff42; }
.art-bag svg { width: 64px; height: 64px; }
.art-qr { width: 86px; height: 86px; top: 69px; left: 55%; transform: rotate(12deg); background: white; color: var(--green); border: 1px solid #d0ead9; }
.art-qr svg { width: 41px; height: 41px; }
.art-bolt { width: 76px; height: 76px; top: 183px; left: 54%; transform: rotate(10deg); background: #bef0cc; color: #217544; border: 2px solid #e6f9ec; }
.art-bolt svg { width: 33px; height: 33px; }
.art-sparkle { position: absolute; width: 31px; height: 31px; left: 16%; top: 62px; color: #398e56; }
.art-check { position: absolute; width: 28px; height: 28px; left: 75%; top: 167px; color: #398e56; }
.feature-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.feature { display: flex; align-items: center; gap: 12px; padding: 15px 22px; min-width: 0; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature > span { background: #e8f7ee; color: var(--green); border-radius: 9px; width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.feature strong, .feature small { display: block; }
.feature strong { font-size: .94rem; }
.feature small { color: var(--muted); line-height: 1.4; margin-top: 3px; }
.catalog { padding-top: 38px; scroll-margin-top: 16px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.catalog-heading h2, .subpage h1 { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.13; letter-spacing: -.045em; }
.catalog-heading p, .subpage p { margin: 7px 0 0; color: var(--muted); }
.search { display: flex; align-items: center; gap: 9px; padding: 5px 5px 5px 12px; border: 1px solid #dce7df; border-radius: 9px; background: white; color: var(--muted); }
.search input { width: min(20vw, 220px); min-width: 120px; padding: 3px 0; color: var(--ink); }
.search button { background: #eaf7ee; border-radius: 6px; font-weight: 700; color: var(--green); padding: 5px 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 19px 0 16px; }
.filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: white; font-weight: 650; font-size: .88rem; color: #45564c; }
.filters button:hover, .filters button.active { background: #e7f7ed; border-color: #bedfc9; color: var(--green); }
.category-image { object-fit: contain; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.product-card { display: flex; flex-direction: column; min-width: 0; min-height: 221px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.product-mark { display: grid; place-items: center; overflow: hidden; width: 47px; height: 47px; border-radius: 11px; background: #ecf5ef; color: var(--green); font-weight: 800; }
.product-mark img { width: 100%; height: 100%; object-fit: contain; }
.mark-video { background: #e8edf0; color: #263941; }
.mark-photo { background: #fbecf0; color: #984c64; }
.mark-design { background: #e3f3f1; color: #286e65; }
.mark-ai { background: #e7f2e9; color: #19633c; }
.mark-edu { background: #f5efdf; color: #795b2d; }
.stock, .order-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; background: #eaf8ef; color: #137236; font-size: .80rem; font-weight: 680; white-space: nowrap; }
.stock i { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.sold-out, .state-cancelled { background: #f0f3f1; color: #5a6960; }
.state-pending { background: #fff3d9; color: #815d16; }
.category-label { color: #557061; font-size: .8rem; font-weight: 690; }
.product-card h3 { font-weight: 780; font-size: 1.105rem; margin: 3px 0 4px; letter-spacing: -.025em; }
.product-card h3 a:hover { color: var(--green); }
.product-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 0 0 12px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; border-top: 1px solid #eef2ef; padding-top: 12px; }
.card-bottom strong { font-size: 1.18rem; color: var(--green); white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 20px; color: var(--muted); }
.error { color: #9f2626 !important; background: #fff0f0; padding: 11px 13px; border-radius: 8px; margin: 12px 0 !important; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 32px 12px; color: var(--muted); }
.empty > svg { margin: 0 auto 8px; }
.empty .button { margin-top: 12px; }
footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { min-height: 128px; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 7px 0; color: var(--muted); font-size: .9rem; }
.footer-inner a:hover { color: var(--green); }
.subpage { padding: 12px 0; }
.subpage > h1 { margin-bottom: 18px; }
.back { display: inline-flex; align-items: center; margin-bottom: 15px; color: var(--green); font-weight: 670; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.detail-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.detail-image { display: grid; place-items: center; min-height: 275px; background: #e9f7ee; border-radius: 14px; border: 1px solid #dcece1; }
.detail-image .product-mark { width: 132px; height: 132px; border-radius: 22px; box-shadow: 0 8px 28px #1f71301e; font-size: 2rem; }
.detail-image .product-mark svg { width: 62px; height: 62px; }
.detail-info { padding: 25px; }
.detail-info h1 { margin-top: 5px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-stock { margin-top: 14px; display: flex; gap: 9px; align-items: center; color: var(--muted); }
.duration-options { padding: 0; margin: 16px 0 0; border: 0; }
.duration-options legend { font-weight: 750; }
.duration-options p { font-size: .88rem; margin-bottom: 9px; }
.duration-options label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 9px; margin-top: 7px; }
.duration-options label:has(input:checked) { border-color: var(--green); background: var(--mint); }
.duration-options input { accent-color: var(--green); }
.detail-price { display: block; color: var(--green); margin: 14px 0; font-size: 1.6rem; }
.warranty { display: flex; gap: 9px; padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.warranty svg { color: var(--green); flex: none; }
.auth-panel { padding: 26px; width: min(100%, 440px); margin: 0 auto; }
.auth-panel h1 { margin-top: 12px; }
.auth-panel form { display: grid; gap: 12px; margin: 18px 0; }
.auth-panel label { display: grid; gap: 4px; font-weight: 650; }
.auth-panel input { border: 1px solid #d4dfd8; border-radius: 7px; padding: 8px 10px; min-height: 41px; width: 100%; }
.green-link { color: var(--green); font-weight: 750; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; padding: 13px 16px; margin: 10px 0; }
.order-row small { display: block; color: var(--muted); }
.order-row:hover { border-color: #a7ccb2; }
.checkout { width: min(100%, 720px); margin: 0 auto; }
.payment-panel { padding: 24px; }
.payment-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.payment-title .brand-mark { height: 45px; width: 45px; }
.payment-title h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.payment-title p { margin-top: 3px; }
.summary { margin: 0 0 14px; }
.summary > div { display: grid; grid-template-columns: minmax(105px, .65fr) 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 680; overflow-wrap: anywhere; margin: 0; }
.code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.amount { color: var(--green); }
.bank-layout { display: grid; grid-template-columns: 200px 1fr; gap: 19px; align-items: center; margin: 15px 0; }
.qr { border: 1px solid var(--line); min-height: 198px; display: grid; place-items: center; border-radius: 10px; }
.qr img { display: block; width: min(100%, 215px); height: auto; }
.countdown { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: #fff5df; color: #714f14; }
.countdown strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-note { font-size: .92rem; }
.delivery { background: #eef9f1; border-radius: 9px; padding: 15px; }
.delivery h2 { font-size: 1.2rem; font-weight: 750; }
.delivery p { margin-bottom: 10px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner, .header nav { gap: 14px; }
  .hero-copy { padding: 30px; }
  .feature { padding: 12px; gap: 8px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 8px; }
  .header-actions { gap: 8px; }
  .header nav { grid-column: 1/-1; grid-row: 2; min-height: 39px; justify-content: center; }
  .header-actions .account-link { display: none; }
  .brand { font-size: 1.17rem; }
  .brand-mark { width: 31px; height: 31px; }
  .main { padding-top: 16px; padding-bottom: 38px; }
  .hero { height: auto; min-height: 252px; border-radius: 13px; }
  .hero-copy { padding: 22px; max-width: 100%; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.55rem); }
  .hero p { margin: 11px 0 15px; max-width: 28ch; }
  .hero-art { inset: 0 -96px 0 58%; opacity: .20; }
  .feature-strip { grid-template-columns: 1fr; margin-top: 10px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature > span { width: 32px; height: 32px; }
  .catalog { padding-top: 23px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 11px; }
  .search input { flex: 1; }
  .filters { margin-top: 12px; }
  .product-grid { gap: 9px; }
  .product-card { padding: 11px; }
  .footer-inner { flex-wrap: wrap; }
  .detail-layout, .bank-layout { grid-template-columns: 1fr; gap: 11px; }
  .detail-image { min-height: 160px; }
  .payment-panel { padding: 14px; }
  .qr { width: min(100%, 220px); margin-inline: auto; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row > strong { grid-column: 2; }
}
@media (max-width: 450px) {
  .product-grid { grid-template-columns: minmax(0,1fr); }
  .product-card { padding: 14px; min-height: 198px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
