/* ══════════════════════════════════════════════════════════════
   NASHA* — Main Stylesheet
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #c8c8c8;
  --gray-dark: #3a3a3a;
  --gray-rail: #e5e5e5;
  --pink: #ff1f71;
  --font: 'Geologica', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1180px;
  /* максимальная ширина контентной колонки на ультрашироких экранах */
  --page-max-w: 1720px;
  /* главная и блоки .home-container: не шире --page-max-w, на узком экране — 100% */
  --home-max: min(100%, var(--page-max-w));
  --pad-x: 40px;
}

html {
  font-size: 16px;
  scroll-padding-top: 60px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header__inner-wrap {
  width: 100%;
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: opacity 0.2s;
}

.header__menu-btn:hover { opacity: 0.5; }

.header__menu-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  border-radius: 0;
}

.header__link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  background-clip: unset;
  -webkit-background-clip: unset;
  transition: opacity 0.2s;
}

.header__link:hover { opacity: 0.45; color: var(--pink); }

/* Логотип в шапке: на всех витринных *.html один шаблон — не менять на текст/svg-инлайн.
   <a class="header__logo header__logo--word" href="/index.html"><img class="header__logo-img" src="/assets/logo_nasha.svg" width="118" height="20" alt="" decoding="async"></a>
   Допустимы лишь модификаторы рядом: header__logo--account | header__logo--login (стили ЛК). */
.header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__logo:hover { opacity: 0.85; }

.header__logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.header__logo--word {
  line-height: 0;
}

.header__logo--word .header__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.header__logo--word:hover {
  opacity: 0.55;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  transition: opacity 0.2s;
}

.header__icon-btn:hover { opacity: 0.5; }

.header__cart-icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Синяя точка-индикатор при наличии товаров в корзине */
.header__cart--has-items::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #1150F2;
  border-radius: 50%;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  height: 589px;
  margin: 48px auto 0;
  overflow: hidden;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px 32px;
}

.hero__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero__caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   BRAND SECTION
   ══════════════════════════════════════════════════════════════ */

.brand {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--pad-x) 72px;
}

.brand__tagline {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: #1150F2;
  text-align: right;
  padding-right: 4px;
  margin-bottom: 10px;
}

.brand__title {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 40px;
}

.brand__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.brand__col--left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand__row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand__meta-num,
.brand__meta-info {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
}

.brand__photo-wrap {
  overflow: hidden;
}

.brand__photo-wrap--eyes {
  aspect-ratio: 4/3;
  width: 100%;
}

.brand__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__col--right {
  display: flex;
  flex-direction: column;
}

.brand__photo-wrap--tall {
  width: 100%;
  aspect-ratio: 3/4;
}

.brand__text-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand__subtitle {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand__body {
  font-size: 11px;
  line-height: 1.75;
  color: var(--gray-dark);
}

.brand__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: 1px solid var(--black);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.brand__btn:hover {
  background: #1150F2;
  color: #fff;
  border-color: #1150F2;
}

.brand__btn-icon {
  height: 12px;
  width: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   DROP SECTION
   ══════════════════════════════════════════════════════════════ */

.drop {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--pad-x) 50px;
}

.drop__title {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

.drop__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drop__meta-num,
.drop__meta-mood {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
}

.drop__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 2fr 0.38fr;
  gap: 10px;
  align-items: start;
  min-height: 420px;
}

.drop__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Колонка 1 — фото каталог, смещено вниз */
.drop__item--1 {
  margin-top: 60px;
}

.drop__item--1 .drop__img {
  aspect-ratio: 3/4;
}

/* Колонка 2 — фото парень, стартует сверху */
.drop__item--2 {
  margin-top: 0;
}

.drop__item--2 .drop__img {
  aspect-ratio: 3/4;
}

/* Колонка 3 — фото девушка, смещено вниз чуть меньше */
.drop__item--3 {
  margin-top: 36px;
}

.drop__item--3 .drop__img {
  aspect-ratio: 2/3;
}

/* Колонка 4 — большое фото, высокое */
.drop__item--4 {
  margin-top: 0;
}

.drop__item--4 .drop__img {
  aspect-ratio: 3/4;
  max-height: 520px;
}

/* Колонка 5 — узкое фото, обрезанное */
.drop__item--5 {
  margin-top: 0;
  overflow: hidden;
}

.drop__item--5 .drop__img {
  aspect-ratio: 1/2.8;
  object-position: center;
}

.drop__img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.drop__caption {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--gray-dark);
  line-height: 1.5;
}

.drop__catalog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  border: 1px solid var(--black);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-decoration: none;
}

