*,*::before,*::after{box-sizing:border-box}
:root{
  --ink:#11151b;--ink-2:#39414d;--muted:#6f7987;--line:#e3e7ed;--bg:#f4f6f8;--card:#fff;
  --accent:#ff6a13;--accent-2:#ff8a45;--accent-soft:#fff2ea;--radius:18px;
  --shadow-sm:0 1px 2px rgba(17,21,27,.05),0 10px 30px -16px rgba(17,21,27,.25);
  --shadow-md:0 24px 60px -28px rgba(17,21,27,.45);
  --wrap:1200px;
}
html{scroll-behavior:smooth}
body{margin:0;background-color:var(--bg);background-image:url('/img/comic-bg.svg');background-repeat:repeat;background-size:640px 640px;background-attachment:fixed;color:var(--ink);font-family:"Inter","Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
body.lock{overflow:hidden}
svg{display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
h1,h2,h3,p{margin:0}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:999;background:#fff;padding:10px 14px;border-radius:10px}

/* ---------- TOPBAR ---------- */
.topbar{background:#0d1014;color:#9aa4b1;font-size:12.5px;letter-spacing:.01em}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:38px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}
.topbar b{color:#fff;font-weight:600}
.topbar .dot{color:#3a434f;margin:0 8px}
.topbar .star{color:var(--accent);font-weight:700}

/* ---------- HEADER ---------- */
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-in{display:flex;align-items:center;gap:18px;min-height:68px}
.logo{display:flex;align-items:center;gap:11px;flex-shrink:0}
.logo-img{width:42px;height:42px;border-radius:12px;object-fit:cover;flex-shrink:0;box-shadow:0 10px 22px -12px rgba(255,106,19,.55)}
.logo-text strong{display:block;font-size:17px;letter-spacing:-.02em;line-height:1.15}
.logo-text small{display:block;font-size:11.5px;color:var(--muted);letter-spacing:.02em}
.nav{display:flex;gap:22px;margin-left:14px;font-size:14.5px;color:var(--ink-2);font-weight:500}
.nav a{transition:color .18s;position:relative;padding:6px 0}
.nav a:hover{color:var(--accent)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.icon-cart{position:relative;display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:14px;font-weight:600;transition:.2s}
.icon-cart:hover{border-color:#c9d1db;box-shadow:var(--shadow-sm)}
.icon-cart svg{width:19px;height:19px;color:var(--ink-2)}
.cart-count{min-width:21px;height:21px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:var(--accent);color:#fff;font-size:12px;font-weight:700;line-height:1}
.cart-count[data-empty="true"]{background:#c3cad4}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:12px 20px;font-weight:600;font-size:15px;transition:transform .18s,box-shadow .18s,background .18s,filter .18s,border-color .18s;white-space:nowrap;text-decoration:none;cursor:pointer}
.btn-primary{background:linear-gradient(180deg,var(--accent-2),var(--accent));color:#fff;box-shadow:0 12px 26px -14px rgba(255,106,19,.95)}
.btn-primary:hover{transform:translateY(-1px);filter:brightness(1.04)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:#c6cfda;background:#fafbfc}
.btn-sm{padding:10px 14px;font-size:14px;border-radius:11px}
.btn-block{width:100%}
.btn-link{background:none;color:var(--muted);font-size:13.5px;text-decoration:underline;padding:8px;justify-content:center}
.btn-link:hover{color:var(--ink)}
.btn.is-added{background:linear-gradient(180deg,#34c382,#22a76b);box-shadow:0 12px 26px -14px rgba(34,167,107,.9)}

/* ---------- HERO ---------- */
.hero{padding:34px 0 6px}
.hero-grid{display:grid;grid-template-columns:1.45fr .85fr;gap:22px;align-items:stretch}
.hero-main{position:relative;overflow:hidden;border-radius:26px;padding:clamp(24px,3.4vw,40px);color:#fff;background:linear-gradient(140deg,#131820 0%,#1b232e 55%,#232d3a 100%);box-shadow:var(--shadow-md)}
.hero-main::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(520px 260px at 88% -10%,rgba(255,106,19,.30),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 1px,transparent 1px 12px)}
.hero-main>*{position:relative}
.pill{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:.03em;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#e9eef5;text-transform:uppercase}
.pill .live{width:7px;height:7px;border-radius:50%;background:#3ddc84;box-shadow:0 0 0 3px rgba(61,220,132,.22)}
.hero-main h1{font-size:clamp(26px,4vw,42px);line-height:1.08;letter-spacing:-.03em;margin:16px 0 12px;font-weight:800}
.hero-main h1 span{background:linear-gradient(100deg,var(--accent-2),#ffc59a);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-lead{color:#b9c3d0;font-size:15.5px;max-width:52ch}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 0}
.hero-main .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff}
.hero-main .btn-ghost:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12)}
.hero-stats b{display:block;font-size:20px;letter-spacing:-.02em}
.hero-stats span{font-size:12.5px;color:#96a2b1}

/* ---------- SELLER CARD ---------- */
.seller-card{background:var(--card);border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:16px}
.seller-top{display:flex;align-items:center;gap:13px}
.seller-ava{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(140deg,var(--accent-2),var(--accent));color:#fff;font-weight:800;font-size:17px;letter-spacing:-.02em;box-shadow:0 12px 24px -14px rgba(255,106,19,.95)}
.seller-name{font-size:16.5px;font-weight:700;letter-spacing:-.02em}
.seller-sub{font-size:12.5px;color:var(--muted)}
.rating{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2);flex-wrap:wrap}
.stars{display:inline-flex;gap:2px;color:var(--accent)}
.stars svg{width:14px;height:14px}
.rating b{font-size:15px}
.seller-list{display:grid;gap:9px;font-size:14px;color:var(--ink-2);margin:0;padding:0;list-style:none}
.seller-list li{display:flex;align-items:center;gap:9px}
.seller-list li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.seller-card .btn{margin-top:auto}

/* ---------- SECTION HEAD ---------- */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:40px 0 18px}
.section-head h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.025em;line-height:1.15}
.section-head p{color:var(--muted);font-size:14px;margin-top:6px}
.section-head .found{font-size:13px;color:var(--muted);white-space:nowrap}

/* ---------- TOOLBAR ---------- */
.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.search{position:relative;flex:1 1 260px;min-width:200px}
.search input{width:100%;padding:13px 14px 13px 44px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:15px;outline:none;transition:.2s;color:var(--ink);font-family:inherit}
.search input::placeholder{color:#9aa4b1}
.search input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted)}
.sort{padding:13px 38px 13px 14px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:14.5px;color:var(--ink);outline:none;cursor:pointer;appearance:none;-webkit-appearance:none;font-family:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7987' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;transition:.2s}
.sort:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}

/* ---------- GRID / CARDS ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;transition:transform .22s,box-shadow .22s,border-color .22s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:#d8dee7}
.card-media{position:relative;aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;background:radial-gradient(120% 100% at 25% 0%,#ffffff 0%,#eef1f5 58%,#e2e7ee 100%);border-bottom:1px solid var(--line)}
.card-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(135deg,rgba(17,21,27,.035) 0 2px,transparent 2px 11px)}
.part-icon{display:block;width:58%;max-width:150px;color:#8e99a7;z-index:1;transition:color .3s,transform .35s}
.part-icon svg{width:100%;height:auto;display:block}
.card:hover .part-icon{color:var(--accent);transform:scale(1.07) rotate(-3deg)}
.badge{position:absolute;top:12px;left:12px;z-index:2;padding:5px 9px;border-radius:8px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:#11151b;color:#fff}
.badge-sale{background:linear-gradient(135deg,var(--accent-2),var(--accent));box-shadow:0 8px 18px -10px rgba(255,106,19,.95)}
.badge-hit{left:auto;right:12px;background:#11151b}
.card-body{padding:14px 15px 15px;display:flex;flex-direction:column;gap:7px;flex:1}
.card-compat{font-size:11.5px;color:var(--accent);font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.card-title{font-size:15px;font-weight:600;line-height:1.35;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.card-article{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.card-price{display:flex;align-items:baseline;gap:9px;margin-top:auto;padding-top:6px;flex-wrap:wrap}
.card-price strong{font-size:20px;letter-spacing:-.03em;font-weight:800}
.card-price s{font-size:13px;color:#9aa4b1}
.card-actions{display:flex;gap:8px;margin-top:8px}
.card-actions .btn-primary{flex:1}
.card-actions .btn-ghost{padding-left:12px;padding-right:12px}
.empty-note{grid-column:1/-1;text-align:center;padding:50px 20px;color:var(--muted);background:#fff;border:1px dashed #d5dbe3;border-radius:20px}

/* ---------- FEATURES ---------- */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:44px 0 8px}
.feature{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow-sm)}
.feature-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;margin-bottom:12px;background:var(--accent-soft);color:var(--accent)}
.feature-ico svg{width:19px;height:19px}
.feature b{display:block;font-size:14.5px;margin-bottom:3px;letter-spacing:-.01em}
.feature span{font-size:13px;color:var(--muted);line-height:1.45}

/* ---------- ABOUT ---------- */
.about{margin:44px 0 20px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(22px,3vw,34px);box-shadow:var(--shadow-sm)}
.about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:28px}
.about h2{font-size:clamp(21px,2.6vw,28px);letter-spacing:-.025em;margin-bottom:14px}
.about-quote{font-size:15px;line-height:1.7;color:var(--ink-2);white-space:pre-line}
.about-side{display:grid;gap:12px;align-content:start}
.about-item{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fafbfc}
.about-item .k{font-size:12px;color:var(--muted);display:block}
.about-item .v{font-size:14.5px;font-weight:600}
.about-item svg{width:18px;height:18px;color:var(--accent);flex-shrink:0;margin-top:2px}

/* ---------- FOOTER ---------- */
.footer{background:#0d1014;color:#98a3b0;margin-top:44px;padding:36px 0 26px}
.footer-grid{display:flex;justify-content:space-between;gap:26px;flex-wrap:wrap;align-items:flex-start}
.footer .logo-text strong{color:#fff}
.footer .logo-text small{color:#7d8896}
.footer p{font-size:13.5px;line-height:1.6;max-width:46ch;margin-top:14px}
.footer-links{display:grid;gap:9px;font-size:14px}
.footer-links a:hover{color:var(--accent)}
.footer-bottom{margin-top:26px;padding-top:18px;border-top:1px solid #1b2129;font-size:12.5px;color:#6d7885;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- OVERLAY / CART / MODAL ---------- */
.overlay{position:fixed;inset:0;z-index:110;background:rgba(10,13,18,.55);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .25s}
.overlay.show{opacity:1;pointer-events:auto}

.cart{position:fixed;top:0;right:0;z-index:120;height:100%;width:min(430px,100%);background:#fff;display:flex;flex-direction:column;box-shadow:var(--shadow-md);transform:translateX(105%);transition:transform .32s cubic-bezier(.4,0,.2,1)}
.cart.open{transform:none}
.cart-head{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line)}
.cart-head h2{font-size:18px;letter-spacing:-.02em;margin-right:auto}
.cart-meta{font-size:13px;color:var(--muted)}
.icon-btn{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;transition:.2s;flex-shrink:0}
.icon-btn:hover{background:#f4f6f8;border-color:#c9d1db}
.icon-btn svg{width:16px;height:16px}
.cart-body{flex:1;overflow-y:auto;padding:16px 20px;display:grid;gap:12px;align-content:start}
.cart-empty{text-align:center;color:var(--muted);padding:60px 10px;display:grid;gap:6px}
.cart-empty b{font-size:15.5px;color:var(--ink)}
.cart-empty span{font-size:13.5px}
.cart-item{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff}
.cart-thumb{width:64px;height:64px;border-radius:12px;flex-shrink:0;display:grid;place-items:center;background:radial-gradient(120% 100% at 25% 0%,#fff,#eef1f5 70%,#e4e9ef);border:1px solid var(--line)}
.cart-thumb svg{width:40px;height:40px;color:#8e99a7}
.cart-info{flex:1;min-width:0}
.cart-name{font-size:13.5px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-art{font-size:11.5px;color:var(--muted);margin-top:2px}
.qty{display:inline-flex;align-items:center;gap:2px;margin-top:9px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.qty button{width:30px;height:30px;font-size:16px;font-weight:700;color:var(--ink-2);display:grid;place-items:center;transition:.15s}
.qty button:hover{background:#f2f4f7}
.qty span{min-width:28px;text-align:center;font-size:13.5px;font-weight:700;font-variant-numeric:tabular-nums}
.cart-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:8px}
.cart-right strong{font-size:14.5px;letter-spacing:-.02em;white-space:nowrap}
.cart-remove{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:#9aa4b1;transition:.18s}
.cart-remove:hover{background:#fdeaea;color:#e03131}
.cart-remove svg{width:13px;height:13px}
.cart-foot{border-top:1px solid var(--line);padding:16px 20px calc(16px + env(safe-area-inset-bottom));display:grid;gap:10px;background:#fcfcfd}
.cart-total{display:flex;align-items:baseline;justify-content:space-between}
.cart-total span{font-size:14px;color:var(--muted)}
.cart-total strong{font-size:24px;letter-spacing:-.03em;font-weight:800}
.cart-note{font-size:12px;color:var(--muted);text-align:center}

.modal{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .25s}
.modal.show{opacity:1;pointer-events:auto}
.modal-card{position:relative;width:100%;max-width:520px;background:#fff;border-radius:24px;padding:clamp(22px,3vw,32px);box-shadow:var(--shadow-md);transform:translateY(16px) scale(.98);transition:transform .3s cubic-bezier(.4,0,.2,1);max-height:92vh;overflow-y:auto}
.modal.show .modal-card{transform:none}
.modal-close{position:absolute;top:14px;right:14px}
.modal-card h3{font-size:22px;letter-spacing:-.025em;margin-bottom:8px;padding-right:40px}
.modal-card .sub{color:var(--muted);font-size:14px}
.modal-note{font-size:15px;font-weight:600;color:var(--ink);margin-top:6px}
.messengers{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 6px}
.msgr{display:flex;flex-direction:column;align-items:center;gap:11px;padding:18px 12px;border:1px solid var(--line);border-radius:18px;background:#fafbfc;transition:transform .2s,box-shadow .2s,border-color .2s}
.msgr:hover{transform:translateY(-3px);border-color:#d3dae3;box-shadow:var(--shadow-sm);background:#fff}
.msgr-img{width:88px;height:88px;border-radius:24px;display:grid;place-items:center;box-shadow:0 16px 30px -16px rgba(0,0,0,.55);transition:transform .25s}
.msgr:hover .msgr-img{transform:scale(1.05)}
.msgr-img svg{width:54px;height:54px}
.msgr-max .msgr-img{background:linear-gradient(140deg,#4a8dff 0%,#7b5cff 55%,#9b4dff 100%)}
.msgr-tg .msgr-img{background:linear-gradient(140deg,#4fc3f7 0%,#229ed9 55%,#0077b6 100%)}
.msgr-label{font-size:14.5px;font-weight:700}
.msgr-hint{font-size:12px;color:var(--muted);margin-top:-6px}
.modal-summary{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:#fafbfc;padding:13px 15px;font-size:13.5px;color:var(--ink-2);display:grid;gap:4px}
.modal-summary b{color:var(--ink)}
.modal-summary .row{display:flex;justify-content:space-between;gap:10px}
.modal-summary .row span:last-child{font-weight:700;white-space:nowrap}
.modal-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.modal-actions .btn{flex:1 1 160px}

/* ---------- TOAST ---------- */
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,26px);z-index:200;background:#11151b;color:#fff;font-size:14px;font-weight:600;padding:12px 20px;border-radius:14px;box-shadow:0 20px 40px -18px rgba(0,0,0,.7);opacity:0;pointer-events:none;transition:.3s;display:flex;align-items:center;gap:9px;max-width:calc(100% - 32px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast svg{width:16px;height:16px;color:#3ddc84;flex-shrink:0}

/* ---------- RESPONSIVE ---------- */

/* ---------- ФОТО ТОВАРОВ ---------- */
.card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:#f2f4f7;transition:transform .45s cubic-bezier(.2,0,.2,1)}
.card:hover .card-photo{transform:scale(1.04)}
.cart-thumb{position:relative;overflow:hidden}
.cart-thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:11px}

/* ---------- PROMO BANNERS ---------- */
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:34px 0 0}
.promo-card{display:block;border-radius:22px;overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s;background:#0d1014}
.promo-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.promo-card picture{display:block}
.promo-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}

@media(prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ============================================================
   АДАПТИВ: сохраняем десктопную композицию на телефонах
   ============================================================ */

/* ---------- ПЛАНШЕТЫ: hero ещё в две колонки ---------- */
@media(max-width:1000px){
  .hero-grid{grid-template-columns:1.25fr .9fr;gap:16px}
  .hero-main{padding:clamp(22px,3vw,32px)}
  .features{grid-template-columns:repeat(2,1fr)}
  .about-grid{grid-template-columns:1fr}
  .nav{gap:14px;font-size:14px;margin-left:6px}
}

/* ---------- ТЕЛЕФОНЫ ---------- */
@media(max-width:760px){
  /* верхняя полоса — компактно, но обе группы видны */
  .topbar{font-size:11.5px}
  .topbar-in{justify-content:center;text-align:center;gap:4px 14px;padding-top:7px;padding-bottom:7px}
  .topbar-left,.topbar-right{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}

  /* ШАПКА: лого + корзина + «Заказать» в строку, навигация — второй строкой */
  .header-in{min-height:56px;gap:8px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
  .logo-img{width:36px;height:36px;border-radius:10px}
  .logo-text strong{font-size:15px}
  .logo-text small{display:block;font-size:9.5px}
  .header-actions{margin-left:auto;gap:7px}
  .header-actions .btn-primary{display:inline-flex;padding:9px 12px;font-size:12px;border-radius:10px}
  .icon-cart{padding:8px 11px;font-size:13px;border-radius:10px}
  .icon-cart svg{width:17px;height:17px}

  /* навигация — отдельная полоса, не скрываем */
  .nav{
    order:3;width:100%;margin:0;gap:18px;font-size:13.5px;
    justify-content:center;overflow-x:auto;white-space:nowrap;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 0 4px
  }
  .nav::-webkit-scrollbar{display:none}
  .nav a{padding:5px 0;white-space:nowrap}

  /* HERO */
  .hero{padding-top:16px}
  .hero-grid{grid-template-columns:1fr;gap:14px}
  .hero-main{border-radius:20px;padding:22px 18px}
  .hero-main h1{font-size:clamp(22px,6.4vw,30px);margin:12px 0 10px}
  .hero-lead{font-size:14px}
  .hero-actions{margin-top:18px;gap:9px}
  .hero-actions .btn{padding:11px 16px;font-size:14px}
  .hero-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px;padding-top:16px}
  .hero-stats b{font-size:15px}
  .hero-stats span{font-size:10.5px;line-height:1.3}

  /* карточка продавца */
  .seller-card{border-radius:20px;padding:18px;gap:13px}
  .seller-ava{width:46px;height:46px;border-radius:13px;font-size:15px}
  .seller-name{font-size:15px}
  .seller-sub{font-size:11.5px}
  .seller-list{font-size:13px;gap:7px}

  /* КАТАЛОГ — две колонки, как на десктопе */
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .card{border-radius:14px}
  .card-body{padding:10px 10px 11px;gap:5px}
  .card-compat{font-size:9.5px;letter-spacing:.01em}
  .card-title{font-size:12.5px;min-height:34px;line-height:1.3}
  .card-article{font-size:10.5px}
  .card-price{gap:6px;padding-top:4px}
  .card-price strong{font-size:15.5px}
  .card-price s{font-size:10.5px}
  /* кнопки в ряд, а не в столбик */
  .card-actions{flex-direction:row;gap:6px;margin-top:6px}
  .card-actions .btn{padding:8px 5px;font-size:10.5px;border-radius:9px;min-width:0}
  .card-actions .btn-primary{flex:1 1 auto}
  .card-actions .btn-ghost{padding-left:8px;padding-right:8px;flex:0 0 auto}
  .badge{font-size:9.5px;padding:4px 7px;top:8px;left:8px}
  .badge-hit{right:8px}
  .part-icon{width:56%}

  /* поиск/сортировка */
  .toolbar{gap:9px;margin-bottom:16px}
  .search input{padding:11px 12px 11px 40px;font-size:14px;border-radius:12px}
  .search svg{width:16px;height:16px;left:13px}
  .sort{padding:11px 34px 11px 12px;font-size:13.5px;border-radius:12px}

  /* заголовки секций */
  .section-head{margin:26px 0 14px;align-items:center}
  .section-head h2{font-size:20px}
  .section-head p{font-size:12.5px;margin-top:4px}
  .section-head .found{font-size:11.5px}

  /* преимущества — 2x2 */
  .features{gap:10px;margin:30px 0 6px}
  .feature{padding:14px;border-radius:14px}
  .feature-ico{width:34px;height:34px;margin-bottom:9px}
  .feature-ico svg{width:17px;height:17px}
  .feature b{font-size:12.5px}
  .feature span{font-size:11.5px;line-height:1.4}

  /* о магазине */
  .about{border-radius:18px;padding:20px 16px;margin:30px 0 16px}
  .about h2{font-size:19px;margin-bottom:11px}
  .about-quote{font-size:13.5px;line-height:1.65}
  .about-side{gap:9px}
  .about-item{padding:11px 12px;border-radius:12px}
  .about-item .v{font-size:13.5px}

  /* ПРОМО-БАННЕРЫ — остаются в две колонки */
  .promo-grid{grid-template-columns:1fr 1fr;gap:10px;margin-top:26px}
  .promo-card{border-radius:16px}

  /* подвал */
  .footer{padding:28px 0 20px;margin-top:34px}
  .footer-grid{gap:18px}
  .footer p{font-size:12.5px;margin-top:10px}
  .footer-links{font-size:13px;gap:7px}
  .footer-bottom{font-size:11.5px;gap:8px}

  /* корзина */
  .cart{width:100%}
  .cart-head{padding:15px 16px}
  .cart-head h2{font-size:16px}
  .cart-body{padding:13px 16px;gap:10px}
  .cart-thumb{width:58px;height:58px}
  .cart-thumb svg{width:36px;height:36px}
  .cart-name{font-size:12.5px}
  .cart-foot{padding:14px 16px calc(14px + env(safe-area-inset-bottom))}

  /* модалка заказа: мессенджеры в две колонки */
  .modal-card{padding:22px 18px;border-radius:20px}
  .modal-card h3{font-size:19px}
  .messengers{grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 4px}
  .msgr{padding:14px 8px;border-radius:15px;gap:8px}
  .msgr-img{width:62px;height:62px;border-radius:17px}
  .msgr-img svg{width:38px;height:38px}
  .msgr-label{font-size:12.5px}
  .msgr-hint{font-size:10.5px}
  .modal-summary{font-size:12.5px;padding:11px 13px}

  /* фон-паттерн: fixed на мобильных тормозит */
  body{background-attachment:scroll}
}

/* ---------- ОЧЕНЬ УЗКИЕ ЭКРАНЫ (iPhone SE и меньше) ---------- */
@media(max-width:380px){
  .hero-stats{grid-template-columns:1fr 1fr}
  .hero-stats>div:last-child{grid-column:1/-1}
  .card-actions{flex-direction:column;gap:5px}
  .card-actions .btn{width:100%;flex:none;padding:8px 6px}
  .logo-text small{display:none}
}

/* ---------- превью текста заказа ---------- */
.order-preview{background:#0f141a;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#c8d2de;white-space:pre-wrap;word-break:break-word;max-height:180px;overflow:auto;margin:12px 0;display:none}
.order-preview.on{display:block}
