@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --blue: #1454f5;
  --blue-dark: #0c39cb;
  --ink: #101217;
  --muted: #6f7785;
  --line: #e2e6ec;
  --soft: #f5f7fb;
  --green: #19a83d;
  --orange: #ff7a00;
  --purple: #8a4de8;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
body.drawer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.header { position: relative; z-index: 20; background: #fff; }
.header-main { min-height: 78px; display: grid; grid-template-columns: 220px minmax(280px, 530px) 1fr; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 800; letter-spacing: -.06em; }
.logo b { color: var(--blue); font-size: 43px; letter-spacing: -.13em; }
.logo b::first-letter { font-size: 1.12em; }
.search { height: 46px; display: flex; align-items: center; overflow: hidden; border: 1px solid #d7dde6; border-radius: 6px; background: #fff; box-shadow: 0 2px 7px rgb(20 40 80 / 4%); }
.search input { min-width: 0; flex: 1; height: 100%; padding: 0 16px; border: 0; outline: 0; font-size: 15px; }
.search button { width: 52px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.header-actions { display: flex; justify-content: flex-end; gap: 25px; }
.header-action { min-width: 58px; min-height: 56px; position: relative; display: grid; place-items: center; gap: 2px; border: 0; background: transparent; cursor: pointer; }
.header-action small { font-size: 12px; }
.cart-count { position: absolute; top: 2px; right: 4px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--blue); font-size: 11px; font-style: normal; font-weight: 800; }
.icon { width: 24px; height: 24px; position: relative; display: inline-block; }
.icon-search::before { content: ""; position: absolute; width: 11px; height: 11px; left: 4px; top: 3px; border: 2px solid #111827; border-radius: 50%; }
.icon-search::after { content: ""; position: absolute; width: 7px; height: 2px; left: 15px; top: 16px; background: #111827; transform: rotate(45deg); }
.icon-user::before { content: ""; position: absolute; width: 9px; height: 9px; left: 7px; top: 1px; border: 1.8px solid #111827; border-radius: 50%; }
.icon-user::after { content: ""; position: absolute; width: 15px; height: 10px; left: 4px; bottom: 1px; border: 1.8px solid #111827; border-radius: 10px 10px 2px 2px; }
.icon-heart::before { content: "♡"; position: absolute; inset: -6px 0 0; font-size: 31px; line-height: 1; }
.icon-cart::before, .icon-cart-white::before { content: "⌑"; position: absolute; inset: -6px 0 0; font-size: 31px; transform: rotate(12deg); }
.icon-cart-white::before { color: #fff; font-size: 24px; inset: -3px 0 0; }
.icon-phone::before { content: "⌕"; color: var(--blue); font-size: 20px; }

.header-nav { border-block: 1px solid var(--line); }
.header-nav__inner { min-height: 58px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 28px; }
.catalog-toggle { align-self: stretch; margin: -1px 0; padding: 0 17px; display: flex; align-items: center; gap: 15px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(120deg, var(--blue), #244ce5); font-size: 16px; font-weight: 600; cursor: pointer; }
.burger { width: 22px; display: grid; gap: 5px; }
.burger i { height: 2px; background: #fff; }
.nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.header-phone { display: flex; align-items: flex-start; gap: 8px; }
.header-phone a { font-size: 17px; font-weight: 800; }
.header-phone .callback-link { display: block; margin: 2px 0 0 auto; color: var(--blue); font-size: 12px; font-weight: 500; }

.top-section { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 8px; }
.side-catalog { border: 1px solid var(--line); border-radius: 0 0 7px 7px; overflow: hidden; }
.side-catalog a { min-height: 56px; padding: 9px 13px; display: grid; grid-template-columns: 28px 1fr 10px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.side-catalog a:last-child { border: 0; }
.side-catalog a:hover { color: var(--blue); background: #f7f9ff; }
.side-catalog i { color: #7b8796; font-size: 20px; font-style: normal; }
.side-icon { color: #7c899a; font-size: 20px; text-align: center; }
.help-card { margin-top: 20px; padding: 18px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; border-radius: 8px; background: linear-gradient(140deg, #f2f6ff, #e4ebff); }
.help-card__icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); }
.help-card h3 { margin: 0 0 7px; font-size: 14px; }
.help-card p { margin: 0 0 14px; color: #687386; font-size: 12px; line-height: 1.55; }
.help-card > div > a { min-height: 39px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; }

.showcase { min-width: 0; }
.hero { height: 402px; position: relative; overflow: hidden; border-radius: 8px; background: #070b2c; }
.hero-reference { position: absolute; inset: 0; background-image: url("/assets/design-reference.png"); background-repeat: no-repeat; background-size: 139.13% auto; background-position: 92% 10.98%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(7 11 44 / 42%), transparent 58%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; inset: 0; }
.hero-content h1, .hero-content p { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hero-content a { width: 180px; height: 52px; position: absolute; left: 5.5%; top: 59%; overflow: hidden; color: transparent; background: transparent; }
.slider-arrow { display: none; width: 36px; height: 36px; position: absolute; z-index: 3; top: 50%; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / 55%); font-size: 29px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.slider-arrow--left { left: 12px; }.slider-arrow--right { right: 12px; }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; display: none; gap: 8px; transform: translateX(-50%); }
.slider-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 45%); }
.slider-dots i.active { background: #fff; }

.category-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { min-width: 0; height: 205px; padding: 12px 10px 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgb(20 50 100 / 8%); }
.category-card b { min-height: 40px; font-size: 13px; line-height: 1.4; }
.sprite { display: block; background-image: url("/assets/design-reference.png"); background-repeat: no-repeat; background-size: 1024px 1536px; }
.category-card .sprite { width: 130px; height: 120px; }
.sprite-cat-gpu { background-position: -267px -480px; }
.sprite-cat-ink { background-position: -411px -481px; }
.sprite-cat-fuser { background-position: -553px -481px; }
.sprite-cat-gamepad { background-position: -705px -481px; }
.sprite-cat-cable { background-position: -856px -481px; }
.category-card--appliance { background: linear-gradient(145deg, #f7faff, #eef3ff); }
.appliance-category-icon { width: 112px; height: 112px; margin-top: 5px; position: relative; display: grid; place-items: center; border: 3px solid #1c55dc; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgb(20 84 245 / 12%); }
.appliance-category-icon::before { content: ""; width: 60px; height: 60px; border: 5px solid #1c55dc; border-radius: 50%; box-shadow: inset 0 0 0 8px #edf3ff; }
.appliance-category-icon::after { content: ""; width: 7px; height: 7px; position: absolute; top: 13px; right: 16px; border-radius: 50%; background: var(--blue); box-shadow: -15px 0 0 #9aacf0; }

.benefits { min-height: 91px; margin-top: 26px; padding: 20px 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; border-radius: 7px; background: linear-gradient(110deg, #f3f6ff, #f8f8ff); }
.benefits > div { display: flex; align-items: center; gap: 16px; }
.benefit-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--blue); border-radius: 8px; color: var(--blue); font-size: 19px; }
.benefits p { margin: 0; display: grid; gap: 4px; }
.benefits strong { font-size: 15px; }
.benefits small { color: #778192; font-size: 12px; }

.products-section { padding: 34px 0 25px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.section-title h2 { margin: 0; font-size: 26px; }
.show-all { border: 0; color: var(--blue); background: transparent; font-size: 13px; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.product-card { min-width: 0; min-height: 345px; padding: 12px 12px 15px; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgb(20 50 100 / 8%); }
.product-card[hidden] { display: none; }
.product-favorite { position: absolute; z-index: 2; top: 9px; right: 9px; border: 0; color: #7b8493; background: transparent; font-size: 21px; opacity: 0; cursor: pointer; }
.product-card:hover .product-favorite, .product-favorite.is-active { opacity: 1; }
.product-favorite.is-active { color: var(--blue); }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 6px 8px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; }
.badge-hit { background: var(--orange); }.badge-new { background: var(--purple); }
.product-image { width: 145px; height: 160px; margin: 0 auto 5px; flex: 0 0 auto; }
.sprite-product-board { background-position: -22px -817px; }
.sprite-product-cpu { background-position: -184px -817px; }
.sprite-product-ram { background-position: -350px -817px; }
.sprite-product-canon { background-position: -515px -817px; }
.sprite-product-toner { background-position: -676px -817px; }
.sprite-product-game { background-position: -840px -817px; }
.product-card h3 { min-height: 66px; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.55; }
.product-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; }
.product-bottom > div { display: grid; gap: 3px; }
.product-bottom strong { font-size: 18px; }
.product-bottom small { color: var(--green); font-size: 12px; }
.add-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 5px; background: var(--blue); cursor: pointer; }
.search-empty { padding: 35px; color: var(--muted); background: var(--soft); text-align: center; }

.promo-grid { padding: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo { height: 210px; padding: 25px 20px; display: grid; grid-template-columns: 1fr 145px; overflow: hidden; border-radius: 7px; }
.promo-blue { color: #09297e; background: linear-gradient(120deg, #edf4ff, #dce8ff); }
.promo-purple { color: #521d8d; background: linear-gradient(120deg, #f5edff, #eee4ff); }
.promo-green { color: #066251; background: linear-gradient(120deg, #e9fbf7, #e3f4f0); }
.promo h3 { margin: 0 0 13px; font-size: 18px; line-height: 1.35; }
.promo p { margin: 0 0 17px; color: #3f4753; font-size: 12px; line-height: 1.6; }
.promo span { padding: 9px 13px; display: inline-block; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; }
.promo .sprite { width: 145px; height: 132px; align-self: end; }
.promo-ink { background-position: -190px -1110px; }
.promo-fuser { background-position: -506px -1110px; }
.promo-gamepad { background-position: -864px -1110px; }

.appliance-section { margin-bottom: 34px; padding: 34px; border-radius: 10px; background: linear-gradient(120deg, #f4f7ff, #edf3ff 50%, #f8faff); }
.appliance-heading { margin-bottom: 25px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.appliance-heading span { display: inline-block; margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.appliance-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.appliance-heading > p { max-width: 480px; margin: 0; color: #687386; font-size: 14px; line-height: 1.65; }
.appliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.appliance-card { min-height: 185px; padding: 22px; display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; border: 1px solid #dbe3f3; border-radius: 8px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.appliance-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(31 67 145 / 10%); }
.appliance-card h3 { margin: 0 0 8px; font-size: 17px; }
.appliance-card p { min-height: 58px; margin: 0 0 12px; color: #6e7886; font-size: 12px; line-height: 1.55; }
.appliance-card b { color: var(--blue); font-size: 12px; }
.appliance-icon { width: 72px; height: 84px; position: relative; display: grid; place-items: center; border: 3px solid var(--blue); border-radius: 10px; background: #f8faff; }
.appliance-icon--washer::before, .appliance-icon--dishwasher::before { content: ""; width: 40px; height: 40px; border: 4px solid var(--blue); border-radius: 50%; box-shadow: inset 0 0 0 6px #dae5ff; }
.appliance-icon--washer::after { content: ""; width: 6px; height: 6px; position: absolute; top: 8px; right: 10px; border-radius: 50%; background: var(--blue); box-shadow: -13px 0 0 #8aa9ff; }
.appliance-icon--fridge { border-radius: 7px; }
.appliance-icon--fridge::before { content: ""; position: absolute; left: 0; right: 0; top: 31px; border-top: 3px solid var(--blue); }
.appliance-icon--fridge::after { content: ""; width: 3px; height: 16px; position: absolute; right: 12px; top: 10px; border-radius: 3px; background: var(--blue); box-shadow: 0 33px 0 var(--blue); }
.appliance-icon--dishwasher::before { width: 42px; height: 30px; border-radius: 5px; box-shadow: inset 0 0 0 5px #dae5ff; }
.appliance-icon--dishwasher::after { content: ""; width: 44px; position: absolute; top: 22px; border-top: 3px solid var(--blue); }

.brand-strip { border-block: 1px solid var(--line); }
.brand-strip .container { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; white-space: nowrap; }
.brand-strip b { font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.brand-strip .intel, .brand-strip .samsung, .brand-strip .hp { color: #076fca; }
.brand-strip .canon { color: #d3121d; }.brand-strip .msi { font-style: italic; }

.footer { padding: 35px 0 16px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 42px; }
.footer .logo { font-size: 27px; }
.footer .logo b { font-size: 35px; }
.footer h3 { margin: 8px 0 18px; font-size: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-grid p, .footer-grid small { color: #727b8a; font-size: 12px; line-height: 1.65; }
.footer-brand > p { max-width: 220px; margin: 10px 0 17px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 8px; font-weight: 700; }
.footer-contacts { padding-left: 25px; border-left: 1px solid var(--line); }
.footer-contacts a:first-of-type { color: #20242b; font-size: 14px; font-weight: 700; }
.footer-contacts small { margin: -8px 0 5px 20px; }
.footer-contacts p { margin: 0; }
.footer-bottom { margin-top: 35px; display: flex; justify-content: space-between; color: #8b93a0; font-size: 12px; }

.drawer-overlay { position: fixed; z-index: 50; inset: 0; background: rgb(11 18 34 / 55%); backdrop-filter: blur(3px); }
.cart-drawer { width: min(440px, 100%); height: 100dvh; padding: 26px; position: fixed; z-index: 55; top: 0; right: 0; display: flex; flex-direction: column; background: #fff; box-shadow: -25px 0 60px rgb(0 0 0 / 18%); transform: translateX(105%); transition: transform .28s ease; }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-head small { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.drawer-head h2 { margin: 2px 0 0; font-size: 30px; }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; cursor: pointer; }
.cart-items { padding: 16px 0; display: grid; gap: 9px; overflow-y: auto; }
.cart-item { padding: 13px; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-radius: 8px; background: var(--soft); }
.cart-item h3 { margin: 0; font-size: 12px; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cart-controls { display: flex; align-items: center; gap: 7px; }
.cart-controls button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.cart-empty { margin: auto; text-align: center; }
.cart-empty .icon { width: 45px; height: 45px; color: var(--muted); }
.cart-empty h3 { margin: 12px 0 5px; }.cart-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.cart-summary { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div { margin-bottom: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.cart-summary .cart-total { margin: 18px 0; align-items: flex-end; color: var(--ink); }
.cart-total b { font-size: 28px; }
.checkout-button { width: 100%; min-height: 48px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }
.cart-summary > p { color: var(--muted); font-size: 11px; text-align: center; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 25px; padding: 11px 17px; border-radius: 100px; color: #fff; background: #10172a; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1020px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-actions { gap: 8px; }
  .header-action small { display: none; }
  .header-nav__inner { grid-template-columns: 230px 1fr; }
  .nav { overflow-x: auto; padding: 0 4px; }
  .header-phone { display: none; }
  .top-section { grid-template-columns: 230px 1fr; gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card { min-height: 330px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr 170px; }
  .appliance-grid { grid-template-columns: 1fr; }
  .appliance-card { min-height: 150px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid > div:nth-child(4) { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-main { min-height: 70px; grid-template-columns: 1fr auto; gap: 10px; }
  .logo { font-size: 23px; }.logo b { font-size: 31px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-action:not(.cart-button) { display: none; }
  .header-nav__inner { min-height: 52px; grid-template-columns: 1fr; }
  .catalog-toggle { min-height: 46px; margin: 3px 0; }
  .nav { display: none; }
  .top-section { grid-template-columns: 1fr; padding-top: 12px; }
  .sidebar { display: none; }
  .sidebar.is-open { display: block; position: fixed; z-index: 40; inset: 130px 12px auto; max-height: calc(100dvh - 145px); overflow-y: auto; padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 20%); }
  .help-card { display: none; }
  .hero { height: 300px; }
  .hero-reference { background-size: auto 467px; background-position: 73% 10.8%; }
  .hero-content a { width: 145px; height: 44px; left: 5%; top: 60%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; padding: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo { height: 180px; padding: 20px 16px; }
  .appliance-section { padding: 24px 20px; }
  .appliance-heading { display: grid; gap: 14px; }
  .appliance-heading h2 { font-size: 25px; }
  .brand-strip .container { justify-content: flex-start; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-contacts { padding-left: 0; border-left: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 430px) {
  .category-card { height: 172px; }
  .category-card .sprite { transform: scale(.88); }
  .benefits { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 330px; }
  .product-image { transform: scale(1.05); }
  .promo { grid-template-columns: 1fr 110px; }
  .promo .sprite { transform: scale(.78); transform-origin: left center; }
  .appliance-card { grid-template-columns: 62px 1fr; padding: 18px 14px; }
  .appliance-icon { width: 60px; height: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
