/* ============== Семейный экшн-центр Лабиринт — основные стили ============== */
:root{
  --orange:#ff7a00;
  --orange-2:#ffb347;
  --black:#1a1a1a;
  --white:#ffffff;
  --bg:#fffaf3;
  --muted:#666;
  --border:#eee;
  --radius:18px;
  --shadow: 0 8px 30px rgba(255,122,0,.18);
  --font-display: 'Caveat Brush', 'Marker Felt', 'Comic Sans MS', cursive;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body); background:var(--bg); color:var(--black); line-height:1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1;
}
img{max-width:100%; display:block; border-radius:14px}
a{color:var(--orange); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px; margin:0 auto; padding:0 24px}
.muted{color:var(--muted)}
.alert{background:#ffe2e2; color:#8a0000; padding:12px 16px; border-radius:12px; margin:12px 0}
.alert.info{background:#e6f7ec; color:#15602b}

/* HEADER */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
  border-bottom:3px solid var(--orange);
}
.header-inner{display:flex; align-items:center; gap:20px; padding:14px 24px}
.logo{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--black); font-weight:800}
.logo-mark{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg,var(--orange),var(--orange-2));
  color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-size:22px;
  box-shadow:var(--shadow); animation:wiggle 4s ease-in-out infinite;
}
.logo-text{font-family:var(--font-display); font-size:22px}
.main-nav{display:flex; gap:18px; margin:0 auto}
.main-nav a{color:var(--black); font-weight:600; text-decoration:none; position:relative; padding:6px 4px}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:3px; width:0; background:var(--orange);
  transition:width .25s ease;
}
.main-nav a:hover::after{width:100%}
.header-actions{display:flex; gap:10px}
body{padding-top:78px}

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border-radius:14px; border:none; cursor:pointer;
  font-weight:700; font-size:15px; text-decoration:none; transition:transform .15s, box-shadow .2s;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,var(--orange),var(--orange-2)); color:#fff; box-shadow:var(--shadow)}
.btn-ghost{background:transparent; border:2px solid var(--black); color:var(--black)}
.btn-lg{padding:14px 26px; font-size:17px; border-radius:16px}
.btn-xl{padding:18px 38px; font-size:20px; border-radius:18px}
.btn-sm{padding:6px 12px; font-size:13px}

/* HERO */
.hero{position:relative; padding:80px 0 100px; overflow:hidden}
.hero-bg{
  position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255,179,71,.3), transparent 60%),
    radial-gradient(400px 200px at 0% 100%, rgba(255,122,0,.2), transparent 60%),
    var(--bg);
}
.hero-inner{text-align:center; padding:30px 0; position:relative; z-index:1}
.hero-title{font-family:var(--font-display); font-size:clamp(38px, 6vw, 72px); line-height:1.05; animation:fadeUp .8s ease}
.accent{color:var(--orange); display:inline-block; animation:wiggle 3s ease-in-out infinite}
.hero-sub{margin:18px auto 20px; max-width:640px; font-size:22px; color:var(--muted)}
.pulse{animation:pulse 2s ease-in-out infinite}
.hero-shapes{position:absolute; inset:0; z-index:-1; pointer-events:none}
.hero-shapes .shape{position:absolute; border-radius:50%; opacity:.25; filter:blur(3px)}
.shape.s1{width:100px;height:100px;background:var(--orange);top:25%;left:10%; animation:float 6s ease-in-out infinite}
.shape.s2{width:60px;height:60px;background:var(--black);top:75%;left:20%;animation:float 8s ease-in-out infinite reverse}
.shape.s3{width:140px;height:140px;background:var(--orange-2);top:35%;right:10%;animation:float 7s ease-in-out infinite}

/* ABOUT */
.about{padding:50px 0}
.about-text{max-width:820px; margin:0 auto; font-size:19px; text-align:center}

/* SECTIONS */
.section-title{font-family:var(--font-display); font-size:clamp(30px,4vw,48px); text-align:center; margin-bottom:8px}
.section-sub{text-align:center; color:var(--muted); margin-bottom:30px; font-size:17px}

