/* Портал «Исток Ижоры» — фирменная палитра снята с эмблемы Содружества */
:root {
  --navy: #0B1E56;      /* текст шапки */
  --blue: #0E65C2;      /* основные кнопки */
  --blue-2: #1A79C9;    /* акценты */
  --sky: #2A99E0;       /* волна, градиенты */
  --ice: #EAF4FC;       /* плашки */
  --ink: #142033;
  --muted: #5C6B80;
  --line: #DCE5EF;
  --bg: #FFFFFF;
  --bg-2: #F5F8FC;
  --ok: #1E8E5A; --warn: #C77700; --bad: #C0392B;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,30,86,.06), 0 6px 18px rgba(11,30,86,.06);
  --serif: Georgia, "PT Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font: 700 20px var(--serif); white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 8px; border-radius: 10px; color: var(--ink); white-space: nowrap; font-size: 14.5px; }
.nav a.on, .nav a:hover { background: var(--ice); color: var(--navy); text-decoration: none; }
.me { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: top; }
.btn.burger { display: none; }

/* волна */
.wave { display: block; width: 100%; height: 34px; }
.hero { background: linear-gradient(180deg, var(--ice), #fff); padding: 36px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.hero p.lead { font-size: 18px; color: #2b3a52; max-width: 560px; }
.hero .emblem { width: min(320px, 70%); margin: 0 auto; display: block; filter: drop-shadow(0 10px 30px rgba(14,101,194,.18)); }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.stats b { display: block; font: 700 26px var(--serif); color: var(--navy); }

/* кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 12px; font: 600 15px var(--sans); cursor: pointer; text-decoration: none !important; }
.btn:hover { background: #0b56a7; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--ice); }
.btn.light { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e7b7b1; }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
label.f { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
label.f > span { display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: 15px var(--sans); padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=range] { padding: 0; }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink); margin: 6px 0; }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 18px; }
.card .em { width: 52px; height: 52px; border-radius: 12px; background: var(--ice); display: grid; place-items: center; font-size: 28px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card.link { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card.link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11,30,86,.12); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--ice); color: var(--navy); font-size: 12.5px; white-space: nowrap; }
.pill.ok { background: #E3F5EC; color: var(--ok); } .pill.warn { background: #FFF2DC; color: var(--warn); } .pill.bad { background: #FBE6E3; color: var(--bad); }
.price { font: 700 18px var(--sans); color: var(--navy); white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.section { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }

/* уровни продукта */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level { border-radius: var(--radius); padding: 18px; background: #fff; border: 1px solid var(--line); }
.level .n { font: 700 34px var(--serif); color: var(--sky); }

/* таблицы с сортировкой */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: var(--bg-2); color: var(--muted); font-weight: 600; white-space: nowrap; user-select: none; }
table.t th.s { cursor: pointer; }
table.t th.s:hover { color: var(--navy); }
table.t th.on { color: var(--navy); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }

/* вкладки */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--navy); border-color: var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--navy); }

/* фильтры */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }

