/* ============ ЛЕСНАЯ ГАВАНЬ — дизайн-система v2 ============ */
:root {
  --bg: #0b100d;
  --bg2: #101712;
  --card: rgba(255,255,255,.045);
  --card-solid: #151d17;
  --line: rgba(255,255,255,.09);
  --text: #f2f0e6;
  --muted: #a9b3a4;
  --accent: #cf7a3d;
  --accent2: #e0a468;
  --accent-grad: #cf7a3d;
  --green: #7fae7a;
  --ok: #8fce7f;
  --err: #e08a7a;
  --radius: 20px;
  --font-head: 'Geologica', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* атмосферный фон: глубокий лес + тёплые пятна */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(232,162,92,.10), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(74,124,78,.16), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(46,84,58,.20), transparent 60%),
    linear-gradient(180deg, #0b100d 0%, #0d1310 50%, #0b100d 100%);
}
/* зерно плёнки */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
::selection { background: rgba(232,162,92,.35); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c3a2e; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { display: block; max-width: 100%; }
a { color: var(--accent2); text-decoration: none; transition: .25s; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.15; margin-bottom: .4em; }
.h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.2; }
.h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }


/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: .35s;
  background: linear-gradient(180deg, rgba(11,16,13,.85), rgba(11,16,13,0));
}
.header.scrolled { background: rgba(12,17,14,.88); backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(0,0,0,.35); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: .02em; display: flex; align-items: center; gap: 9px; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav > a { color: var(--text); font-size: .95rem; font-weight: 600; opacity: .85; position: relative; }
.nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent-grad); border-radius: 2px; transition: .3s; }
.nav > a:not(.btn):hover { opacity: 1; color: var(--accent2); }
.nav > a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.7rem; cursor: pointer; }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.25)); padding: 50px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer h4 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 14px; color: var(--accent2); }
.footer a { color: var(--text); opacity: .85; display: inline-block; margin: 5px 0; }
.footer a:hover { color: var(--accent2); opacity: 1; }
.footer p { margin: 6px 0; font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============ v4 — приёмы премиум-сайтов ============ */

/* выезд заголовка из маски при загрузке */
.hero-title { overflow: hidden; padding-bottom: .08em; }
.hero-title .ht-line { display: block; transform: translateY(115%); animation: rise 1.15s .35s cubic-bezier(.16,.8,.24,1) forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero-kicker { opacity: 0; animation: fadeUp .8s .15s ease forwards; }
.hero-sub { opacity: 0; animation: fadeUp .9s .7s ease forwards; }
.hero-cta-row { opacity: 0; animation: fadeUp .9s .9s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-text h1 { text-shadow: none; }

/* редакционная нумерация секций */
.sec-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(232,162,92,.4); margin-bottom: 12px; user-select: none; }

/* воздух */
.section { padding: 105px 0; }

/* ч/б → цвет в обычной галерее */
.gallery-item img { filter: grayscale(.4); transition: filter .5s, transform .5s; }
.gallery-item:hover img { filter: grayscale(0); }

/* горизонтальная секция-лента */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hscroll-track { display: flex; align-items: center; gap: 22px; padding: 0 6vw; will-change: transform; }
.h-card { flex: 0 0 auto; width: clamp(300px, 33vw, 500px); aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-sm); }
.h-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .5s, transform .7s cubic-bezier(.2,.7,.2,1); }
.h-card:hover img { filter: grayscale(0); transform: scale(1.06); }
.h-card-end { display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: #231204; background: var(--accent-grad); }
.h-card-end:hover { color: #231204; }
.hscroll-hint { position: absolute; bottom: 26px; left: 6vw; z-index: 3; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hscroll-hint::after { content: '⟶'; color: var(--accent); animation: hint 1.6s ease infinite; }
@keyframes hint { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }



/* ---------- карточки объектов ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(232,162,92,.35); }
.card-img { position: relative; display: block; overflow: hidden; }
.card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.07); }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,16,13,.75)); }
.card-type { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #231204; background: var(--accent-grad); padding: 5px 12px; border-radius: 20px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 a { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.card h3 a:hover { color: var(--accent2); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .93rem; }
.amenities { display: flex; flex-wrap: wrap; gap: 7px; }
.amenities span { font-size: .76rem; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 4px 11px; border-radius: 16px; color: var(--muted); }
.amenities.big span { font-size: .88rem; padding: 8px 15px; color: var(--text); background: rgba(127,174,122,.08); border-color: rgba(127,174,122,.25); }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--accent2); }
.price small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.price.big { font-size: 1.7rem; }

/* ---------- фишки ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: .3s; backdrop-filter: blur(6px); }
.feature:hover { border-color: rgba(232,162,92,.4); transform: translateY(-4px); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(217,123,63,.3); }
.feature .ico svg { width: 26px; height: 26px; stroke: #231204; }
.feature h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; color: var(--muted); }

/* ---------- sticky-стопка шагов ---------- */
.steps-stack { max-width: 760px; margin: 0 auto; }
.step-card { position: sticky; background: linear-gradient(145deg, #18221b, #121a15); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 34px 110px; margin-bottom: 22px; box-shadow: var(--shadow); min-height: 150px; }
.step-card:nth-child(1) { top: 110px; }
.step-card:nth-child(2) { top: 140px; }
.step-card:nth-child(3) { top: 170px; }
.step-num { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent2); margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .96rem; }

/* ---------- статистика ---------- */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card { text-align: center; padding: 30px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card b { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--accent2); }
.stat-card span { color: var(--muted); font-size: .92rem; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after { content: '⤢'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; background: rgba(11,16,13,.45); opacity: 0; transition: .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery .gallery-featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery .gallery-featured::after { font-size: 2.4rem; }

/* ---------- страница объекта ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent2); }
.object-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.object-grid { display: grid; grid-template-columns: 1fr 400px; gap: 34px; margin-top: 30px; align-items: start; }
.booking-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.booking-box h3 { font-family: var(--font-head); margin-bottom: 6px; }
.booking-box > .muted { margin-bottom: 12px; }
.total { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--accent2); margin: 14px 0; min-height: 1.4em; }
.chip-busy { background: rgba(224,138,122,.14); color: var(--err); border: 1px solid rgba(224,138,122,.4); }
.free-chip { background: rgba(127,174,122,.12); color: var(--ok); border: 1px solid rgba(127,174,122,.35); }

/* ---------- формы ---------- */
label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 13px 0 0; }
input, textarea, select { width: 100%; margin-top: 6px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: .95rem; font-family: var(--font-body); transition: border-color .25s, box-shadow .25s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,162,92,.15); }
select option { background: var(--card-solid); }
form .btn { margin-top: 18px; }
.notice { padding: 13px 18px; border-radius: 12px; margin: 14px 0; font-size: .93rem; }
.notice.ok { background: rgba(143,206,127,.1); border: 1px solid var(--ok); color: var(--ok); }
.notice.err { background: rgba(224,138,122,.1); border: 1px solid var(--err); color: var(--err); }

/* ---------- авторизация / кабинет ---------- */
.auth { display: flex; justify-content: center; min-height: 70vh; align-items: center; }
.auth-box { width: min(430px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.auth-box .h1 { font-size: 1.6rem; }
.account-grid { display: grid; grid-template-columns: 310px 1fr; gap: 30px; align-items: start; }
.profile-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #231204; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.02); }
.status { padding: 4px 12px; border-radius: 16px; font-size: .78rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.st-new { color: #f0c04b; border-color: #f0c04b55; background: #f0c04b12; }
.st-confirmed { color: var(--ok); border-color: #8fce7f55; background: #8fce7f12; }
.st-cancelled, .st-rejected { color: var(--err); border-color: #e08a7a55; background: #e08a7a12; }
.st-done { color: var(--muted); border-color: var(--line); }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-line { font-size: 1.12rem; margin: 14px 0; display: flex; align-items: center; gap: 12px; }
.contact-line svg { width: 22px; height: 22px; stroke: var(--accent); flex-shrink: 0; }
.map, .map-placeholder { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map iframe { width: 100%; height: 340px; border: 0; }
.map.tall iframe { height: 480px; }
.map-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); background: var(--card); padding: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social.big { margin: 18px 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- О нас ---------- */
.about-hero { position: relative; height: 52vh; min-height: 400px; overflow: hidden; display: flex; align-items: end; }
.about-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,13,.45), rgba(11,16,13,.95)); }
.about-hero .container { position: relative; z-index: 2; padding-bottom: 50px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage a { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; }
.collage a:nth-child(2) { transform: translateY(26px); }
.collage a:nth-child(3) { transform: translateY(-8px); }
.collage a:nth-child(4) { transform: translateY(18px); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.collage a:hover img { transform: scale(1.06); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* ---------- админка ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 28px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 9px 18px; border-radius: 24px; cursor: pointer; font-size: .9rem; font-weight: 600; font-family: var(--font-body); transition: .25s; }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent2); background: rgba(232,162,92,.08); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--accent2); }
.stat span { color: var(--muted); font-size: .88rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.modal-overlay { position: fixed; inset: 0; background: rgba(4,7,5,.8); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; width: min(660px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal h3 { font-family: var(--font-head); margin-bottom: 12px; }
.photo-manage { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.photo-manage .ph { position: relative; width: 112px; height: 82px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-manage .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-manage .ph button { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.75); color: #fff; border: 0; border-radius: 7px; width: 23px; height: 23px; cursor: pointer; }
.imgpool { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; margin-top: 10px; }
.imgpool img { width: 100%; height: 66px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 2px solid transparent; }
.imgpool img:hover { border-color: var(--accent); }
.loader { color: var(--muted); padding: 44px; text-align: center; }
.bar-chart { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 100px; gap: 14px; align-items: center; font-size: .9rem; }
.bar-track { background: rgba(255,255,255,.05); border-radius: 9px; height: 24px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); height: 100%; border-radius: 9px; transition: width .8s ease; }
/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 14px; border: 0; font-family: var(--font-body);
  font-size: .95rem; font-weight: 700; cursor: pointer; transition: .25s;
}
.btn-primary {
  background: var(--accent-grad); color: #231204;
  box-shadow: 0 10px 26px rgba(217,123,63,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(217,123,63,.5); color: #231204; }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent2); background: rgba(232,162,92,.08); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slider { position: absolute; inset: 0; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slider img.active { opacity: 1; animation: kenburns 8s ease forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,16,13,.55) 0%, rgba(11,16,13,.25) 40%, rgba(11,16,13,.92) 100%); }
.hero-fog { position: absolute; left: -50%; bottom: -20%; width: 200%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(220,230,210,.10), transparent 65%);
  animation: fog 14s ease-in-out infinite alternate; }
@keyframes fog { from { transform: translateX(-4%) ; } to { transform: translateX(4%); } }
.hero-text { position: relative; z-index: 2; padding: 0 20px; }
.hero-kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--accent2); margin-bottom: 18px; padding: 8px 18px; border: 1px solid rgba(232,162,92,.4); border-radius: 30px; background: rgba(11,16,13,.4); backdrop-filter: blur(6px); }
.hero-text h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.08; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.hero-text p { font-size: clamp(1.02rem, 2.4vw, 1.3rem); margin: 18px auto 34px; max-width: 640px; color: #e6e9da; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--muted); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 42px; background: linear-gradient(180deg, var(--accent), transparent); margin: 10px auto 0; animation: drop 1.8s ease infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.trees { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 2; opacity: .9; }

/* ---------- секции ---------- */
main { padding-top: 0; }
.page { padding: 130px 0 60px; }
.section { padding: 80px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.sec-head { margin-bottom: 44px; }
.sec-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec-head .h2 { max-width: 720px; }
.sec-head.center { text-align: center; }
.sec-head.center .h2 { margin: 0 auto; }
.sec-sub { color: var(--muted); margin-top: 12px; max-width: 640px; }
.sec-head.center .sec-sub { margin: 12px auto 0; }

/* ---------- админка ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 28px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 9px 18px; border-radius: 24px; cursor: pointer; font-size: .9rem; font-weight: 600; font-family: var(--font-body); transition: .25s; }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent2); background: rgba(232,162,92,.08); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--accent2); }
.stat span { color: var(--muted); font-size: .88rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.modal-overlay { position: fixed; inset: 0; background: rgba(4,7,5,.8); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; width: min(660px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal h3 { font-family: var(--font-head); margin-bottom: 12px; }
.photo-manage { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.photo-manage .ph { position: relative; width: 112px; height: 82px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-manage .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-manage .ph button { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.75); color: #fff; border: 0; border-radius: 7px; width: 23px; height: 23px; cursor: pointer; }
.imgpool { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; margin-top: 10px; }
.imgpool img { width: 100%; height: 66px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 2px solid transparent; }
.imgpool img:hover { border-color: var(--accent); }
.loader { color: var(--muted); padding: 44px; text-align: center; }
.bar-chart { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 100px; gap: 14px; align-items: center; font-size: .9rem; }
.bar-track { background: rgba(255,255,255,.05); border-radius: 9px; height: 24px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); height: 100%; border-radius: 9px; transition: width .8s ease; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(3,5,4,.94); z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 50%; width: 56px; height: 56px; cursor: pointer; transition: .25s; }
.lightbox-nav:hover { background: rgba(232,162,92,.25); }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }


/* лента: бейджи типов записей */
.post-event { background: linear-gradient(135deg, #a8c9a0, #7fae7a); }
.post-promo { background: linear-gradient(135deg, #e8a25c, #d97b3f); }
.post-news { background: linear-gradient(135deg, #c8cdd2, #9aa3ab); }
.post-body p { margin-bottom: 16px; color: var(--text); line-height: 1.75; font-size: 1.02rem; }

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(3,5,4,.94); z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 50%; width: 56px; height: 56px; cursor: pointer; transition: .25s; }
.lightbox-nav:hover { background: rgba(232,162,92,.25); }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }

/* ============ v3 — wow-слой ============ */
:root { --font-quote: 'Cormorant', serif; }

/* прелоадер */
#loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .6s ease, visibility .6s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-logo svg { width: 54px; height: 54px; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .7; } }
.loader-bar { width: 180px; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--accent-grad); border-radius: 3px; animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(450%); } }
.loader-text { font-family: var(--font-head); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* прогресс-бар */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent-grad); z-index: 1000; border-radius: 0 3px 3px 0; }

/* (кастомный курсор убран) */
/* бегущая строка */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 18px 0; position: relative; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; color: var(--text); opacity: .85; }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* bento-сетка фишек */
.features.bento { grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 1fr; }
.bento-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); grid-row: span 2; min-height: 100%; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s ease; }
.bento-img:hover img { transform: scale(1.06); }
.bento-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; background: linear-gradient(180deg, transparent, rgba(11,16,13,.9)); font-family: var(--font-quote); font-style: italic; font-size: 1.25rem; color: var(--accent2); }

/* параллакс-банд с цитатой */
.quote-band { position: relative; height: 70vh; min-height: 460px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.quote-band img { position: absolute; left: 0; top: -25%; width: 100%; height: 150%; object-fit: cover; will-change: transform; }
.quote-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,13,.75), rgba(11,16,13,.55) 50%, rgba(11,16,13,.8)); }
.quote-inner { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }
.quote-text { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 4.6vw, 3.1rem); line-height: 1.25; margin: 14px 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }

/* призрачное слово за секцией */
.section-alt { position: relative; overflow: hidden; }
.ghost-word { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 11rem); text-transform: uppercase; letter-spacing: .05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; user-select: none; }

/* sticky-стопка шагов */
.steps-stack { max-width: 760px; margin: 0 auto; }
.step-card { position: sticky; background: linear-gradient(145deg, #18221b, #121a15); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 34px 110px; margin-bottom: 22px; box-shadow: var(--shadow); min-height: 150px; }
.step-card:nth-child(1) { top: 110px; }
.step-card:nth-child(2) { top: 140px; }
.step-card:nth-child(3) { top: 170px; }
.step-num { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent2); margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .96rem; }

/* карточка: второе фото */
.card-img { perspective: 800px; }
.card-img img { position: relative; }
img.card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.card:hover img.card-alt { opacity: 1; }
.card:hover img.card-main { opacity: 0; }
.card-img img.card-main { transition: opacity .55s ease; }



.hero-text, .trees, .hero-scroll { z-index: 3; }

@media (max-width: 900px) {
  .features.bento { grid-template-columns: 1fr; }
  .bento-img { grid-row: auto; min-height: 240px; }
  .step-card { padding: 26px; }
  .step-num { position: static; transform: none; display: block; margin-bottom: 10px; font-size: 2.2rem; }
  .quote-band { height: 56vh; }
}

/* галерея объекта: первое фото крупное */
.gallery .gallery-featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery .gallery-featured::after { font-size: 2.4rem; }
/* тёмная схема для date/time picker */
:root { color-scheme: dark; }
@media (max-width: 720px) {
  .gallery .gallery-featured { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
}

/* гигантский логотип в футере */
.footer-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1.05; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13); margin-bottom: 50px; user-select: none; }

/* прелоадер: проценты */
.loader-pct { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--accent2); }
#to-top:hover { color: var(--accent2); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .h-card { width: 78vw; }
  .footer-big { -webkit-text-stroke-width: 1px; }
}

/* ============ v5 — Иммерсивный лес: сцены закат → ночь → рассвет ============ */

/* фон: статичный базовый уходит, управляют слои сцен */
body::before { background: #0b100d; }

.scene-layer { position: fixed; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.scene-dusk-bg { background:
  radial-gradient(1100px 600px at 80% -10%, rgba(232,162,92,.14), transparent 60%),
  radial-gradient(900px 700px at 0% 40%, rgba(74,124,78,.14), transparent 60%),
  linear-gradient(180deg, #0d120e, #0b100d); }
.scene-night-bg { background:
  radial-gradient(1000px 600px at 70% 0%, rgba(120,160,200,.10), transparent 55%),
  radial-gradient(1200px 800px at 10% 80%, rgba(40,80,110,.14), transparent 60%),
  linear-gradient(180deg, #080d12, #0a1014 50%, #080d12); }
.scene-dawn-bg { background:
  radial-gradient(1100px 600px at 30% -10%, rgba(224,190,150,.16), transparent 60%),
  radial-gradient(900px 700px at 90% 60%, rgba(140,170,140,.12), transparent 60%),
  linear-gradient(180deg, #141b15, #10160f); }
body[data-scene="dusk"] .scene-dusk-bg { opacity: 1; }
body[data-scene="night"] .scene-night-bg { opacity: 1; }
body[data-scene="dawn"] .scene-dawn-bg { opacity: 1; }

/* акценты по сценам */
body[data-scene="night"] { --accent: #9fc3e0; --accent2: #cfe0ef; }
body[data-scene="dawn"] { --accent: #e2bd8d; --accent2: #f0d9b5; }
body[data-scene="night"] .btn-primary { background: #8fb2cf; box-shadow: 0 10px 26px rgba(127,168,201,.25); }
body[data-scene="dawn"] .btn-primary { background: #cfa069; box-shadow: 0 10px 26px rgba(211,167,107,.25); }

/* прелоадер-сценка: растут ели */
.loader-scene { width: 220px; height: 130px; }
.l-horizon { stroke-dasharray: 204; stroke-dashoffset: 204; animation: draw 1s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.l-tree { transform: scaleY(0); transform-origin: bottom center; transform-box: fill-box; animation: grow .7s ease forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.l-moon { opacity: 0; animation: moonIn .9s 1s ease forwards; }
@keyframes moonIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* хиро: параллакс за мышкой */
.hero-slider { will-change: transform; }
.hero-text { will-change: transform; }

/* ночные карточки — окна с огнём */
.night-block .card:hover, .night-scene .card:hover {
  box-shadow: 0 0 0 1px rgba(232,180,110,.4), 0 24px 60px rgba(232,160,80,.12), var(--shadow);
}
.night-block .card-img::before, .night-scene .card-img::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255,190,110,.35), transparent 75%);
  opacity: 0; transition: opacity .5s ease;
}
.night-block .card:hover .card-img::before, .night-scene .card:hover .card-img::before { opacity: 1; }

/* ночная сцена с паром */
.night-scene { position: relative; overflow: hidden; }
#steam { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* лента: счётчик кадров и прогресс */
.hscroll-ui { position: absolute; left: 6vw; right: 6vw; bottom: 60px; z-index: 5; }
.hscroll-count { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent2); margin-bottom: 10px; letter-spacing: .1em; }
.hscroll-progress { height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; max-width: 220px; }
.hscroll-progress span { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width .15s linear; }

@media (max-width: 720px) { .loader-scene { width: 170px; } }

/* ============ v6 — типографическая система уровня awwwards ============ */
:root {
  --font-head: 'Spectral', Georgia, serif;
  --font-quote: 'Spectral', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

/* волосяная сетка поверх сайта */
.hairlines { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: flex; justify-content: center; }
.hairlines > div { width: 100%; max-width: 1220px; padding: 0 24px; display: flex; justify-content: space-between; height: 100%; }
.hairlines i { width: 1px; background: rgba(255,255,255,.03); }

/* заголовки: сериф, плотный набор */
.hero-text h1, .h1, .h2, .h3, .card h3 a, .step-card h3, .booking-box h3, .modal h3,
.stat b, .stat-card b, .auth-box .h1, .sec-head .h2, .logo, .footer-big {
  font-family: var(--font-head);
  letter-spacing: -.015em;
  font-weight: 600;
}
.hero-text h1 { font-weight: 600; letter-spacing: -.02em; font-size: clamp(2.6rem, 7vw, 5rem); }
.quote-text { font-family: var(--font-quote); font-style: italic; }
.step-num, .sec-num { font-family: var(--font-head); }

/* моно-этикетки: цены, даты, статусы, крошки, таблицы */
.sec-kicker, .card-type, .price, .price small, .hscroll-count, .status, .crumbs,
.hero-kicker, .table, .total, .stat span, .stat-card span, .loader-pct, .loader-text,
.bar-row, .amenities span, .chip, .contact-line, .footer, .step p, .faq-q, .faq-a > div {
  font-family: var(--font-mono);
}
.sec-kicker { letter-spacing: .22em; font-weight: 500; font-size: .74rem; }
.hero-kicker { font-family: var(--font-mono); letter-spacing: .22em; font-size: .72rem; font-weight: 500; }
.price { letter-spacing: -.02em; }
.table { font-size: .85rem; }
.step-card p { font-size: .88rem; line-height: 1.65; }
.crumbs { font-size: .78rem; letter-spacing: .04em; }

/* кнопки: плоские, моно-апперкейс, инверсия по ховеру */
.btn {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  border-radius: 4px; padding: 14px 26px;
  background: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #14100b; border-color: var(--accent); box-shadow: none; }
.btn-primary:hover { background: transparent; color: var(--accent); transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: #14100b; transform: none; }
.btn-lg { padding: 17px 34px; }
.btn-sm { padding: 8px 14px; font-size: .7rem; }
body[data-scene="night"] .btn-primary { background: #8fb2cf; border-color: #8fb2cf; color: #0c1218; box-shadow: none; }
body[data-scene="night"] .btn-primary:hover { background: transparent; color: #8fb2cf; }
body[data-scene="dawn"] .btn-primary { background: #cfa069; border-color: #cfa069; color: #171009; box-shadow: none; }
body[data-scene="dawn"] .btn-primary:hover { background: transparent; color: #cfa069; }

/* градиентные заливки иконок/бейджей — плоские */
.feature .ico { background: var(--accent); box-shadow: none; }
.card-type.post-event, .card-type.post-promo, .card-type.post-news { background: var(--accent); }
.card-type.post-event { background: #7fae7a; }
.card-type.post-news { background: #9aa3ab; }
.step-num { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.bar-fill { background: var(--accent); }
.hscroll-progress span { background: var(--accent); }

/* навигация — моно, с нижней линией */
.nav > a { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }

/* формы: моно-плейсхолдеры, чёткие рамки */
input, textarea, select { font-family: var(--font-mono); font-size: .88rem; border-radius: 4px; }

/* ссылки в тексте — подчёркивание вместо цвета */
.card-body p a, .object-grid a, .post-body a { text-decoration: underline; text-underline-offset: 3px; }

/* цитата — крупный сериф с лапками */
.quote-text { letter-spacing: -.01em; }

/* ============ v7 — финальные кинематографичные штрихи ============ */

/* заголовки — балансировка, фокус-кольца */
h1, h2, h3, .hero-text h1 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }

/* кольцо прогресса скролла (fixed, справа внизу) */
#scrolltop {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(12,17,13,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease, border-color .3s;
}
#scrolltop.show { opacity: 1; transform: none; }
#scrolltop:hover { border-color: var(--accent); }
#scrolltop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
#scrolltop circle { fill: none; stroke-width: 2; }
#scrolltop .ring-bg { stroke: rgba(255,255,255,.12); }
#scrolltop .ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
#scrolltop .st-arrow { font-family: var(--font-mono); font-size: .8rem; color: var(--accent2); }

/* вспышка названия сцены */
#scene-flash {
  position: fixed; left: 0; right: 0; top: 42%; z-index: 800;
  text-align: center; pointer-events: none;
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(3rem, 10vw, 7rem); color: var(--text);
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(16px); letter-spacing: -.02em;
}
#scene-flash.on { animation: sceneFlash 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes sceneFlash {
  0% { opacity: 0; transform: translateY(16px); }
  18% { opacity: .95; transform: none; }
  70% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-14px); }
}

/* счётчик в лайтбоксе */
.lightbox .lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .18em;
  color: rgba(255,255,255,.75);
}

/* выход прелоадера — мягче */
#loader.done { filter: blur(6px); transform: scale(1.03); }

/* фото в карточке постов — чуть выше */
.card-img img { height: 230px; }

@media (max-width: 720px) {
  #scrolltop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ---------- адаптив (восстановлено) ---------- */
@media (max-width: 960px) {
  .object-grid, .account-grid, .contacts-grid, .about-grid { grid-template-columns: 1fr; }
  .booking-box, .profile-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hscroll-ui { bottom: 40px; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: rgba(13,19,15,.97); backdrop-filter: blur(14px); flex-direction: column; align-items: stretch; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 4px; z-index: 60; }
  .nav.open { display: flex; }
  .nav > a { padding: 11px 4px; font-size: .95rem; }
  .burger { display: block; }
  .hero { height: 92vh; min-height: 560px; }
  .hero-text h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .bar-row { grid-template-columns: 100px 1fr 70px; font-size: .78rem; }
  .section { padding: 64px 0; }
  .page { padding: 108px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .grid-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .gallery-featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
  .object-head { flex-direction: column; align-items: start; gap: 8px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .admin-tabs .chip { padding: 8px 13px; font-size: .8rem; }
  .marquee-track span { font-size: .9rem; }
  .header-in { height: 66px; }
  .nav { top: 66px; }
}

/* меню на мобиле — плотнее, без просвечивания */
@media (max-width: 720px) {
  .nav { background: rgba(9,13,10,.995); }
}

/* ---------- базовые правила бренда A&A (независимые от темы) ---------- */
.logo-aa { display: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.loader-aa { display: none; width: 84px; height: 84px; border-radius: 50%; animation: pulse 1.6s ease infinite; }
.logo-word { display: inline-flex; align-items: baseline; gap: 8px; }
.logo-word b { font-weight: 800; }
.logo-word i { display: none; font-style: normal; }
.loader-text .lt-main { font-weight: 800; }
.loader-text .lt-sub { display: none; }
.hero-title .ht-line-2 {
  animation-delay: .5s;
  font-size: .48em;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent2);
}
