:root{
  --bg:#0b0f14; --card:#101824; --text:#eaf0ff; --muted:#a9b6d3;
  --accent:#67b0ff; --line: rgba(255,255,255,.12);
  --shadow: 0 16px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --container: 1120px;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{min-height:100%; height:auto; scroll-behavior:smooth}
html{background: var(--bg);}
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:17px; line-height:1.65;
  min-height:100vh;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(85,136,229,.22), transparent 55%),
              radial-gradient(900px 600px at 90% 20%, rgba(255,200,58,.18), transparent 60%),
              radial-gradient(1200px 700px at 20% 90%, rgba(85,136,229,.18), transparent 55%),
              radial-gradient(900px 600px at 85% 85%, rgba(255,200,58,.16), transparent 60%),
              var(--bg);
  background-attachment: fixed;
  color:var(--text);
  display:flex; flex-direction:column;
  overflow-y: scroll;
}

.page-fade{
  opacity:0;
  transform: translateY(8px);
  animation: pageFadeIn .55s ease forwards;
}
@keyframes pageFadeIn{
  to{
    opacity:1;
    transform: translateY(0);
  }
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 18px}

/* Header / Nav */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,20,.60);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; gap:14px;
  position: relative;
}

.brand{display:flex; align-items:center; gap:10px; font-weight:700}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.brand-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.menu{
  display:flex;
  flex-wrap: nowrap;      
  gap:10px;
  justify-content:flex-end;
  white-space: nowrap;    
  min-width:0;
  overflow:hidden;
}

.nav{ min-width:0; }
.menu{ min-width:0; overflow:hidden; }

.menu a{
  padding:10px 12px; border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition:.2s ease;
  font-weight:600; font-size:14px;
  flex: 0 0 auto;
}
.menu a:hover{color:var(--text); border-color: var(--line); background: rgba(255,255,255,.04)}
.menu a.active{color:var(--text); border-color: rgba(103,176,255,.45); background: rgba(103,176,255,.10)}

main{padding: 26px 0 16px; flex:1}
.section-card{
  background: rgba(16,24,36,.70);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section-inner{padding:22px}
h1,h2{margin:0 0 10px}
h1{font-size:34px}
h2{font-size:26px}
p{margin:0 0 10px; color:var(--muted); line-height:1.6}
.grid{display:grid; grid-template-columns: 1.4fr .6fr; gap:16px}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }
.two-col{display:grid; grid-template-columns: 1fr 1fr; gap:14px}

.location{padding: 18px 0 10px}
.location h2{margin:0 0 12px}
.location-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:start}
.location-grid--reverse{grid-template-columns: .8fr 1.2fr}
@media (max-width: 980px){ .location-grid, .location-grid--reverse{grid-template-columns:1fr} }
.location-text p{margin:0 0 10px}
.location-media{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  min-height:260px;
}
.location-media img{width:100%; height:100%; object-fit:cover; display:block}

