:root {
  --bg: #f6f1ea;
  --bg2: #efe7dc;
  --card: #fffaf4;
  --ink: #2b2420;
  --soft: #6f625a;
  --rule: #e2d7c9;
  --accent: #9a6b43;
  --accent-ink: #fffaf4;
  --shadow: 0 18px 40px -24px rgba(60, 40, 20, .45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --bg2: #1f1b18;
    --card: #24201c;
    --ink: #efe6db;
    --soft: #b1a496;
    --rule: #3a332d;
    --accent: #d2a173;
    --accent-ink: #1b1613;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; font-weight: 600; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.box { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.hd { border-bottom: 1px solid var(--rule); }
.hd__row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 22px; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.brand__sun { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(var(--accent) 0 56%, var(--ink) 56% 100%); opacity: .9; }
.hd__nav { display: flex; gap: 24px; font-size: 15px; margin-left: 12px; }
.hd__nav a { text-decoration: none; color: var(--soft); }
.hd__nav a:hover { color: var(--ink); }
.hd__lang { margin-left: auto; background: transparent; color: var(--soft); border: 1px solid var(--rule); border-radius: 8px; font: inherit; font-size: 14px; padding: 6px 8px; }
.pill { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill--fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); height: 50px; padding: 0 26px; }
.pill--fill:hover { background: var(--ink); border-color: var(--ink); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.intro h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.01em; }
.intro p { color: var(--soft); font-size: 19px; margin-top: 24px; max-width: 30em; }
.intro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.intro__photo { margin: 0; }
.intro__photo img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.intro__photo figcaption { font-size: 13px; color: var(--soft); margin-top: 10px; text-align: right; }

.how { padding-bottom: 96px; }
.how h2, .peek h2, .safe h2 { font-size: clamp(28px, 3.4vw, 40px); }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.how__item { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 28px 26px 30px; }
.how__item b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg2); color: var(--accent); font-family: Georgia, serif; font-size: 17px; margin-bottom: 18px; }
.how__item h3 { font-size: 21px; margin-bottom: 10px; }
.how__item p { color: var(--soft); font-size: 15.5px; }

.peek { background: var(--bg2); padding: 80px 0; }
.peek__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.peek__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.peek__row img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
.peek__row a:hover img { transform: translateY(-3px); }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 88px; padding-bottom: 88px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--soft); font-size: 15px; }

.safe { border-top: 1px solid var(--rule); padding: 80px 0 96px; }
.safe__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.safe p { color: var(--soft); }
.safe p + p { margin-top: 16px; }

.ft { border-top: 1px solid var(--rule); padding: 26px 0 34px; font-size: 14px; color: var(--soft); }
.ft__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--ink); }

/* альбом */
.album-hd { padding-top: 56px; padding-bottom: 28px; }
.album-hd h1 { font-size: clamp(32px, 4.4vw, 50px); }
.album-hd p { color: var(--soft); margin-top: 10px; }
.album-hd__bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--soft); }
.album-video { margin-bottom: 28px; }
.album-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 96px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--bg2); }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lb::backdrop { background: rgba(12, 10, 9, .92); }
.lb img { max-width: 94vw; max-height: 82vh; border-radius: 6px; }
.lb__bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #d9cfc4; font-size: 14px; margin-top: 12px; }
.lb__bar a { color: #f1d3b3; }
.lb__nav { display: flex; gap: 8px; }
.lb__nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #5b5149; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }

/* вход */
.auth { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 48px 20px; }
.auth__card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth__card h1 { font-size: 30px; margin-bottom: 8px; }
.auth__card > p { color: var(--soft); font-size: 15px; margin-bottom: 26px; }
.auth label { display: block; font-size: 14px; color: var(--soft); margin-bottom: 6px; }
.auth input { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: inherit; padding: 0 14px; }
.auth input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth button { width: 100%; height: 50px; margin-top: 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.auth button:disabled { opacity: .6; }
.auth__msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg2); font-size: 14.5px; }
.auth__alt { margin-top: 22px; font-size: 14px; color: var(--soft); }

.nf { padding-top: 120px; padding-bottom: 140px; text-align: center; }
.nf h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.nf p { color: var(--soft); margin-bottom: 30px; }

@media (max-width: 960px) {
  .hd__nav { display: none; }
  .intro { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
  .how__grid { grid-template-columns: 1fr; }
  .peek__row { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .safe__row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .box { padding: 0 16px; }
  .hd__row { gap: 12px; height: 64px; }
  .brand { font-size: 20px; }
  .pill { height: 38px; padding: 0 14px; font-size: 14px; }
  .pill--fill { height: 48px; }
  .intro p { font-size: 17px; }
  .feats { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
  .peek { padding: 56px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .auth__card { padding: 28px 20px; }
}

/* v2: альбом по месяцам, фильм */
.album-hd__kick { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.album-hd__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.album-film { position: relative; display: block; border-radius: 14px; overflow: hidden; margin: 10px 0 46px; box-shadow: var(--shadow); text-decoration: none; }
.album-film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.album-film:hover img { transform: scale(1.02); }
.album-film__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 250, 244, .9); }
.album-film__play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid #2b2420; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.album-film__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 40px 26px 20px; color: #fffaf4; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); font-size: 15px; }
.album-film__cap b { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
.month__hd { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 16px; }
.month__hd h2 { font-size: 26px; }
.month__hd span { color: var(--soft); font-size: 14px; }
.month .gallery { padding-bottom: 34px; }
#gallery { padding-bottom: 60px; }
.peek__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
#lb-meta { color: #b9ab9c; }

.film { padding-top: 44px; padding-bottom: 96px; }
.film__back { display: inline-block; margin-bottom: 22px; font-size: 15px; }
.film h1 { font-size: clamp(34px, 5vw, 58px); }
.film__sub { color: var(--soft); max-width: 44em; margin: 14px 0 30px; }
.film__v video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; box-shadow: var(--shadow); }
.film__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--soft); margin-top: 12px; }
.qsel { display: inline-flex; gap: 6px; }
.qsel button { border: 1px solid var(--rule); background: transparent; color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.qsel button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.film__dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 600px) {
  .album-film__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .album-film__play::after { left: 26px; top: 19px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
  .album-film__cap { padding: 26px 14px 12px; font-size: 13px; }
  .film { padding-top: 28px; }
}
