:root {
    --bg: #f3efe6;
    --bg-2: #fffdf8;
    --ink: #1b1a17;
    --muted: #6f685f;
    --line: #e3dacb;
    --pine: #1c4338;
    --pine-2: #143128;
    --clay: #b5522a;
    --card: #fffdf8;
    --shadow: 0 18px 50px rgba(28, 26, 20, .06);
    --sans: "Manrope", "Segoe UI", sans-serif;
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --radius: 22px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(28, 67, 56, .08), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(181, 82, 42, .06), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 520; letter-spacing: -0.03em; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--pine);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--clay);
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 40;
    margin: 14px 18px 0;
    border-radius: 999px;
    background: rgba(255, 253, 248, .9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 34px rgba(20, 16, 12, .08);
}
.header-row {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 64px;
    padding: 0 8px 0 18px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -.04em;
    font-size: 18px;
}
.mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pine);
    position: relative;
    flex: none;
}
.mark::before, .mark::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 2px;
}
.mark::before { left: 6px; width: 6px; background: #efe7c8; }
.mark::after { right: 6px; width: 7px; background: #fffdf8; }
.nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--pine);
    color: #f6f3ea;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14.5px;
}
.btn:hover { background: var(--pine-2); }
.btn.light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light:hover { background: #fff; }
.btn.wide { width: 100%; }

.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; padding: 54px 0 20px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .92; margin: 0 0 18px; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 0 26px; }
.search {
    display: flex;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    max-width: 520px;
    box-shadow: var(--shadow);
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a, .pill {
    text-decoration: none;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 253, 248, .7);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
}
.chips a:hover { border-color: var(--pine); color: var(--pine); }
.hero-panel {
    background: var(--pine);
    color: #f6f3ea;
    border-radius: 28px;
    padding: 26px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-panel strong { font-family: var(--serif); font-size: 42px; font-weight: 520; letter-spacing: -.03em; display: block; line-height: 1; }
.hero-panel span { color: rgba(246, 243, 234, .72); font-size: 14px; }
.hero-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.section { padding: 54px 0; }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 26px; max-width: 52ch; }
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat b { font-size: 20px; letter-spacing: -.03em; }
.cat small { color: var(--muted); }
.cat.wide { grid-column: span 2; background: var(--ink); color: #f6f3ea; border-color: transparent; }
.cat.wide small { color: rgba(246, 243, 234, .65); }
.cat em { font-style: normal; font-family: var(--serif); font-size: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step i { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--clay); }

.oblasts { display: grid; gap: 22px; }
.oblast h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 750; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.city-links a { text-decoration: none; font-weight: 650; border-bottom: 1px solid transparent; }
.city-links a:hover { border-bottom-color: var(--ink); }

.band {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 24px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
}
.band h2 { margin: 0 0 8px; font-size: 40px; }

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: .95; margin: 0 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; align-items: start; }
.cards { display: grid; gap: 12px; }
.partner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    text-decoration: none;
}
.avatar, .logo-img {
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--pine); color: #f6f3ea;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 24px;
    object-fit: cover;
}
.partner b { display: block; font-size: 17px; }
.partner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 700; background: var(--bg); border-radius: 999px; padding: 3px 8px; }