.drop__catalog-btn:hover {
  background: #1150F2;
  color: #fff;
  border-color: #1150F2;
}

.drop__catalog-arrow {
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.footer {
  --footer-muted: #9a9a9a;
  --footer-pad-x: var(--pad-x);
  margin-top: 0;
  width: 100%;
  color: #fff;
  font-family: var(--font);
}

.footer__shell {
  width: 100%;
  background: #000;
}

.footer__main {
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  padding: 72px var(--footer-pad-x) 48px;
  box-sizing: border-box;
}

.footer__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.15fr)
    minmax(0, 1.25fr)
    minmax(0, 1fr)
    minmax(220px, 1fr);
  gap: 28px 36px;
  align-items: start;
  width: 100%;
}

.footer__col--subscribe {
  justify-self: start;
  width: 100%;
  max-width: 280px;
  text-align: left;
}

.footer__heading {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__text-link {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  transition: opacity 0.2s;
}

.footer__text-link:hover {
  opacity: 0.55;
}

.footer__text-link--long {
  display: inline-block;
  max-width: 18em;
}

.footer__contacts {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s;
}

.footer__contact-link:hover {
  opacity: 0.55;
}

.footer__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.95;
}

.footer__icon-img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.footer__fine {
  margin: 0 0 14px;
  max-width: 240px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--footer-muted);
}

.footer__hours {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer__col--legal {
  padding-top: 2px;
}

.footer__legal-line {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--footer-muted);
}

.footer__legal-line:last-child {
  margin-bottom: 0;
}

.footer__legal-link {
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer__legal-link:hover {
  color: #fff;
}

.footer__subscribe-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: left;
}

.footer__subscribe-hint {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--footer-muted);
  text-align: left;
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.footer__subscribe-msg {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--footer-muted);
}

.footer__subscribe-msg--ok {
  color: #7dffb0;
}

.footer__subscribe-msg--err {
  color: #ff6b8a;
}

.footer__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #111;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0;
}

.footer__input::placeholder {
  color: #a8a8a8;
}

.footer__submit {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.footer__submit:hover {
  background: #fff;
  color: #000;
}

.footer__mark {
  margin: 48px 0 0;
  padding: 0;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer__credit {
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 16px var(--footer-pad-x);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  color: #9a9a9a;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════
   HOME — NASHASHOP main (макет главной)
   ══════════════════════════════════════════════════════════════ */

main.home {
  padding-top: 52px;
}

.home-container {
  width: 100%;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.home-section {
  padding: 56px 0 48px;
}

.home-heading {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--black);
}

#cats-heading.home-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

/* Hero slider — в общей контентной колонке сайта, с боковыми полями как у шапки */
.hero-slider {
  width: 100%;
  max-width: var(--page-max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  box-sizing: border-box;
}

.hero-slider__viewport-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  height: clamp(440px, 54vw, 900px);
  min-height: 400px;
  max-height: 900px;
  background: #1a1a1a;
  overflow: hidden;
  border-radius: 0;
}

.hero-slider__track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition:
    opacity 0.75s cubic-bezier(0.45, 0, 0.22, 1),
    visibility 0s linear 0.75s;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
  transition: opacity 0.75s cubic-bezier(0.45, 0, 0.22, 1);
}

.hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-slider__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.35) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.06) 55%, transparent 100%);
  pointer-events: none;
}

.hero-slider__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px min(5vw, 56px) 48px;
  max-width: 640px;
  z-index: 2;
}

.hero-slider__title {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-slider__sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 420px;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.hero-slider__arrow:hover { opacity: 1; }

.hero-slider__arrow svg {
  pointer-events: none;
  display: block;
}

.hero-slider__arrow--prev { left: 8px; }
.hero-slider__arrow--next { right: 8px; }

.hero-slider__drop-wrap {
  width: 100%;
  background: var(--white);
  padding: 24px 0 4px;
}

.hero-slider__drop-inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Кнопка дропа на всю ширину баннера (без полей .home-container по бокам) */
.hero-slider__drop-inner.home-container {
  padding-inline: 0;
}

.hero-drop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  box-sizing: border-box;
  border: 1px solid var(--black);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-drop-btn:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.hero-drop-btn__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: inherit;
}

.hero-drop-btn__svg {
  display: block;
  color: currentColor;
}

.hero-drop-btn__text {
  text-align: center;
  line-height: 1.3;
}

/* Категории (карточки в ряд, лёгкая рамка) */
.home-cats {
  background: var(--white);
}

.home-cats__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 4px var(--pad-x) 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}

.home-cats__list {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: min-content;
}

