/* ============================================================
   VIP-DXB-RUS Adaptive Pricelist — Design Tokens
   ============================================================ */
:root {
  --copper: #B88D73;
  --copper-light: #D4A98B;
  --copper-glow: rgba(184, 141, 115, 0.15);
  --dark-bg: #1a1a1a;
  --dark-elevated: #222;
  --cream-bg: #FEFBF6;
  --warm-divider: #E8E0D8;
  --text-dark: #1a1714;
  --text-gray: #999;
  --text-light-gray: #bbb;
  --font-heading: 'Tenor Sans', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Slide dimensions (original Google Slides A4 landscape) */
  --slide-w: 842px;
  --slide-h: 595px;

  /* Transition easing */
  --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Smart text line breaks — prevent ugly breaks */
.table-row__name {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

.table-row__schedule {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: #fff;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Viewer Container (wraps everything)
   ============================================================ */
.viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.cover__hint {
  position: relative;
  z-index: 1;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  max-width: 78%;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 141, 115, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.cover__hint span {
  white-space: nowrap;
}

.cover__hint span + span {
  color: rgba(184, 141, 115, 0.88);
}

.cover__hint-desktop {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .viewer {
    cursor: grab;
  }

  .viewer.viewer--dragging {
    cursor: grabbing;
  }

  .viewer.viewer--dragging * {
    user-select: none;
  }

  .viewer a,
  .viewer button,
  .toc-panel {
    cursor: auto;
  }

  .viewer a,
  .viewer button {
    cursor: pointer;
  }

  .cover__hint-touch {
    display: none;
  }

  .cover__hint-desktop {
    display: inline;
  }
}

@media (max-width: 768px) {
  .cover__hint-touch {
    display: inline;
  }

  .cover__hint-desktop {
    display: none;
  }
}

/* ============================================================
   Slide (each section)
   ============================================================ */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   DESKTOP (>1024px): Original slide viewer — dark bg, centered
   ============================================================ */
@media (min-width: 1025px) {
  body {
    /* Subtle gradient background, not flat black */
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 100%);
  }

  .slide-frame {
    width: var(--slide-w);
    height: var(--slide-h);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
  }

  .slide-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* --- Cover slide desktop --- */
  .cover-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    position: relative;
    overflow: hidden;
  }

  .cover-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184,141,115,0.08) 0%, transparent 50%, rgba(184,141,115,0.05) 100%);
    pointer-events: none;
  }

  .cover__logo {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--copper);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }

  .cover__divider {
    width: 60px;
    height: 1.5px;
    background: var(--copper);
    opacity: 0.4;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }

  .cover__title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .cover__subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 1;
  }

  .cover__year {
    font-family: var(--font-heading);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 8px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
  }

  /* --- Price table desktop --- */
  .table-slide {
    background: #fff;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .table-slide__header {
    text-align: center;
    padding: 24px 40px 0;
  }

  .table-slide__section-title {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .table-slide__toc-label {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .table-slide__divider {
    width: 40px;
    height: 1.5px;
    background: var(--copper);
    opacity: 0.3;
    margin: 0 auto 14px;
  }

  /* Column headers — desktop */
  .col-headers {
    display: flex;
    align-items: center;
    padding: 6px 40px;
    background: #F8F5F0;
    border-bottom: 1px solid rgba(184, 141, 115, 0.15);
  }

  .col-headers__name {
    flex: 1;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }

  .col-headers__price {
    width: 120px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
  }

  .col-headers__price small {
    display: block;
    font-size: 6px;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.5px;
  }

  .col-headers__divider {
    width: 1px;
    height: 24px;
    background: rgba(184, 141, 115, 0.15);
    flex-shrink: 0;
  }

  /* Rows — desktop */
  .table-rows {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px;
  }

  .table-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--warm-divider);
    transition: background 0.15s;
  }

  .table-row:last-child {
    border-bottom: none;
  }

  .table-row:hover {
    background: rgba(184, 141, 115, 0.03);
  }

  .table-row__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
    margin-right: 10px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2.5px; /* FIX 4: Aligned with 6.5px text first line */
  }

  .table-row__info {
    flex: 1;
    min-width: 0;
  }

  .table-row__name {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.35;
    letter-spacing: 0.3px;
  }

  .table-row__schedule {
    font-family: var(--font-body);
    font-size: 7px;
    color: var(--text-gray);
    margin-top: 1px;
  }

  .table-row__prices {
    display: flex;
    flex-shrink: 0;
    gap: 0;
  }

  .table-row__price-cell {
    width: 120px;
    text-align: center;
    line-height: 1.3;
  }

  .table-row__price-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(184, 141, 115, 0.1);
    flex-shrink: 0;
  }

  .price-main {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .price-child {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 1px;
  }

  /* Strikethrough for kassa */
  .price-cell--kassa .price-main {
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
  }

  .price-cell--kassa .price-child {
    color: var(--text-light-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.15);
  }

  /* Savings — copper hero */
  .price-cell--save .price-main {
    font-size: 11px;
    font-weight: 700;
    color: var(--copper);
  }

  .price-cell--save .price-child {
    color: var(--copper-light);
  }
}