.empty {
    border: 1px dashed #cfc6b6;
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 253, 248, .55);
}
.empty h2 { font-size: 32px; margin: 0 0 8px; }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    position: sticky;
    top: 88px;
}
.panel h2 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; margin: 0 0 12px; font-weight: 750; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="file"], select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pine); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 6px 0; }
.check input { width: auto; }
.hp { position: absolute; left: -9999px; }
.note { background: #e7f2ec; color: var(--pine-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.err { color: var(--clay); font-size: 13px; margin: 4px 0 0; }
.flash { margin: 12px 0; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot strong { color: var(--ink); }

.admin {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.side {
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: rgba(255, 253, 248, .65);
}
.side a { display: block; text-decoration: none; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.side a.active, .side a:hover { background: #fff; color: var(--ink); }
.main { padding: 28px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.pager a { color: var(--pine); font-weight: 750; }
.filters { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.filters a { text-decoration: none; }

.kicker.light { color: #f3e6cf; }
.kicker.light::before { background: #f0c9a0; }
.lede.light { color: rgba(246, 241, 232, .86); }

body.has-stage .site-header {
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    margin: 0;
}
.stage {
    position: relative;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    border-radius: 0 0 48px 48px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #f6f1e8;
}
.stage-photo, .stage-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-photo { object-fit: cover; }
.stage-shade {
    background:
        linear-gradient(90deg, rgba(16, 14, 11, .78) 0%, rgba(16, 14, 11, .42) 46%, rgba(16, 14, 11, .12) 100%);
}
.stage-copy { position: relative; z-index: 1; padding: 128px 8px 92px; max-width: 760px; }
.stage-copy h1 { color: #fff; margin: 0 0 14px; font-size: clamp(52px, 7vw, 92px); line-height: .9; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.stage-meta { color: rgba(246, 241, 232, .78); font-size: 14px; font-weight: 650; }
.stage .chips a { background: rgba(255, 253, 248, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.stage .chips a:hover { background: #fff; color: var(--ink); }

.reel {
    width: min(1180px, calc(100% - 32px));
    margin: -54px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 12px;
}
.reel a, .gallery a {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}
.reel img, .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.reel a:hover img, .gallery a:hover img { transform: scale(1.04); }
.reel a::after, .gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(16, 14, 11, .72));
}
.reel span, .gallery span { position: relative; z-index: 1; padding: 16px 16px 14px; }
.reel small, .gallery small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.reel b, .gallery b { font-family: var(--serif); font-size: 28px; font-weight: 520; letter-spacing: -.03em; }

.gallery {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 12px;
}
.gallery a:first-child { grid-row: span 2; min-height: 100%; }
.gallery a:first-child b { font-size: 40px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.split > img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; }
.steps.tight { grid-template-columns: 1fr; margin-top: 8px; }

.band.photo { grid-template-columns: 280px 1fr; padding: 14px; align-items: stretch; }
.band.photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 20px; }

.ask {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    border: 0;
    cursor: pointer;
    background: var(--ink);
    color: #f6f1e8;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 750;
    box-shadow: 0 12px 30px rgba(20, 16, 12, .22);
}
.sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(18, 15, 12, .58);
    display: grid;
    place-items: center;
    padding: 18px;
}
.sheet[hidden] { display: none !important; }
.sheet-card {
    width: min(920px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    background: var(--card);
    border-radius: 28px;
}
.sheet-card > img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.sheet-body { position: relative; padding: 28px 26px 22px; }
.sheet-body h2 { font-size: 36px; line-height: 1; margin: 0 0 8px; }
.sheet-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 900px) {
    .hero, .grid-2, .band, .steps, .bento, .stats, .admin { grid-template-columns: 1fr; }
    .cat.wide { grid-column: auto; }
    .bento { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: rgba(255, 253, 248, .97); border: 1px solid var(--line); border-radius: 24px; padding: 12px 16px 16px; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .panel { position: static; }
    .side { border-right: 0; border-bottom: 1px solid var(--line); }
    .main { padding: 18px 16px 32px; }
    .hero { padding-top: 28px; }
    .site-header, body.has-stage .site-header { left: 12px; right: 12px; }
    body:not(.has-stage) .site-header { margin-left: 12px; margin-right: 12px; }
    .stage { min-height: 92vh; border-radius: 0 0 28px 28px; }
    .stage-copy { padding-top: 112px; padding-bottom: 72px; }
    .stage-shade { background: linear-gradient(180deg, rgba(16, 14, 11, .2) 0%, rgba(16, 14, 11, .78) 70%); }
    .reel, .gallery, .split, .band.photo, .pair, .sheet-card { grid-template-columns: 1fr; }
    .reel { margin-top: 12px; }
    .gallery a:first-child { grid-row: auto; }
    .split > img, .sheet-card > img { height: 240px; min-height: 0; }
    .sheet-body h2 { font-size: 30px; }
}
@media (max-width: 560px) {
    .bento, .stats { grid-template-columns: 1fr; }
    .search { border-radius: 18px; flex-direction: column; padding: 10px; }
}