.home-cats__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eeeeee;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  /* Иначе flex даёт ширину «как две колонки» и справа остаётся пустота при переносе текста */
  width: max-content;
  flex-shrink: 0;
  min-height: 72px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.home-cats__item:hover {
  border-color: #d8d8d8;
  background: #fafafa;
}

.home-cats__thumb {
  width: 50px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.home-cats__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cats__name {
  flex: 0 1 auto;
  min-width: 0;
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--black);
  max-width: min(10.25rem, 38vw);
  width: fit-content;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.home-cats__loading,
.home-cats__empty {
  display: block;
  padding: 12px 0;
  font-size: 12px;
  color: var(--gray-dark);
}

.home-cats__thumb-logo {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  opacity: 0.75;
}

/* Сетка товаров */
.home-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 18px;
}

.home-products__loading,
.home-products__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.product-card__info {
  display: block;
}

.product-card__info a {
  color: inherit;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ebebeb;
}

.product-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.product-card__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
  display: block;
}

.product-card:hover .product-card__media-link img {
  transform: scale(1.03);
}

/* Как в каталоге: оверлей «В КОРЗИНУ» при наведении */
.home .product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 8px 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.home .product-card:hover .product-card__overlay {
  opacity: 1;
  pointer-events: all;
}

.home .product-card__quick-add {
  width: 100%;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.home .product-card__quick-add:hover {
  opacity: 0.85;
}

.home .product-card--preorder .product-card__quick-add {
  background: #ff5490;
  color: #fff;
}

.home .product-card--preorder .product-card__quick-add:hover {
  opacity: 0.9;
}

/* Карточки «Хиты / Новинки»: как в каталоге — коллекция + цвета в ряд, описание, без сдвига типографики внутри медиа */
.home .product-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
  min-width: 0;
}

.home .product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.home .product-card__collection {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  line-height: 1.3;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.home .product-card__colors {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.home .product-card__color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  flex-shrink: 0;
}

.home .product-card__desc-short {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gray-dark);
  line-height: 1.45;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.home .product-card__name {
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}

.home .product-card__price {
  text-align: left;
  margin-top: 2px;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.product-card__badge--pink {
  background: #ff5490;
  color: #fff;
}

.product-card__type {
  font-size: 10px;
  color: var(--gray-dark);
  margin-top: 12px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.product-card__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card__price {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* НОВИНКИ — баннер (как макет: фото фон, текст слева, кнопка справа) */
.home-new-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 32px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: #0e1014;
  background-image: url('/assets/main_banner.jpg');
  background-repeat: no-repeat;
  background-position: center 70%;
  /* Зум на весь баннер — без полей по бокам */
  background-size: cover;
  min-height: 72px;
  transition: opacity 0.2s;
}

.home-new-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.38) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.home-new-banner:hover {
  opacity: 0.94;
}

.home-new-banner__inner {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  min-height: 72px;
  padding: 12px 18px 12px 22px;
  font-family: var(--font);
  box-sizing: border-box;
}

.home-new-banner__text {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(68%, 900px);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.03em;
  color: #fff;
  /* как в textarea админки: явные переносы строк + мягкий перенос длинных строк */
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.home-new-banner__btn {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: #fff;
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 900px) {
  .home-new-banner {
    min-height: 0;
  }

  .home-new-banner__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 14px 14px 14px;
    gap: 12px;
    box-sizing: border-box;
  }

  .home-new-banner__text {
    max-width: none;
    width: 100%;
    margin: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .home-new-banner__btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 640px) {
  .home-new-banner__inner {
    padding: 12px 12px 12px;
    gap: 10px;
  }

  .home-new-banner__btn {
    padding: 14px 12px;
  }
}

/* Философия */
.home-philosophy {
  padding: 72px var(--pad-x);
  text-align: center;
  background: var(--white);
  max-width: var(--page-max-w);
  margin-inline: auto;
  box-sizing: border-box;
}

.home-philosophy__text {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--black);
}

/* Две визуальные строки: каждая фраза — отдельный блок; на широком экране без переноса внутри фразы (иначе первая фраза ломалась на две строки). */
.home-philosophy__line {
  display: block;
  line-height: inherit;
}

@media (min-width: 900px) {
  .home-philosophy__line {
    white-space: nowrap;
  }

  .home-philosophy__text {
    width: max-content;
    max-width: min(100%, calc(100vw - 32px));
  }
}

@media (max-width: 899px) {
  .home-philosophy__line {
    white-space: normal;
  }
}

/* Lifestyle (две колонки: слева одно фото по высоте правого блока, справа ряд из 5 квадратов + текст + кнопка) */
.home-lifestyle {
  padding: 40px 0 80px;
}

.home-lifestyle__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: stretch;
}

.home-lifestyle__main-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: flex;
}

