:root {
  --blue: #0867f7;
  --blue-dark: #0052c8;
  --yellow: #ffd064;
  --red: #ef334d;
  --green: #20ad55;
  --text: #111111;
  --muted: #777777;
  --line: #e7e7e7;
  --soft: #f5f6f8;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(24, 36, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: Manrope, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.top-announcement {
  position: relative;
  display: grid;
  min-height: 56px;
  place-items: center;
  padding: 8px 56px;
  text-align: center;
  background: linear-gradient(90deg, #ffc24c, #ffdc83, #ffc24c);
}

.top-announcement strong,
.top-announcement span {
  display: block;
  line-height: 1.25;
}

.top-announcement strong {
  font-size: 17px;
  font-weight: 900;
}

.top-announcement span {
  margin-top: 4px;
  font-size: 14px;
}

.top-announcement button {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-main,
.nav-links,
main {
  width: min(1300px, calc(100% - 32px));
  margin: 0 auto;
}

.header-main {
  display: grid;
  grid-template-columns: auto 138px minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.brand-text strong {
  display: block;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 900;
  line-height: 0.8;
}

.brand-text small {
  display: inline-block;
  margin-left: 52px;
  padding: 2px 8px;
  color: #ffffff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.catalog-btn {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  color: #111111;
  background: #eeeeee;
  font-weight: 800;
  cursor: pointer;
}

.catalog-btn span,
.catalog-btn span::before,
.catalog-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111111;
}

.catalog-btn span {
  position: relative;
}

.catalog-btn span::before,
.catalog-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.catalog-btn span::before {
  top: -6px;
}

.catalog-btn span::after {
  top: 6px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 58px;
  height: 44px;
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
}

.search-box input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: none;
  font-size: 15px;
}

.search-box button {
  border: 0;
  color: #ffffff;
  background: var(--blue);
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
}

.search-box button::before {
  content: "⌕";
  font-size: 30px;
  line-height: 1;
}

.header-action {
  position: relative;
  display: grid;
  min-width: 70px;
  place-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.header-action span {
  font-size: 25px;
  line-height: 1;
}

.header-action small {
  font-size: 13px;
}

.header-action b {
  position: absolute;
  right: 12px;
  top: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 11px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  overflow-x: auto;
  padding: 0 0 18px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
}

main {
  padding-bottom: 48px;
}

.hero-market {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 24px;
  padding-top: 16px;
}

.hero-slider {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 42%);
  min-height: 360px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(90deg, #f6cd98, #f3d5a8);
}

.hero-copy {
  z-index: 2;
  align-self: center;
  padding: 40px 0 48px 360px;
}

.label {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.3vw, 50px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-copy p:not(.label) {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 21px;
  line-height: 1.38;
}

.hero-slider > img {
  position: absolute;
  left: 48px;
  bottom: 24px;
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: 0 22px 50px rgba(88, 45, 20, 0.2);
}

.dark-btn,
.blue-btn,
.outline-btn,
.cart-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.dark-btn {
  min-width: 150px;
  color: #ffffff;
  background: #452512;
}

.blue-btn,
.cart-pill {
  border: 0;
  color: #ffffff;
  background: var(--blue);
}

.blue-btn:hover,
.cart-pill:hover {
  background: var(--blue-dark);
}

.outline-btn {
  min-width: 230px;
  border: 1px solid var(--line);
  color: #111111;
  background: #ffffff;
}

.slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.slider-arrow.left {
  left: 24px;
}

.slider-arrow.right {
  right: 24px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 25px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.slider-dots .active {
  background: var(--red);
}

.daily-card {
  position: relative;
  min-height: 360px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.daily-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.daily-head strong {
  font-size: 18px;
  font-weight: 900;
}

.daily-head span {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.discount-badge {
  position: absolute;
  right: 36px;
  top: 44px;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--red);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.discount-badge small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.daily-card img {
  width: 150px;
  height: 150px;
  margin: 4px auto 14px;
  object-fit: cover;
}

.daily-card h2 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.rating {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.rating span {
  margin-left: 8px;
  color: #999999;
  font-weight: 600;
}

.daily-price {
  display: grid;
  margin-bottom: 14px;
}

.daily-price del {
  color: #999999;
}

.daily-price strong {
  font-size: 24px;
  font-weight: 900;
}

.daily-card .blue-btn {
  width: 100%;
}

.mini-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 22px;
}

.mini-banners article {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f2f2;
}

.mini-banners img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.mini-banners div {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 30px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08));
}

.mini-banners strong {
  max-width: 280px;
  font-size: 31px;
  line-height: 0.95;
  font-weight: 900;
}

.mini-banners span {
  max-width: 260px;
  margin-top: 12px;
  font-weight: 800;
}

.market-section {
  padding-top: 22px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.cart-pill {
  gap: 8px;
  padding: 0 18px;
}

.cart-pill span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.category-grid a {
  display: grid;
  gap: 8px;
  text-align: center;
  font-weight: 900;
}

.category-grid img {
  width: 100%;
  height: 130px;
  border-radius: 6px;
  object-fit: cover;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.category-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.category-tabs .active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.live-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.live-product-card {
  position: relative;
  display: grid;
  min-height: 390px;
  background: #ffffff;
}

.live-product-card img {
  width: 100%;
  height: 170px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.live-product-card .body {
  display: grid;
  padding-top: 10px;
}

.product-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 6px 0 6px 0;
  color: #ffffff;
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.live-product-card .code {
  color: #999999;
  font-size: 13px;
}

.live-product-card h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 6px 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-product-card .meta {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.live-product-card .meta::after {
  content: "Artikul: katalog";
  display: block;
  margin-top: 14px;
  color: #999999;
  font-weight: 500;
}

.live-product-card .price {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.live-product-card .price::after {
  content: "Roznichnaya tsena";
  display: block;
  margin-top: 6px;
  color: #777777;
  font-size: 13px;
  font-weight: 500;
}

.live-product-card .primary-btn {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.live-product-card .primary-btn:hover {
  background: var(--blue-dark);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.sale-band {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin-top: 34px;
  border-radius: 6px;
  color: #ffffff;
  background: #1758d8;
}

.sale-band img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.36;
}

.sale-band div {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 36px;
}

.sale-band span {
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--red);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
}

.sale-band h2 {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-weight: 900;
}

.sale-band p {
  max-width: 600px;
  font-size: 20px;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.reel-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.reel-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.reel-card div {
  position: absolute;
  inset: auto 12px 12px;
  padding: 14px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
}

.reel-card strong,
.reel-card span,
.reel-card small {
  display: block;
}

.reel-card span,
.reel-card small {
  margin-top: 4px;
  opacity: 0.8;
}

.upload-slot {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  border: 2px dashed #d7d7d7;
}

.upload-slot > span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 42px;
  font-weight: 900;
}

.showroom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.showroom > img {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  object-fit: cover;
}

.showroom div {
  padding: 34px;
  border-radius: 6px;
  background: var(--soft);
}

.showroom h2,
.contact-section h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 900;
}

.showroom p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

.showroom .blue-btn {
  padding: 0 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 34px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section a {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.cart-modal {
  width: min(560px, calc(100% - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cart-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}

.cart-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-head p {
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 900;
}

.cart-head h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.cart-items {
  display: grid;
  max-height: 260px;
  overflow: auto;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 14px;
}

.cart-item button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  font-size: 22px;
}

.cart-panel label {
  display: grid;
  gap: 7px;
  color: #444444;
  font-size: 14px;
  font-weight: 800;
}

.cart-panel input,
.cart-panel textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.cart-panel textarea {
  min-height: 86px;
  resize: vertical;
}

.order-message,
.shop-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1160px) {
  .header-main {
    grid-template-columns: auto 130px 1fr auto;
  }

  .header-action:first-of-type {
    display: none;
  }

  .hero-market,
  .showroom {
    grid-template-columns: 1fr;
  }

  .daily-card {
    min-height: auto;
  }

  .daily-card img {
    margin-left: 0;
  }

  .live-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }

  .catalog-btn,
  .search-box {
    grid-column: 1 / -1;
  }

  .hero-slider {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 28px 250px;
  }

  .hero-slider > img {
    left: 34px;
    width: min(260px, calc(100% - 68px));
    height: 220px;
  }

  .mini-banners,
  .category-grid,
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-announcement {
    padding: 8px 44px 8px 16px;
  }

  .header-main,
  .nav-links,
  main {
    width: min(100% - 20px, 1300px);
  }

  .brand-text strong {
    font-size: 34px;
  }

  .header-action {
    min-width: 52px;
  }

  .hero-copy {
    padding: 28px 18px 230px;
  }

  .hero-copy p:not(.label) {
    font-size: 19px;
  }

  .slider-arrow {
    display: none;
  }

  .mini-banners,
  .category-grid,
  .live-product-grid,
  .reels-grid {
    grid-template-columns: 1fr;
  }

  .mini-banners article {
    min-height: 150px;
  }

  .category-grid img {
    height: 150px;
  }

  .live-product-card {
    min-height: auto;
  }

  .live-product-card img {
    height: 180px;
  }

  .sale-band div {
    padding: 24px;
  }

  .sale-band span {
    font-size: 28px;
  }

  .reel-card {
    min-height: 360px;
  }

  .showroom div,
  .contact-section {
    padding: 24px;
  }
}
