/* ==========================================================
   REZN® — the burger and its fullscreen menu, on every page (built by menu.js).
   ========================================================== */
.burger {
  display: none;
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, .14);
  padding: 0; background: none; color: inherit; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- fullscreen menu: the site's own look. The same wordmark and buttons in the same places as the
   main screen, big links set like the gallery headline, a card with the case cover ---------- */
.menu {
  --mpad: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fg-2: #141414; --display: "Anton", "Impact", sans-serif; --muted: #8b8b8b; --line: rgba(17, 17, 17, .14);
  position: fixed; inset: 0; z-index: 60; overflow: hidden auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vh, 32px);
  padding: var(--mpad);
  color: #111;
  background: radial-gradient(70% 60% at 50% 45%, #fff, #f6f6f5 70%), #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__brand { justify-self: start; }
.menu .menu__talk { position: absolute; top: 18px; }
.menu .burger--close { display: flex; position: absolute; right: auto; top: 18px; z-index: 2; background: none; color: #111; transition: background .3s, color .3s; }
@media (hover: hover) { .menu .burger--close:hover { background: #111; color: #fff; } }

.menu__body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 520px); gap: clamp(24px, 4vw, 72px); align-items: end; min-height: 0; }

/* big links, set like the gallery headline */
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu__nav a {
  display: flex; align-items: flex-start; gap: .22em; overflow: hidden;
  font-size: min(8.4vw, 13.5svh); font-weight: 500; letter-spacing: -.06em; line-height: 1.02; text-transform: uppercase;
  transition: color .35s;
}
.menu__nav small { padding-top: 1.1em; width: 2.6em; font-size: clamp(11px, .85vw, 14px); font-weight: 500; letter-spacing: .02em; color: #6f6f71; }
.menu__nav span { display: block; transform: translateY(105%); transition: transform .35s var(--ease); }
.menu.is-open .menu__nav span { transform: none; transition: transform 1s var(--ease) var(--d, .3s); }
.menu__nav:hover a:not(:hover) { color: #bdbdbd; }

/* the card with the case cover + the list of cases, set like the home page cards */
.menu__preview {
  position: relative; aspect-ratio: 16 / 10; max-height: 32svh; width: 100%; overflow: hidden;
  margin-bottom: clamp(10px, 1.6vh, 18px); border-radius: clamp(12px, 1.2vw, 24px); background: #1b1b1c;
  opacity: 0; translate: 0 16px; transition: opacity .3s, translate .3s;
}
.menu.is-open .menu__preview { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease) .35s, translate 1s var(--ease) .35s; }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.04; transition: opacity .5s var(--ease), scale .9s var(--ease); }
.menu__preview img.is-on { opacity: 1; scale: 1; }
.menu__cases { display: flex; flex-direction: column; }
.menu__cases a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(6px, 1.1vh, 11px) 0; border-top: 1px solid var(--line);
  opacity: 0; translate: 0 12px; transition: opacity .3s, translate .3s, padding .4s var(--ease);
}
.menu.is-open .menu__cases a { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease) var(--d, .4s), translate .9s var(--ease) var(--d, .4s), padding .4s var(--ease); }
.menu__cases b { font-size: clamp(14px, 1.15vw, 19px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.menu__cases small { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; color: #6f6f71; }
.menu__cases a:hover, .menu__cases a:focus-visible { padding-left: 10px; }

/* the bottom line */
.menu__foot {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px clamp(16px, 3vw, 48px);
  font-size: 13px; color: #6f6f71;
  opacity: 0; transition: opacity .3s;
}
.menu.is-open .menu__foot { opacity: 1; transition: opacity .8s var(--ease) .6s; }
.menu__social { display: flex; gap: 4px; }
.menu__mail { justify-self: start; font-size: 14px; font-weight: 600; color: #111; }
.menu__legal { display: flex; gap: 16px; }
.menu__legal a, .menu__mail { transition: color .3s; }
.menu__legal a:hover { color: #111; }
.menu__mail:hover { color: #6f6f71; }
.menu__time { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.menu__time b { font-size: 14px; font-weight: 600; color: #111; }
.menu__time small { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1100px) { .menu__legal { display: none; } .menu__foot { grid-template-columns: auto 1fr auto; } }
@media (max-height: 640px) { .menu__preview { display: none; } }
/* phones: one column; the photo card gives way so every link stays on the screen */
@media (max-width: 820px) {
  .menu { padding: 34px 16px 18px; gap: 18px; grid-template-rows: auto minmax(min-content, 1fr) auto; }   /* short phones scroll, nothing overlaps */
  .menu .menu__talk, .menu__preview { display: none; }
  .menu__body { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
  .menu__nav a { font-size: min(15vw, 9svh); }
  .menu__nav small { padding-top: .9em; width: 2.4em; }
  .menu__cases a { padding: 8px 0; }
  .menu__cases b { font-size: 14px; }
  .menu__foot { grid-template-columns: 1fr auto; }
  .menu__social { grid-column: 1 / -1; flex-wrap: wrap; }
  .menu__mail { grid-column: 1; grid-row: 2; }
  .menu__time { grid-column: 2; grid-row: 2; align-self: end; flex-direction: row; align-items: baseline; gap: 6px; }
  .menu__social .pill { height: 44px; padding: 0 18px; font-size: 12px; }
}

/* the logo in the menu: the same lockup as the home page's, on pages that don't load hero.css */
.menu a { color: inherit; text-decoration: none; }
.menu .menu__brand { --wm: clamp(140px, 14.5vw, 270px); display: inline-grid; grid-template-columns: auto auto; line-height: .8; }
.menu .brand__word { display: block; margin: calc(var(--wm) * .036) 0 0 calc(var(--wm) * -.0385); font-family: var(--display); font-size: var(--wm); letter-spacing: -.01em; color: var(--fg-2); text-transform: uppercase; }
.menu .brand__reg { align-self: start; margin: -.118em 0 0 .2em; font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(18px, 2.4vw, 40px); font-weight: 500; line-height: 1; color: var(--fg-2); }
@media (max-width: 820px) {
  .menu .menu__brand { --wm: min(28vw, 190px); grid-template-columns: max-content 1fr; }
  .menu .brand__reg { font-size: clamp(14px, 3.4vw, 26px); }
}
@media (max-width: 820px) and (max-height: 720px) {
  .menu .menu__brand { --wm: min(25vw, 190px); }
}
