/* ==========================================================================
   ВОТЭЛС RESTO-BAR — 100% EXACT 1:1 WITH FIGMA (Frame 43: 394 × 3033px)
   
   ORIGINAL FONTS:
   - 'Loos Extended' (Regular 400, Medium 500)
   - 'Cygre Book' (350 / Regular)
   - 'Bebas Neue' (Bold 700)
   ========================================================================== */

@font-face {
  font-family: 'Loos Extended';
  src: url('fonts/loos-extended-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Loos Extended';
  src: url('fonts/loos-extended-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre Book';
  src: url('fonts/cygre-book.ttf') format('truetype');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre Book';
  src: url('fonts/cygre-book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre Book';
  src: url('fonts/Cygre-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre Medium';
  src: url('fonts/Cygre-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre SemiBold';
  src: url('fonts/Cygre-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/ofont.ru_Bebas Neue.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading:   'Bebas Neue', sans-serif;
  --font-extended:  'Loos Extended', sans-serif;
  --font-body:      'Cygre Book', sans-serif;

  --color-white:    #ffffff;
  --color-black:    #000000;
  --color-dark:     #232323;        /* Figma rgba(35,35,35) */
  --color-divider:  #303030;        /* Figma rgba(48,48,48) */

  --frame-width:    394px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

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

/* ==========================================================================
   APP VIEWPORT CONTAINER & MOBILE FRAME (Clean mobile layout on all devices)
   ========================================================================== */
.preview-toolbar {
  display: none !important;
}

.app-viewport-container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
}

.mobile-frame {
  width: 100%;
  max-width: var(--frame-width);
  background: var(--color-white);
  padding-top: calc(47px + env(safe-area-inset-top, 0px)); /* Space for fixed header */
  box-sizing: border-box;
  overflow: visible; /* Allows smooth fixed/sticky scroll */
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 601px) {
  html, body {
    background: #232323;
  }
  .app-viewport-container {
    background: #232323;
  }
  .mobile-frame {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================================
   HEADER — White top bar (394 × 47px) with Fixed Position and Scroll Hide/Show
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(47px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0 20px;
  background: var(--color-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.site-header.header--hidden {
  transform: translateY(-100%) !important;
}

@media (min-width: 601px) {
  .site-header {
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--frame-width);
  }
  .site-header.header--hidden {
    transform: translateX(-50%) translateY(-100%) !important;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header-logo-img {
  width: 110px;
  height: 22px;
  object-fit: contain;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;                         /* отступ между палками по 4пх */
  width: 18px;
  height: 47px;
  justify-content: center;
  align-items: flex-end;
  padding: 18px 0;                  /* отступы сверху и снизу по 18пх */
  box-sizing: border-box;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-line {
  display: block;
  width: 18px;
  height: 1px;                      /* W=18, H=1 */
  background: #0D0E0E;
  border-radius: 2px;               /* Corner radius = 2 */
}

/* ==========================================================================
   1. HERO SECTION — Rectangle 72 (Стабильная высота 100svh без прыжков)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100svh - 47px - env(safe-area-inset-top, 0px) - 8px);
  min-height: 520px;
  max-height: 820px;
  border-radius: 32px;
  -webkit-border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px 32px 20px;
  box-sizing: border-box;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Brand Badge — Rectangle 73 (340 × 146px, r=28, fill #FFFFFF) */
.hero-brand-badge {
  position: relative;
  width: 340px;
  max-width: calc(100% - 20px);
  height: 146px;
  background: var(--color-white);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 24px 35px 24px;      /* 20px сверху, 35px снизу */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
}

.brand-badge-logo-img {
  width: 177px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 10px;              /* 10px до текста */
}

.brand-badge-slogan {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-dark);
  letter-spacing: 0;
  text-align: center;
  width: 219px;
  max-width: 100%;
}

/* CTA Buttons — Group 9 (240 × 40px each, r=20, fill #FFFFFF) */
.hero-cta-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;                        /* отступы между кнопками 10пх */
  width: 240px;
  z-index: 2;
  margin-bottom: 40px;              /* поднято на 30px вверх (было 10px) */
}

.hero-pill-btn {
  width: 240px;
  height: 40px;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: 20px;
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.20s ease, transform 0.15s ease;
}

.hero-pill-btn:hover {
  opacity: 0.9;
}

.hero-pill-btn:active,
.hero-pill-btn.is-active {
  transform: scale(0.97);
}

/* ==========================================================================
   SECTION HEADINGS & BLOCK SUBTITLES
   ========================================================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-black);
  text-align: center;
  margin: 0 0 15px 0;               /* ровно 15px до карусели */
}

.section-title--dark {
  color: var(--color-white);
}

.block-subtitle {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0;
}

.body-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 350;
  line-height: 16px;
  color: var(--color-dark);
  letter-spacing: 0;
  text-align: justify;
}

/* ==========================================================================
   CAROUSELS (Точные отступы 10px, сочные яркие фото opacity=1)
   ========================================================================== */
.carousel-container {
  overflow: hidden;
  width: 100%;
  height: 250px;                    /* Фиксированная высота: исключает скачки верстки */
  position: relative;
  margin: 0 0 15px 0;               /* отступ снизу от карточек до текста ровно 15px */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  display: flex;
  align-items: center;
}

.carousel-container:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  align-items: center;
  height: 250px;                    /* Полная высота трека для идеального вертикального центрирования */
  gap: 10px;                        /* строго 10px между карточками */
  width: max-content;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track.no-transition, .carousel-card.no-transition {
  transition: none !important;
}

/* Обычная карточка: 180 × 210px, r=20, 100% яркая без затемнения */
.carousel-card {
  flex: 0 0 180px;
  width: 180px;
  height: 210px;
  align-self: center;
  border-radius: 20px;
  overflow: hidden;
  background: #d9d9d9;
  border: none;
  outline: none;
  cursor: pointer;
  opacity: 1 !important;            /* 100% яркость фото, без блеклости */
  filter: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height, flex-basis;
  transition:
    flex-basis 0.45s cubic-bezier(0.25, 1, 0.35, 1),
    width      0.45s cubic-bezier(0.25, 1, 0.35, 1),
    height     0.45s cubic-bezier(0.25, 1, 0.35, 1);
}

/* Активная центральная карточка: 220 × 250px, r=20 */
.carousel-card.is-active {
  flex: 0 0 220px;
  width: 220px;
  height: 250px;
  opacity: 1 !important;
}

.carousel-card--negroni,
.carousel-card:has(img[src*="promo_negroni"]) {
  border: 1.5px solid #212B33 !important;
  box-sizing: border-box;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Плавный переход текста и высоты блока */
.text-fade {
  overflow: hidden;
  will-change: height;
  transition: height 0.45s cubic-bezier(0.25, 1, 0.35, 1);
}

.text-fade-inner {
  display: block;
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
  transition:
    opacity 0.32s cubic-bezier(0.25, 1, 0.35, 1),
    transform 0.32s cubic-bezier(0.25, 1, 0.35, 1);
}

.text-fade-inner.fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease-in,
    transform 0.16s ease-in;
}

/* ==========================================================================
   2. О НАС SECTION (100% идентично блоку АКЦИИ)
   ========================================================================== */
.about-section {
  padding: 40px 0 40px 0;
}

.about-section .section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-black);
  text-align: center;
  margin: 0 0 15px 0;
}

.about-section .carousel-container {
  height: 250px;
  overflow: hidden;
  margin-bottom: 15px;
}

.about-content {
  padding: 0 20px;
}

.about-content .block-subtitle {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
}

.about-content .body-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 350;
  line-height: 16px;
  color: var(--color-dark);
  letter-spacing: 0;
  text-align: justify;
  margin: 0;
}

.about-content .body-text + .body-text {
  margin-top: 12px;
}

/* ==========================================================================
   3. КИНОВЕЧЕРА SECTION — bg #232323
   ========================================================================== */
.cinema-section {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 20px 20px 30px 20px;     /* 30px от нижней полосы до конца черной плашки */
}

.cinema-section .section-title--dark {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-white);
  margin: 0 0 15px 0;
}

.cinema-intro {
  width: 313px;                     /* Точные размеры W=313, H=80 */
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 350;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.6);  /* 60% opacity */
  letter-spacing: 0;
  text-align: left;
  margin: 0 0 20px 0;
}

.schedule-list {
  display: flex;
  flex-direction: column;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0 13px 0;
  border-bottom: 1px solid var(--color-divider); /* Полоса W=354, H=1, #303030 */
  gap: 40px;                       /* отступ между датой и названием/жанром 40px */
  cursor: default;
}

.schedule-date {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 350;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
  padding-top: 7px;                /* 12px + 7px = 19px от верхней линии */
  padding-bottom: 10px;             /* 13px + 10px = 23px до нижней линии */
  white-space: nowrap;
}

.schedule-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.schedule-title {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-white);
  letter-spacing: 0;
  margin: 0;                       /* 0px отступ до жанра */
}

.schedule-meta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 350;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
  margin: 0;                       /* 0px отступ */
}

/* ==========================================================================
   4. АКЦИИ SECTION
   ========================================================================== */
.promos-section {
  padding: 40px 0 30px 0;
}

.promos-section .section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-black);
  text-align: center;
  margin: 0 0 15px 0;
}