.home-lifestyle__main-photo img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-lifestyle__right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* Ряд из 5 фото: общий верх, разная высота кадра (как в макете) */
.home-lifestyle__mosaic {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
}

.home-lifestyle__mosaic img {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* 3 — самый высокий портрет; 1 и 5 — по бокам; 2 и 4 — ниже по высоте, выровнены по верху ряда */
.home-lifestyle__mosaic img:nth-child(1),
.home-lifestyle__mosaic img:nth-child(5) {
  aspect-ratio: 5 / 6;
}

.home-lifestyle__mosaic img:nth-child(2),
.home-lifestyle__mosaic img:nth-child(4) {
  aspect-ratio: 3 / 2;
}

.home-lifestyle__mosaic img:nth-child(3) {
  aspect-ratio: 2 / 3;
}

.home-lifestyle__copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  padding-top: clamp(16px, 2.5vw, 32px);
  text-align: left;
}

/* Свободное место сверху — заголовок, текст и кнопка сгруппированы внизу колонки, ближе друг к другу */
.home-lifestyle__title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--black);
  margin: auto 0 clamp(18px, 2.2vw, 26px);
}

.home-lifestyle__body {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-dark);
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  max-width: none;
}

.home-lifestyle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  box-sizing: border-box;
  padding: 10px 24px;
  min-height: 0;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.home-lifestyle__btn-icon {
  flex-shrink: 0;
  display: block;
  color: currentColor;
}

.home-lifestyle__btn-text {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  line-height: 1.5;
}

.home-lifestyle__btn:hover {
  background: var(--black);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1220px) {
  :root {
    --pad-x: 24px;
  }

  .hero-slider__viewport {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }

  .hero-slider__content {
    /* Внутри кадра — небольшой отступ слева/справа вместе с padding слайдера */
    padding: 32px 10px 48px;
  }
}

@media (max-width: 1100px) {
  .home-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-lifestyle {
    padding: 36px 0 56px;
  }

  .home-lifestyle__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-lifestyle__right {
    order: 1;
  }

  /* Нижнее фото — на всю ширину колонки контента (как заголовок и кнопка), пропорции как у кадра 360×280 */
  .home-lifestyle__main-photo {
    order: 3;
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    max-height: none;
  }

  .home-lifestyle__main-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 280;
    object-fit: cover;
    object-position: center center;
    box-sizing: border-box;
  }

  .home-lifestyle__mosaic {
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 0;
  }

  .home-lifestyle__copy {
    padding-top: clamp(20px, 4vw, 28px);
  }

  .home-lifestyle__title {
    margin: 0 0 clamp(16px, 2vw, 22px);
  }

  .home-lifestyle__btn {
    margin-top: 8px;
  }

  main.home .home-philosophy {
    padding: clamp(52px, 12vw, 72px) var(--pad-x) clamp(40px, 9vw, 56px);
  }
}

@media (max-width: 960px) {
  .header__nav .header__link { display: none; }
  .header__nav { gap: 0; }
  .header__menu-btn { display: flex; }

  .brand__grid {
    grid-template-columns: 1fr;
  }

  .brand__photo-wrap--tall {
    aspect-ratio: 16/9;
  }

  .drop__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .drop__item--4 { grid-column: span 2; }
  .drop__item--5 { display: none; }

  .footer__main {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer__col--subscribe {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  .footer__subscribe-title,
  .footer__subscribe-hint {
    text-align: left;
  }

  .footer__form {
    max-width: 320px;
  }

  .footer__mark {
    margin-top: 36px;
  }

  .hero-drop-btn {
    padding: 8px 16px;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  :root { --pad-x: 16px; }

  .header__lang { display: none; }

  .hero { height: 56vw; min-height: 220px; }

  .home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .home-lifestyle__mosaic {
    gap: 5px;
  }

  .hero-slider__content {
    padding-bottom: 40px;
  }

  .hero-slider__drop-wrap {
    padding-top: 16px;
  }

  .hero-drop-btn {
    padding: 7px 14px;
    gap: 8px;
    font-size: 13px;
  }

  .hero-drop-btn__svg {
    width: 16px;
    height: auto;
  }

  .drop__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .drop__item--3 { margin-top: 0; }
  .drop__item--4 { grid-column: span 2; }
  .drop__item--5 { display: none; }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__col--subscribe .footer__form {
    max-width: none;
  }
}
