@font-face {
  font-family: "Nata Sans";
  src: url("/fonts/nata-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAK";
  src: url("/fonts/mak.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   01. GLOBAL / TOKENS / RESET
   Единая сетка с главной страницей
   ========================================================= */

:root {
  --page-bg: #f6f7f2;
  --sidebar-bg: #5f6b80;
  --white: #fff;
  --text: #0d0d0d;
  --accent: #ed6c02;

  --sidebar-width: 323px;

  --page-left-gap: 24px;
  --page-right-gap: 43px;

  /* Единая горизонтальная сетка */
  --tablet-page-gap: 20px;
  --mobile-page-gap: 12px;

  /*
   * Совместимость с уже корректной мобильной частью
   * страницы "Для него".
   */
  --tablet-gap: var(--tablet-page-gap);
  --mobile-gap: var(--mobile-page-gap);

  --mobile-header-height: 76px;

  /* Токены главной страницы */
  --space-section: clamp(56px, 5vw, 72px);
  --space-section-lg: clamp(84px, 7vw, 108px);
  --space-heading: 40px;
  --space-content: 28px;
  --space-tight: 18px;
  --space-footer-y: 42px;

  /*
   * Старый page-specific token оставлен для сохранения
   * вертикальной геометрии уже сверстанной страницы.
   */
  --section-space: clamp(40px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;

  color: var(--text);
  background: var(--page-bg);

  font-family: "Nata Sans", sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.men-hero {
  padding: 10px var(--page-right-gap) 0 var(--page-left-gap);
}

.men-hero__media {
  width: 100%;
  aspect-ratio: 1337 / 678;
  overflow: hidden;
}

.men-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.men-hero h1 {
  margin: 18px 0 0;
  max-width: 1100px;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -1.6px;
}

/* =========================================================
   CATEGORY CHOOSER
   ========================================================= */

.men-categories {
  display: grid;

  grid-template-columns:
    minmax(280px, 360px)
    minmax(0, 1fr);

  gap: clamp(48px, 5vw, 86px);

  padding:
    var(--section-space)
    var(--page-right-gap)
    0
    var(--page-left-gap);
}


/* =========================================================
   CATEGORY CHOOSER — LEFT
   ========================================================= */

.men-categories__chooser h2 {
  margin: 0 0 34px;

  font-size: clamp(22px, 1.65vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}


.category-list {
  display: grid;
  gap: 0;
}


.category-tab {
  position: relative;

  width: 100%;
  min-height: 68px;

  padding: 0;

  border: 0;
  border-bottom: 1px solid transparent;

  background: transparent;

  color: #666;

  text-align: left;

  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 300;
  line-height: 1.2;

  cursor: pointer;

  transition:
    color 180ms ease,
    border-color 180ms ease;
}


.category-tab:hover,
.category-tab:focus-visible,
.category-tab.is-active {
  color: #111;
  outline: none;
}


.category-tab.is-active {
  border-bottom-color: var(--accent);
}


/* =========================================================
   CATEGORY PREVIEW — RIGHT
   ========================================================= */

.category-preview {
  min-width: 0;
}


/*
 * Вся правая зона.
 * Соотношение оставляем близким к макету.
 */
.category-preview__collage {
  position: relative;

  width: 100%;

  aspect-ratio: 914 / 430;

  overflow: hidden;
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.category-preview__image {
  position: absolute;
  inset: 0;

  margin: 0;

  overflow: hidden;
}


.category-preview__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 50%;

  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(.2, .7, .2, 1);
}


.category-preview__image.is-changing img {
  opacity: .15;
  transform: scale(1.02);
}


/* =========================================================
   CATEGORY IMAGE — CUTOUT
   Белая зона в левом нижнем углу
   ========================================================= */

.category-preview__cutout {
  position: absolute;
  z-index: 2;

  left: 0;
  bottom: 0;

  /*
   * Размер самого выреза.
   * Чуть шире и выше кнопки.
   */
  width: 238px;
  height: 84px;

  background: var(--page-bg);

  pointer-events: none;
}


/* =========================================================
   CATALOG CTA
   ========================================================= */

.catalog-cta {
  position: absolute;
  z-index: 3;

  left: 3px;
  bottom: 0;

  display: grid;

  width: 216px;
  min-height: 64px;

  place-items: center;

  margin: 0;

  border: 2px solid var(--accent);

  color: #111;
  background: var(--page-bg);

  font-size: 17px;

  transition:
    color 180ms ease,
    background 180ms ease;
}


.catalog-cta:hover,
.catalog-cta:focus-visible {
  color: #fff;
  background: var(--accent);

  outline: none;
}

/* =========================================================
   BEAUTY VIDEO — DESKTOP
   ========================================================= */

.men-beauty {
  display: grid;

  grid-template-columns:
    minmax(240px, 32%)
    minmax(0, 1fr);

  align-items: start;

  gap: clamp(48px, 6vw, 100px);

  width: 100%;

  padding:
    var(--section-space)
    var(--page-right-gap)
    0
    var(--page-left-gap);

  background: var(--page-bg);
}


.men-beauty h2 {
  margin: 0;

  font-family:
    "MAK",
    "Mak",
    Georgia,
    serif;

  font-size: clamp(38px, 4vw, 68px);
  font-weight: 400;
  line-height: 0.95;

  letter-spacing: -1.4px;
}


.men-beauty__video-wrap {
  position: relative;

  width: 100%;
  min-width: 0;

  overflow: hidden;

  background: var(--page-bg);
}


.men-beauty__video {
  display: block;

  width: 100%;
  height: auto;

  max-width: none;

  object-fit: contain;
  object-position: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1280px) {
  :root {
    --sidebar-width: 280px;
    --page-left-gap: 20px;
    --page-right-gap: 28px;
  }


  .brand__name {
    font-size: 34px;
  }

  .men-categories {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .men-beauty__video-wrap {
    width: 68%;
  }

}

@media (max-width: 1024px) {
  :root {
    --page-left-gap: var(--tablet-gap);
    --page-right-gap: var(--tablet-gap);
  }

 

  .page-shell {
    margin-left: 0;
    padding-top: var(--mobile-header-height);
  }

  .men-hero {
    padding-top: 20px;
  }

  .men-hero h1 {
    font-size: clamp(28px, 4vw, 38px);
  }

  .men-categories {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: 40px;

  }

  .category-preview__collage {
    min-height: 330px;
  }

  .catalog-cta {
    min-height: 52px;
    margin-top: 0px;
  }

  .men-beauty__video-wrap {
    width: 76%;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  :root {
    --section-space: 20px;
  }

  
  .men-hero {
    padding: 12px var(--mobile-gap) 0;
  }

  .men-hero__media {
    aspect-ratio: 1 / 1.02;
  }

  .men-hero__media img {
    object-position: 38% 50%;
  }

  .men-hero h1 {
    margin-top: 18px;
    font-size: clamp(27px, 7.8vw, 34px);
    line-height: 1.08;
    letter-spacing: -1.1px;
  }

  .desktop-break {
    display: none;
  }

  .men-categories {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: var(--section-space) var(--mobile-gap) 0;
  }

  .men-categories__chooser h2 {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .category-tab {
    min-height: 48px;
    border-bottom: 1px solid #d8d8d1;
    font-size: 15px;
  }

  .category-tab.is-active::after {
    display: none;
  }

  .category-preview__collage {
  display: block;

  width: 100%;
  min-height: 0;

  aspect-ratio: auto;

  overflow: visible;
}


/* На мобильном прячем только изображение */
.category-preview__image {
  display: none;
}


/* И декоративный вырез тоже не нужен */
.category-preview__cutout {
  display: none;
}


/* Кнопка остаётся видимой */
.catalog-cta {
  position: static;

  display: grid;

  width: 100%;
  min-height: 52px;

  place-items: center;

  margin-top: 16px;
}

  /* На мобильном полностью отменяем desktop-grid блока видео */
  .men-beauty {
    display: block;

    width: 100%;

    padding:
      var(--section-space)
      var(--mobile-gap)
      0;

    background: var(--page-bg);
  }

  /* Возвращаем мобильную типографику, desktop MAK сюда не наследуем */
  .men-beauty h2 {
    margin: 0 0 24px;

    font-family: "Nata Sans", sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -1.1px;
  }

  /* Видео на мобильном занимает всю доступную ширину и не обрезается */
  .men-beauty__video-wrap {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0;

    aspect-ratio: auto;
    overflow: hidden;

    background: var(--page-bg);
  }

  .men-beauty__video {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
    object-position: center;
  }

  .video-toggle {
    right: 10px;
    bottom: 10px;
    opacity: 1;
  }
}

@media (max-width: 480px) {

  .men-hero h1 {
    font-size: 27px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .category-tab {
    min-height: 44px;
  }

  .category-preview__collage {
    aspect-ratio: auto;
    min-height: 0;
  }

  .men-beauty h2,
  .men-categories__chooser h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .men-beauty__video {
    display: none;
  }

  .men-beauty__video-wrap {
    background:
      center / cover no-repeat
      url("./assets/for-him/beauty-poster.png");
  }

  .video-toggle {
    display: none;
  }
}