:root {
  --text: #363f48;
  --crimson: #dc1f55;
  --crimson-dark: #b8173f;
  --teal: #02a5bd;
  --footer: #444b51;
  --line: #e6e8ea;
  --muted: #7b838b;
  --bg-soft: #f4f5f6;
  --wrap: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
main { min-height: 60vh; }
main:focus { outline: none; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }

/* ---------- header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 15px;
  display: flex; align-items: flex-start; gap: 20px;
}
.header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 1px;
  background: rgba(54, 63, 72, .12);
}
.header__logo { flex: none; position: relative; z-index: 2; }
.header__logo img { width: 98px; height: auto; }
.header__nav { margin-left: auto; display: flex; align-items: center; height: 52px; }
.header__catalog-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0 15px; height: 52px; font-weight: 500;
}
.header__catalog-btn:hover, .header__catalog-btn[aria-expanded="true"] { color: var(--crimson); }
.burger { display: inline-grid; gap: 3px; width: 14px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.header__link { display: inline-flex; align-items: center; gap: 6px; padding: 0 15px; height: 52px; font-weight: 500; }
.header__link:hover { color: var(--crimson); }
.caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.header__drop { position: relative; }
.header__drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 8px 0; display: none;
}
.header__drop:hover .header__drop-menu, .header__drop:focus-within .header__drop-menu { display: block; }
.header__drop-menu a { display: block; padding: 8px 18px; font-size: 15px; }
.header__drop-menu a:hover { color: var(--crimson); }
.header__cart {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 0 0 18px; font-weight: 600;
}
.header__cart:hover { color: var(--crimson); }
.header__cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--crimson); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.header__cart-count.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }
.header__menu-btn { display: none; background: none; border: 0; height: 52px; padding: 0 6px; }

.menu-catalog {
  position: absolute; left: 0; right: 0; top: 52px; background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.14); z-index: 25;
}
.menu-catalog__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 15px 30px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 30px;
}
.menu-catalog__title { font-weight: 700; font-size: 17px; display: block; margin-bottom: 8px; }
.menu-catalog__title:hover { color: var(--crimson); }
.menu-catalog__subs a { display: block; font-size: 14px; color: var(--muted); padding: 2px 0; }
.menu-catalog__subs a:hover { color: var(--crimson); }

/* ---------- hero slider ---------- */
.hero { position: relative; height: 600px; overflow: hidden; background: #eef0f1; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; display: flex; align-items: center;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__text {
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 60px 15px 0;
  font-size: 42px; font-weight: 500; line-height: 1.2;
}
.hero__text .large { font-weight: 800; text-transform: uppercase; }
.hero__text .color { color: var(--crimson); }
.hero__text .small { font-size: 24px; font-weight: 800; text-transform: uppercase; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); background: transparent; padding: 0; opacity: .55; }
.hero__dot.is-active { background: var(--crimson); border-color: var(--crimson); opacity: 1; }

