/* ===========================
   VIP-DXB-RUS Pricelist
   Design System CSS
   =========================== */

/* ===========================
   1. Design Tokens
   =========================== */
:root {
  /* Colors (from PPTX originals — NOT website palette) */
  --copper: #B88D73;
  --black: #000000;
  --dark-gray: #595959;
  --light-gray: #F2F2F2;
  --white: #FFFFFF;
  --near-white: #FEFEFE;
  --page-bg: #1a1a1a;

  /* Derived semi-transparent colors (for navigation overlays) */
  --page-bg-90: rgba(26, 26, 26, 0.9);
  --page-bg-95: rgba(26, 26, 26, 0.95);
  --page-bg-70: rgba(26, 26, 26, 0.7);
  --copper-30: rgba(184, 141, 115, 0.3);
  --copper-20: rgba(184, 141, 115, 0.2);
  --copper-10: rgba(184, 141, 115, 0.1);
  --copper-50: rgba(184, 141, 115, 0.5);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-40: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-heading: 'Tenor Sans', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Slide dimensions (A4 landscape, from PPTX) */
  --slide-w: 842px;
  --slide-h: 595px;

  /* Column X positions (from PPTX vertical connector lines) */
  --col-name-left: 59.7px;
  --col1-left: 380px;
  --col2-left: 517px;
  --col3-left: 655px;
  --col-right: 792px;
  --col-width: 137px;

  /* Row geometry */
  --row-height: 65.4px;
  --row-gap: 69.2px;
  --row1-top: 80.3px;

  /* Bullet markers (copper ellipses) */
  --dot-size: 7.7px;
  --dot-x: 55.8px;

  /* Text positions */
  --name-x: 72px;
  --name-width: 311px;
}


/* ===========================
   2. Reset
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ===========================
   3. Page Layout
   =========================== */
body {
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* ===========================
   4. Slide Container (.slide)
   =========================== */
.slide {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  line-height: 1;
  display: none;
}

.slide--active {
  display: block;
}

/* SVG layer: decorative elements (lines, dots, photos, gradients) */
.slide svg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* HTML content layer: text (editable, searchable, automatable) */
.slide__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Caption label (slide descriptor, below content) */
.slide__caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  color: #666;
  z-index: 20;
  pointer-events: auto;
}


/* ===========================
   5. Cover Slide (.slide--cover)
   =========================== */
.slide--cover {
  background: var(--black);
}

/* Cover text overlay (e.g. "ПРЕДЛОЖЕНИЕ ДЛЯ НАШИХ КЛИЕНТОВ") */
.slide__text {
  position: absolute;
  left: 86.4px;
  top: 385.6px;
  z-index: 10;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;
}


/* ===========================
   6. Price Table (.slide--price-table)
   =========================== */

/* --- Section header --- */
.section-header {
  position: absolute;
  left: 48.5px;
  top: 25.8px;
  font-family: var(--font-heading);
  font-size: 9px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

/* --- Column headers --- */
.col-header {
  position: absolute;
  width: 112px;
  height: 28px;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.col-header__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  color: var(--black);
  line-height: 1.15;
  white-space: nowrap;
}

.col-header__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 8px;
  color: var(--dark-gray);
  line-height: 1.15;
  margin-top: 1px;
  white-space: nowrap;
}

/* Column header positions (centered within each price column) */
.col-header--1 { left: 392px; top: 37px; }
.col-header--2 { left: 529px; top: 37px; }
.col-header--3 { left: 666px; top: 37px; }

/* --- Service rows --- */
.row {
  position: absolute;
  left: 0;
  width: 792px;
  height: var(--row-height);
}

/* Row Y positions (from PPTX grpSp offsets) */
.row--1 { top: 80.3px; }
.row--2 { top: 149.6px; }
.row--3 { top: 218.9px; }
.row--4 { top: 288.1px; }
.row--5 { top: 357.3px; }
.row--6 { top: 426.8px; }
.row--7 { top: 496.4px; }

/* Service name */
.row__name {
  position: absolute;
  left: var(--name-x);
  top: 3.6px;
  width: var(--name-width);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.15;
}

/* Schedule line (group excursions only, inline inside .row__name) */
.row__schedule {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  color: var(--dark-gray);
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 2px;
}

/* Price cells */
.row__price {
  position: absolute;
  top: 3.6px;
  width: var(--col-width);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
}

.row__price--our {
  left: 380px;
  color: var(--black);
}

.row__price--ticket {
  left: 517px;
  color: var(--dark-gray);
}

.row__price--savings {
  left: 655px;
  color: var(--black);
}


/* ===========================
   7. Contact Slide (.slide--contact)
   =========================== */
.slide--contact {
  background: var(--black);
}

/* Contact text items: Montserrat SemiBold, white, LOWERCASE (not uppercase!) */
.contact-item {
  position: absolute;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
}

/* Copyright symbol (top-left, Arial) */
.slide__copyright {
  position: absolute;
  left: 7.2px;
  top: 7.2px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  color: var(--near-white);
  line-height: 1;
}


/* ===========================
   8. Gallery Slide (.slide--gallery)
   =========================== */

/* Grid of 8 items with icons (tickets pricelist only, slide 2) */
.slide--gallery {
  background: var(--white);
}

.gallery-title {
  position: absolute;
  top: 50px;
  left: 60px;
  right: 60px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 10;
}

.gallery-item__text {
  position: absolute;
  width: 140px;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  color: var(--black);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}


/* ===========================
   9. Fullscreen Slide (.slide--fullscreen)
   =========================== */

/* Just background image via SVG, no content layer needed */
.slide--fullscreen {
  background: var(--black);
}


/* ===========================
   10. Slide Viewport (JS controls scaling)
   =========================== */
.slide-viewport {
  transform-origin: top left;
  position: relative;
  width: 842px;
  height: 595px;
  flex-shrink: 0;
}


/* ===========================
   11. Dense Slides (8+ rows)
   =========================== */
.slide--dense .row__name {
  font-size: 10px;
  line-height: 1.2;
}

.slide--dense .row__price {
  font-size: 9px;
}

.slide--dense .row__schedule {
  font-size: 8px;
  margin-top: 1px;
}

.slide--dense .section-header {
  font-size: 8px;
}

.slide--dense .col-header__title {
  font-size: 8px;
}

.slide--dense .col-header__subtitle {
  font-size: 7px;
}


/* ===========================
   12. Responsive — Mobile
   =========================== */
@media (max-width: 480px) {
  .viewer-container {
    margin-top: 4px;
    margin-bottom: 24px;
  }
}


/* ===========================
   13. Print Styles
   =========================== */
@media print {
  /* Page setup: A4 landscape, no margins */
  @page {
    size: A4 landscape;
    margin: 0;
  }

  /* White background for paper */
  body {
    background: #FFFFFF;
    display: block;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  /* Show ALL slides for full printout */
  .slide {
    display: block !important;
    box-shadow: none;
    page-break-after: always;
    page-break-inside: avoid;
    position: relative;
    width: 842px;
    height: 595px;
  }

  /* Remove scaling — print at natural A4 size */
  .slide-viewport {
    transform: none !important;
    width: auto;
    height: auto;
  }

  .viewer-container {
    width: auto !important;
    height: auto !important;
    margin: 0;
  }

  /* Remove transitions and hover effects */
  * {
    transition: none !important;
  }

  /* Remove caption (slide descriptor) in print */
  .slide__caption {
    display: none;
  }
}