.folder{padding: 18px 0 10px}
.folder-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  color:var(--text);
  font-weight:700;
  font-size:18px;
  cursor:pointer;
}
.folder-icon{transition: transform .25s ease}
.folder-toggle[aria-expanded="true"] .folder-icon{transform: rotate(180deg)}
.folder-content{
  max-height:0;
  overflow:hidden;
  transition: max-height .9s ease-in-out;
}
.folder-content-inner{
  padding: 4px 0 0;
  opacity:0;
  transition: opacity .9s ease-in-out;
}
.folder.is-open .folder-content{max-height: 4000px}
.folder.is-open .folder-content-inner{opacity:1}
@media (max-width: 860px){ .two-col{grid-template-columns:1fr} }
.list{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}
.kpi-card{
  padding:14px; border-radius:16px; border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.kpi-card--icon{
  display:flex;
  gap:10px;
  align-items:center;
}
.kpi-card b{display:block; font-size:15px}
.kpi-card span{color:var(--muted); font-size:15px}

/* Hero Slider (только для index.html) */
.hero{padding: 22px 0 10px}

.info{padding: 10px 0 16px}
.info-columns{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.info-card{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
}
.info-card h3{
  margin:0 0 12px;
  font-size:18px;
}
.info-actions{
  margin-top:12px;
}
.info-actions .btn{
  width:100%;
}
.info-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
@media (max-width: 720px){
  .info-list{grid-template-columns:1fr}
}
.info-item{
  display:flex;
  gap:8px;
  align-items:flex-start;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
}
.info-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.info-icon img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}
.info-text{color:var(--text); font-weight:600}

.slider{
  position:relative; height:620px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:#0b0f14;
}
@media (max-width: 720px){
  .slider{height:460px}
  h1{font-size:28px}
  .hero-overlay{flex-direction:column; align-items:flex-start; gap:10px}
  .hero-info{max-width:100%; text-align:left; align-self:flex-start}
  .chips{gap:8px; justify-content:center}
  .chip{font-size:12px; padding:8px 10px}
  .cta{width:100%; justify-content:flex-start}
  .cta .btn{width:100%}
}
.slide{position:absolute; inset:0; opacity:0; transition: opacity 900ms ease}
.slide.active{opacity:1}
.slide img{width:100%; height:100%; object-fit:cover; transform:scale(1.03)}
.slider::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 68%, rgba(0,0,0,.70) 100%);
  pointer-events:none;
}
.hero-overlay{
  position:absolute; left:18px; right:18px; bottom:18px;
  display:flex; gap:12px; align-items:flex-end; justify-content:space-between;
  z-index:2;
}
.hero-info{max-width:720px}
.hero-info p{color: rgba(234,240,255,.82)}
.chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.chip{
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(234,240,255,.88);
  font-weight:600; font-size:13px;
}
.cta{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700; font-size:14px;
  transition:.2s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn.primary{
  border-color: rgba(103,176,255,.55);
  background: rgba(103,176,255,.14);
}
.telegram-float{
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #42bffb 0%, #229ed9 100%);
  box-shadow: 0 18px 40px rgba(34, 158, 217, .32);
  border: 1px solid rgba(255,255,255,.28);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  animation: telegramFloat 3.2s ease-in-out infinite;
}
.telegram-float:hover{
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 24px 46px rgba(34, 158, 217, .42);
  filter: saturate(1.05);
}
.telegram-float:focus-visible{
  outline: 3px solid rgba(255,255,255,.85);
  outline-offset: 4px;
}
.telegram-float__icon{
  width: 32px;
  height: 32px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.telegram-float__icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
@keyframes telegramFloat{
  0%, 100%{transform: translateY(0)}
  50%{transform: translateY(-6px)}
}
@media (max-width: 720px){
  .telegram-float{
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 60px;
    height: 60px;
  }
  .telegram-float__icon{
    width: 28px;
    height: 28px;
  }
}
.dots{
  position:absolute; left:18px; top:18px;
  display:flex; gap:8px; z-index:3;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(11,15,20,.35);
  backdrop-filter: blur(10px);
}

.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .45s ease, visibility .45s ease;
}
.modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  opacity:0;
  transition: opacity .45s ease;
}
.modal.is-open .modal-backdrop{opacity:1}

body.modal-blur > :not(.modal){filter: blur(6px)}
.modal-dialog{
  position:relative;
  width:min(560px, 92vw);
  z-index:1;
  transform: translateY(14px) scale(.98);
  transition: transform .45s ease;
}
.modal.is-open .modal-dialog{transform: translateY(0) scale(1)}
.modal-content{
  background: rgba(255,255,255,.10);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}
.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  border:none;
  background: transparent;
  color:var(--text);
  font-size:22px;
  cursor:pointer;
}
.modal-form{display:grid; gap:12px}
.field{display:grid; gap:6px; font-weight:600}
.field input,
.field select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  color:var(--text);
}
.field select{
  appearance:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(135deg, transparent 50%, rgba(234,240,255,.8) 50%),
    linear-gradient(225deg, transparent 50%, rgba(234,240,255,.8) 50%);
  background-position: center, calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: auto, 6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:38px;
}
.field select:focus{
  outline:none;
  border-color: rgba(103,176,255,.55);
  box-shadow: 0 0 0 3px rgba(103,176,255,.2);
}
.field select option{
  background:#1f1f1f;
  color:#eaf0ff;
}
.modal-success{display:grid; gap:8px; text-align:center}
.form-status{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:600;
}
.form-status[hidden]{
  display:none !important;
}
.form-status--error{
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.42);
  color:#ffd7d7;
}
.btn[disabled]{
  opacity:.7;
  cursor:wait;
  transform:none;
}
.dot{
  width:10px; height:10px; border-radius:99px;
  background: rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.18);
  transition:.2s ease;
  cursor:pointer;
}
.dot.active{background: rgba(103,176,255,.90); border-color: rgba(103,176,255,.85)}

