:root{
  --bg:#0b0d10;
  --fg:#f2f4f7;
  --muted: rgba(242,244,247,.75);

  --line: rgba(255,255,255,.92);
  --accent:#f7b733;

  /* FIXED HEX GEOMETRY */
  --hexW: 350px;
  --hexH: calc(var(--hexW) * 1); /* flat-top hex */

  /* 0 = touching perfectly; +2px = tiny overlap (usually looks best) */
  --join: 6px;

  /* For flat-top hex grid */
  --stepX: calc(var(--hexW) * 0.75 - var(--join));
  --stepY: calc(var(--hexH) * 0.46 - var(--join));
}

*{ box-sizing:border-box; }
/* html overflow убран чтобы не мешать sticky header */
/* Для предотвращения горизонтального скролла используем max-width на контейнерах */
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--fg);
  background: #0e0e0f;
  overflow-x: hidden;
  /* Важно: overflow-y должен быть auto для sticky header (не hidden!) */
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 140% 80% at 50% 20%, rgba(50, 40, 60, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 80%, rgba(40, 35, 55, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 120% 70% at 20% 60%, rgba(45, 38, 58, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, rgba(48, 46, 52, 0.8) 0%, rgba(45, 44, 48, 0.95) 50%, rgba(43, 42, 46, 1) 100%),
    linear-gradient(135deg, #3a383d 0%, #373839 50%, #333436 100%);
  opacity: 1;
  mix-blend-mode: overlay;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse 80% 80% at 50% 50%,
      transparent 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0.02) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.018) 1px,
      rgba(255, 255, 255, 0.018) 2px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.012) 1px,
      rgba(255, 255, 255, 0.012) 2px
    ),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 3px
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 30%
    );
  opacity: 0.75;
  mix-blend-mode: overlay;
  filter: contrast(1.3) brightness(0.92);
  z-index: -1;
}

/* Grain texture overlay */
body {
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 140% 80% at 50% 20%, rgba(30, 20, 40, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 80%, rgba(20, 15, 35, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 120% 70% at 20% 60%, rgba(25, 18, 38, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 12, 0.8) 0%, rgba(5, 4, 8, 0.95) 50%, rgba(3, 2, 6, 1) 100%),
    linear-gradient(135deg, #0a080d 0%, #050608 50%, #030406 100%);
  opacity: 1;
  mix-blend-mode: overlay;
  z-index: -2;
}


.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 36px;
}

header:not(.op-header){ 
  text-align:center; 
  margin-bottom: 26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
header:not(.op-header)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 5px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 16px rgba(255, 255, 255, 0.6),
    0 0 24px rgba(255, 255, 255, 0.4),
    0 0 32px rgba(255, 255, 255, 0.2);
}
.logo{
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 10px;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.2);
}

/* Onepage Header Styles */
.op-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
  padding: var(--op-space-lg) 0;
  background: transparent !important;
}

.op-header--sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: var(--op-z-sticky) !important;
  width: 100%;
}

.op-header--sticky.is-scrolled {
  background: var(--bg) !important;
  background: rgba(11, 13, 16, 0.95) !important;
  backdrop-filter: blur(10px);
}

.op-header__logo-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.op-header__logo-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 5px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 16px rgba(255, 255, 255, 0.6),
    0 0 24px rgba(255, 255, 255, 0.4),
    0 0 32px rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.op-header .op-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.op-header .logo {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 10px;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.2);
}

.op-header__nav-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.op-header .op-nav {
  display: flex;
  gap: var(--op-space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.op-header .op-nav__link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--op-font-medium);
  transition: color var(--op-transition-fast);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.op-header .op-nav__link:hover,
.op-header .op-nav__link--active,
.op-header .op-nav__link.menu-current {
  color: var(--accent);
}

.op-header .op-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--op-space-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
}

.op-nav-close {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  line-height: 1;
  transition: color var(--op-transition-fast);
}

.op-nav-close:hover {
  color: var(--accent);
}