/* EXCURSION (оранжевая секция со скруглённой волной снизу) */
.excursion-section{
  position:relative;
  background:linear-gradient(180deg,#ff8a14 0%, #ff7a00 100%);
  padding:80px 0 140px;
  margin-top:30px;
}
.excursion-section .section-title,
.excursion-section .section-sub{color:#fff}
.excursion-section .section-sub{opacity:.85}
.excursion-wave{
  position:absolute; left:0; right:0; bottom:-1px; width:100%; height:120px; display:block;
}
.videos{display:flex; gap:40px; justify-content:center; flex-wrap:wrap; margin-top:40px}
.video-card{width:300px; text-align:center}
.video-card figcaption{margin-top:14px; display:flex; flex-direction:column; gap:2px}
.video-card figcaption strong{font-size:18px}
.video-card figcaption span{color:#3a1f00; font-size:15px}
.video-frame{border-radius:22px; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,.25); background:#000}
.video-vertical{aspect-ratio:9/16}
.video-horizontal{aspect-ratio:16/9}
.video-frame video{width:100%; height:100%; object-fit:cover}

/* MOSAIC */
.advantages{padding:60px 0}
.mosaic{
  display:grid; gap:20px;
  grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px 160px;
  margin-top:30px;
}
.tile{
  background:#fff; border-radius:var(--radius); padding:22px;
  display:flex; flex-direction:column; justify-content:center;
  box-shadow:0 4px 18px rgba(0,0,0,.06); transition:transform .3s, box-shadow .3s;
  border:2px solid transparent;
}
.tile:hover{transform:translateY(-6px) rotate(-1deg); box-shadow:var(--shadow); border-color:var(--orange)}
.tile-icon{font-size:36px}
.tile h3{font-family:var(--font-display); margin:6px 0 4px; color:#000}
.tile-a{grid-column:span 1; grid-row:span 1; background:linear-gradient(135deg,var(--orange),var(--orange-2)); color:#fff}
.tile-a h3{color:#fff}
.tile-a .tile-text{color:#fff}
.tile-b{grid-column:span 1; grid-row:span 1; color:#000}
.tile-c{grid-column:span 1; grid-row:span 1; color:#000}
.tile-text{font-size:16px; line-height:1.4; color:#000}
.tile-d{grid-column:span 1; grid-row:span 1; background:var(--black); color:#fff}
.tile-d h3{color:#fff}
.tile-d .tile-text{color:#fff}
.tile-e{grid-column:span 1; grid-row:span 1; color:#000}
.tile-f{grid-column:span 1; grid-row:span 1; color:#000}
@media(max-width:900px){
  .mosaic{grid-template-columns:repeat(1,1fr); grid-auto-rows:auto}
  .tile-a,.tile-b,.tile-e{grid-column:span 1}
}

/* SCENARIOS BAR with horror button */
.scenarios-bar{background:var(--black); color:#fff; padding:40px 0; margin-top:40px}
.scenarios-bar-inner{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap}
.scenarios-bar .section-title{color:#fff; margin:0}
.btn-horror{
  position:relative; display:inline-block; padding:14px 26px;
  background:#222; color:#eee; border:2px solid #fff; border-radius:14px;
  font-weight:800; letter-spacing:.5px; cursor:pointer;
  text-decoration:none; overflow:hidden; transition: background .4s, color .4s, border-color .4s;
}
.btn-horror .drip{
  position:absolute; left:0; right:0; bottom:-2px; height:0;
  background:linear-gradient(to bottom,#7a0000,#3a0000);
  transition: height .6s cubic-bezier(.4,1.5,.3,1);
  z-index:0;
  border-radius: 0 0 60% 40% / 0 0 100% 100%;
}
.btn-horror span:not(.drip){position:relative; z-index:1}
.btn-horror:hover{background:#3a0000; color:#ffd2d2; border-color:#7a0000; text-decoration:none}
.btn-horror:hover .drip{height:80%}

/* SCENARIOS — круглые миниатюры + большое круглое hero-изображение */
.scenarios{padding:60px 0}
.scenario-viewer{display:flex; flex-direction:column; gap:40px}

.scenario-thumbs{
  display:flex; gap:30px; justify-content:center; flex-wrap:wrap; padding:10px 0;
}
.thumb{
  position:relative; width:140px; padding:8px 0 0; background:none; border:none; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  transition:transform .25s;
}
.thumb:hover{transform:translateY(-4px)}
.thumb-blob{
  position:absolute; top:-6px; left:50%; transform:translateX(-50%) scale(.6) rotate(-8deg);
  width:160px; height:160px;
  background:linear-gradient(135deg,var(--orange),var(--orange-2));
  border-radius:62% 38% 55% 45% / 50% 60% 40% 50%;
  opacity:0; transition:opacity .35s, transform .45s cubic-bezier(.4,1.6,.4,1);
  z-index:0;
}
.thumb.active .thumb-blob{opacity:1; transform:translateX(-50%) scale(1) rotate(-6deg); animation:blobMorph 8s ease-in-out infinite}
.thumb-circle{
  position:relative; z-index:1; width:120px; height:120px; border-radius:50%; overflow:hidden;
  background:#eee; box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.thumb-circle img{width:100%; height:100%; object-fit:cover; border-radius:50%}
.thumb-name{
  position:relative; z-index:1; font-weight:900; font-size:15px; color:var(--black); text-align:center;
  text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
}

.scenario-stage{position:relative; min-height:420px}
.scenario-slide{
  display:none; grid-template-columns:1.1fr 1fr; gap:50px; align-items:center;
  padding:20px 10px; animation:fadeUp .4s ease;
}
.scenario-slide.active{display:grid}
.scenario-info h3{font-family:var(--font-display); font-size:54px; margin-bottom:18px; color:var(--black)}
.scenario-desc{font-size:17px; line-height:1.7; color:#333; max-width:560px}
.badges{display:flex; gap:12px; margin:24px 0; flex-wrap:wrap}
.badge{
  padding:10px 16px; border-radius:14px; font-weight:700; font-size:15px;
  background:#fff3e3; color:#9a4a00; border:2px solid var(--orange-2);
}
.badge-people{background:#e8f0ff; color:#1a3a8a; border-color:#9bb6ff}
.badge-price{background:#e9ffea; color:#0c6a1c; border-color:#86d59a}

.scenario-hero{display:flex; justify-content:center}
.hero-circle{
  position:relative; width:380px; height:380px; max-width:90vw; max-height:90vw;
  border-radius:50%; overflow:hidden;
  background:linear-gradient(135deg,var(--orange),var(--orange-2));
  box-shadow:0 20px 50px rgba(255,122,0,.35);
  animation:floatY 6s ease-in-out infinite;
}
.hero-circle img{width:100%; height:100%; object-fit:cover; border-radius:50%}

@keyframes blobMorph{
  0%,100%{border-radius:62% 38% 55% 45% / 50% 60% 40% 50%}
  50%   {border-radius:45% 55% 38% 62% / 60% 45% 55% 40%}
}
@keyframes floatY{0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)}}

@media(max-width:780px){
  .scenario-slide{grid-template-columns:1fr; text-align:center}
  .scenario-info h3{font-size:42px}
  .badges{justify-content:center}
  .hero-circle{width:280px; height:280px}
  .thumb{width:110px}
  .thumb-circle{width:96px; height:96px}
  .thumb-blob{width:130px; height:130px}
}

/* HOW (по референсу: большое горизонтальное видео слева, текст справа) */
.how{padding:60px 0}
.how .section-title{text-align:left; margin-bottom:30px}
.how-grid{display:grid; grid-template-columns:1.6fr 1fr; gap:50px; align-items:center}
.how .video-frame{border-radius:18px; box-shadow:0 12px 40px rgba(0,0,0,.15)}
.how-text p{margin-bottom:14px; font-size:17px; color:#333; line-height:1.7}
@media(max-width:800px){.how-grid{grid-template-columns:1fr} .how .section-title{text-align:center}}

/* REVIEWS */
.reviews{padding:50px 0}
.reviews-viewport{position:relative; margin-top:30px}
.reviews-track{
  display:flex; gap:20px; overflow:hidden; scroll-behavior:smooth; padding:8px 0;
}
.review-card{
  flex:0 0 320px; background:#fff; border-radius:var(--radius); padding:18px;
  box-shadow:0 4px 16px rgba(0,0,0,.06); border-top:4px solid var(--orange);
}
.review-card header{display:flex; justify-content:space-between; margin-bottom:10px}
.stars{color:#ffb800; font-size:18px}
.review-photo{margin:10px 0; width:100%; max-height:200px; object-fit:cover}
.rv-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%; border:none; cursor:pointer;
  background:var(--orange); color:#fff; font-size:20px; box-shadow:var(--shadow); z-index:2;
}
.rv-prev{left:-10px} .rv-next{right:-10px}

/* FOOTER */
.site-footer{background:var(--black); color:#eee; padding:60px 0 30px; margin-top:60px}
.footer-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:30px}
.site-footer h4{margin-bottom:10px; color:var(--orange)}
.site-footer a{color:#eee}
.footer-cta h3{font-family:var(--font-display); color:var(--orange); margin-bottom:14px}
.copyright{margin-top:30px; padding-top:20px; border-top:1px solid #333; color:#888; font-size:14px}
@media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr}}

/* TO TOP */
.to-top{
  position:fixed; right:24px; bottom:24px; width:54px; height:54px; border-radius:50%; border:none;
  background:var(--orange); color:#fff; font-size:24px; cursor:pointer; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:opacity .3s, transform .3s; z-index:99;
}
.to-top.visible{opacity:1; pointer-events:auto}
.to-top:hover{transform:translateY(-4px)}

/* AUTH / FORMS */
.auth-wrap, .booking-wrap{max-width:520px; margin:40px auto; padding-top:20px}
.auth-title{text-align:center; font-family:var(--font-display); margin-bottom:20px; font-size:36px}
.card{background:#fff; padding:28px; border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,.06)}
.form{display:flex; flex-direction:column; gap:14px}
.form label{display:flex; flex-direction:column; gap:6px; font-weight:600}
.form input, .form select, .form textarea{
  padding:12px 14px; border:2px solid var(--border); border-radius:12px; font-size:15px; font-family:inherit;
  transition:border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus{outline:none; border-color:var(--orange)}
.row{display:flex; gap:10px; align-items:center}

/* MODAL */
.modal-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.6); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200; 
    animation: fadeIn .2s
}
.modal {
    background: #fff; 
    padding: 30px; 
    border-radius: var(--radius); 
    max-width: 420px; 
    text-align: center
}
.modal h3 {
    margin-bottom: 10px; 
    font-family: var(--font-display); 
    font-size: 26px; 
    color: var(--orange)
}
.modal p {
    margin-bottom: 18px
}

/* CABINET / ADMIN */
.cabinet, .admin{padding:30px 0 60px}
.cabinet h1, .admin h1{font-family:var(--font-display); margin-bottom:20px}
.cabinet h2, .admin h2{margin:30px 0 14px}
.profile-card{display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:30px}
.table-wrap{overflow-x:auto; border-radius:var(--radius); box-shadow:0 4px 16px rgba(0,0,0,.06); background:#fff; margin-bottom:20px}
.data-table{width:100%; border-collapse:collapse; min-width:760px}
.data-table th, .data-table td{padding:12px; text-align:left; border-bottom:1px solid var(--border); font-size:14px}
.data-table thead{background:linear-gradient(135deg, var(--orange), var(--orange-2)); color:#fff}
.data-table tbody tr:hover{background:#fff8ee}
.status{padding:4px 10px; border-radius:8px; font-size:12px; font-weight:700; white-space:nowrap}
.status-ожидает-подтверждения{background:#fff3cd; color:#7a5b00}
.status-подтверждено, .status-одобрен{background:#d4f7d4; color:#0c5e1a}
.status-отменено, .status-отклонён{background:#ffd6d6; color:#7a0000}
.status-новый{background:#e0e8ff; color:#1a3a8a}
.leave-review{margin-top:30px}
.my-reviews{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px}
.scenario-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px}
.admin-review{background:#fff; padding:18px; border-radius:14px; margin-bottom:14px}

/* ANIMATIONS */
@keyframes fadeUp{from{opacity:0; transform:translateY(20px)} to{opacity:1; transform:none}}
@keyframes fadeIn{from{opacity:0} to{opacity:1}}
@keyframes pulse{0%,100%{transform:scale(1)} 50%{transform:scale(1.05)}}
@keyframes wiggle{0%,100%{transform:rotate(-3deg)} 50%{transform:rotate(3deg)}}
@keyframes float{0%,100%{transform:translate(0,0)} 50%{transform:translate(0,-30px)}}

/* RESPONSIVE HEADER */
@media(max-width:900px){
  .main-nav{display:none}
  .header-actions .btn{padding:8px 12px; font-size:13px}
}