/* ============================================================
   TABLET / iPad (769px - 1024px): Stacked layout, larger text
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    overflow-y: hidden;
    background: var(--dark-bg);
  }

  .slide-frame {
    width: 100%;
    height: 100%;
  }

  .slide-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Cover */
  .cover-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    position: relative;
  }

  .cover-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184,141,115,0.08) 0%, transparent 50%, rgba(184,141,115,0.05) 100%);
    pointer-events: none;
  }

  .cover__logo {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--copper);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }

  .cover__divider {
    width: 56px;
    height: 1.5px;
    background: var(--copper);
    opacity: 0.4;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }

  .cover__title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .cover__subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 1;
  }

  .cover__year {
    font-family: var(--font-heading);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 8px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
  }

  /* Price table — iPad stacked, FIX 2: fill more screen */
  .table-slide {
    background: var(--cream-bg);
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .table-slide__header {
    text-align: center;
    padding: 20px 20px 0;
  }

  .table-slide__section-title {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .table-slide__toc-label {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-dark);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .table-slide__divider {
    width: 40px;
    height: 1.5px;
    background: var(--copper);
    opacity: 0.3;
    margin: 0 auto 12px;
  }

  /* Column headers — iPad: FIX 2: larger, more prominent */
  .col-headers {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #F5F0EA;
    border-bottom: 1px solid rgba(184, 141, 115, 0.2);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .col-headers__name {
    display: none;
  }

  .col-headers__price {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
  }

  .col-headers__price small {
    display: block;
    font-size: 8px;
    font-weight: 400;
    color: var(--text-gray);
  }

  .col-headers__divider {
    width: 1px;
    height: 28px;
    background: rgba(184, 141, 115, 0.15);
    flex-shrink: 0;
  }

  /* Rows — iPad stacked: FIX 2: bigger text, more padding */
  .table-rows {
    flex: 1;
    padding: 0;
  }

  .table-row {
    display: flex;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--warm-divider);
    transition: background 0.15s;
  }

  .table-row:last-child {
    border-bottom: none;
  }

  .table-row:hover {
    background: rgba(184, 141, 115, 0.03);
  }

  .table-row__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--copper);
    margin-right: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 6px; /* FIX 4: Aligned with 15px text first line */
  }

  .table-row__info {
    width: calc(100% - 19px);
    margin-bottom: 10px;
  }

  .table-row__name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.35;
  }

  .table-row__schedule {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 3px;
  }

  .table-row__prices {
    display: flex;
    width: 100%;
    padding-left: 19px;
    justify-content: space-between;
  }

  .table-row__price-cell {
    flex: 1;
    text-align: center;
    line-height: 1.35;
  }

  .table-row__price-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(184, 141, 115, 0.12);
    flex-shrink: 0;
  }

  .price-main {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .price-child {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 1px;
  }

  .price-cell--kassa .price-main {
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
  }

  .price-cell--kassa .price-child {
    color: var(--text-light-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.15);
  }

  .price-cell--save .price-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--copper);
  }

  .price-cell--save .price-child {
    color: var(--copper-light);
  }
}

/* ============================================================
   MOBILE PORTRAIT (max-width: 768px): Stacked layout
   ============================================================ */
@media (max-width: 768px) and (orientation: portrait) {
  body {
    overflow-y: hidden;
    background: var(--dark-bg);
  }

  .slide-frame {
    width: 100%;
    height: 100%;
  }

  .slide-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* FIX 1: Space for bottom bar so it doesn't overlap content */
    padding-bottom: 56px;
  }

  /* Cover */
  .cover-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    padding: 40px 24px;
    position: relative;
  }

  .cover-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184,141,115,0.08) 0%, transparent 50%, rgba(184,141,115,0.05) 100%);
    pointer-events: none;
  }

  .cover__logo {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--copper);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }

  .cover__divider {
    width: 40px;
    height: 1px;
    background: var(--copper);
    opacity: 0.4;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }

  .cover__title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }

  .cover__subtitle {
    font-family: var(--font-body);
    font-size: 8px;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 1;
  }

  .cover__year {
    font-family: var(--font-heading);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 6px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
  }

  .cover__hint {
    max-width: 300px;
    margin-top: 18px;
    padding: 7px 10px;
    gap: 5px 8px;
    font-size: 7px;
    letter-spacing: 1.1px;
  }

  /* Price table — mobile stacked */
  .table-slide {
    background: var(--cream-bg);
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .table-slide__header {
    text-align: center;
    padding: 20px 16px 0;
  }

  .table-slide__section-title {
    font-family: var(--font-heading);
    font-size: 8px;
    color: var(--copper);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .table-slide__toc-label {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .table-slide__divider {
    width: 30px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 0 auto 10px;
  }

  /* Column headers — mobile portrait */
  .col-headers {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 32px;
    background: #F5F0EA;
    border-bottom: 1px solid rgba(184, 141, 115, 0.2);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .col-headers__name {
    display: none;
  }

  .col-headers__price {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }

  .col-headers__price small {
    display: block;
    font-size: 6px;
    font-weight: 400;
    color: var(--text-gray);
  }

  .col-headers__divider {
    display: none;
  }

  /* Rows — mobile stacked */
  .table-rows {
    flex: 1;
    padding: 0;
  }

  .table-row {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--warm-divider);
  }

  .table-row:last-child {
    border-bottom: none;
  }

  .table-row__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    margin-right: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 5px; /* FIX 4: Aligned with 12px text first line */
  }

  .table-row__info {
    width: calc(100% - 14px);
    margin-bottom: 8px;
  }

  .table-row__name {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.35;
  }

  .table-row__schedule {
    font-family: var(--font-body);
    font-size: 9px;
    color: var(--text-gray);
    margin-top: 2px;
  }

  .table-row__prices {
    display: flex;
    width: 100%;
    padding-left: 14px;
    justify-content: space-between;
  }

  .table-row__price-cell {
    flex: 1;
    text-align: center;
    line-height: 1.35;
  }

  .table-row__price-divider {
    display: none;
  }

  .price-main {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .price-child {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 1px;
  }

  .price-cell--kassa .price-main {
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
  }

  .price-cell--kassa .price-child {
    color: var(--text-light-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.15);
  }

  .price-cell--save .price-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--copper);
  }

  .price-cell--save .price-child {
    color: var(--copper-light);
  }
}