/* Gallery page */
.rules-hero{
  padding: 12px 0 10px;
}
.rules-hero-media{
  position:relative;
  height:520px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.rules-hero-media img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.about-stack{
  padding-top: 12px;
}
.about-block{
  padding: 16px 0 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.about-block.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.about-hero-media{
  position:relative;
  height:520px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 12px auto 18px;
  max-width: 1040px;
}
@media (max-width: 720px){
  .about-block{padding: 20px 0 26px}
}
.about-hero-slider{
  position:relative;
  height:100%;
}
.about-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 900ms ease;
}
.about-slide.active{
  opacity:1;
}
.about-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:3;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(11,15,20,.45);
  color: var(--text);
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(8px);
  transition:.2s ease;
}
.about-arrow:hover{
  background: rgba(11,15,20,.65);
  transform: translateY(-50%) scale(1.03);
}
.about-arrow--prev{left:14px;}
.about-arrow--next{right:14px;}

.about-map{
  margin-top: 16px;
}

.about-back{
  padding: 6px 0 26px;
  text-align:center;
}
.about-back .btn{
  min-width: 180px;
}
.rules-hero-overlay{
  position:absolute; inset:0;
  display:flex; align-items:flex-end; justify-content:flex-start;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 80%);
  color:var(--text);
  text-align:left;
  padding: 18px;
}
.rules-hero-overlay h1{margin:0; font-size:38px}
@media (max-width: 720px){
  .rules-hero-media{height:360px}
  .rules-hero-overlay h1{font-size:28px}
}

.booking-grid{
  grid-template-columns: 1.2fr .8fr;
  align-items:center;
}
@media (max-width: 980px){
  .booking-grid{grid-template-columns:1fr; gap:18px}
}
.booking-actions{
  display:grid;
  gap:12px;
  justify-items:end;
}
.booking-action{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  transition:.2s ease;
  width: 280px;
  max-width:100%;
}
.booking-action:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
.booking-action--call{
  border-color: rgba(52,199,89,.6);
  background: rgba(52,199,89,.16);
}
.booking-action--call:hover{
  background: rgba(52,199,89,.22);
}
.booking-action--call .booking-icon{
  border-color: rgba(52,199,89,.6);
  background: rgba(52,199,89,.22);
}
.booking-action--call .booking-label{
  color: var(--text);
}
.booking-action--telegram{
  border-color: rgba(47,167,236,.55);
  background: rgba(47,167,236,.16);
}
.booking-action--telegram:hover{
  background: rgba(47,167,236,.22);
}
.booking-action--telegram .booking-icon{
  border-color: rgba(47,167,236,.55);
  background: rgba(47,167,236,.22);
}
.booking-action--telegram .booking-label{
  color: var(--text);
}
@media (max-width: 720px){
  .booking-actions{justify-items:center; justify-content:center}
  .booking-action{width:100%; max-width:320px; margin-left:auto; margin-right:auto}
}
.booking-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color: rgba(103,176,255,1);
}
.booking-icon img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}
.booking-label{font-size:15px}

.booking-pricing{
  margin-top:16px;
}
.booking-pricing-grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .booking-pricing-grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 720px){
  .booking-pricing-grid{grid-template-columns: 1fr}
}
.booking-steps{
  margin-top:16px;
}
.booking-cta{
  margin-top:16px;
}
.booking-cta-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:0;
  align-items:start;
}
@media (max-width: 980px){
  .booking-cta-grid{grid-template-columns:1fr; gap:16px}
}
.booking-cta-actions{
  display:grid;
  gap:12px;
  margin-bottom:12px;
  justify-items:start;
}
@media (max-width: 720px){
  .booking-cta-actions{justify-items:center}
}
.booking-form{
  display:grid;
  gap:12px;
}
.booking-form h3{
  margin:0 0 6px;
}
.booking-form .field{
  display:grid;
}
.booking-form .field[style*="display:none"]{
  display:none !important;
}