/* Mobile styles */
@media (max-width: 767px) {
  .op-header .op-nav-toggle {
    display: block;
  }
  
  .op-header__nav-wrapper {
    width: 100%;
    justify-content: flex-end;
  }
  
  .op-header .op-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg);
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--op-space-3xl) var(--op-space-xl);
    padding-top: 60px;
    box-shadow: var(--op-shadow-xl);
    transition: right var(--op-transition-base);
    z-index: var(--op-z-modal);
    gap: var(--op-space-lg);
    list-style: none;
    margin: 0;
    overflow-y: auto;
  }
  
  .op-nav-close {
    display: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    cursor: pointer;
    z-index: calc(var(--op-z-modal) + 1);
    padding: 0;
    line-height: 1;
    transition: color var(--op-transition-fast);
  }
  
  .op-nav-close:hover {
    color: var(--accent);
  }
  
  .op-nav-close__icon {
    display: block;
    line-height: 1;
  }
  
  /* Show close button only when menu is open - use class for reliable control */
  .op-nav-close.is-visible {
    display: block !important;
  }
  
  /* Always hide when not visible class */
  .op-nav-close:not(.is-visible) {
    display: none !important;
  }
  
  .op-header .op-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .op-header .op-nav__link {
    display: block;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: var(--op-space-md) 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color var(--op-transition-fast);
  }
  
  .op-header .op-nav__link:hover,
  .op-header .op-nav__link--active,
  .op-header .op-nav__link.menu-current {
    color: var(--accent) !important;
  }
  
  .op-header .op-nav.is-open {
    display: flex !important;
    right: 0;
  }
  
  /* Ensure nav items are visible */
  .op-header .op-nav.is-open li {
    display: list-item;
    width: 100%;
  }
  
  .op-header .op-nav.is-open a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ==== Honeycomb stage ==== */
.honeycomb{
  display:flex;
  justify-content:center;
  padding: 10px 0 26px;
}

/* ==== Gallery ==== */
.gallery-section{
  margin-top: 40px;
  padding: 26px 0 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.gallery-header{
  text-align:center;
  margin-bottom: 16px;
}
.gallery-title{
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.9);
}
.gallery-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 10px;
}
.gallery-item{
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  padding: 20px;
}
.gallery-item:hover img{
  transform: scale(1.05);
}
@media (max-width: 820px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px){
  .gallery-grid{
    grid-template-columns: 1fr;
  }
}

