/* Wildberries-style local clone — assets only from relative paths */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-700-normal.woff2") format("woff2");
}

:root {
  --wb-pink: #cb11ab;
  --wb-header-magenta: #e313bf;
  --wb-header-purple: #6a1776;
  --wb-text: #242424;
  --wb-muted: #a73afd;
  --wb-price: #d63ffb;
  --wb-old-price: #a0a0a0;
  --wb-bg: #fafafb;
  --wb-card-radius: 24px;
  --wb-search-radius: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--wb-text);
  background: var(--wb-bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  padding-bottom: 120px;
}

/* ——— Header: один градиент на верхнюю строку + основную шапку (как на wildberries.ru) ——— */
.site-header {
  position: relative;
  z-index: 50;
}

.site-header__shell {
  color: #fff;
  background: linear-gradient(
    92deg,
    var(--wb-header-magenta) 0%,
    #cb11ab 14%,
    #bf119f 32%,
    #a0138f 52%,
    #8b157f 72%,
    var(--wb-header-purple) 100%
  );
  box-shadow: 0 4px 20px rgba(106, 23, 118, 0.42);
}

.header-util {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-util__inner {
  max-width: 1512px;
  margin: 0 auto;
  padding: 8px 28px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  line-height: 1.25;
}

.header-util__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  flex-shrink: 0;
}

.header-util__pin {
  flex-shrink: 0;
  opacity: 0.95;
}

.header-util__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.header-util__nav a {
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  transition: opacity 0.15s, color 0.15s;
}

.header-util__nav a:hover {
  color: #fff;
}

.header-util__link-tours {
  font-weight: 500;
}

.header-util__funsun {
  display: inline-block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff0a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-util__link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-util__link-chevron svg {
  opacity: 0.85;
  flex-shrink: 0;
}

.header-util__currency {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

.header-util__flag {
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.header-main {
  padding: 10px 28px 16px;
  background: transparent;
}

.header-main__inner {
  max-width: 1512px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  white-space: nowrap;
  line-height: 1;
  color: #fff;
}

.menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.95);
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.search-wrap input {
  width: 100%;
  height: 48px;
  border-radius: var(--wb-search-radius);
  border: none;
  padding: 0 50px 0 22px;
  font-size: 16px;
  font-family: inherit;
  color: #242424;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 2px 10px rgba(74, 14, 74, 0.12);
}

.search-wrap input::placeholder {
  color: #8b8b8b;
}

.search-camera {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  opacity: 0.45;
}

.header-actions {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.header-actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  min-width: 54px;
}

.header-actions__item svg {
  width: 26px;
  height: 26px;
}

.header-actions__item:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .header-util__nav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-util__currency {
    margin-left: auto;
    order: 2;
  }

  .header-util__loc {
    order: 1;
  }
}

@media (max-width: 1024px) {
  .header-main__inner {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .search-wrap {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* ——— Hero ——— */
.hero {
  max-width: 1440px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.hero__card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(115deg, #c4b5e8 0%, #a898dc 35%, #9585cf 70%, #8574c4 100%);
  display: flex;
  align-items: center;
  padding: 32px 48px;
  isolation: isolate;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 80%, #fff 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, #fff 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  max-width: 42%;
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(62, 27, 120, 0.35);
}

.hero__badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffdd2d;
  color: #000;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero__visual {
  position: absolute;
  right: 2%;
  bottom: 0;
  top: 8%;
  width: 55%;
  z-index: 1;
  pointer-events: none;
}

.hero__visual .hero-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(52, 30, 120, 0.35));
}

@media (max-width: 768px) {
  .hero__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    min-height: 360px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    position: relative;
    width: 100%;
    height: 220px;
    top: auto;
    right: auto;
    margin-top: 16px;
  }
}

/* ——— Products ——— */
.products {
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}

@media (min-width: 1200px) {
  .products__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.products__loading {
  margin: 16px 24px 0;
  text-align: center;
  padding: 12px;
  color: #767676;
  font-size: 15px;
}

.products__loading--hidden {
  display: none;
}

.card {
  background: #fff;
  border-radius: var(--wb-card-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(203, 17, 171, 0.18);
  transform: translateY(-2px);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f3f3f5;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card__wishlist svg {
  width: 22px;
  height: 22px;
  stroke: #242424;
  stroke-width: 1.65;
  fill: none;
}

.card__discount {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--wb-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 10px;
}

.card__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  max-width: 70%;
}

.card__body {
  padding: 12px 14px 16px;
}

.card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--wb-price);
}

.card__old {
  font-size: 14px;
  color: var(--wb-old-price);
  text-decoration: line-through;
}

.card__title {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--wb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__rating {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #767676;
}

.card__rating svg {
  width: 14px;
  height: 14px;
  fill: #ffb800;
}

/* ——— Cookie ——— */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  max-width: 380px;
  background: #2b2b2b;
  color: #fff;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie__btn {
  align-self: flex-start;
  background: #fff;
  color: #242424;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 12px;
}

.cookie--hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
