
/* ---------- карточки объектов ---------- */
.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; }