/* ---------- home categories ---------- */
.anons { padding: 40px 0 30px; }
.anons__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.anons__item {
  position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff;
  display: block; aspect-ratio: 510 / 414;
}
.anons__item--big { grid-row: span 2; aspect-ratio: auto; }
.anons__all {
  background: var(--crimson); color: #fff; border-color: var(--crimson);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
.anons__all b { font-size: 22px; font-weight: 700; line-height: 1.15; }
.anons__all span { font-size: 14px; opacity: .9; margin-top: 6px; }
.anons__all:hover { background: var(--crimson-dark); }
.anons__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.anons__name {
  position: absolute; z-index: 2; left: 18px; top: 14px; right: 18px;
  font-size: 22px; font-weight: 600; line-height: 1.15;
}
.anons__overlay {
  position: absolute; inset: 0; z-index: 3; background: rgba(255,255,255,.94);
  padding: 56px 18px 18px; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s ease;
}
.anons__overlay a { font-size: 14px; padding: 2px 0; }
.anons__overlay a:hover { color: var(--crimson); }
.anons__more {
  margin-top: auto; align-self: flex-start; border: 2px solid var(--crimson); color: var(--crimson);
  font-size: 14px; font-weight: 600; text-transform: uppercase; padding: 10px 22px;
}
.anons__more:hover { background: var(--crimson); color: #fff !important; }
.anons__item:hover .anons__overlay, .anons__item:focus-within .anons__overlay { opacity: 1; }
.anons__item:hover .anons__name, .anons__item:focus-within .anons__name { z-index: 4; }

/* ---------- brands ---------- */
.brands { padding: 50px 0; }
.brands__inner { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.brands__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 500; text-transform: uppercase; }
.brands__title b { color: var(--crimson); font-weight: 800; display: block; }
.brands__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brands__item {
  border: 1px solid var(--line); height: 70px; display: grid; place-items: center; padding: 8px 12px; background: #fff;
}
.brands__item img { max-height: 50px; width: auto; object-fit: contain; }

/* ---------- advantages ---------- */
.adv { background: var(--crimson); color: #fff; padding: 26px 0; }
.adv__inner { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.adv__item { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.adv__item b { display: block; font-weight: 800; }
.adv__item img { width: 56px; height: auto; }

/* ---------- about ---------- */
.about { padding: 70px 0 50px; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about__lead h2 { margin: 0 0 18px; font-size: 34px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.about__lead p { margin: 0 0 18px; font-size: 26px; line-height: 1.3; text-transform: uppercase; }
.about__lead p b { color: var(--crimson); font-weight: 800; }
.about__text p { margin: 0 0 14px; font-size: 15px; }

/* ---------- inner page head ---------- */
.page-head {
  padding: 110px 0 32px; background: #eef0f1 url("../img/site/page-head.jpg") left center / cover no-repeat;
  position: relative;
}
.page-head .container { position: relative; z-index: 1; }
.crumbs { font-size: 13px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--crimson); }
.crumbs span { opacity: .6; margin: 0 4px; }
.page-head h1 { margin: 0; font-size: 46px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }

/* ---------- catalog layout ---------- */
.catalog { padding: 40px 0 60px; display: grid; grid-template-columns: 250px 1fr; gap: 15px; align-items: start; }
.side__title { font-size: 20px; font-weight: 700; text-transform: uppercase; padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.side__cat { border-bottom: 1px solid var(--line); }
.side__cat > a { display: block; padding: 12px 6px; font-size: 17px; font-weight: 600; }
.side__cat > a:hover, .side__cat.is-active > a { color: var(--crimson); }
.side__subs { padding: 0 0 12px 10px; }
.side__subs a { display: block; font-size: 13.5px; padding: 3px 0; color: var(--text); }
.side__subs a:hover, .side__subs a.is-active { color: var(--crimson); }
.side__subs a.is-active { font-weight: 700; }
.side__mobile { display: none; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 12px; font-size: 14px; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); }
.toolbar__sort { display: flex; gap: 10px; align-items: center; }
.toolbar__sort b { font-weight: 700; }
.toolbar__sort button { background: none; border: 0; padding: 0; color: var(--muted); }
.toolbar__sort button.is-active, .toolbar__sort button:hover { color: var(--crimson); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 14px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff;
}
.card__img { display: grid; place-items: center; height: 150px; width: 100%; margin-bottom: 12px; }
.card__img img { max-height: 150px; width: auto; object-fit: contain; }
.card__name { font-size: 14px; line-height: 1.35; min-height: 3.9em; }
.card__name:hover { color: var(--crimson); }
.card__price { color: var(--teal); font-size: 20px; font-weight: 700; margin: 12px 0 14px; }
.card__actions { margin-top: auto; min-height: 40px; display: flex; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--crimson); color: #fff; border: 0; border-radius: 0;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 0 20px; height: 38px; transition: background .15s;
}
.btn:hover { background: var(--crimson-dark); }
.btn--lg { height: 48px; font-size: 14px; padding: 0 28px; }
.btn--ghost { background: transparent; color: var(--crimson); border: 2px solid var(--crimson); }
.btn--ghost:hover { background: var(--crimson); color: #fff; }
.btn--wa { background: #1faa59; }
.btn--wa:hover { background: #178a47; }

.qty { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid var(--crimson); }
.qty button { width: 34px; border: 0; background: #fff; color: var(--crimson); font-size: 18px; font-weight: 700; }
.qty button:hover { background: #fdeef3; }
.qty input {
  width: 52px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-weight: 700; color: var(--text); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 48px; }
.qty--lg button { width: 44px; }
.qty--lg input { width: 64px; }

.catalog-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.catalog-tile { border: 1px solid var(--line); position: relative; aspect-ratio: 510 / 414; overflow: hidden; }
.catalog-tile img { width: 100%; height: 100%; object-fit: cover; }
.catalog-tile span { position: absolute; left: 16px; top: 12px; font-size: 20px; font-weight: 600; }
.catalog-tile:hover span { color: var(--crimson); }
.seo { margin-top: 30px; font-size: 14px; color: var(--muted); max-width: 900px; }

/* ---------- product ---------- */
.product { padding: 40px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product__img { border: 1px solid var(--line); display: grid; place-items: center; padding: 30px; aspect-ratio: 1 / 1; }
.product__img img { max-height: 100%; width: auto; object-fit: contain; }
.product h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.prices { border: 1px solid var(--line); margin-bottom: 22px; }
.prices__row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prices__row:last-child { border-bottom: 0; }
.prices__row span { font-size: 15px; }
.prices__row b { color: var(--teal); font-size: 22px; font-weight: 700; }
.prices__row.is-base { background: #f0fafc; }
.product__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.product__sum { font-size: 14px; color: var(--muted); width: 100%; }
.product h3 { margin: 26px 0 10px; font-size: 18px; text-transform: uppercase; font-weight: 800; }
.specs { margin: 0; font-size: 15px; }
.specs div { display: flex; gap: 8px; padding: 4px 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.product__desc { font-size: 15px; white-space: pre-line; }

/* ---------- cart ---------- */
.cart { padding: 40px 0 70px; display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.cart__empty { padding: 60px 0 80px; text-align: center; }
.cart__empty p { font-size: 18px; margin: 0 0 22px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 10px 10px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.cart-table__img { width: 70px; }
.cart-table__img img { width: 60px; height: 60px; object-fit: contain; }
.cart-table__name a:hover { color: var(--crimson); }
.cart-table__name small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.cart-table__sum { font-weight: 700; white-space: nowrap; text-align: right; }
.cart-table__del { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; }
.cart-table__del:hover { color: var(--crimson); }
.cart__clear { margin-top: 14px; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 0; }
.cart__clear:hover { color: var(--crimson); }

.order { border: 1px solid var(--line); padding: 22px; position: sticky; top: 20px; background: #fff; }
.order h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.totals { margin: 0 0 18px; border: 1px solid var(--line); }
.totals__row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.totals__row:last-child { border-bottom: 0; }
.totals__row b { font-weight: 800; white-space: nowrap; }
.totals__row.is-base { background: #f0fafc; }
.totals__row.is-base b { color: var(--teal); font-size: 20px; }
.totals__meta { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  border: 1px solid #d4d8dc; border-radius: 0; padding: 10px 12px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); }
.field textarea { min-height: 70px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order .btn { width: 100%; }
.order__note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- text pages ---------- */
.text-page { padding: 40px 0 70px; max-width: 900px; }
.text-page h2 { font-size: 22px; text-transform: uppercase; margin: 28px 0 10px; }
.text-page p, .text-page li { font-size: 16px; }
.where-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 10px; }
.where-card { border: 1px solid var(--line); padding: 18px; }
.where-card b { display: block; font-size: 18px; margin-bottom: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 14px; align-items: center;
}
.toast a { color: #ffd0dd; text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--footer); color: #fefefe; padding: 30px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__wa:hover { color: #ffd0dd; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .header__link { padding: 0 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .brands__inner { grid-template-columns: 1fr; }
  .cart { grid-template-columns: 1fr; }
  .order { position: static; }
}
@media (max-width: 991px) {
  .header { position: relative; background: #fff; box-shadow: 0 1px 0 var(--line); }
  .header::before { display: none; }
  .header__inner { align-items: center; padding: 6px 15px; }
  .header__logo img { width: 58px; }
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; height: auto;
    flex-direction: column; align-items: stretch; box-shadow: 0 16px 30px rgba(0,0,0,.12); z-index: 40; padding: 6px 0;
  }
  .header__nav.is-open { display: flex; }
  .header__nav .header__link, .header__catalog-btn { height: 46px; padding: 0 20px; justify-content: flex-start; }
  .header__drop-menu { position: static; display: block; box-shadow: none; padding: 0 0 6px 18px; }
  .header__cart { margin-left: auto; height: 46px; }
  .header__menu-btn { display: inline-block; }
  .menu-catalog { top: 100%; max-height: 70vh; overflow: auto; }
  .hero { height: 440px; }
  .hero__text { font-size: 30px; padding-top: 0; }
  .hero__text .small { font-size: 18px; }
  .anons__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .anons__name { font-size: 17px; left: 12px; top: 10px; }
  .about__inner, .product { grid-template-columns: 1fr; gap: 26px; }
  .catalog { grid-template-columns: 1fr; padding-top: 20px; }
  .side { display: none; }
  .side__mobile { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
  .side__mobile select { width: 100%; font: inherit; font-size: 15px; padding: 10px; border: 1px solid #d4d8dc; background: #fff; color: var(--text); }
  .page-head { padding: 26px 0 22px; }
  .page-head h1 { font-size: 30px; }
  .catalog-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .header__cart-text { display: none; }
  .hero { height: 380px; }
  .hero__slide { background-position: 70% center; }
  .hero__text { font-size: 24px; }
  .hero__text .small { font-size: 15px; }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .brands__title { font-size: 20px; }
  .adv__inner { flex-direction: column; align-items: flex-start; padding: 0 10px; }
  .about__lead p { font-size: 19px; }
  .about__lead h2 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { font-size: 13px; }
  .toolbar__sort { gap: 8px; flex-wrap: wrap; }
  .toolbar__sort b { display: none; }
  .card { padding: 14px 8px 16px; }
  .card__img, .card__img img { height: 120px; max-height: 120px; }
  .card__name { font-size: 13px; }
  .card__price { font-size: 17px; }
  .btn { padding: 0 12px; font-size: 12px; }
  .qty button { width: 30px; }
  .qty input { width: 40px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table__img { grid-row: span 3; }
  .cart-table__name { grid-column: 2 / 4; }
  .cart-table__price { display: none; }
  .cart-table__sum { text-align: left; align-self: center; }
  .cart-table__del { position: relative; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .where-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