/* Gallery Modal */
.gallery-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.gallery-modal.is-open{
  display: flex;
}
.gallery-modal-content{
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-img{
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.gallery-modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10001;
}
.gallery-modal-close:hover{
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,1);
}
.gallery-modal-prev,
.gallery-modal-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10001;
}
.gallery-modal-prev:hover,
.gallery-modal-next:hover{
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,1);
}
.gallery-modal-prev{
  left: 20px;
}
.gallery-modal-next{
  right: 20px;
}
@media (max-width: 680px){
  .gallery-modal-prev,
  .gallery-modal-next{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .gallery-modal-prev{
    left: 10px;
  }
  .gallery-modal-next{
    right: 10px;
  }
  .gallery-modal-close{
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ==== Testimonials ==== */
.testimonials{
  margin-top: 40px;
  padding: 26px 0 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.testimonials-header{
  text-align:center;
  margin-bottom: 16px;
}
.testimonials-title{
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.9);
}
.testimonials-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.testimonials-slider{
  position: relative;
  margin-top: 10px;
  padding: 18px 52px;
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, rgba(247,183,51,.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(247,183,51,.10), transparent 55%),
              rgba(0,0,0,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  overflow:hidden;
}
.testimonials-viewport{
  overflow:hidden;
}
.testimonials-track{
  display:flex;
  transition: transform .4s ease;
  will-change: transform;
}
.testimonial-slide{
  min-width: 100%;
  padding: 4px 0;
}
.testimonial-card{
  text-align:center;
  max-width: 540px;
  margin: 0 auto;
}
.testimonial-name{
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  margin-bottom: 2px;
}
.testimonial-meta{
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.testimonial-quote{
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0 auto 10px;
}
.testimonial-quote::before,
.testimonial-quote::after{
  content: "“";
  opacity: .55;
  margin: 0 2px;
}
.testimonial-quote::after{
  content: "”";
}
.testimonial-stars{
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
}
.testimonial-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.86);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.testimonial-nav:hover{
  background: rgba(0,0,0,.9);
  border-color: rgba(247,183,51,.9);
  box-shadow: 0 0 14px rgba(247,183,51,.45);
  transform: translateY(-50%) scale(1.05);
}
.testimonial-nav:active{
  transform: translateY(-50%) scale(.97);
  box-shadow: none;
}
.testimonial-nav-prev{ left: 12px; }
.testimonial-nav-next{ right: 12px; }
.testimonial-nav-icon{
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}
.testimonial-dots{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  gap: 8px;
}
.testimonial-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.testimonial-dot.is-active{
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 680px){
  .testimonials-slider{
    padding: 18px 34px;
  }
  .testimonial-nav{
    width: 28px;
    height: 28px;
  }
  .testimonial-quote{
    font-size: 13px;
  }
}

/* ==== Social Links ==== */
.social-section{
  margin-top: 48px;
  padding: 62px 0 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
}
.social-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.social-link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 24px rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
}
.social-link:hover{
  border-color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.50);
  color: rgba(255,255,255,.98);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 4px 32px rgba(255,255,255,.12);
}
.social-link:active{
  transform: translateY(0);
}
.social-link svg{
  width: 28px;
  height: 28px;
  fill: currentColor;
}
@media (max-width: 520px){
  .social-section{
    margin-top: 36px;
    padding: 24px 0;
  }
  .social-links{
    gap: 24px;
  }
  .social-link{
    width: 48px;
    height: 48px;
  }
  .social-link svg{
    width: 24px;
    height: 24px;
  }
}

/* ==== Contact ==== */
.contact-section{
  margin-top: 32px;
  padding: 50px 0 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info{
  text-align: center;
}
.contact-title{
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}
.contact-sub{
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.6px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.86);
}
.contact-label{
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-right: 6px;
}
.contact-row{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.contact-map-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.contact-map-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 20px;
}
.contact-map-placeholder.hidden{
  display: none;
}
.contact-map-btn{
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.9);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}
.contact-map-btn:hover{
  background: rgba(0,0,0,.7);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,1);
}
.contact-map-btn:active{
  transform: scale(0.98);
}
.contact-map-container{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.contact-map-container.is-loaded{
  display: block;
}
.contact-map-container iframe{
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 820px){
  .contact-inner{
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 520px){
  .contact-section{
    margin-top: 26px;
    padding-top: 24px;
  }
  .contact-sub{
    font-size: 12px;
  }
  .contact-grid{
    font-size: 13px;
  }
}

.stage{
  position: relative;
  transform-origin: top center;
}

/* DESKTOP stage size (exact geometry bounds) */
.stage.desktop{
  width: calc(var(--hexW) + 2 * var(--stepX));     /* W + 2*stepX */
  height: calc(2 * var(--hexH));                   /* 2H (top row + bottom row) */
}

/* Responsive scaling (do NOT change --hexW in breakpoints, only scale) */
@media (max-width: 980px){ .stage.desktop{ transform: scale(.92); } }
@media (max-width: 880px){ .stage.desktop{ transform: scale(.85); } }

/* TABLET stage size (stair layout) */
.stage.tablet{
  width: calc(var(--hexW) + var(--stepX));
  height: calc(var(--hexH) + 4 * var(--stepY));    /* H + 4*(H/2) = 3H */
  transform: scale(.92);
}

/* MOBILE uses flex stack (no absolute layout) */
.stage.mobile{
  width: min(92vw, var(--hexW));
  display:flex;
  flex-direction:column;
  gap: 0px;
}

/* ==== Hex component ==== */


.hex{
  position:absolute;
  width: var(--hexW);
  height: var(--hexH);
  filter: drop-shadow(0 0 18px rgba(255,255,255,.08));
  transition: transform .18s ease, filter .18s ease;
}


.hex .frame,
.hex .content{
  position:absolute;
  inset:0;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.hex .frame{
  border: 4px solid var(--line);
  background: rgb(255, 255, 255);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 16px rgba(255, 255, 255, 0.6),
    0 0 24px rgba(255, 255, 255, 0.4),
    0 0 32px rgba(255, 255, 255, 0.2);
}

.hex .content{
  inset: 6px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px 16px;
  background:
    radial-gradient(900px 420px at 40% 20%, rgba(61, 61, 61, 0.5), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72));
  overflow:hidden;
}

.hex .label{
  width:100%;
  text-align:center;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 16px rgba(0,0,0,.55);
}
.hex .sub{
  display:block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(255,255,255,.62);
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Brand hex (3) */
.hex.brand .frame{
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(24, 24, 24, 0.18) inset, 0 0 34px rgba(43, 43, 43, 0.35);
}
.hex.brand .content{
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(900px 420px at 40% 20%, rgba(255,255,255,.08), transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,90));
}
.hex.brand .label{ width: 100%; }

/* Center offer */
.hex.brand .offer{
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 8px 10px;
  text-align:center;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0,0,0,.55);
}
.hex.brand .offer .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(247,183,51,.55);
  background: rgba(0,0,0,.35);
  color: rgba(247,183,51,.98);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 2px;
}
.hex.brand .offer .percent{
  color: rgba(247,183,51,.98);
  font-weight: 950;
  font-size: 60px;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(247,183,51,.18);
}
.hex.brand .offer .title{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
}
.hex.brand .offer .dates{
  color: rgba(255,255,255,.66);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1.8px;
}