/* ============================================================
   MOBILE LANDSCAPE: Inline compact layout
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    overflow-y: hidden;
    background: var(--dark-bg);
  }

  .slide-frame {
    width: 100%;
    height: 100%;
  }

  .slide-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* FIX 1: Space for bottom bar */
    padding-bottom: 44px;
  }

  /* Cover */
  .cover-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    padding: 20px;
    position: relative;
  }

  .cover-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184,141,115,0.08) 0%, transparent 50%, rgba(184,141,115,0.05) 100%);
    pointer-events: none;
  }

  .cover__logo {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--copper);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .cover__divider {
    width: 36px;
    height: 1px;
    background: var(--copper);
    opacity: 0.4;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .cover__title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }

  .cover__subtitle {
    font-family: var(--font-body);
    font-size: 7px;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 1;
  }

  .cover__year {
    font-family: var(--font-heading);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 6px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
  }

  .cover__hint {
    max-width: 420px;
    margin-top: 12px;
    padding: 6px 10px;
    gap: 5px 8px;
    font-size: 7px;
    letter-spacing: 1px;
  }

  /* Price table — landscape inline */
  .table-slide {
    background: var(--cream-bg);
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .table-slide__header {
    text-align: center;
    padding: 10px 16px 0;
  }

  .table-slide__section-title {
    font-family: var(--font-heading);
    font-size: 7px;
    color: var(--copper);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1px;
  }

  .table-slide__toc-label {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .table-slide__divider {
    width: 24px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 0 auto 6px;
  }

  /* Column headers — landscape */
  .col-headers {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    background: #F5F0EA;
    border-bottom: 1px solid rgba(184, 141, 115, 0.2);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .col-headers__name {
    flex: 1;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .col-headers__price {
    width: 80px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }

  .col-headers__price small {
    display: block;
    font-size: 6px;
    font-weight: 400;
    color: var(--text-gray);
  }

  .col-headers__divider {
    display: none;
  }

  /* Rows — landscape inline */
  .table-rows {
    flex: 1;
    padding: 0;
  }

  .table-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--warm-divider);
  }

  .table-row:last-child {
    border-bottom: none;
  }

  .table-row__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
    margin-right: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4.5px; /* FIX 4: Aligned with 11px text first line */
  }

  .table-row__info {
    flex: 1;
    min-width: 0;
  }

  .table-row__name {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.3;
  }

  .table-row__schedule {
    font-family: var(--font-body);
    font-size: 8px;
    color: var(--text-gray);
    margin-top: 1px;
  }

  .table-row__prices {
    display: flex;
    flex-shrink: 0;
    gap: 0;
  }

  .table-row__price-cell {
    width: 80px;
    text-align: center;
    line-height: 1.3;
  }

  .table-row__price-divider {
    display: none;
  }

  .price-main {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .price-child {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 1px;
  }

  .price-cell--kassa .price-main {
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
  }

  .price-cell--kassa .price-child {
    color: var(--text-light-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.15);
  }

  .price-cell--save .price-main {
    font-size: 13px;
    font-weight: 700;
    color: var(--copper);
  }

  .price-cell--save .price-child {
    color: var(--copper-light);
  }
}

/* ============================================================
   Very small phones (<375px)
   ============================================================ */
@media (max-width: 375px) and (orientation: portrait) {
  .table-slide__toc-label {
    font-size: 12px;
  }

  .table-row__name {
    font-size: 11px;
  }

  .price-main {
    font-size: 12px;
  }

  .price-cell--save .price-main {
    font-size: 13px;
  }

  .cover__title {
    font-size: 18px;
    letter-spacing: 2px;
  }
}


/* ============================================================
   NAVIGATION — Desktop: floating minimal buttons, luxury style
   ============================================================ */

/* Progress bar — always at top */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transition: width 0.3s ease;
  z-index: 100;
}

/* ---- Desktop navigation (>1024px): Floating buttons, no top bar ---- */
@media (min-width: 1025px) {

  /* Back button — floating top-left, minimal */
  .nav-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: none;
    border: none;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-luxury);
    cursor: pointer;
  }

  .nav-back:hover {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-back svg {
    width: 14px;
    height: 14px;
  }

  /* Slide counter — below the slide, centered */
  .slide-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    padding: 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 3px;
  }

  /* Highlight current slide number in copper via JS (handled in HTML) */

  /* Arrow navigation — visible circular controls outside the slide */
  .nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(184, 141, 115, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s var(--ease-luxury), border-color 0.25s var(--ease-luxury), box-shadow 0.25s var(--ease-luxury), color 0.25s var(--ease-luxury), transform 0.25s var(--ease-luxury);
    color: rgba(255, 255, 255, 0.66);
    -webkit-tap-highlight-color: transparent;
    opacity: 1;
  }

  .nav-arrow:hover {
    color: var(--copper);
    background: rgba(184, 141, 115, 0.14);
    border-color: rgba(184, 141, 115, 0.52);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(184, 141, 115, 0.12);
  }

  .nav-arrow:active {
    transform: translateY(-50%) scale(0.94);
  }

  /* Position arrows OUTSIDE the slide frame */
  .nav-arrow--prev {
    left: calc(50% - var(--slide-w) / 2 - 76px);
  }

  .nav-arrow--next {
    right: calc(50% - var(--slide-w) / 2 - 76px);
  }

  .nav-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  .nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* TOC toggle — floating top-right, minimal */
  .toc-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 50;
    padding: 8px 14px;
    background: none;
    border: none;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxury);
    -webkit-tap-highlight-color: transparent;
  }

  .toc-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* ---- Mobile navigation (<=768px): NO overlay arrows, swipe only ---- */
@media (max-width: 768px) {
  /* FIX 1: HIDE arrows entirely on mobile — swipe only */
  .nav-arrow {
    display: none !important;
  }

  /* Back button — top left, small and unobtrusive */
  .nav-back {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
  }

  .nav-back:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-back svg {
    width: 12px;
    height: 12px;
  }

  /* FIX 1: Bottom bar — counter + TOC button side by side */
  .slide-counter {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 14px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 2px;
    transform: none;
  }

  .toc-toggle {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 14px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-left: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    transform: none;
  }

  .toc-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(26, 26, 26, 0.95);
  }
}

/* ---- Landscape mobile navigation ---- */
@media (max-width: 900px) and (orientation: landscape) {
  /* FIX 1: Hide arrows in landscape mobile too — swipe only */
  .nav-arrow {
    display: none !important;
  }

  .slide-counter {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 10px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 2px;
    transform: none;
    top: auto;
    right: auto;
  }

  .nav-back {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
  }

  .nav-back svg {
    width: 10px;
    height: 10px;
  }

  .toc-toggle {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 10px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-left: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    transform: none;
  }
}

/* ---- iPad navigation (769-1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Show arrows on tablet — at the sides but not overlapping content */
  .nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 141, 115, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-arrow:hover {
    background: rgba(26, 26, 26, 0.8);
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-arrow:active {
    transform: translateY(-50%) scale(0.92);
  }

  .nav-arrow--prev {
    left: 8px;
  }

  .nav-arrow--next {
    right: 8px;
  }

  .nav-arrow svg {
    width: 18px;
    height: 18px;
  }

  .nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .nav-back {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 141, 115, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
  }

  .nav-back svg {
    width: 14px;
    height: 14px;
  }

  .slide-counter {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 14px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 2px;
    transform: none;
    top: auto;
    right: auto;
  }

  .toc-toggle {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    z-index: 50;
    width: 50%;
    text-align: center;
    padding: 14px 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184, 141, 115, 0.1);
    border-left: 1px solid rgba(184, 141, 115, 0.1);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--copper);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    transform: none;
  }

  .toc-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(26, 26, 26, 0.95);
  }

  /* iPad: content needs bottom padding for bottom bar */
  .slide-content {
    padding-bottom: 56px;
  }
}


/* ============================================================
   TOC (Table of Contents) — Luxury Design
   ============================================================ */