.promos-section .carousel-container {
  height: 250px;
  overflow: hidden;
  margin-bottom: 15px;
}

.promo-content {
  padding: 0 20px;
}

.promo-content .block-subtitle {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
}

.promo-content .body-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 350;
  line-height: 16px;
  color: var(--color-dark);
  letter-spacing: 0;
  text-align: justify;
  margin: 0;
}

/* ==========================================================================
   5. МЫ ТУТ SECTION — Padding top 0 (отступ до текста промо = ровно 40px)
   ========================================================================== */
.location-section {
  padding: 0 20px 40px 20px;
}

.location-section .section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-black);
  text-align: center;
  margin: 0 0 15px 0;
}

.location-section {
  padding: 0 20px 40px 20px;
}

.map-card {
  width: 354px;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 10px auto;
  cursor: pointer;
  box-shadow: none;
  background: transparent;
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.location-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-taxi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 40px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 20px;
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-taxi:hover,
.btn-taxi:active {
  background: #111111;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. КОНТАКТЫ FOOTER — bg #232323, height 304px
   ========================================================================== */
.contacts-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 20px 20px 20px 20px;
  scroll-margin-top: 57px; /* 47px header + 10px gap */
}

.contacts-footer .section-title--dark {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-white);
  margin: 0 0 15px 0;
}