/* Background images for hex sections */
.hex.pos1 .content{
  background-image: 
    radial-gradient(900px 420px at 40% 20%, rgba(61, 61, 61, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    url('/media/images/herren.png');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hex.pos2 .content{
  background-image: 
    radial-gradient(900px 420px at 40% 20%, rgba(61, 61, 61, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    url('/media/images/beard.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hex.pos4 .content{
  background-image: 
    radial-gradient(900px 420px at 40% 20%, rgba(61, 61, 61, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    url('/media/images/kinder.png');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hex.pos5 .content{
  background-image: 
    radial-gradient(900px 420px at 40% 20%, rgba(61, 61, 61, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)),
    url('/media/images/damen.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* ===== DESKTOP POSITIONS (TOUCHING CORRECTLY) =====
   1        2
      3
   4        5
   Here:
   1 at (0,0)
   2 at (2*stepX,0)
   3 at (stepX,stepY)
   4 at (0,2*stepY)
   5 at (2*stepX,2*stepY)
   Note: 2*stepY == hexH (when join=0), so 4/5 become bottom row
*/
.desktop .pos1{ left: 0;                 top: 0; }
.desktop .pos2{ left: calc(2 * var(--stepX)); top: 0; }
.desktop .pos3{ left: var(--stepX);      top: var(--stepY); }
.desktop .pos4{ left: 0;                 top: calc(2 * var(--stepY)); }
.desktop .pos5{ left: calc(2 * var(--stepX)); top: calc(2 * var(--stepY)); }

/* ===== TABLET “STAIR” (touching) =====
   1
     2
   3
     5
   4
*/
.tablet .pos1{ left: 0;            top: 0; }
.tablet .pos2{ left: var(--stepX); top: var(--stepY); }
.tablet .pos3{ left: 0;            top: calc(2 * var(--stepY)); }
.tablet .pos5{ left: var(--stepX); top: calc(3 * var(--stepY)); }
.tablet .pos4{ left: 0;            top: calc(4 * var(--stepY)); }

/* ===== MOBILE STACK ===== */
@media (max-width: 520px){
  .stage.mobile{
gap: 0 !important;
  }

  .stage.mobile .hex{
    font-size: initial;
  }

  .hex{
    position: relative !important;
    left:auto !important; top:auto !important;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 0.8660254;
    margin: 0 !important;
    margin-bottom: -10px !important;
    filter: none !important;
  }
  /* Important: on mobile we make the hex that reaches the edges of the container */
  .stage.mobile .hex .frame,
  .stage.mobile .hex .content{
clip-path: polygon(
  25% 0%,
  75% 0%,
  100% 50%,
  75% 100%,
  25% 100%,
  0% 50%
);
  }

    .stage.mobile .hex .content{
inset: 10px;
  }
}

/* ==== Footer ==== */
footer{
  margin-top: 48px;
  padding: 50px 0 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h4{
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}
.footer-section p{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.footer-section ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li{
  margin-bottom: 8px;
}
.footer-section a{
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-section a:hover{
  color: rgba(255,255,255,.9);
}
.footer-bottom{
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.footer-bottom a{
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom a:hover{
  color: rgba(255,255,255,.9);
}
@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
@media (max-width: 520px){
  footer{
    margin-top: 36px;
    padding: 36px 0 20px;
  }
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
  }
  .footer-section h4{
    font-size: 13px;
  }
  .footer-section p,
  .footer-section a{
    font-size: 12px;
  }
}
