/* =========================================
   Design tokens
========================================= */
:root{
  --green:#2f9e61;
  --green-600:#228a52;
  --bg:#f6f8fa;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --line-2:#eef2f7;
  --shadow:0 8px 28px rgba(17,24,39,.10);
  --radius:14px;
  --radius-lg:18px;

  /* layout */
  --container:1200px;
  --gap:20px;
  --gap-lg:24px;
  --touch:44px;

  /* CTA gradient */
  --cta-0:#0f172a;
  --cta-1:#111827;
  --cta-h0:#111827;
  --cta-h1:#1f2937;
  --cta-ring:rgba(59,130,246,.35);

  /* brands */
  --vk:#2787F5;
  --tg:#229ED9;
  --wa:#25D366;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
/* =========================================
   Base / reset
========================================= */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important}
}

body{
  font-family: 'Roboto';
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto;
  line-height:1.55;
  -webkit-tap-highlight-color:transparent;
  display:flex; flex-direction:column; min-height:100dvh;
}
body.no-scroll{ overflow:hidden; }

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit}

input,select,textarea{
  font:inherit; color:inherit; background:#fff;
  width:100%; padding:12px 14px;
  border:1px solid var(--line); border-radius:12px; outline:none;
  transition:border-color .15s, box-shadow .15s; min-height:var(--touch);
}
input:focus,select:focus,textarea:focus{border-color:#c5e9d6; box-shadow:0 0 0 3px rgba(47,158,97,.15)}
:where(input,button,select,textarea):disabled{opacity:.55; cursor:not-allowed}

/* Container */
.container{max-width:var(--container); margin:0 auto; padding:0 20px}

/* Utilities */
.row{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.grid{display:grid; gap:var(--gap)}
.right{margin-left:auto}
.muted{color:var(--muted)}
.pill{ padding:6px 4px;  display:inline-flex; align-items:center; gap:8px}

/* =========================================
   Navbar
========================================= */
.navbar{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(150%) blur(8px);
  border-bottom:1px solid var(--line-2);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:70px; gap:16px; position:relative;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:20px}
.brand img{height:60px; width:60px; border-radius:50%}

/* Links (desktop) */
.nav-links{display:flex; align-items:center; gap:18px}
.nav-link{padding:18px 14px; font-size:16px; border-radius:12px; transition:color .18s ease, background .18s ease}
.nav-link.active,.nav-link:hover{ color:var(--green) }

/* Burger */
.burger{
  display:none; width:var(--touch); height:var(--touch);
  border:0; background:transparent; border-radius:10px; cursor:pointer; margin-bottom:30px;
  align-items:center; justify-content:center;
}
.burger:focus-visible{ outline:2px solid #cfeedd; outline-offset:2px }
.burger span{display:block; width:22px; height:2px; background:#111; margin:3px 0; transition:transform .18s, opacity .18s}
.navbar.open .burger span:nth-child(1){ transform:translateY(5px) rotate(45deg) }
.navbar.open .burger span:nth-child(2){ opacity:0 }
.navbar.open .burger span:nth-child(3){ transform:translateY(-5px) rotate(-45deg) }

/* Backdrop */
.nav-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.4);
  z-index:-1; opacity:0; transition:opacity .18s;
}
.navbar.open .nav-backdrop{ z-index:45; opacity:1 }
.nav-backdrop[hidden]{ display:none }

/* =========================================
   Buttons
========================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.65rem .95rem; min-height:var(--touch);
  border-radius:12px; border:1px solid transparent; background:#fff; cursor:pointer;
  font-size:.95rem; font-weight:500;
  transition:background .18s ease, border-color .18s ease, transform .02s ease, color .18s ease;
  touch-action:manipulation;
}
.btn:active{ transform:translateY(1px) }
.btn:focus-visible{ outline:2px solid #cfeedd; outline-offset:2px }

.btn-primary{ border-color:var(--green); color:var(--green) }
.btn-primary:hover{ background:var(--green); color:#fff }
.btn-primary:active{ background:var(--green-600); color:#fff }

/* Ghost button */
.btn-ghost{
  background:transparent; border-color:transparent; color:#374151;
  min-height:40px; padding:8px 10px;
}
.btn-ghost .arr{ transition:transform .15s ease }
.btn-ghost:hover{ background:#f6f8fa; border-color:#e5e7eb; color:#111827 }
.btn-ghost:hover .arr{ transform:translateX(4px) }

/* =========================================
   Hero
========================================= */
.hero{position:relative; min-height:72vh; display:flex; align-items:center; overflow:hidden}
.hero-bg{position:absolute; inset:0; background:#111 }
.hero-bg .slide{position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.2s ease}
.hero-bg .slide.active{opacity:.9}
.hero-shade{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,0) 70%);
}
.hero-inner{position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:36px}
.hero h1{font-size:52px; line-height:1.1; margin:8px 8px 16px}
.feature{display:flex; gap:14px; align-items:flex-start; margin-top:18px}

/* =========================================
   Sections / cards
========================================= */
.section{padding:56px 0}
.section h2{font-size:36px; margin:8px 8px 8px}
hr{border:none; height:1px; background:var(--line-2); margin:20px 0}

.card{
  background:var(--card); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px; border:1px solid var(--line-2);
}

.cards{display:grid; gap:var(--gap-lg); grid-template-columns:repeat(2,minmax(0,1fr))}

.tour{
  display:grid; grid-template-rows:auto 1fr;
  border-radius:18px; overflow:hidden; background:#fff; box-shadow:var(--shadow);
  transition:transform .16s ease, box-shadow .16s ease;
  min-height:420px;
}
.tour:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(17,24,39,.12) }

.tour .img{
  height:240px; background:#eee; background-size:cover; background-position:center; position:relative;
  transition:background-size .6s ease, filter .3s ease;
}
.tour:hover .img{ background-size:110% }
.tour .img::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.12) 100%);
  pointer-events:none;
}