/* TOC overlay / scrim */
.toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toc-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* TOC panel base */
.toc-panel {
  position: fixed;
  z-index: 300;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-luxury);
}

/* ---- Desktop TOC: right panel with luxury styling ---- */
@media (min-width: 1025px) {
  .toc-panel {
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0;
    transform: translateX(100%);
  }

  .toc-panel.open {
    transform: translateX(0);
  }

  /* Handle: hidden on desktop */
  .toc-panel__handle {
    display: none;
  }

  /* Title area — luxury header */
  .toc-panel__title {
    padding: 24px 24px 0;
    text-align: center;
    flex-shrink: 0;
  }

  .toc-panel__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 12px auto 0;
  }

  /* Close button for desktop TOC (X in top-right) */
  .toc-panel__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s var(--ease-luxury);
    z-index: 5;
  }

  .toc-panel__close:hover {
    opacity: 1;
    color: var(--copper);
    transform: rotate(90deg);
  }

  .toc-panel__close svg {
    width: 14px;
    height: 14px;
    stroke: var(--copper);
    stroke-width: 1.5;
    fill: none;
  }

  /* TOC items list container */
  .toc-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 141, 115, 0.2) transparent;
  }

  .toc-panel__list::-webkit-scrollbar {
    width: 2px;
  }

  .toc-panel__list::-webkit-scrollbar-track {
    background: transparent;
  }

  .toc-panel__list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1px;
  }

  .toc-panel__list:hover::-webkit-scrollbar-thumb {
    background: rgba(184, 141, 115, 0.25);
  }

  /* TOC item — luxury hover from prototype */
  .toc-panel__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.35s var(--ease-luxury);
    border-left: 2px solid transparent;
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
  }

  /* Copper accent line that grows from center */
  .toc-panel__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
    width: 2px;
    background: var(--copper);
    transition: top 0.3s var(--ease-luxury),
                bottom 0.3s var(--ease-luxury);
  }

  .toc-panel__item:hover::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item:hover {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.06) 0%, transparent 70%);
  }

  .toc-panel__item:hover .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.85);
  }

  .toc-panel__item:hover .toc-panel__item-num {
    color: var(--copper);
    transform: scale(1.1);
    opacity: 0.8;
  }

  /* Active item — permanent luxury state */
  .toc-panel__item.active {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.08) 0%, transparent 70%);
    border-left-color: transparent;
  }

  .toc-panel__item.active::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item.active .toc-panel__item-label {
    color: var(--copper);
    font-weight: 500;
  }

  .toc-panel__item.active .toc-panel__item-num {
    opacity: 0.6;
  }

  /* Item number */
  .toc-panel__item-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: var(--copper);
    opacity: 0.3;
    font-variant-numeric: tabular-nums;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-luxury),
                opacity 0.3s var(--ease-luxury),
                color 0.3s var(--ease-luxury);
  }

  /* Item label */
  .toc-panel__item-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.35s var(--ease-luxury),
                letter-spacing 0.35s var(--ease-luxury);
    line-height: 1.4;
  }

  /* --- TOC cascade animation (desktop) --- */
  .toc-panel--cascade .toc-panel__item {
    opacity: 0;
    transform: translateX(-10px);
  }

  .toc-panel--cascade-visible .toc-panel__item {
    animation: tocItemReveal 0.4s var(--ease-luxury) forwards;
  }

  .toc-panel--cascade-visible .toc-panel__item:nth-child(1)  { animation-delay: 0.04s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(2)  { animation-delay: 0.08s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(3)  { animation-delay: 0.12s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(4)  { animation-delay: 0.16s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(5)  { animation-delay: 0.20s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(6)  { animation-delay: 0.24s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(7)  { animation-delay: 0.28s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(8)  { animation-delay: 0.32s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(9)  { animation-delay: 0.36s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(10) { animation-delay: 0.40s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(11) { animation-delay: 0.44s; }
  .toc-panel--cascade-visible .toc-panel__item:nth-child(12) { animation-delay: 0.48s; }
}

@keyframes tocItemReveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---- Mobile Portrait TOC: luxury bottom sheet ---- */
@media (max-width: 767px) and (orientation: portrait) {
  .toc-panel {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0;
    transform: translateY(100%);
  }

  .toc-panel.open {
    transform: translateY(0);
  }

  /* Close button: visible on mobile; scrim/handle remain secondary close affordances */
  .toc-panel__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(184, 141, 115, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    cursor: pointer;
    opacity: 0.82;
    transition: all 0.3s var(--ease-luxury);
    z-index: 11;
  }

  .toc-panel__close:hover,
  .toc-panel__close:active {
    background: rgba(184, 141, 115, 0.14);
    border-color: rgba(184, 141, 115, 0.46);
    opacity: 1;
  }

  .toc-panel__close svg {
    width: 13px;
    height: 13px;
    stroke: var(--copper);
    stroke-width: 1.6;
    fill: none;
  }

  /* Drag handle */
  .toc-panel__handle {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 12px auto 0;
    display: block;
    flex-shrink: 0;
  }

  /* Title area — luxury header with logo + subtitle */
  .toc-panel__title {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 16px 24px 0;
    text-align: center;
    flex-shrink: 0;
  }

  .toc-panel__title::after {
    content: 'СОДЕРЖАНИЕ';
    display: block;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 3px;
    opacity: 0.5;
    margin-top: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 141, 115, 0.15);
    margin-bottom: 4px;
  }

  /* Item list scrollable */
  .toc-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 20px;
    scrollbar-width: none;
  }

  .toc-panel__list::-webkit-scrollbar {
    display: none;
  }

  /* TOC item — luxury hover matching desktop feel */
  .toc-panel__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.35s var(--ease-luxury);
    border-left: 2px solid transparent;
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
  }

  /* Copper accent line that grows from center */
  .toc-panel__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
    width: 2px;
    background: var(--copper);
    transition: top 0.3s var(--ease-luxury),
                bottom 0.3s var(--ease-luxury);
  }

  .toc-panel__item:hover::before,
  .toc-panel__item:active::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item:hover,
  .toc-panel__item:active {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.06) 0%, transparent 70%);
  }

  .toc-panel__item:hover .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.85);
  }

  .toc-panel__item:hover .toc-panel__item-num {
    color: var(--copper);
    transform: scale(1.1);
    opacity: 0.8;
  }

  /* Active item — permanent luxury state */
  .toc-panel__item.active {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.08) 0%, transparent 70%);
    border-left-color: transparent;
  }

  .toc-panel__item.active::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: var(--copper);
    opacity: 0.3;
    font-variant-numeric: tabular-nums;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-luxury),
                opacity 0.3s var(--ease-luxury),
                color 0.3s var(--ease-luxury);
  }

  .toc-panel__item-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.35s var(--ease-luxury),
                letter-spacing 0.35s var(--ease-luxury);
    line-height: 1.4;
  }

  .toc-panel__item.active .toc-panel__item-label {
    color: var(--copper);
    font-weight: 500;
  }

  .toc-panel__item.active .toc-panel__item-num {
    opacity: 0.6;
  }

  /* --- TOC cascade animation (mobile portrait) --- */
  .toc-panel--cascade .toc-panel__item,
  .toc-panel--cascade .toc-category-divider {
    opacity: 0;
    transform: translateX(-10px);
  }

  .toc-panel--cascade-visible .toc-panel__item,
  .toc-panel--cascade-visible .toc-category-divider {
    animation: tocItemRevealMobile 0.35s var(--ease-luxury) forwards;
  }

  .toc-panel--cascade-visible .toc-panel__list > :nth-child(1)  { animation-delay: 0.04s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(2)  { animation-delay: 0.08s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(3)  { animation-delay: 0.12s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(4)  { animation-delay: 0.16s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(5)  { animation-delay: 0.20s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(6)  { animation-delay: 0.24s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(7)  { animation-delay: 0.28s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(8)  { animation-delay: 0.32s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(9)  { animation-delay: 0.36s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(10) { animation-delay: 0.40s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(11) { animation-delay: 0.44s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(12) { animation-delay: 0.48s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(13) { animation-delay: 0.52s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(14) { animation-delay: 0.56s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(15) { animation-delay: 0.60s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(16) { animation-delay: 0.64s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(17) { animation-delay: 0.68s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(18) { animation-delay: 0.72s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(19) { animation-delay: 0.76s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(20) { animation-delay: 0.80s; }
}

/* ---- Mobile Landscape TOC: side panel (narrower) ---- */
@media (max-width: 900px) and (orientation: landscape) {
  .toc-panel {
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 260px;
    max-height: none;
    height: 100%;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0;
    transform: translateX(100%);
  }

  .toc-panel.open {
    transform: translateX(0);
  }

  .toc-panel__handle {
    display: none;
  }

  .toc-panel__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s var(--ease-luxury);
    z-index: 5;
  }

  .toc-panel__close:hover {
    opacity: 1;
    color: var(--copper);
    transform: rotate(90deg);
  }

  .toc-panel__close svg {
    width: 12px;
    height: 12px;
    stroke: var(--copper);
    stroke-width: 1.5;
    fill: none;
  }

  .toc-panel__title {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 20px 0;
    text-align: center;
    flex-shrink: 0;
  }

  .toc-panel__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 10px auto 0;
  }

  .toc-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 141, 115, 0.2) transparent;
  }

  .toc-panel__list::-webkit-scrollbar {
    width: 2px;
  }

  .toc-panel__list::-webkit-scrollbar-track {
    background: transparent;
  }

  .toc-panel__list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1px;
  }

  .toc-panel__list:hover::-webkit-scrollbar-thumb {
    background: rgba(184, 141, 115, 0.25);
  }

  /* Luxury items — same as desktop but more compact */
  .toc-panel__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.35s var(--ease-luxury);
    border-left: 2px solid transparent;
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
  }

  .toc-panel__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
    width: 2px;
    background: var(--copper);
    transition: top 0.3s var(--ease-luxury),
                bottom 0.3s var(--ease-luxury);
  }

  .toc-panel__item:hover::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item:hover {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.06) 0%, transparent 70%);
  }

  .toc-panel__item:hover .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.85);
  }

  .toc-panel__item:hover .toc-panel__item-num {
    color: var(--copper);
    transform: scale(1.1);
    opacity: 0.8;
  }

  .toc-panel__item.active {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.08) 0%, transparent 70%);
    border-left-color: transparent;
  }

  .toc-panel__item.active::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item-num {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    color: var(--copper);
    opacity: 0.3;
    font-variant-numeric: tabular-nums;
    width: 20px;
    text-align: right;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-luxury),
                opacity 0.3s var(--ease-luxury),
                color 0.3s var(--ease-luxury);
  }

  .toc-panel__item-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.35s var(--ease-luxury),
                letter-spacing 0.35s var(--ease-luxury);
    line-height: 1.4;
  }

  .toc-panel__item.active .toc-panel__item-label {
    color: var(--copper);
    font-weight: 500;
  }

  .toc-panel__item.active .toc-panel__item-num {
    opacity: 0.6;
  }

  /* Cascade animation — same as desktop (slide from left) */
  .toc-panel--cascade .toc-panel__item,
  .toc-panel--cascade .toc-category-divider {
    opacity: 0;
    transform: translateX(-10px);
  }

  .toc-panel--cascade-visible .toc-panel__item,
  .toc-panel--cascade-visible .toc-category-divider {
    animation: tocItemReveal 0.4s var(--ease-luxury) forwards;
  }

  .toc-panel--cascade-visible .toc-panel__list > :nth-child(1)  { animation-delay: 0.04s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(2)  { animation-delay: 0.08s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(3)  { animation-delay: 0.12s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(4)  { animation-delay: 0.16s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(5)  { animation-delay: 0.20s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(6)  { animation-delay: 0.24s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(7)  { animation-delay: 0.28s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(8)  { animation-delay: 0.32s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(9)  { animation-delay: 0.36s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(10) { animation-delay: 0.40s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(11) { animation-delay: 0.44s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(12) { animation-delay: 0.48s; }
}

/* ---- iPad TOC: side panel (full luxury) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .toc-panel {
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 300px;
    max-height: none;
    height: 100%;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0;
    transform: translateX(100%);
  }

  .toc-panel.open {
    transform: translateX(0);
  }

  .toc-panel__handle {
    display: none;
  }

  .toc-panel__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s var(--ease-luxury);
    z-index: 5;
  }

  .toc-panel__close:hover {
    opacity: 1;
    color: var(--copper);
    transform: rotate(90deg);
  }

  .toc-panel__close svg {
    width: 14px;
    height: 14px;
    stroke: var(--copper);
    stroke-width: 1.5;
    fill: none;
  }

  .toc-panel__title {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 24px 24px 0;
    text-align: center;
    flex-shrink: 0;
  }

  .toc-panel__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--copper);
    opacity: 0.3;
    margin: 12px auto 0;
  }

  .toc-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 141, 115, 0.2) transparent;
  }

  .toc-panel__list::-webkit-scrollbar {
    width: 2px;
  }

  .toc-panel__list::-webkit-scrollbar-track {
    background: transparent;
  }

  .toc-panel__list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1px;
  }

  .toc-panel__list:hover::-webkit-scrollbar-thumb {
    background: rgba(184, 141, 115, 0.25);
  }

  /* Full luxury items — slightly larger than desktop */
  .toc-panel__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    cursor: pointer;
    transition: all 0.35s var(--ease-luxury);
    border-left: 2px solid transparent;
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
  }

  .toc-panel__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
    width: 2px;
    background: var(--copper);
    transition: top 0.3s var(--ease-luxury),
                bottom 0.3s var(--ease-luxury);
  }

  .toc-panel__item:hover::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item:hover {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.06) 0%, transparent 70%);
  }

  .toc-panel__item:hover .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.85);
  }

  .toc-panel__item:hover .toc-panel__item-num {
    color: var(--copper);
    transform: scale(1.1);
    opacity: 0.8;
  }

  .toc-panel__item.active {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(184, 141, 115, 0.08) 0%, transparent 70%);
    border-left-color: transparent;
  }

  .toc-panel__item.active::before {
    top: 0;
    bottom: 0;
  }

  .toc-panel__item-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: var(--copper);
    opacity: 0.3;
    font-variant-numeric: tabular-nums;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-luxury),
                opacity 0.3s var(--ease-luxury),
                color 0.3s var(--ease-luxury);
  }

  .toc-panel__item-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.35s var(--ease-luxury),
                letter-spacing 0.35s var(--ease-luxury);
    line-height: 1.4;
  }

  .toc-panel__item.active .toc-panel__item-label {
    color: var(--copper);
    font-weight: 500;
  }

  .toc-panel__item.active .toc-panel__item-num {
    opacity: 0.6;
  }

  /* Cascade animation — slide from left like desktop */
  .toc-panel--cascade .toc-panel__item,
  .toc-panel--cascade .toc-category-divider {
    opacity: 0;
    transform: translateX(-10px);
  }

  .toc-panel--cascade-visible .toc-panel__item,
  .toc-panel--cascade-visible .toc-category-divider {
    animation: tocItemReveal 0.4s var(--ease-luxury) forwards;
  }

  .toc-panel--cascade-visible .toc-panel__list > :nth-child(1)  { animation-delay: 0.04s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(2)  { animation-delay: 0.08s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(3)  { animation-delay: 0.12s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(4)  { animation-delay: 0.16s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(5)  { animation-delay: 0.20s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(6)  { animation-delay: 0.24s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(7)  { animation-delay: 0.28s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(8)  { animation-delay: 0.32s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(9)  { animation-delay: 0.36s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(10) { animation-delay: 0.40s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(11) { animation-delay: 0.44s; }
  .toc-panel--cascade-visible .toc-panel__list > :nth-child(12) { animation-delay: 0.48s; }
}

/* ---- Brand system UI pass: TOC, service buttons, counters ---- */
.toc-overlay {
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc-panel {
  color: rgba(255, 255, 255, 0.78);
  isolation: isolate;
}

.toc-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(184, 141, 115, 0.16), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(184, 141, 115, 0.12), transparent 42%);
}

.toc-panel__title {
  font-family: var(--font-heading);
  color: var(--copper);
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(184, 141, 115, 0.2);
}

.toc-panel__title::after {
  content: 'СОДЕРЖАНИЕ';
  width: auto;
  height: auto;
  background: none;
  display: block;
  margin: 10px auto 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(184, 141, 115, 0.18);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.4px;
}

.toc-panel__close,
.toc-mode-toggle {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(184, 141, 115, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 26px rgba(0, 0, 0, 0.22);
  color: var(--copper);
  opacity: 0.78;
}

.toc-panel__close:hover,
.toc-mode-toggle:hover,
.toc-mode-toggle.active {
  background: rgba(184, 141, 115, 0.14);
  border-color: rgba(184, 141, 115, 0.46);
  opacity: 1;
}

.toc-panel__list {
  scrollbar-color: rgba(184, 141, 115, 0.42) transparent;
}

.toc-panel__list::-webkit-scrollbar {
  width: 4px;
}

.toc-panel__list::-webkit-scrollbar-thumb,
.toc-panel__list:hover::-webkit-scrollbar-thumb {
  background: rgba(184, 141, 115, 0.42);
  border-radius: 999px;
}

.toc-panel__item {
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.toc-panel__item::before {
  border-radius: 0;
}

.toc-panel__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.065) 34%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-luxury);
  pointer-events: none;
}

.toc-panel__item:hover,
.toc-panel__item:active,
.toc-panel__item.active {
  background:
    linear-gradient(90deg, rgba(184, 141, 115, 0.18), rgba(184, 141, 115, 0.045) 72%),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(184, 141, 115, 0.3);
}

.toc-panel__item:hover::after,
.toc-panel__item:active::after,
.toc-panel__item.active::after {
  transform: translateX(120%);
}

.toc-panel__item-num {
  border-radius: 3px;
  background: rgba(184, 141, 115, 0.08);
  border: 1px solid rgba(184, 141, 115, 0.14);
  text-align: center;
}

.toc-panel__item-label {
  text-transform: none;
}

.toc-panel__item.active .toc-panel__item-num {
  background: rgba(184, 141, 115, 0.16);
  border-color: rgba(184, 141, 115, 0.28);
  opacity: 1;
}

.toc-category-divider__label {
  color: rgba(184, 141, 115, 0.86);
}

.toc-category-divider__line,
.toc-category-divider__line:first-child {
  background: linear-gradient(90deg, transparent, rgba(184, 141, 115, 0.34), transparent);
}

@media (min-width: 1025px) {
  .nav-back,
  .toc-toggle,
  .slide-counter {
    background: rgba(26, 26, 26, 0.62);
    border: 1px solid rgba(184, 141, 115, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.54);
  }

  .nav-back,
  .toc-toggle {
    padding: 9px 15px;
  }

  .nav-back:hover,
  .toc-toggle:hover {
    background: rgba(184, 141, 115, 0.12);
    border-color: rgba(184, 141, 115, 0.42);
    color: var(--copper);
  }

  .slide-counter {
    bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.46);
  }

  .toc-panel {
    width: 360px;
    background:
      linear-gradient(180deg, rgba(38, 30, 26, 0.985) 0%, rgba(17, 17, 17, 0.985) 46%, rgba(10, 10, 10, 0.99) 100%);
    border-left: 1px solid rgba(184, 141, 115, 0.24);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.56), inset 1px 0 0 rgba(255, 255, 255, 0.035);
  }

  .toc-panel__title {
    padding: 30px 30px 0;
    font-size: 12px;
    letter-spacing: 6px;
  }

  .toc-panel__close,
  .toc-mode-toggle {
    width: 34px;
    height: 34px;
  }

  .toc-panel__list {
    padding: 18px 0 28px;
  }

  .toc-panel__item {
    width: calc(100% - 28px);
    margin: 0 14px 8px;
    padding: 11px 12px;
    border-radius: 4px;
    gap: 12px;
  }

  .toc-panel__item:hover,
  .toc-panel__item.active {
    transform: translateX(-2px);
  }

  .toc-panel__item::before {
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
  }

  .toc-panel__item:hover::before,
  .toc-panel__item.active::before {
    top: 8px;
    bottom: 8px;
  }

  .toc-panel__item-num {
    width: 36px;
    padding: 4px 0;
    font-size: 10px;
  }

  .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    letter-spacing: 0.15px;
    line-height: 1.35;
  }
}

@media (min-width: 768px) and (max-width: 1024px),
       (max-width: 900px) and (orientation: landscape) {
  .toc-panel {
    background:
      linear-gradient(180deg, rgba(38, 30, 26, 0.985) 0%, rgba(17, 17, 17, 0.985) 48%, rgba(10, 10, 10, 0.99) 100%);
    border-left: 1px solid rgba(184, 141, 115, 0.22);
    box-shadow: -18px 0 54px rgba(0, 0, 0, 0.52), inset 1px 0 0 rgba(255, 255, 255, 0.035);
  }

  .toc-panel__item {
    width: calc(100% - 24px);
    margin: 0 12px 8px;
    padding: 10px 11px;
    border-radius: 4px;
    gap: 10px;
  }

  .toc-panel__item:hover,
  .toc-panel__item.active {
    transform: translateX(-2px);
  }

  .toc-panel__item-num {
    width: 32px;
    padding: 3px 0;
  }

  .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.56);
    text-transform: none;
  }
}

@media (max-width: 768px) {
  body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    z-index: 49;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(36, 29, 25, 0.94), rgba(18, 18, 18, 0.92));
    border-top: 1px solid rgba(184, 141, 115, 0.22);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav-back,
  .slide-counter,
  .toc-toggle {
    color: var(--copper);
  }

  .slide-counter,
  .toc-toggle {
    bottom: 0;
    height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: transparent !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .slide-counter {
    left: 0;
    right: auto;
    width: 50%;
  }

  .toc-toggle {
    left: 50%;
    right: auto;
    width: 50%;
    border-left: 0 !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    z-index: 49;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(36, 29, 25, 0.94), rgba(18, 18, 18, 0.92));
    border-top: 1px solid rgba(184, 141, 115, 0.22);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .slide-counter,
  .toc-toggle {
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: transparent !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .slide-counter {
    left: 0;
    right: auto;
    width: 50%;
  }

  .toc-toggle {
    left: 50%;
    right: auto;
    width: 50%;
    border-left: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    z-index: 49;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(36, 29, 25, 0.94), rgba(18, 18, 18, 0.92));
    border-top: 1px solid rgba(184, 141, 115, 0.22);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .slide-counter,
  .toc-toggle {
    height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: transparent !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .slide-counter {
    left: 0;
    right: auto;
    width: 50%;
  }

  .toc-toggle {
    left: 50%;
    right: auto;
    width: 50%;
    border-left: 0 !important;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .toc-panel {
    max-height: 74vh;
    border-radius: 8px 8px 0 0;
    background:
      linear-gradient(180deg, rgba(42, 33, 28, 0.985), rgba(17, 17, 17, 0.99) 46%, rgba(10, 10, 10, 0.99));
    border-top: 1px solid rgba(184, 141, 115, 0.28);
    box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .toc-panel__handle {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(184, 141, 115, 0.9), transparent);
    opacity: 0.86;
  }

  .toc-panel__title {
    padding: 16px 24px 0;
    letter-spacing: 4px;
  }

  .toc-panel__list {
    padding: 12px 0 22px;
  }

  .toc-panel__item {
    width: calc(100% - 24px);
    margin: 0 12px 8px;
    padding: 12px 12px;
    border-radius: 4px;
  }

  .toc-panel__item:hover,
  .toc-panel__item:active,
  .toc-panel__item.active {
    transform: translateX(0);
  }

  .toc-panel__item::before {
    left: 0;
    top: 10px;
    bottom: 10px;
  }

  .toc-panel__item-num {
    width: 34px;
    padding: 4px 0;
  }

  .toc-panel__item-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    letter-spacing: 0.15px;
  }
}

/* ---- Category dividers (all breakpoints) ---- */
.toc-category-divider {
  padding: 16px 24px 8px;
  display: none; /* hidden by default, shown via JS when category mode is on */
  align-items: center;
  gap: 12px;
  position: relative;
}

.toc-category-divider.visible {
  display: flex;
}

.toc-category-divider__line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, rgba(184, 141, 115, 0.3), transparent);
}

.toc-category-divider__line:first-child {
  background: linear-gradient(90deg, transparent, rgba(184, 141, 115, 0.3));
}

.toc-category-divider__label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0.7;
}

/* ---- Search + exact service links ---- */
.toc-search {
  padding: 12px 18px 8px;
  flex-shrink: 0;
}

.toc-search__input {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(184, 141, 115, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2px;
  outline: none;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.toc-search__input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.toc-search__input:focus {
  border-color: rgba(184, 141, 115, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(184, 141, 115, 0.16);
}

.toc-search__status {
  min-height: 14px;
  margin-top: 6px;
  color: rgba(184, 141, 115, 0.72);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.toc-panel__item--search-hidden,
.toc-category-divider--search-hidden {
  display: none !important;
}

.table-row.service-linked {
  background: rgba(184, 141, 115, 0.12) !important;
  outline: 1px solid rgba(184, 141, 115, 0.36);
  outline-offset: -1px;
}

/* ---- TOC mode toggle button ---- */
.toc-mode-toggle {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(184, 141, 115, 0.15);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s var(--ease-luxury);
  z-index: 10;
  pointer-events: auto;
}

.toc-mode-toggle:hover {
  opacity: 0.7;
  border-color: rgba(184, 141, 115, 0.4);
}

.toc-mode-toggle.active {
  opacity: 0.8;
  border-color: var(--copper);
  background: rgba(184, 141, 115, 0.1);
}

.toc-mode-toggle svg {
  width: 14px;
  height: 14px;
  stroke: var(--copper);
  stroke-width: 1.5;
  fill: none;
}

/* On mobile portrait, keep close on the right and secondary grouping on the left */
@media (max-width: 767px) and (orientation: portrait) {
  .toc-panel__close {
    top: 16px;
    right: 20px;
    left: auto;
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    opacity: 0.9;
    z-index: 12;
  }

  .toc-panel__close svg {
    width: 13px;
    height: 13px;
  }

  .toc-mode-toggle {
    top: 16px;
    left: 20px;
    right: auto;
    bottom: auto;
    position: absolute;
    margin: 0;
    display: inline-flex;
    width: 24px;
    height: 24px;
  }

  .toc-mode-toggle svg {
    width: 12px;
    height: 12px;
  }

  .toc-category-divider {
    padding: 12px 24px 6px;
  }
}

.toc-mode-toggle {
  border-radius: 999px;
  background: rgba(184, 141, 115, 0.08);
  border: 1px solid rgba(184, 141, 115, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  opacity: 0.78;
}

.toc-mode-toggle:hover,
.toc-mode-toggle.active {
  background: rgba(184, 141, 115, 0.16);
  border-color: rgba(184, 141, 115, 0.46);
  opacity: 1;
}

.toc-category-divider__label {
  color: rgba(184, 141, 115, 0.86);
}

.toc-category-divider__line,
.toc-category-divider__line:first-child {
  background: linear-gradient(90deg, transparent, rgba(184, 141, 115, 0.34), transparent);
}

@keyframes tocItemRevealMobile {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   PRINT
   ============================================================ */
/* ============================================================
   Background Images (RU + Фоны versions)
   JS creates .slide-bg divs with inline background-image
   ============================================================ */
.slide--has-bg {
  position: relative;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.slide--has-bg .slide-frame,
.slide--has-bg .table-slide,
.slide--has-bg .cover-slide,
.slide--has-bg .contact-slide {
  position: relative;
  z-index: 1;
}

/* Inner background (inside the white/cream content area) */
.slide-bg-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content stays above inner background */
.slide-content > .table-slide,
.slide-content > .cover-content,
.slide-content > .contact-slide {
  position: relative;
  z-index: 1;
}

/* Make table background transparent when slide has a bg image */
.slide--has-bg .table-slide {
  background: transparent !important;
}

.slide--has-bg .table-rows {
  background: rgba(254, 251, 246, 0.68) !important;
}

.slide--has-bg .table-slide__header {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.97) 0%, rgba(250, 244, 236, 0.95) 100%);
  border-bottom: 1px solid rgba(184, 141, 115, 0.12);
}

/* Cover and contact slides keep their own backgrounds (dark) —
   the bg image shows through intentionally at opacity 1.0 on those */

@media print {
  body {
    background: #fff;
    overflow: visible;
    height: auto;
  }

  .viewer {
    height: auto;
    overflow: visible;
  }

  .slide {
    position: relative;
    display: block !important;
    page-break-after: always;
    height: auto;
    min-height: 100vh;
  }

  .nav-arrow,
  .nav-back,
  .slide-counter,
  .toc-toggle,
  .toc-overlay,
  .toc-panel,
  .progress-bar {
    display: none !important;
  }

  .slide-frame {
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 0;
  }

  .table-slide {
    background: #fff;
  }

  .cover-content {
    min-height: 100vh;
  }

  .slide-content {
    padding-bottom: 0 !important;
  }
}

/* ============================================================
   Transitions & Animations
   ============================================================ */
.slide {
  animation: none;
}

.slide.slide-in-right {
  animation: slideInRight 0.3s ease forwards;
}

.slide.slide-in-left {
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   Arabic / RTL locale
   ============================================================ */
html[dir="rtl"],
html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] body,
html[lang="ar"] .slide--rtl {
  font-family: var(--font-body);
}

html[lang="ar"] .cover__title,
html[lang="ar"] .table-slide__toc-label,
html[lang="ar"] .contact-slide__title,
html[lang="ar"] .contact__title {
  font-family: var(--font-heading);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
}

html[lang="ar"] .cover__logo,
html[lang="ar"] .cover__subtitle,
html[lang="ar"] .cover__year,
html[lang="ar"] .cover__hint,
html[lang="ar"] .table-slide__section-title,
html[lang="ar"] .col-headers__price,
html[lang="ar"] .table-row__name,
html[lang="ar"] .table-row__schedule,
html[lang="ar"] .toc-toggle,
html[lang="ar"] .toc-panel__item-label,
html[lang="ar"] .toc-category-divider__label,
html[lang="ar"] .contact-slide__item-label,
html[lang="ar"] .contact-slide__item-value,
html[lang="ar"] .contact__line,
html[lang="ar"] .contact__cta {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .slide--rtl .table-slide,
html[lang="ar"] .slide--rtl .toc-panel {
  direction: rtl;
}

html[lang="ar"] .slide--rtl .table-row__info,
html[lang="ar"] .slide--rtl .table-row__name,
html[lang="ar"] .slide--rtl .table-row__schedule {
  text-align: right;
}

html[lang="ar"] .slide--rtl .table-row__dot {
  margin-right: 0;
  margin-left: 10px;
}

html[lang="ar"] .slide--rtl .table-row__prices,
html[lang="ar"] .slide--rtl .col-headers {
  direction: rtl;
}

html[lang="ar"] .slide--rtl .table-row__price-cell,
html[lang="ar"] .slide--rtl .price-main,
html[lang="ar"] .slide--rtl .price-sub,
html[lang="ar"] .slide-counter {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"] .nav-back {
  direction: rtl;
}

html[lang="ar"] .nav-back svg {
  transform: rotate(180deg);
}

html[lang="ar"] .toc-panel__close {
  right: 16px;
  left: auto;
}

html[lang="ar"] .toc-mode-toggle {
  left: 16px;
  right: auto;
}

html[lang="ar"] .contact-slide__item {
  direction: rtl;
}

html[lang="ar"] .contact-slide__item-text,
html[lang="ar"] .contact__info {
  text-align: right;
}

@media (max-width: 1024px) {
  html[lang="ar"] .slide--rtl .table-row__dot {
    margin-right: 0;
    margin-left: 12px;
  }

  html[lang="ar"] .slide--rtl .table-row__prices {
    padding-left: 0;
    padding-right: 19px;
  }
}