.contact-row {
  padding-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider);
}

.contact-phone-link {
  display: block;
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--color-white);
  text-align: left;
  transition: opacity 0.2s;
}

.contact-phone-link:hover {
  opacity: 0.7;
}

.contacts-nav-list {
  display: flex;
  flex-direction: column;
}

.contacts-nav-link {
  display: block;
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--color-white);
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  transition: opacity 0.2s;
}

.contacts-nav-link:hover {
  opacity: 0.7;
}

.collab-block {
  padding-top: 12px;
  padding-bottom: 0;
  text-align: left;
}

.collab-text {
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--color-white);
  margin-bottom: 2px;
}

.collab-link {
  display: block;
  font-family: var(--font-extended);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.collab-link:hover {
  opacity: 0.7;
}



/* ==========================================================================
   DRAWER / BURGER MENU — EXACT FIGMA Frame 47 (Unified Smooth Slide-Out)
   ========================================================================== */
.drawer-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.75s ease;
}

.drawer-nav.active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s ease;
}

/* ==========================================================================
   CLOSING CASCADING WAVE (Плавный каскадный уезд 10 -> 1 снизу вверх)
   ========================================================================== */
.drawer-nav.closing,
.drawer-nav.active.closing {
  pointer-events: none;
}

.drawer-nav.closing .drawer-menu-item,
.drawer-nav.active.closing .drawer-menu-item {
  opacity: 0 !important;
  transform: translate3d(35px, 0, 0) !important;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.drawer-nav.closing .drawer-item-divider,
.drawer-nav.active.closing .drawer-item-divider {
  transform: scaleX(0) !important;
  opacity: 0 !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.30s ease !important;
}

.drawer-nav.closing .drawer-header-divider,
.drawer-nav.active.closing .drawer-header-divider {
  transform: scaleX(0) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.48s !important;
}

/* Staggered exit wave delays (10 -> 1) */
.drawer-nav.closing .drawer-menu-item:nth-of-type(10),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(10)   { transition-delay: 0.00s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(10),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(10)  { transition-delay: 0.02s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(9),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(9)    { transition-delay: 0.05s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(9),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(9)   { transition-delay: 0.07s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(8),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(8)    { transition-delay: 0.10s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(8),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(8)   { transition-delay: 0.12s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(7),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(7)    { transition-delay: 0.15s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(7),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(7)   { transition-delay: 0.17s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(6),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(6)    { transition-delay: 0.20s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(6),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(6)   { transition-delay: 0.22s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(5),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(5)    { transition-delay: 0.25s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(5),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(5)   { transition-delay: 0.27s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(4),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(4)    { transition-delay: 0.30s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(4),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(4)   { transition-delay: 0.32s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(3),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(3)    { transition-delay: 0.35s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(3),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(3)   { transition-delay: 0.37s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(2),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(2)    { transition-delay: 0.40s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(2),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(2)   { transition-delay: 0.42s !important; }

.drawer-nav.closing .drawer-menu-item:nth-of-type(1),
.drawer-nav.active.closing .drawer-menu-item:nth-of-type(1)    { transition-delay: 0.45s !important; }
.drawer-nav.closing .drawer-item-divider:nth-of-type(1),
.drawer-nav.active.closing .drawer-item-divider:nth-of-type(1)   { transition-delay: 0.47s !important; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.60s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-nav.active .drawer-backdrop {
  opacity: 1;
  transition: opacity 0.84s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: auto;                     /* НЕ на весь экран: только до конца меню */
  background: #232323;              /* Frame 47 background #232323 */
  z-index: 2001;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border-radius: 0;                 /* Края 0 градусов, без скруглений */
  transform: translate3d(100%, 0, 0);
  transition: transform 0.60s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-sizing: border-box;
  overflow: hidden;
}

.drawer-nav.active .drawer-panel {
  transform: translate3d(0, 0, 0);
  transition: transform 0.84s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 601px) {
  .drawer-panel {
    right: auto;
    left: 50%;
    transform: translate3d(calc(-50% + 100vw), 0, 0);
    max-width: var(--frame-width);
    border-radius: 0;
  }
  .drawer-nav.active .drawer-panel {
    transform: translate3d(-50%, 0, 0);
  }
}

.drawer-header {
  height: 47px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: #232323;
}

.drawer-logo-img {
  width: 110px;
  height: 22px;
  object-fit: contain;
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.drawer-close-btn:hover {
  opacity: 0.75;
  transform: rotate(90deg);
}

.drawer-header-divider {
  width: 100%;
  height: 1px;
  background: #FFFFFF;              /* W=394, H=1, #FFFFFF */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
  will-change: transform;
}

.drawer-nav.active .drawer-header-divider {
  transform: scaleX(1);
  transition: transform 0.80s cubic-bezier(0.16, 1, 0.3, 1) 0.10s;
}

.drawer-menu-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px 0;            /* Отступ снизу ровно 10px до границы плашки */
}

.drawer-menu-item {
  display: flex;
  justify-content: flex-end;        /* Текст выровнен по правому краю */
  align-items: center;
  width: 100%;
  height: 31px;                     /* Ровно 31px между строками в Figma */
  padding: 0 20px;
  font-family: var(--font-extended);
  font-size: 16px;                  /* Loos Extended 16px / 20.16px */
  font-weight: 400;
  line-height: 20px;
  color: var(--color-white);
  text-align: right;
  text-decoration: none;
  box-sizing: border-box;
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: opacity 0.3s ease, color 0.15s;
  will-change: opacity, transform;
}

.drawer-nav.active .drawer-menu-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.70s ease, transform 0.70s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
}

.drawer-menu-item:hover,
.drawer-menu-item:active {
  opacity: 0.7;
}

.drawer-item-divider {
  width: calc(100% - 40px);
  margin: 0 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6); /* Rectangle 88..101, opacity 0.6 */
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.drawer-nav.active .drawer-item-divider {
  transform: scaleX(1);
  opacity: 1;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.60s ease;
}

/* ==========================================================================
   OPEN DELAYS (Каскадный выезд 1 -> 10 с шагом 60ms)
   ========================================================================== */
.drawer-nav.active .drawer-menu-item:nth-of-type(1)   { transition-delay: 0.10s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(1)  { transition-delay: 0.12s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(2)   { transition-delay: 0.16s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(2)  { transition-delay: 0.18s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(3)   { transition-delay: 0.22s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(3)  { transition-delay: 0.24s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(4)   { transition-delay: 0.28s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(4)  { transition-delay: 0.30s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(5)   { transition-delay: 0.34s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(5)  { transition-delay: 0.36s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(6)   { transition-delay: 0.40s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(6)  { transition-delay: 0.42s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(7)   { transition-delay: 0.46s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(7)  { transition-delay: 0.48s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(8)   { transition-delay: 0.52s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(8)  { transition-delay: 0.54s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(9)   { transition-delay: 0.58s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(9)  { transition-delay: 0.60s; }

.drawer-nav.active .drawer-menu-item:nth-of-type(10)  { transition-delay: 0.64s; }
.drawer-nav.active .drawer-item-divider:nth-of-type(10) { transition-delay: 0.66s; }

/* ==========================================================================
   EXPANDABLE GROUP (Бар)
   ========================================================================== */
.drawer-group-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 31px;                     /* Ровно 31px в Figma */
  padding: 0 20px;
  font-family: var(--font-extended);
  font-size: 16px;                  /* Loos Extended 16px */
  font-weight: 400;
  line-height: 20px;
  color: var(--color-white);
  text-align: right;
  text-decoration: none;
  box-sizing: border-box;
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: opacity 0.3s ease, color 0.15s;
  will-change: opacity, transform;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  outline: none;
}

.drawer-nav.active .drawer-group-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.70s ease, transform 0.70s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
}

.drawer-group-header:hover,
.drawer-group-header:active {
  opacity: 0.7;
}

.drawer-nav.closing .drawer-group-header,
.drawer-nav.active.closing .drawer-group-header {
  opacity: 0 !important;
  transform: translate3d(35px, 0, 0) !important;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Контейнер 25 подпунктов напитков */
.drawer-sublist {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.40s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height;
}

.drawer-sublist.is-open {
  max-height: 600px;                /* 25 пунктов по 23px = 575px */
}

/* Подпункт (Коктейли, Шоты, ...) */
.drawer-sub-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 23px;                     /* Ровно 23px по координатам Figma */
  padding: 0 20px;
  font-family: var(--font-extended);
  font-size: 12px;                  /* Loos Extended 12px */
  font-weight: 400;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.7);  /* Цвет по Figma */
  text-align: right;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.drawer-sub-item:hover,
.drawer-sub-item:active {
  color: #FFFFFF;
}


/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 2000;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}