.price-badge{
  position:absolute; top:14px; left:14px;
  background:white; padding:8px 12px; border-radius:999px; font-weight:500; letter-spacing:.2px;
  box-shadow:0 6px 18px rgba(17,24,39,.08);
}

.tour .body{ display:grid; grid-template-rows:auto auto 1fr auto; padding:18px; gap:10px }
.tour-title{
  font-weight:800; font-size:20px; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tour-meta{ display:flex; gap:8px; flex-wrap:wrap; margin-top:2px }
.tour-meta .meta{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line); background:#fff; padding:8px 10px; border-radius:999px; font-size:14px; color:#374151;
}
.tour-meta .meta .i{ font-size:16px; line-height:1 }
.tour-desc{ color:var(--muted); min-height:60px }
.tour-cta{ margin-top:auto; display:flex; gap:10px; align-items:center }
.tour-cta .btn{ flex:0 0 auto }

/* Tabs */
.tabs{display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap}
.tabs button{padding:10px 14px; border-radius:999px; border:1px solid var(--line); background:#fff; cursor:pointer; min-height:40px}
.tabs button.active{background:#e8f8ef; color:var(--green-600); border-color:#cfeedd}

/* Auth */
.auth-tabs{display:flex; gap:8px; margin-bottom:14px}
.auth-tabs button{flex:1}
.auth-tabs .btn.active{ background:#e8f8ef; color:var(--green-600); border-color:#cfeedd }

/* Profile */
.profile-layout{display:grid; grid-template-columns:280px 1fr; gap:24px}
.sidebar .big-circle{
  width:84px; height:84px; border-radius:50%; display:grid; place-items:center;
  background:#e8f0f3; font-weight:800; font-size:36px; color:#6b7280
}

/* =========================================
   Modal
========================================= */
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  display:none; align-items:center; justify-content:center; padding:20px; z-index:70; cursor:default;
}
.modal.open{display:flex}
.modal .content{
  background:#fff; border-radius:var(--radius-lg);
  max-width:720px; width:100%; max-height:90vh; overflow:auto; padding:20px;
}
.modal .content.content-xl{max-width:960px; position:relative; backdrop-filter:saturate(120%) blur(2px)}
.modal-body{display:grid; grid-template-columns:1.2fr 1fr; gap:24px}

/* Carousel */
.carousel{position:relative; width:100%; aspect-ratio:16/10; background:#f2f4f7; border-radius:16px; overflow:hidden}
.carousel .slide{position:absolute; inset:0; opacity:0; transition:opacity .3s ease}
.carousel .slide.active{opacity:1}
.carousel img{width:100%; height:100%; object-fit:cover}
.car-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  border:none; background:rgba(255,255,255,.9); box-shadow:var(--shadow); width:40px; height:40px; border-radius:999px; cursor:pointer
}
.car-btn:hover{background:#fff}
.car-btn.prev{left:10px}
.car-btn.next{right:10px}

/* Thumbs */
.thumbs{display:flex; gap:8px; overflow:auto; padding-top:10px}
.thumbs .thumb{flex:0 0 auto; width:72px; height:56px; border-radius:10px; overflow:hidden; border:2px solid transparent; cursor:pointer}
.thumbs .thumb img{width:100%; height:100%; object-fit:cover}
.thumbs .thumb.active{border-color:#cfeedd}

/* Dates & qty */
.date-chips{display:flex; gap:8px; flex-wrap:wrap}
.date-chip{border:1px solid #e7ecef; background:#fff; padding:12px 14px; border-radius:999px; cursor:pointer; transition:.15s; min-height:var(--touch)}
.date-chip:hover{border-color:#cfeedd}
.date-chip.selected{background:#e8f8ef; color:var(--green-600); border-color:#cfeedd; box-shadow:inset 0 0 0 1px #cfeedd}

.qty-stepper{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:12px; overflow:hidden}
.qty-stepper .step{width:44px; height:44px; background:#fff; border:none; cursor:pointer; font-weight:700}
.qty-stepper input{width:68px; height:44px; text-align:center; border:none; outline:none; font-weight:700}

/* Footer inside modal — normal flow (no sticky) */
.modal-footer-sticky{
  position:static !important; left:auto !important; right:auto !important; bottom:auto !important;
  background:transparent !important;
  padding:12px 0 !important; margin-top:12px;
  border-top:1px solid var(--line-2);
  box-shadow:none !important;
}

#mTotal{ font-size:18px; font-weight:800 }
.btn[disabled], .btn[aria-disabled="true"]{ opacity:.5; cursor:not-allowed; filter:grayscale(20%); box-shadow:none }
#mNoDates{ display:none; background:#fff6f6; border:1px solid #ffdada; color:#a84242; padding:10px 12px; border-radius:12px }

/* =========================================
   Footer (sticky)
========================================= */
#pages{ flex:1 0 auto }
footer{padding:30px 0; background:#fff; border-top:1px solid var(--line-2)}
.social a{display:inline-flex; padding:10px 12px; border-radius:10px; margin-right:8px; border:none}

/* =========================================
   Admin UI (mobile-first)
========================================= */
.admin-tabs{display:flex; gap:8px; margin:12px 0}
.admin-tab{flex:1; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff}
.admin-tab.active{background:#f4f7f9; color:#111; border-color:var(--line)}

.admin-input{min-height:var(--touch); border:1px solid var(--line); border-radius:12px; padding:10px 12px; width:100%}

.admin-cards{display:grid; gap:12px; grid-template-columns:repeat(1,minmax(0,1fr)); margin-top:12px}
.admin-card{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px; border:1px solid var(--line-2); border-radius:12px; background:#fff; box-shadow:none; overflow:hidden;
}
.admin-thumb{width:72px; height:72px; border-radius:10px; background:#f2f4f7; background-size:cover; background-position:center; flex:0 0 auto}
.admin-meta{flex:1 1 auto; min-width:0}
.admin-meta b,.admin-meta .muted{display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.admin-meta .muted{font-size:13px}
.admin-actions{display:grid; grid-auto-flow:column; gap:8px; margin-left:auto}
.admin-actions .btn{padding:8px 10px; min-height:36px; line-height:1.1; border-radius:10px}

.admin-pager{display:flex; gap:10px; align-items:center; justify-content:center; margin:12px 0}

.list-card{background:#fff; border:1px solid var(--line-2); border-radius:12px; padding:12px; box-shadow:none}
.list-card b{display:block; margin-bottom:4px}
.list-row{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:space-between}
.badge{display:inline-flex; padding:6px 10px; border-radius:999px; border:1px solid var(--line); font-size:13px}
.badge.ok{background:#e8f8ef; color:#116f42; border-color:#cfeedd}
.badge.warn{background:#fff6f6; color:#a84242; border-color:#ffdada}
.badge.wait{ background:#f1f8ff; color:#1e3a8a; border-color:#cfe1ff }

/* Images grid in sheet */
.item-grid{grid-template-columns:1fr; gap:12px}
.img-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:10px}
.img-tile{position:relative; border-radius:10px; overflow:hidden; border:2px solid transparent}
.img-tile.cover{border-color:#cfeedd}
.img-tile img{width:100%; height:100%; object-fit:cover; aspect-ratio:1/1}
.img-tile .img-tools{position:absolute; inset:auto 6px 6px 6px; display:flex; gap:6px}
.img-tile .img-tools .btn{min-height:36px; padding:6px 8px}

/* Chips */
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:8px 0}
.chip{display:inline-flex; background:#e8f8ef; color:var(--green-600); padding:6px 10px; border-radius:999px; font-weight:600; font-size:14px}
.chip-x{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:999px; padding:8px 12px}
.chip-x .x{cursor:pointer}

/* Sheet */
.sheet{position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:75; display:none}
.sheet[hidden]{display:none}
.sheet.show{display:block; animation:fadeIn .15s ease}
.sheet-body{
  position:absolute; left:0; right:0; bottom:0; top:6%;
  background:#fff; border-radius:20px 20px 0 0; padding:12px; overflow:auto;
  animation:sheetUp .2s ease; box-shadow:0 -20px 50px rgba(17,24,39,.18);
}
.sheet-header{
  display:flex; gap:10px; align-items:center;
  position:sticky; top:0;
  background:linear-gradient(180deg,#fff 0%, #fff 70%, rgba(255,255,255,.7) 100%);
  padding-bottom:8px; z-index:2
}
.switch{display:inline-flex; align-items:center; gap:8px}
.switch input{width:18px; height:18px}

/* Animations */
@keyframes sheetUp{ from{ transform:translateY(12%); opacity:.7 } to{ transform:none; opacity:1 } }
@keyframes fadeIn{ from{ background:rgba(0,0,0,0) } to{ background:rgba(0,0,0,.5) } }

/* =========================================
   Toasts
========================================= */
#toastCont{
  position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom));
  transform:translateX(-50%); display:grid; gap:8px; z-index:9999; pointer-events:none;
}
.toast{
  pointer-events:auto;
  min-width:220px; max-width:min(92vw,520px);
  padding:12px 14px; border-radius:14px; font-weight:600;
  box-shadow:0 10px 30px rgba(17,24,39,.18);
  border:1px solid var(--line); background:#fff; color:#111827;
  opacity:0; transform:translateY(10px) scale(.98);
  transition:transform .18s ease, opacity .18s ease;
}
.toast.show{opacity:1; transform:translateY(0) scale(1)}
.toast.success{border-color:#cfeedd; background:#f3fbf7; color:#065f46}
.toast.error{border-color:#ffd1d1; background:#fff6f6; color:#9b1c1c}
.toast.info{ border-color:#cfe1ff; background:#f1f8ff; color:#1e3a8a}

/* =========================================
   CTA button (booking)
========================================= */
.btn-cta{
  background:linear-gradient(135deg, var(--cta-0), var(--cta-1));
  color:#fff;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:14px 18px;
  min-height:52px;
  font-weight:800; letter-spacing:.2px;
  box-shadow:0 10px 22px rgba(2,6,23,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition:background .18s ease, box-shadow .18s ease, transform .06s ease, border-color .18s ease;
}
.btn-cta:hover{
  background:linear-gradient(135deg, var(--cta-h0), var(--cta-h1));
  box-shadow:0 12px 26px rgba(2,6,23,.40), inset 0 1px 0 rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.10);
}
.btn-cta:active{ transform:translateY(1px) }
.btn-cta:focus-visible{
  outline:none; box-shadow:0 0 0 3px var(--cta-ring), 0 12px 26px rgba(2,6,23,.42);
}
.btn-cta[disabled], .btn-cta[aria-disabled="true"]{
  background:linear-gradient(135deg, #2b2f36, #2c323a);
  color:rgba(255,255,255,.85);
  border-color:rgba(255,255,255,.08);
  box-shadow:none; opacity:.8; filter:none;
}

/* Hints near price */
.price-inline{ display:flex; gap:8px; align-items:center; margin-top:12px; font-size:14px }
.calc-hint{ margin-top:6px; font-size:13px }

/* =========================================
   Socials
========================================= */
.social-links{ display:flex; gap:10px; flex-wrap:wrap }
.social-link{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px; min-height:44px;
  border-radius:12px; text-decoration:none;
  transition:transform .06s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.social-link:hover{ transform:translateY(-1px) }
.social-link:active{ transform:translateY(0) }

.social-link .brand-ic{
  display:grid; place-items:center;
  width:28px; height:28px; border-radius:999px; background:#f3f4f6; flex:0 0 auto;
}
.social-link--vk{ color:var(--vk) }
.social-link--tg{ color:var(--tg) }
.social-link--wa{ color:var(--wa) }
.social-link--vk:hover .brand-ic{ background:color-mix(in srgb, var(--vk) 12%, #fff) }
.social-link--tg:hover .brand-ic{ background:color-mix(in srgb, var(--tg) 12%, #fff) }
.social-link--wa:hover .brand-ic{ background:color-mix(in srgb, var(--wa) 12%, #fff) }
.social-link .label{ color:#111827 }
.about-contacts{ margin-top:14px }
.about-contacts .muted{ margin-bottom:8px }

/* =========================================
   Reviews: uploader & gallery
========================================= */
/* accessibly hidden */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.rv-upload{ display:grid; gap:12px }

/* Dropzone */
.rv-dropzone{
  position:relative; display:grid; justify-items:center; gap:8px;
  padding:18px; border:1.5px dashed var(--line); border-radius:var(--radius-lg);
  background:linear-gradient(180deg,#fff, #fafcff); box-shadow:var(--shadow);
  cursor:pointer; user-select:none;
  transition:border-color .18s ease, background .18s ease, transform .06s ease;
}
.rv-dropzone:hover{ background:#f8fafb }
.rv-dropzone:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(47,158,97,.16), var(--shadow); border-color:#cfeedd }
.rv-dropzone.is-drag{ border-color:#cfeedd; background:#f3fbf7 }
.rv-dropzone .rv-ic{ color:var(--green); opacity:.95 }
.rv-dropzone .rv-drop-text{ font-size:15px }
.rv-dropzone .rv-link{ color:var(--green); text-decoration:underline }
.rv-dropzone .rv-hint{ font-size:12px }

/* counter */
.rv-dropzone::after{
  content: attr(data-count) " / 6";
  position:absolute; top:10px; right:12px;
  color:#374151; background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:4px 8px; font-size:12px; display:none;
}
.rv-dropzone[data-count]:not([data-count="0"])::after{ display:inline-block }

/* previews grid */
.rv-previews{
  display:grid; gap:10px;
  grid-template-columns:repeat(4, 1fr);
  margin-top:8px;
}
.rv-previews .ph{
  border:1px solid var(--line); border-radius:12px; overflow:hidden; aspect-ratio:1/1; background:#f4f7f9;
}
.rv-previews .ph img{ width:100%; height:100%; object-fit:cover }

.rv-thumb{
  position:relative; border-radius:14px; overflow:hidden;
  background:#f2f4f7; border:1px solid var(--line-2);
  aspect-ratio:1/1; box-shadow:0 4px 14px rgba(17,24,39,.06);
}
.rv-thumb img{
  width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s ease;
}
.rv-thumb:hover img{ transform:scale(1.02) }

/* remove button on preview */
.rv-remove{
  position:absolute; top:8px; right:8px;
  border:none; background:rgba(255,255,255,.9);
  width:28px; height:28px; border-radius:999px; cursor:pointer; box-shadow:var(--shadow);
  font-weight:700; line-height:1; transition:background .15s ease, transform .06s ease;
}
.rv-remove:hover{ background:#fff }
.rv-remove:active{ transform:translateY(1px) }

/* gallery inside review card */
.rv-gallery{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:8px; margin-top:10px;
}
.rv-gallery img{
  width:100%; height:140px; object-fit:cover; border-radius:10px;
}

/* =========================================
   About
========================================= */
.about-wrap{
  display:flex; flex-wrap:wrap; gap:40px; align-items:center; justify-content:space-between;
}
.about-text{ flex:1 1 480px; order:1; color:var(--text); max-width:70ch }
.about-text h2{margin: 8px 8px 8px; }
.about-text p{ margin:0; font-size:18px }

.about-logo{ flex:0 1 500px; order:2; display:flex; justify-content:center; align-items:center }
.about-logo-img{
  width:100%; max-width:600px;
   object-fit:cover; border-radius:20px;
}

/* nav auth group */
.nav-auth{ display:flex; gap:8px }
@media (max-width:900px){
  .nav-auth{ flex-direction:column; align-items:center; gap:6px }
  .nav-auth .btn{ width:auto; min-width:140px; text-align:center }
}

/* hero inline contacts */
.hero-contacts{
  margin:40px 0; font-size:18px; font-weight:500; color:#111827; line-height:1.4;
}
.hero-contacts a{ color:black; text-decoration:none }
.hero-contacts a:hover{ text-decoration:underline }

/* footer docs */
.footer-docs{ font-size:14px; color:var(--muted) }
.footer-docs a{ color:var(--muted); text-decoration:none }
.footer-docs a:hover{ color:var(--green); text-decoration:underline }

/* =========================================
   Near (travel) carousel
========================================= */
.near-head{ display:flex; align-items:center; gap:16px; margin-bottom:8px }
.near-head h2{ position:relative; margin:0; padding-left:48px; letter-spacing:.02em }
.near-head h2::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:40px; height:4px; background:var(--green); border-radius:4px;
}
.near-all{ margin-left:auto; font-weight:600; opacity:.9 }
.near-all:hover{ text-decoration:underline }

.near-carousel{ position:relative; margin-top:12px }
.near-track{
  display:flex; gap:var(--gap-lg);
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; scroll-padding-left:4px;
  padding:6px 2px 12px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none; -ms-overflow-style:none;
}
.near-track::-webkit-scrollbar{ display:none }

.near-item{ scroll-snap-align:start; scroll-snap-stop:always; flex:0 0 31%; min-width:260px }
.near-progress{ height:4px; background:var(--line-2); border-radius:999px; overflow:hidden; margin-top:10px }
.near-progress__bar{ height:100%; width:100%; background:var(--green); transform-origin:left center; transform:scaleX(0); transition:transform .15s linear }

.near-fades::before, .near-fades::after{
  content:""; position:absolute; top:0; bottom:26px; width:36px; pointer-events:none;
}
.near-fades::before{ left:-2px; background:linear-gradient(90deg,#fff,rgba(255,255,255,0)) }
.near-fades::after { right:-2px; background:linear-gradient(270deg,#fff,rgba(255,255,255,0)) }

.near-controls{ display:flex; align-items:center; gap:12px; margin-top:10px }
.near-controls .near-progress{ flex:1 }
.near-navs{ display:none; gap:8px }
.near-btn{
  width:40px; height:40px; border-radius:999px; border:1px solid var(--line);
  background:#fff; box-shadow:var(--shadow); cursor:pointer;
}
.near-btn:hover{ background:#f9fafb }
.near-btn:active{ transform:translateY(1px) }

@media (min-width:900px){
  .near-navs{ display:flex }
  .near-track{ overflow-x:hidden } /* disable wheel horizontal scroll on desktop */
}

/* =========================================
   Map / misc
========================================= */
.map-img{ display:block; width:100%; height:auto; object-fit:cover; transition:transform .4s ease }
.map-img:hover{ transform:scale(1.02) }

/* =========================================
   Responsive
========================================= */

/* ≤ 1200px */
@media (max-width:1200px){
  .hero-inner{gap:28px}
}

/* ≤ 1000px */
@media (max-width:1000px){
  .hero-inner{grid-template-columns:1fr; gap:20px}
  .hero h1{font-size:40px}
  .cards{grid-template-columns:1fr 1fr}
  .profile-layout{grid-template-columns:1fr}
  .img-grid{grid-template-columns:repeat(3,1fr)}
  .near-item{ flex-basis:48% }
}

/* ≤ 900px (mobile menu) */
@media (max-width:900px){
  .burger{display:flex}
  .nav-links{
    position:fixed; left:0; right:0; top:64px;
    display:flex; flex-direction:column; gap:6px;
    padding:12px 16px 20px;
    background:#fff; border-bottom:1px solid var(--line-2);
    transform:translateY(-10px); opacity:0; visibility:hidden; pointer-events:none;
    transition:transform .18s ease, opacity .18s ease, visibility .18s;
    z-index:50;
  }
  .nav-links .nav-link, .nav-links .btn{ padding:12px 10px; border-radius:12px }
  .navbar.open .nav-links{ transform:none; opacity:1; visibility:visible; pointer-events:auto }
}

/* ≤ 720px */
@media (max-width:720px){
  .admin-cards{ grid-template-columns:1fr }
  .admin-thumb{ width:64px; height:64px }
}

/* ≤ 640px */
@media (max-width:640px){
  section#about .about-logo {
    display: none !important;
  }
  .cards{grid-template-columns:1fr}
  .hero{min-height:62vh}
  .hero h1{font-size:32px}
  .section{padding:40px 0}
  .modal-body{grid-template-columns:1fr; gap:16px}
  .carousel{aspect-ratio:4/3}
  .car-btn{width:44px; height:44px}
  .thumbs .thumb{width:68px; height:52px}

  .modal{ align-items:flex-end; padding:0 }
  .modal.open{ animation:fadeIn .18s ease }
  .modal .content{
    max-width:none; width:100%;
    height:calc(100dvh - 16px);
    border-radius:20px 20px 0 0; padding:16px;
    box-shadow:0 -20px 50px rgba(17,24,39,.18);
    animation:sheetUp .22s ease; overflow:auto; padding-bottom:16px !important;
  }

  /* tours page heading + tabs centered */
  #tours .section > h2, #tours .section > p.muted{ text-align:center; margin-left:auto; margin-right:auto }
  #tours .tabs{ justify-content:center }

  /* compact near-carousel cards (≈1.6 visible) */
  .near-carousel .near-track{ gap:4px; padding:3px 2px 5px }
  .near-carousel .near-item{ flex-basis:62%; min-width:200px }
  .near-carousel .tour{ min-height:300px }
  .near-carousel .tour .img{ height:160px }
  .near-carousel .tour .body{ padding:14px; gap:8px }
  .near-carousel .tour-title{ font-size:17px; line-height:1.25 }
  .near-carousel .tour-meta .meta{ padding:6px 8px; font-size:13px }
  .near-carousel .btn-ghost{ min-height:36px }

  /* reviews */
  .rv-previews{ grid-template-columns:repeat(3,1fr) }
  .rv-gallery img{ height:110px }

  /* misc spacing on mobile */
  #addReviewBtn{ margin-left:16px }
  .card{ margin:0 20px }
}

/* ≤ 480px */
@media (max-width:480px){
  .admin-actions{ grid-auto-flow:row; width:100% }
  .admin-actions .btn{ width:100% }
  .img-grid{grid-template-columns:repeat(2,1fr)}
  .near-carousel .near-item{ flex-basis:66%; min-width:190px }
  .near-carousel .tour{ min-height:280px }
  .near-carousel .tour .img{ height:150px }
}

/* ≤ 420px (icons only socials, optional) */
@media (max-width:420px){
  .social-link{ padding:10px }
  .social-link .label{ display:none }
}

/* Split helper */
.split-2{ grid-template-columns:1fr 1fr; align-items:start }
@media (max-width:900px){ .split-2{ grid-template-columns:1fr } }

/* ======= Admin Cards — desktop layout ======= */
@media (min-width:1024px){
  .admin-cards{
    grid-template-columns:repeat(1,minmax(0,1fr));
    gap:24px; align-items:stretch;
  }
  .admin-card{
    display:grid; grid-template-columns:140px 1fr auto;
    gap:18px; padding:18px; border-radius:16px; border:1px solid var(--line-2);
    background:#fff; box-shadow:var(--shadow); min-height:140px;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .admin-card:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(17,24,39,.12); border-color:#e3e8ef }
  .admin-card:focus-within{ outline:0; box-shadow:0 0 0 3px rgba(47,158,97,.14), 0 14px 34px rgba(17,24,39,.12); border-color:#cfeedd }
  .admin-thumb{ width:140px; height:140px; border-radius:14px; background:#f2f4f7; background-size:cover; background-position:center }
  .admin-meta{ min-width:0; display:grid; align-content:start; gap:6px }
  .admin-meta b{
    font-size:18px; font-weight:700; line-height:1.3;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .admin-meta .muted{ font-size:14px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
  .admin-meta .chips{ margin-top:2px }
  .admin-actions{
    display:grid; grid-auto-rows:minmax(38px,auto); grid-auto-flow:row;
    gap:8px; align-content:start; margin-left:0;
  }
  .admin-actions .btn{ padding:9px 12px; min-height:38px; line-height:1.2; border-radius:10px; justify-content:center }
  .admin-actions .btn:active{ transform:translateY(1px) }
}

/* ===== Tours: mobile spacing tweak ===== */
@media (max-width:640px){
  .admin-card { flex-direction: column; align-items: stretch; }
  .admin-thumb { width: 100%; height: 180px; }
  .admin-meta b { font-size: 15px; }
  .admin-actions {
    width: 100%;
    flex-direction: column;
  }
  #tourModal .content{
    width: 95% !important;
    max-width: none !important;
  }
  .admin-actions .btn { width: 100%; }
  .tour{ margin:0 20px }
  .near-carousel .tour-desc{
    display:none !important;
    min-height:0 !important;
  }
  /* перестраиваем сетку тела карточки без строки под описание */
  .near-carousel .tour .body{
    grid-template-rows: auto auto auto;
  }
  .modal-footer-sticky{
    display:flex;
    gap:12px;
  }
  .modal-footer-sticky .btn,
  .modal-footer-sticky .btn-cta{
    width:auto !important;   /* переопределяем старое width:100% */
    flex:1 1 0;
    height:48px;
  }
}
/* Кнопки в футере модалки — два столбца, равной ширины */
.modal-footer-sticky .btn,
.modal-footer-sticky .btn-cta{
  flex: 1 1 0;
}
/* === Fix: Tour Modal sizing (desktop & mobile) === */
:root{
  /* под себя: 900–1040px обычно комфортно */
  --modal-max: 960px;
}

/* Десктоп/таб: жёсткий кап и центрирование */
#tourModal .content,
#tourModal .content.content-xl{
  max-width: var(--modal-max) !important;
  width: min(96vw, var(--modal-max)) !important;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Надёжная сетка (колонки не распирают контейнер) */
#tourModal .modal-body{
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
#tourModal .modal-media,
#tourModal .modal-info{ min-width: 0 }           /* ← ключ к сжатию содержимого */
#tourModal .modal-info{ overflow-wrap: anywhere } /* длинные слова/ссылки не тянут ширину */

/* Медиа внутри — без переполнения */
#tourModal .carousel,
#tourModal .thumbs{ max-width: 100% }
#tourModal .carousel img{ width:100%; height:100%; object-fit: cover }

/* Планшет: в одну колонку при необходимости */
@media (max-width:900px){
  #tourModal .modal-body{ grid-template-columns: 1fr }
}

/* Мобилка: полноэкранный лист, контролируемая область фото */
@media (max-width:640px){
  #tourModal .content{
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 16px);
    border-radius: 20px 20px 0 0;
    padding: 16px;
  }
  /* Чуть ниже медиа-блок, меньше апскейла картинок */
  #tourModal .carousel{
    aspect-ratio: 4 / 3;          /* аккуратная высота на телефонах */
    background: transparent !important;
  }
  #tourModal .carousel img{
    object-fit: cover !important;           /* анти-мыло: ничего не тянем, показываем целиком */
  }
}


/* === Fix: Tour Modal sizing (desktop & mobile) === */
:root{
  /* под себя: 900–1040px обычно комфортно */
  --modal-max: 960px;
}

/* Десктоп/таб: жёсткий кап и центрирование */
#tourModal .content,
#tourModal .content.content-xl{
  max-width: var(--modal-max) !important;
  width: min(96vw, var(--modal-max)) !important;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Надёжная сетка (колонки не распирают контейнер) */
#tourModal .modal-body{
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
#tourModal .modal-media,
#tourModal .modal-info{ min-width: 0 }           /* ← ключ к сжатию содержимого */
#tourModal .modal-info{ overflow-wrap: anywhere } /* длинные слова/ссылки не тянут ширину */

/* Медиа внутри — без переполнения */
#tourModal .carousel,
#tourModal .thumbs{ max-width: 100% }
#tourModal .carousel img{ width:100%; height:100%; object-fit: cover }

/* Планшет: в одну колонку при необходимости */
@media (max-width:900px){
  #tourModal .modal-body{ grid-template-columns: 1fr }
}

/* Мобилка: полноэкранный лист, контролируемая область фото */
@media (max-width:640px){
  .near-head{
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
  }
  .near-head h2{
    flex: 1 0 100%;
    margin: 0;
    padding-left: 36px;   /* короче "подчёркивание" слева */
    font-size: 28px;
    line-height: 1.15;
  }
  .near-head h2::before{
    width: 28px;
    height: 3px;
  }
  .near-all{
    order: 2;             /* ниже заголовка */
    flex: 1 0 100%;
    margin-left: 0;
    text-align: right;
    white-space: nowrap;  /* не ломаем фразу внутри */
    font-size: 14px;
  }
  #tourModal .content{
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 16px);
    border-radius: 20px 20px 0 0;
    padding: 16px;
  }
  /* Чуть ниже медиа-блок, меньше апскейла картинок */
  #tourModal .carousel{
    aspect-ratio: auto;
    height: 56vw; /* ~16:9 от ширины экрана */         /* аккуратная высота на телефонах */
    background: #0b0e14;
  }
  #tourModal .carousel img{
    object-fit: contain;           /* анти-мыло: ничего не тянем, показываем целиком */
  }

}
/* ===== About: Gallery ===== */
.about-gallery-wrap{ margin-top:24px }
.about-gallery-head h3{ margin:0 0 6px; font-size:26px }
.about-gallery{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(4,1fr);
  grid-auto-flow:dense;        /* ← заполнит пустоты более подходящими плитками */
}
#about .section.about {
  padding: 20px 0
}
@media (max-width:1000px){ .about-gallery{ grid-template-columns:repeat(3,1fr) } }
@media (max-width:640px) { .about-gallery{ grid-template-columns:repeat(2,1fr) } }
@media (max-width:1000px){ .about-gallery{ grid-template-columns:repeat(3,1fr) } }
@media (max-width:640px) { .about-gallery{ grid-template-columns:repeat(2,1fr) } }

.g-tile{
  position:relative; border:0; padding:0; cursor:zoom-in;
  border-radius:14px; overflow:hidden; background:#f2f4f7; aspect-ratio:1/1;
  box-shadow:0 6px 18px rgba(17,24,39,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
.g-tile:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(17,24,39,.10) }
.g-tile img{ width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.02) }
.g-tile::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.12));
  opacity:0; transition:opacity .15s ease;
}
.g-tile:hover::after{ opacity:1 }
.g-zoom{
  position:absolute; right:10px; bottom:10px;
  background:rgba(255,255,255,.9); border:1px solid var(--line); border-radius:999px;
  padding:6px 8px; font-size:12px; box-shadow:var(--shadow);
}

/* вариативная мозаика (на десктопе): некоторые карточки крупнее */
@media (min-width:1001px){
  .g-tile.is-wide { grid-column:span 2; aspect-ratio:2/1 }
  .g-tile.is-tall { grid-row:span 2;   aspect-ratio:1/2 }
}

/* ===== Lightbox ===== */
.lb{ position:fixed; inset:0; z-index:95; display:none; align-items:center; justify-content:center; background: transparent;backdrop-filter: blur(3px) saturate(1);}
.lb.open{ display:flex }
.lb-inner{ position:relative; width:min(92vw,1200px); height:min(88vh,900px) }
.lb-img{ width:100%; height:100%; object-fit: cover;  background: transparent;  border-radius:12px }
.lb-close, .lb-prev, .lb-next{
  position:absolute; border:0; cursor:pointer; color:#111827; background:#fff; border-radius:999px;
  width:42px; height:42px; box-shadow:0 10px 26px rgba(0,0,0,.25);
}
.lb-close{ top:-18px; right:-18px }
.lb-prev{ left:-18px; top:50%; transform:translateY(-50%) }
.lb-next{ right:-18px; top:50%; transform:translateY(-50%) }
.lb-caption{
  position:absolute; left:0; right:0; bottom:-42px; text-align:center; color:#e5e7eb; font-size:14px;
}
@media (max-width:640px){
  .lb-inner{ width:100vw; height:100dvh; border-radius:0 }
  .lb-close{ top:14px; right:14px }
  .lb-prev, .lb-next{ top:unset; bottom:14px; transform:none }
  .lb-prev{ left:14px } .lb-next{ right:14px }
  .lb-caption{ bottom:64px; padding:0 16px }
}
.about-contacts {
  text-align: center;
}.about-gallery-wrap {
  padding: 0 20px;
}
/* Мобилка: подложка под текст в герое */
@media (max-width:640px){
  .hero-inner > div{
    position: relative;
    background: rgba(255,255,255,.28);   /* полупрозрачная белая подложка */
    backdrop-filter: blur(6px) saturate(140%);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
  }
  /* мелкие штрихи */
  .hero h1{ margin: 8px 8px 12px }
  .chip{ background:#fff; border:1px solid var(--line-2) }
}