.rules-subtitle{margin:0 0 10px}
.rules-heading{margin:16px 0 10px}
.rules-kpi{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px){
  .rules-kpi{grid-template-columns: repeat(3, 1fr)}
  .booking-steps .rules-kpi{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 720px){
  .rules-kpi{grid-template-columns: repeat(2, 1fr)}
  .booking-steps .rules-kpi{grid-template-columns:1fr}
}

.booking-pricing .rules-kpi{
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px){
  .booking-pricing .rules-kpi{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 720px){
  .booking-pricing .rules-kpi{grid-template-columns: 1fr}
}
.rules-note{margin-top:8px; font-size:13px; color:var(--muted)}
.rules-callout{
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.rules-callout-title{display:block; margin-bottom:6px}
.rules-columns{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(2, 1fr);
}
.rules-columns--single{
  grid-template-columns: minmax(0, 960px);
}
@media (max-width: 720px){
  .rules-columns{grid-template-columns:1fr}
  .rules-columns--single{grid-template-columns:1fr}
}
.rules-block{display:flex; flex-direction:column}
.rules-list li{margin-bottom:6px}
.rules-card{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.rules-gallery{
  margin:16px 0;
  display:grid;
  gap:12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px){
  .rules-gallery{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 720px){
  .rules-gallery{grid-template-columns:1fr}
}
.rules-gallery-item{display:flex; flex-direction:column; gap:6px}
.rules-gallery-media{
  height:140px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  background-size:cover;
  background-position:center;
}
.rules-gallery-label{font-size:13px; color:var(--muted)}

.rules-animate{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.rules-animate.is-visible{
  opacity:1;
  transform: translateY(0);
}

.error-page{
  padding: 22px 0 28px;
}
.error-hero{
  position:relative;
  min-height: calc(100vh - var(--header-h, 72px) - 50px);
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:#0b0f14;
}
.error-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(5,7,10,.48) 0%, rgba(5,7,10,.64) 36%, rgba(5,7,10,.78) 100%),
    url("images/rules/rules.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.error-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, rgba(255,255,255,.06), transparent 45%);
  pointer-events:none;
}
.error-hero-inner{
  position:relative;
  z-index:1;
  min-height: inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px 24px;
}
.error-hero-copy{
  max-width: 760px;
  display:grid;
  gap:18px;
}
.error-hero-kicker{
  margin:0;
  color: rgba(234,240,255,.88);
  font-size:20px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.error-hero-title{
  margin:0;
  font-size: clamp(88px, 14vw, 180px);
  line-height:.9;
  font-weight:800;
  color:#fff;
  text-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.error-hero-text{
  margin:0 auto;
  max-width: 560px;
  color: rgba(234,240,255,.82);
  font-size:18px;
}
.error-hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}
.btn.ghost-strong{
  background: rgba(7,10,14,.2);
  border-color: rgba(255,255,255,.7);
}
.btn.ghost-strong:hover{
  background: rgba(255,255,255,.12);
}
@media (max-width: 720px){
  .error-page{
    padding: 16px 0 22px;
  }
  .error-hero{
    min-height: calc(100vh - var(--header-h, 72px) - 32px);
  }
  .error-hero-inner{
    padding:40px 18px;
  }
  .error-hero-kicker{
    font-size:16px;
  }
  .error-hero-text{
    font-size:16px;
  }
  .error-hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .error-hero-actions .btn{
    width:100%;
  }
}

/* ===== GALLERY SECTION (WORKING) ===== */

/* ВАЖНО: чтобы наложения НЕ резались контейнерами */
.gallery-page,
.gallery-stage,
.gallery-grid{
  overflow: visible;
}

/* Если галерея внутри .section-card (у тебя overflow:hidden) — включи это:
   Можно оставить именно так, чтобы не ломать другие секции. */

.gallery-page{
  padding: 12px 0 10px;
}

/* stage — контейнер галереи */
.gallery-stage{
  position: relative;
  margin: 0 auto;
  max-width: 1200px;

  --gap: 28px;
  --rowH: 320px;
  --colL: 1fr;
  --colR: 1fr;
}

/* Сетка фото */
.gallery-grid{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--colL)) minmax(0, var(--colR));
  gap: var(--gap);
  grid-auto-rows: var(--rowH);
  margin: 0 auto;
  padding: 0 18px;
  max-width: 1120px;
}

/* карточки */
.gallery-tile{
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  will-change: transform, opacity;
  transform: translate(var(--offset-x, 0px), var(--offset-y, 0px));
}

.gallery-tile.is-visible{
  opacity: 1;
  transform: translate(0, 0);
}

.gallery-tile.is-leaving{
  opacity: 0;
  transform: translate(0, 0) scale(0.98);
}

.gallery-tile:nth-child(1){
  border-top-left-radius: 18px;
}
.gallery-tile:nth-child(2){
  border-top-right-radius: 18px;
}
.gallery-tile:nth-child(3){
  border-bottom-left-radius: 18px;
}
.gallery-tile:nth-child(4){
  border-bottom-right-radius: 18px;
}

.gallery-tile:nth-child(1){ --offset-y: -20px; }
.gallery-tile:nth-child(2){ --offset-x: -20px; }
.gallery-tile:nth-child(3){ --offset-x: 20px; }
.gallery-tile:nth-child(4){ --offset-y: 20px; }

.gallery-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.gallery-tile:hover img,
.gallery-tile.is-pressed img{
  transform: scale(1.03);
}

.gallery-tile::after{
  content: "";
  position:absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.5);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(255,255,255,.35);
}

.gallery-tile:hover::after,
.gallery-tile.is-pressed::after{
  opacity: 1;
  transform: scale(1);
}

/* Раскладка */
.gallery-tile:nth-child(1){ grid-column: 1; grid-row: 1 / span 2; }
.gallery-tile:nth-child(2){ grid-column: 2; grid-row: 1; }
.gallery-tile:nth-child(3){ grid-column: 1; grid-row: 3; }
.gallery-tile:nth-child(4){ grid-column: 2; grid-row: 2 / span 2; }

/* ===== MENU (tabs) — не пропадает дизайн ===== */
.gallery-tabs{
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 40;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin: 8px auto 0;
  padding: 10px 14px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(11,15,20,.35);
  backdrop-filter: blur(10px);
}

.gallery-tab{
  appearance:none;
  -webkit-appearance:none;

  border: 1px solid transparent;
  background: transparent;
  color: var(--text);

  padding: 8px 12px;
  border-radius: 12px;

  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.gallery-tab:hover{
  color: rgba(103,176,255,.95);
}

.gallery-tab.is-active{
  color: rgba(103,176,255,1);
  border-color: transparent;
  background: transparent;
}

.gallery-sep{
  color: rgba(234,240,255,.45);
  font-weight:700;
  padding: 0 2px;
}

/* ===== Mobile ===== */
@media (max-width: 720px){
  body[data-page="gallery"] .header{
    position: static;
  }
  .gallery-stage{
    max-width: 100%;
    padding: 0 16px;
    --rowH: 220px;
    --overlapY: 0px;
    --overlapX: 0px;
    --introInset: 0px;
  }

  .gallery-intro{
    position: static;
    transform: none;
    width: 100%;
    margin: 0 0 12px;
    text-align: center;
  }

  .gallery-grid{
    grid-template-columns: 1fr;
    grid-auto-rows: var(--rowH);
  }

  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4){
    grid-column: auto;
    grid-row: auto;
    height: auto;
    align-self: stretch;
    margin-top: 0;
    transform: none;
    z-index: auto;
    border-radius: 0;
    --offset-x: 0px;
    --offset-y: 0px;
  }
  .gallery-tile:nth-child(1){
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .gallery-tile:nth-child(4){
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .gallery-tabs{
    width: 100%;
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items:stretch;
    top: 0;
    border-radius:0;
    margin: 8px 0 0;
    padding: 12px 10px;
  }
  .gallery-sep{
    display:none;
  }
  .gallery-tab{
    width:100%;
    padding: 10px 8px;
    font-size: 14px;
    text-align:center;
  }
}



/* Footer bar */
footer{padding: 18px 0 28px}
.footer-bar{
  border-top:1px solid var(--line);
  padding:18px 0 0;
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap:28px;
}
.footer-nav-group{
  display:grid;
  gap:14px;
}
.footer-heading{
  margin:0;
  color:var(--text);
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
}
.footer-nav-link{
  color:var(--muted);
  font-weight:700;
  font-size:15px;
  line-height:1.5;
  transition:.2s ease;
}
.footer-nav-link:hover{
  color:var(--text);
}
.footer-address{
  display:grid;
  gap:10px;
  justify-items:start;
}
.footer-copy{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.muted{color:var(--muted)}
.link{color: rgba(103,176,255,.95); font-weight:700}
.small{font-size:13px}
@media (max-width: 980px){
  .footer-bar{
    grid-template-columns:1fr;
    gap:18px;
  }
}
@media (max-width: 720px){
  footer{padding: 16px 0 24px}
  .footer-bar{
    gap:16px;
  }
  .footer-nav{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .footer-nav-link{
    font-size:16px;
  }
}

/* Кнопка "Меню" поверх шапки */
.menu-toggle{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display:inline-flex;
  visibility:hidden;
  pointer-events:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
  z-index: 2;
}

/* Панель выпадающего меню */
.menu-panel{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 60px); 
  bottom: 0;
  background: rgba(11,15,20,.70);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.10);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 999;
}

.menu-panel-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Ссылки внутри панели */
.menu-panel-inner a{
  padding: 14px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight:800;
  color: var(--text);
}

/* Режим "схлопнуто" */
.nav-collapsed .menu{ display:none !important; }
.nav-collapsed .menu-toggle{ 
  visibility: visible !important; 
  pointer-events: auto;
}

/* Fallback для мобильных: без JS показываем кнопку и скрываем меню */
@media (max-width: 980px){
  .menu{ display:none !important; }
  .menu-toggle{
    visibility: visible !important;
    pointer-events: auto;
  }
}

/* Открыто */
.nav-open .menu-panel{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Чтобы при открытом меню страница не скроллилась под ним */
.nav-open{ overflow: hidden; }

