@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/mak.woff2") format("woff2"),
    url("/fonts/mak.woff2/mak.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   GLOBAL
   ========================================================= */

:root {
  --mobile-header-height: 76px;
}


body.menu-open {
  overflow: hidden;
}


.sidebar,
.mobile-header {
  font-family: "Nata Sans", Arial, sans-serif;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  position: fixed;
  z-index: 30;

  inset:
    0
    auto
    0
    0;

  width: var(--sidebar-width, 323px);
  height: 100dvh;

  color: var(--white, #fff);
  background: var(--sidebar-bg, #5f6b80);
}


.sidebar__inner {
  display: flex;
  flex-direction: column;

  height: 100%;
  min-height: 0;

  padding:
    clamp(58px, 4.3vw, 76px)
    48px
    49px
    51px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {
  display: inline-flex;

  width: max-content;

  flex: 0 0 auto;
  flex-direction: column;
}


.brand__name {
  font-family:
    "MAK",
    Georgia,
    "Times New Roman",
    serif;

  font-size: 40px;
  font-weight: 400;
  line-height: .95;

  letter-spacing: 1.6px;
}


.brand__caption {
  margin-top: 14px;

  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;

  letter-spacing: .2px;

  opacity: .96;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  display: flex;

  flex: 1 1 auto;
  flex-direction: column;

  min-height: 0;

  margin-top: 58px;
}


.nav a {
  display: block;

  width: max-content;
  max-width: 100%;

  color: inherit;

  font-size: 21px;
  font-weight: 300;
  line-height: 1.25;

  opacity: .95;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}


.nav a:hover,
.nav a:focus-visible {
  opacity: .68;

  transform: translateX(3px);

  outline: none;
}


/* =========================================================
   MAIN NAV
   Каталог / Для нее / Для него
   ========================================================= */

.nav__main {
  display: grid;

  gap: 20px;
}


.nav__main-link {
  margin: 0;
}


.nav__main-link--catalog {
  font-size: 28px !important;
}


/* =========================================================
   CURRENT PAGE
   ========================================================= */

.nav [data-nav-link].is-current {
  color: #fff;

  opacity: .82;
}


.nav__info [data-nav-link].is-current {
  opacity: 1;
}


/* =========================================================
   LOWER NAV
   Доставка / Статьи / О нас

   margin-top:auto прижимает блок вниз.
   ========================================================= */

.nav__info {
  margin-top: auto;

  padding-bottom: 34px;
}


.nav__info a + a {
  margin-top: 18px;
}


/* =========================================================
   CART
   ========================================================= */

.cart-button {
  display: grid;

  flex: 0 0 auto;

  width: 175px;
  min-height: 64px;

  place-items: center;

  margin: 0;

  border:
    1px
    solid
    rgb(255 255 255 / 45%);

  border-radius: 999px;

  color: #111;
  background: #fff;

  font-family: "Nata Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;

  text-decoration: none;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


.cart-button:hover,
.cart-button:focus-visible {
  transform: translateY(-2px);

  box-shadow:
    0
    10px
    24px
    rgb(0 0 0 / 10%);

  outline: none;
}


/* =========================================================
   PAGE
   ========================================================= */

.page-shell {
  min-height: 100vh;

  margin-left:
    var(--sidebar-width, 323px);
}


/* =========================================================
   MOBILE ELEMENTS — DEFAULT
   ========================================================= */

.mobile-header,
.menu-backdrop {
  display: none;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1729px) {

  .sidebar__inner {
    padding-left:
      clamp(
        51px,
        3vw,
        58px
      );
  }

}


/* =========================================================
   <= 1280px
   ========================================================= */

@media (max-width: 1280px) {

  .sidebar__inner {
    padding-left: 38px;
    padding-right: 36px;
  }


  .brand__name {
    font-size: 34px;
  }


  .brand__caption {
    font-size: 18px;
  }


  .nav a {
    font-size: 18px;
  }


  .nav__main-link--catalog {
    font-size: 25px !important;
  }

}

/* =========================================================
   SHORT DESKTOP — HEIGHT <= 700px
   ========================================================= */

@media (max-height: 700px) and (min-width: 1025px) {

  .nav {
    gap: 16px;

    margin-top: 36px;
  }


  .nav__main {
    gap: 16px;
  }


  .nav__info {
    display: grid;

    gap: 16px;

    margin-top: 0;

    padding-bottom: 0;
  }


  .nav__info a + a {
    margin-top: 0;
  }

}

/* =========================================================
   <= 1024px
   TABLET / MOBILE MENU
   ========================================================= */

@media (max-width: 1024px) {

  /* ---------------------------------------------------------
     MOBILE HEADER
     --------------------------------------------------------- */

  .mobile-header {
    position: fixed;
    z-index: 50;

    top: 0;
    left: 0;

    display: flex;

    width: 100%;
    height: var(--mobile-header-height);

    align-items: center;
    justify-content: space-between;

    padding:
      0
      24px;

    color: #fff;
    background:
      var(--sidebar-bg, #5f6b80);
  }


  .mobile-brand {
    color: inherit;

    font-family:
      "MAK",
      Georgia,
      "Times New Roman",
      serif;

    font-size: 30px;
    line-height: 1;

    letter-spacing: 1.1px;

    text-decoration: none;
  }


  /* ---------------------------------------------------------
     HAMBURGER
     --------------------------------------------------------- */

  .menu-toggle {
    position: relative;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    color: #fff;
    background: transparent;

    cursor: pointer;
  }


  .menu-toggle span {
    position: absolute;

    left: 8px;

    width: 28px;
    height: 1px;

    background: currentColor;

    transition:
      transform 220ms ease,
      top 220ms ease;
  }


  .menu-toggle span:first-child {
    top: 17px;
  }


  .menu-toggle span:last-child {
    top: 27px;
  }


  body.menu-open
  .menu-toggle span:first-child {
    top: 22px;

    transform: rotate(45deg);
  }


  body.menu-open
  .menu-toggle span:last-child {
    top: 22px;

    transform: rotate(-45deg);
  }


  /* ---------------------------------------------------------
     SIDEBAR
     --------------------------------------------------------- */

  .sidebar {
    z-index: 45;

    width:
      min(
        360px,
        88vw
      );

    padding-top:
      var(--mobile-header-height);

    transform:
      translateX(-102%);

    transition:
      transform
      280ms
      cubic-bezier(.2, .8, .2, 1);
  }


  body.menu-open
  .sidebar {
    transform:
      translateX(0);
  }


  .sidebar__inner {
    height:
      calc(
        100dvh -
        var(--mobile-header-height)
      );

    min-height: 0;

    padding:
      38px
      36px
      34px;

    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: thin;
  }


  .brand {
    display: none;
  }


  /* ---------------------------------------------------------
     NAV MOBILE
     --------------------------------------------------------- */

  .nav {
    display: flex;

    flex: 1 1 auto;
    flex-direction: column;

    width: 100%;
    min-height: 0;

    margin-top: 0;
  }


  .nav__main {
    gap: 20px;
  }


  .nav__info {
    margin-top: auto;

    padding-bottom: 28px;
  }


  .nav__info a + a {
    margin-top: 18px;
  }


  /* ---------------------------------------------------------
     CART MOBILE
     --------------------------------------------------------- */

  .cart-button {
    flex: 0 0 auto;

    margin:
      0
      0
      0
      0;
  }


  /* ---------------------------------------------------------
     BACKDROP
     --------------------------------------------------------- */

  .menu-backdrop {
    position: fixed;
    z-index: 40;

    inset: 0;

    display: block;

    padding: 0;

    border: 0;

    background:
      rgb(0 0 0 / 32%);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
      opacity 220ms ease,
      visibility 220ms ease;
  }


  body.menu-open
  .menu-backdrop {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
  }


  /* ---------------------------------------------------------
     PAGE
     --------------------------------------------------------- */

  .page-shell {
    margin-left: 0;

    padding-top:
      var(--mobile-header-height);
  }

}


/* =========================================================
   <= 640px
   ========================================================= */

@media (max-width: 640px) {

  :root {
    --mobile-header-height: 68px;
  }


  .mobile-header {
    padding:
      0
      14px
      0
      16px;
  }


  .mobile-brand {
    font-size: 27px;
  }


  .sidebar__inner {
    padding:
      34px
      28px
      28px;
  }


  .nav__main {
    gap: 18px;
  }


  .nav a {
    font-size: 18px;
  }


  .nav__main-link--catalog {
    font-size: 26px !important;
  }


  .nav__info {
    padding-bottom: 26px;
  }


  .nav__info a + a {
    margin-top: 18px;
  }


  .cart-button {
    width: 165px;
    min-height: 58px;

    font-size: 16px;
  }

}


/* =========================================================
   <= 360px
   ========================================================= */

@media (max-width: 360px) {

  .sidebar {
    width: 88vw;
  }


  .sidebar__inner {
    padding:
      30px
      22px
      26px;
  }


  .nav__main {
    gap: 16px;
  }


  .nav__main-link--catalog {
    font-size: 24px !important;
  }


  .nav__info {
    padding-bottom: 24px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .nav a,
  .cart-button,
  .sidebar,
  .menu-toggle span,
  .menu-backdrop {
    transition-duration: .01ms !important;
  }

}