/* прогресс сбора */
.progress { height: 10px; background: var(--ice); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* таймлайн маршрута */
.timeline { position: relative; margin: 10px 0 0; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.tl-travel { color: var(--muted); font-size: 13.5px; padding: 0 0 12px; }

/* квест */
.quest { max-width: 760px; margin: 0 auto; }
.quest-stage { background: linear-gradient(160deg, #0B1E56, #0E65C2 70%, #2A99E0); color: #fff; border-radius: 22px; padding: 28px; min-height: 380px; }
.quest-stage h2 { color: #fff; }
.quest-img { font-size: 64px; text-align: center; margin: 6px 0 12px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.opt { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; font: 15px var(--sans); }
.opt:hover, .opt.on { background: #fff; color: var(--navy); }
.opt .oi { font-size: 30px; display: block; margin-bottom: 4px; }
.bag { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; padding: 10px; background: rgba(255,255,255,.1); border-radius: 12px; margin-top: 10px; }
.bag span { font-size: 22px; animation: drop .4s ease-out; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.wheel-box { display: grid; place-items: center; gap: 12px; }
.wheel { transition: transform 4.2s cubic-bezier(.12,.66,.13,1); }
.pointer { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff; margin-bottom: -18px; z-index: 1; position: relative; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }

/* сообщения */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 150px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-list a.on { background: var(--ice); }
.chat-list a:hover { text-decoration: none; background: var(--bg-2); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.msg { max-width: 76%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; align-self: flex-start; position: relative; }
.msg.mine { align-self: flex-end; background: #E2F0FD; border-color: #cfe3f7; }
.msg.sel { outline: 2px solid var(--blue); }
.msg .who { font-size: 12.5px; color: var(--muted); }
.msg .fwd { font-size: 12.5px; color: var(--blue-2); border-left: 3px solid var(--sky); padding-left: 6px; margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }
.msg img.prev { max-width: 260px; max-height: 200px; border-radius: 8px; display: block; margin-top: 6px; }
.file { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; margin: 4px 4px 0 0; }
.composer { border-top: 1px solid var(--line); padding: 10px; }
.composer textarea { min-height: 44px; max-height: 160px; }
.pending-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.drop { outline: 3px dashed var(--sky); outline-offset: -8px; }

/* модальные окна и уведомления */
.modal-bg { position: fixed; inset: 0; background: rgba(11,30,86,.35); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { width: min(900px, 100%); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--bad); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
footer { background: var(--navy); color: #c9d5ea; margin-top: 50px; }
footer a { color: #fff; }
footer .wrap { padding: 28px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; font-size: 14px; }
footer h4 { color: #fff; margin: 0 0 8px; font-family: var(--serif); }
.kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi b { display: block; font: 700 24px var(--serif); color: var(--navy); }
.diff { font-size: 13.5px; background: var(--bg-2); border-radius: 8px; padding: 6px 10px; margin: 4px 0; }
.diff del { color: var(--bad); } .diff ins { color: var(--ok); text-decoration: none; }
.hide { display: none !important; }

@media (max-width: 860px) {
  .hero-grid, .levels, footer .wrap { grid-template-columns: 1fr; }
  .hero .emblem { width: 180px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .msgs { min-height: 50vh; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .btn.burger { display: inline-flex; }
  .brand span { display: none; }
}
@media (max-width: 520px) { .grid2, .grid3, .filters { grid-template-columns: 1fr; } .msg { max-width: 92%; } }

.quest-stage small, .quest-stage .muted { color: #d6e6ff; }
.opt:hover small, .opt.on small { color: var(--muted); }
.quest-stage summary { cursor: pointer; }

/* ---- дополнения коллег 11.11: главный экран, Афиша, сюрпризы ---- */
:root { --gold: #C9962B; --green: #2E7D5B; }
.hero-main { background: radial-gradient(1200px 400px at 80% 0%, rgba(201,150,43,.12), transparent 60%), linear-gradient(180deg, var(--ice), #fff); }
.hero-main h1 { font-size: clamp(28px, 4.2vw, 46px); }
.hero .sub { font: 600 19px/1.45 var(--serif); color: var(--navy); max-width: 620px; }
.hero-btns { display: grid; gap: 10px; margin-top: 14px; }
.hero-btns .btn.big { padding: 12px 18px; font-size: 16px; }
.promise { font-style: italic; color: var(--muted); margin-top: 14px; }
.plaque { display: flex; align-items: center; gap: 14px; width: 100%; margin: 18px 0 8px; padding: 14px 18px; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: linear-gradient(90deg, #0E65C2, #2A99E0 60%, #C9962B); color: #fff; font: 15px/1.4 var(--sans); box-shadow: 0 8px 24px rgba(14,101,194,.25); }
.plaque b { font-size: 17px; }
.plaque .spin { font-size: 34px; display: inline-block; animation: spinwheel 6s linear infinite; }
@keyframes spinwheel { to { transform: rotate(360deg); } }
@keyframes glow { 0%,100% { box-shadow: 0 8px 24px rgba(201,150,43,.25); } 50% { box-shadow: 0 8px 30px rgba(201,150,43,.6); } }
.wheel-mini { font-size: 64px; animation: spinwheel 4s linear infinite; display: inline-block; }
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teaser { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.teaser:hover { text-decoration: none; border-color: var(--sky); }
.teaser small { text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.teaser h3 { margin: 0; }
.teaser .more { margin-top: auto; color: var(--blue); font-size: 14px; }
.card.chest { background: linear-gradient(160deg, #fff8e8, #fff); border-color: #e9d29b; animation: glow 3s ease-in-out infinite; }
.card.chest .em { background: #fbeccc; }
.surprise { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #fff6df; border: 1px solid #ecd49a; color: #6b4b00; }
.quest .surprise { background: rgba(255,214,120,.18); border-color: rgba(255,214,120,.5); color: #fff3cf; }
.spirit { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45); color: #fff; }
.btn.vk { padding: 6px 8px; }
@media (max-width: 900px) { .teasers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .teasers { grid-template-columns: 1fr; } .hero-btns .row { flex-direction: column; align-items: stretch; } }
@media (max-width: 1320px) { .nav a { padding: 8px 6px; font-size: 14px; } .top .wrap { gap: 12px; } }
@media (max-width: 1240px) { .brand span { display: none; } }
@media (max-width: 1320px) { .me .lbl { display: none; } .me .btn.sm { padding: 6px 9px; } .me { gap: 6px; } }

/* ---- левое меню (11.11): разделы не перекрываются кнопками шапки ---- */
:root { --side: 220px; }
.side { position: fixed; top: 65px; left: 0; bottom: 0; width: var(--side); z-index: 15; overflow-y: auto; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 24px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.side a .ic { width: 22px; text-align: center; }
.side a.sub { padding: 6px 12px 6px 44px; font-size: 14px; color: var(--muted); }
.side a.on, .side a:hover { background: var(--ice); color: var(--navy); text-decoration: none; }
.side-sep { margin: 14px 12px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
main, footer { margin-left: var(--side); }
.brand span { display: inline; }
.btn.burger { display: none; }
@media (max-width: 900px) {
  main, footer { margin-left: 0; }
  .side { display: none; bottom: auto; right: 0; width: auto; max-height: calc(100vh - 64px); border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11,30,86,.12); }
  .side.open { display: flex; }
  .btn.burger { display: inline-flex; }
  .brand span { display: none; }
}
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr !important; } }
.wrap.section { padding-left: 24px; padding-right: 24px; }
@media (max-width: 900px) { .wrap.section { padding-left: 16px; padding-right: 16px; } }

.side a.sub.on { color: var(--navy); font-weight: 600; }
.tabs.mobile-only { display: none; }
@media (max-width: 900px) { .tabs.mobile-only { display: flex; } }
.brand { flex-shrink: 0; }
@media (max-width: 520px) {
  .top .wrap { gap: 8px; }
  .me .vk { display: none; }
  .me a[href="#/account"] { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
}

/* =====================================================================
   Тема «Исток Ижоры» по визуальному образу 11.11: лес, крем, золото, засечки
   ===================================================================== */
:root {
  --forest: #23382b; --forest-2: #263b2e; --forest-3: #18251c; --gold: #c59b5b; --gold-2: #d7ad6a; --gold-3: #e5c18a; --cream: #f1eadb;
  --navy: #23382b; --blue: #c59b5b; --blue-2: #9a7948; --sky: #c59b5b; --ice: #e8dcc4;
  --ink: #263b2e; --muted: #687366; --line: #d6c9ae; --bg: #f1eadb; --bg-2: #eee5d4;
  --ok: #3f6b4a; --warn: #9a6a1f; --bad: #a2402f;
  --radius: 4px; --shadow: 0 1px 2px rgba(35,56,43,.06), 0 8px 22px rgba(35,56,43,.08);
  --serif: Georgia, "PT Serif", "Times New Roman", serif;
  --label: 11px/1.2 Arial, "Helvetica Neue", sans-serif;
}
html, body { background: var(--cream); font-family: var(--serif); }
h1, h2, h3 { font-weight: 400; letter-spacing: -.5px; color: var(--forest); }
h1 { letter-spacing: -1px; }
a { color: #8a6a3a; }
.muted, small { color: var(--muted); }
.label, .eyebrow { font: var(--label); text-transform: uppercase; letter-spacing: 4px; color: #9a7948; }
.lead { color: #657064; }

/* кнопки: золотая основная, контурная вторичная */
.btn { background: var(--gold-2); border-color: var(--gold-2); color: #243528; border-radius: 3px; font: 14px/1.2 var(--sans); letter-spacing: .2px; transition: background .3s, transform .3s; }
.btn:hover { background: #f0d49e; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #6f5430; border-color: #b48c52; }
.btn.ghost:hover { background: #e8dcc4; }
.btn.light { background: #e8dcc4; border-color: #e8dcc4; color: var(--forest); }
.btn.danger { background: transparent; color: var(--bad); border-color: #d4a397; }
.pill { background: #e8dcc4; color: var(--forest); border-radius: 2px; font-family: var(--sans); }
.pill.ok { background: #dfe8d9; color: var(--ok); } .pill.warn { background: #f3e2c2; color: var(--warn); } .pill.bad { background: #f2d9d2; color: var(--bad); }

/* шапка и левое меню — тёмный лес */
.top { background: rgba(38,59,46,.97); border-bottom: 1px solid #ffffff1a; }
.brand { color: #f8ecd4; font: 400 23px/1.05 var(--serif); letter-spacing: .5px; }
.brand img { filter: brightness(0) invert(.92) sepia(.25); }
.brand small { display: block; font: 8.5px Arial, sans-serif; letter-spacing: 5px; margin-top: 5px; color: #d8b47b; }
.top .btn.ghost { color: #f2dfbc; border-color: #d3ae7088; background: transparent; }
.top .btn.ghost:hover { background: #ffffff14; }
.top .btn { border-radius: 30px; }
.side { background: var(--forest); border-right: 1px solid #ffffff12; }
.side a { color: #e9e0cc; font-family: var(--serif); }
.side a.sub { color: #b9bfae; }
.side a.on, .side a:hover { background: #ffffff10; color: var(--gold-3); }
.side a.on { box-shadow: inset 2px 0 0 var(--gold); }
.side-sep { color: #d8b47b; font: var(--label); letter-spacing: 3px; }

/* карточки и панели — кремовые, почти без скруглений */
.card, .teaser, .level, .panel, .kpi div, .tbl-wrap, .modal { background: #f8f2e6; border-color: var(--line); border-radius: 3px; }
.card .em { background: #e8dcc4; border-radius: 2px; }
.card.link:hover, .teaser:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(35,56,43,.14); border-color: #b48c52; }
.card h3 { font-size: 21px; }
.price { font-family: var(--serif); color: var(--forest); }
table.t th { background: #eee5d4; font-family: var(--sans); }
.tabs a.on { color: var(--forest); border-color: var(--gold); }
input, select, textarea { background: #fbf7ef; border-color: #cbbd9f !important; border-radius: 2px !important; }
.modal-bg { background: rgba(20,34,25,.88); }
.toast { background: var(--forest); color: #f3e7cf; border-radius: 3px; }
.level .n { color: var(--gold); }
footer { background: var(--forest-3); color: #d9d1c0; }
footer h4 { color: #f2e5cd; font-weight: 400; }
footer a { color: #e5c18a; }

/* первый экран — фото во всю ширину, текст слева */
.hero-main { position: relative; min-height: 640px; height: 86vh; max-height: 880px; padding: 0; color: #f8ecd4; overflow: hidden; background: var(--forest-2); }
.hero-main .hero-bg { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16,27,19,.86), rgba(24,35,23,.38) 62%, rgba(15,26,17,.18)), linear-gradient(0deg, rgba(18,28,20,.7), transparent 60%),
  var(--hero-img, radial-gradient(900px 500px at 75% 30%, #4d6a4f, #23382b 70%)) center/cover;
  transform: scale(1.04); animation: herozoom 24s ease-in-out infinite alternate; }
@keyframes herozoom { to { transform: scale(1.12); } }
.hero-main .hero-copy { position: relative; z-index: 2; padding: 9vh 6% 0; max-width: 820px; }
.hero-main .eyebrow { color: #d8b47b; }
.hero-main h1 { color: #f8ecd4; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; margin: 20px 0; letter-spacing: -2px; }
.hero-main h1 em { color: var(--gold-3); font-style: italic; }
.hero-main .sub { color: #f0e1c5; font: italic 400 19px/1.55 var(--serif); max-width: 640px; }
.hero-main .lead { color: #e6dfd0; font-size: 17px; line-height: 1.7; max-width: 560px; }
.hero-main .btn { border-radius: 3px; }
.hero-main .btn.ghost { color: #f7e5c1; border-color: #d3ae70; }
.hero-main .btn.ghost:hover { background: #ffffff14; }
.hero-main .btn.light { background: #ffffff1a; border-color: #ffffff33; color: #f8ecd4; }
.hero-main .promise { color: #f0d9ae; }
.hero-note { position: absolute; z-index: 2; right: 7%; bottom: 17%; font: italic 19px/1.4 var(--serif); color: #f0d9ae; transform: rotate(-5deg); text-align: right; }
.hero-emblem { position: absolute; z-index: 1; right: 6%; top: 12%; width: min(260px, 22vw); opacity: .9; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.hero-main .plaque-wrap { position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 26px; }
.plaque { background: linear-gradient(90deg, #23382bcc, #3c5240cc 55%, #c59b5bdd); border: 1px solid #d3ae7066; border-radius: 3px; color: #f8ecd4; margin: 0; backdrop-filter: blur(3px); box-shadow: none; }
.scroll-hint { position: absolute; z-index: 2; bottom: 110px; left: 50%; transform: translateX(-50%); font: 10px Arial, sans-serif; letter-spacing: 3px; color: #f0e1c5; display: flex; align-items: center; gap: 12px; opacity: .8; }
.scroll-hint:after { content: ""; height: 30px; width: 1px; background: #d6b477; animation: line 1.5s infinite; }
@keyframes line { 0%, 100% { transform: scaleY(.5); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
.sound { position: absolute; z-index: 4; right: 24px; top: 24px; border: 1px solid #ffffff55; color: #fff; background: #1a2c2088; border-radius: 30px; padding: 8px 14px; font: 11px Arial, sans-serif; cursor: pointer; }
.wave { display: none; }

/* разделы главной: номер-метка, крупный заголовок, тёмные секции */
.sec { padding: 80px 0; }
.sec .label { display: block; margin-bottom: 14px; }
.sec h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; margin: 0 0 18px; }
.sec.dark { background: var(--forest-2); color: #f1eadb; }
.sec.dark h2, .sec.dark h3 { color: #f1eadb; } .sec.dark .muted, .sec.dark .lead { color: #c6cbbf; } .sec.dark .label { color: #d8b47b; }
.sec.dark .card { background: #2f4636; border-color: #ffffff1f; color: #f1eadb; } .sec.dark .card h3, .sec.dark .price { color: #f1eadb; } .sec.dark .card small, .sec.dark .card .muted { color: #c6cbbf; }
.sec.dark .card .em { background: #3c5240; } .sec.dark .section-head a { color: #e5c18a; }
.sec.sand { background: #e5dac5; }
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.photo-card { position: relative; min-height: 300px; overflow: hidden; background: #405341; color: #f4e9d5; border-radius: 2px; display: block; }
.photo-card .ph { position: absolute; inset: 0; background: var(--img, linear-gradient(160deg, #4d6a4f, #23382b)) center/cover; transition: transform .8s; }
.photo-card:hover .ph { transform: scale(1.08); }
.photo-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #17251ddd, transparent 75%); }
.photo-card .tx { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.photo-card .tx small { font: var(--label); letter-spacing: 3px; text-transform: uppercase; color: #d8b47b; }
.photo-card .tx h3 { color: #f4e9d5; font-size: 25px; margin: 8px 0; }
.photo-card .tx div { font: 13px/1.55 Arial, sans-serif; opacity: .85; }
.photo-card:hover { text-decoration: none; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: center; }
.story-img { min-height: 420px; background: var(--img, linear-gradient(160deg, #4d6a4f, #23382b)) center/cover; position: relative; border-radius: 2px; }
.story-img:after { content: ""; position: absolute; inset: 18px; border: 1px solid #e8d5ad88; }
.story-img .cap { position: absolute; z-index: 2; left: 30px; bottom: 30px; color: #f0e1c5; font: italic 20px/1.4 var(--serif); }
blockquote.quote { font: italic 400 clamp(24px, 2.8vw, 36px)/1.4 var(--serif); color: #b48c52; margin: 26px 0; }
.sec.dark blockquote.quote { color: #d7b47b; }
.text-link { display: inline-block; border-bottom: 1px solid #b48c52; padding: 10px 0; font-size: 14px; color: inherit; }
.text-link:hover { text-decoration: none; color: #8a6a3a; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }
.levels .level { border-radius: 2px; }

/* квест — лесная ночь вместо синевы */
.quest-stage { background: linear-gradient(160deg, #18251c, #263b2e 60%, #4a5d3e); border-radius: 4px; }
.opt { border-radius: 3px; }
.opt:hover, .opt.on { background: #f1eadb; color: var(--forest); }
.surprise { background: #f3e5c6; border-color: #d9bd85; color: #5e4518; border-radius: 3px; }

@media (max-width: 900px) {
  .photo-cards { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 26px; }
  .hero-emblem { display: none; }
  .hero-note { display: none; }
  .hero-main { height: auto; min-height: 0; padding-bottom: 120px; }
  .hero-main .hero-copy { padding: 48px 16px 0; }
  .sec { padding: 56px 0; }
}
@media (max-width: 560px) { .photo-cards { grid-template-columns: 1fr; } .photo-card { min-height: 240px; } }
/* правки первого экрана: всё в потоке, ничего не перекрывается */
.hero-main { height: auto; max-height: none; min-height: 88vh; padding-bottom: 36px; display: flex; flex-direction: column; justify-content: center; }
.hero-main p.lead { color: #e6dfd0; }
.hero-main .plaque-wrap { position: relative; left: auto; right: auto; bottom: auto; z-index: 3; padding: 26px 6% 0; }
.hero-main .scroll-hint { display: none; }
.hero-note { bottom: 150px; }
.hero-emblem { filter: grayscale(1) sepia(.55) brightness(1.35) drop-shadow(0 10px 30px rgba(0,0,0,.35)); opacity: .55; }
.hero-main .hero-copy { padding-top: 70px; }
.side a.sub.on { color: var(--gold-3); }
footer img { filter: brightness(0) invert(.92) sepia(.25); }

/* 11.11: фото из сообщества — размер/позиция для всех слоёв фона */
.photo-card .ph, .story-img { background: none; background-image: var(--img, linear-gradient(160deg, #4d6a4f, #23382b)); background-size: cover; background-position: center; }
.hero-bg { background-size: cover !important; background-position: center 40% !important; }
