@font-face {
  font-family: 'MD Nichrome';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.cdnfonts.com/s/88466/MDNichromeTest-Regular.woff') format('woff');
}

@font-face {
  font-family: 'MD Nichrome';
  font-style: normal;
  font-weight: 700;
  src: url('https://fonts.cdnfonts.com/s/88466/MDNichromeTest-Bold.woff') format('woff');
}

@font-face {
  font-family: 'MD Nichrome';
  font-style: normal;
  font-weight: 800;
  src: url('https://fonts.cdnfonts.com/s/88466/MDNichromeTest-Black.woff') format('woff');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #7E05E8;
  --purple-dark: #6B04C9;
  --btn-dark: #1A1221;
  --text: #0F0F15;
  --text-secondary: #58585B;
  --text-muted: #989CA4;
  --border: #E8E8EC;
  --blue: #3861FB;
  --green: #38A169;
  --green-badge: #4CAF50;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: "MD Nichrome", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3,
.event-title,
.section-title,
.why-buy__title,
.site-footer__heading,
.accordion__header h2,
.rec-card__title,
.payment-teaser h3,
.sidebar-buy__price,
.sticky-footer__price {
  font-family: var(--font-heading);
}

.price-original {
  color: #888;
  text-decoration: line-through;
  font-size: 0.85em;
  font-weight: 500;
  margin-right: 6px;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F0F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-search {
  flex-shrink: 0;
  color: var(--text);
  padding: 4px;
}

.nav-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.hero-slider {
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.hero-slider__slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.hero-slider__slide video,
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__overlay-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  backdrop-filter: blur(4px);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-slider__arrow--prev { left: 12px; }
.hero-slider__arrow--next { right: 12px; }

.hero-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-slider__dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s;
}

.hero-slider__dot.active {
  background: var(--white);
}

.event-main {
  padding: 20px 16px 0;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.event-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.event-location svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.schedule-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 20px;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.schedule-details-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.schedule-content {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

.schedule-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.intro-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  text-align: left;
}

.accordion__header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.accordion__chevron {
  transition: transform 0.25s;
  color: var(--text-secondary);
}

.accordion--closed .accordion__chevron {
  transform: rotate(180deg);
}

.accordion--closed .accordion__body {
  display: none;
}

.accordion__body {
  padding-bottom: 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.accordion__body ul {
  list-style: none;
  padding: 0;
}

.accordion__body li {
  margin-bottom: 8px;
}

.accordion__body strong {
  color: var(--text);
}

.section {
  padding: 24px 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.gallery-section {
  padding-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 110px;
  gap: 8px;
}

.gallery-card {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #F0F0F2;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, transparent 45%, rgba(0, 0, 0, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (hover: hover) {
  .gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 15, 21, 0.14);
  }

  .gallery-card:hover img {
    transform: scale(1.06);
  }

  .gallery-card:hover .gallery-card__shine {
    opacity: 1;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 14, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }

.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-lightbox__counter {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
}

.gallery-lightbox__thumbs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: min(100%, 720px);
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.gallery-lightbox__thumb {
  flex: 0 0 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  background: none;
}

.gallery-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lightbox__thumb.active {
  opacity: 1;
  border-color: var(--purple);
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-auto-rows: 130px;
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
  }

  .gallery-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-lightbox__nav--prev { left: 24px; }
  .gallery-lightbox__nav--next { right: 24px; }

  .gallery-lightbox__thumb {
    flex: 0 0 64px;
    height: 64px;
  }
}

.venue-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.venue-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #F5F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.venue-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.venue-directions {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #E8EDF2;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}

.rec-row::-webkit-scrollbar {
  display: none;
}

.rec-card {
  flex: 0 0 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rec-card__image {
  position: relative;
  height: 140px;
}

.rec-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-badge);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.rec-badge--bestseller {
  left: auto;
  right: 8px;
  background: var(--purple);
}

.rec-card__body {
  padding: 12px;
}

.rec-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.rec-card__price {
  font-weight: 700;
  font-size: 0.9375rem;
}

.rec-card__guarantee {
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 4px;
}

.why-buy {
  padding: 24px 16px;
  border-top: 8px solid #F5F5F7;
}

.why-buy__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.why-buy__grid {
  display: grid;
  gap: 20px;
}

.why-buy__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-buy__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.why-buy__item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.why-buy__item span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.payment-teaser {
  padding: 0 16px 24px;
}

.payment-teaser h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.payment-logos {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-logos img {
  height: 24px;
  width: auto;
}

.site-footer {
  background: #F5F5F7;
  padding: 32px 16px 24px;
  border-top: 1px solid var(--border);
}

.site-footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-contact {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
}

.footer-hotline {
  margin-bottom: 24px;
}

.footer-hotline strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.footer-hotline p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-payments {
  margin-bottom: 24px;
}

.footer-payments span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-actions .footer-btn {
  justify-content: center;
  width: 100%;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.sticky-footer__from {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sticky-footer__price {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.sticky-footer__tag {
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 500;
}

.sticky-footer__btn {
  background: var(--btn-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.sticky-footer__btn:hover {
  opacity: 0.9;
}

@media (min-width: 768px) {
  .event-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 0;
  }

  .event-content {
    grid-column: 1;
  }

  .event-sidebar {
    grid-column: 2;
    grid-row: 1 / span 10;
    position: sticky;
    top: 100px;
    align-self: start;
  }

  .sidebar-buy {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
  }

  .sidebar-buy__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
  }

  .sidebar-buy__price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .sidebar-buy__btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--btn-dark);
    color: var(--white);
    font-weight: 600;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .sidebar-buy__tag {
    text-align: center;
    font-size: 0.875rem;
    color: var(--purple);
    font-weight: 500;
  }

  .sticky-footer {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .why-buy__grid {
    grid-template-columns: 1fr 1fr;
  }
}
