@font-face {
  font-family: Oswald;
  src: url(assets/oswald.ttf);
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url(assets/onest.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #11100f;
  --paper: #f0ede6;
  --gold: #d7b875;
  --bronze: #7c602f;
  --line: #4b4436;
  --display: Oswald, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font: 400 17px/1.55 Onest, Arial, sans-serif;
}
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid #438dd0; outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(2.75rem, 1.9rem + 3.2vw, 5.4rem); }
h3 { font-weight: 580; font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); letter-spacing: -.045em; line-height: 1.2; }
em { font-style: normal; color: var(--gold); }
.shell { width: min(88.5%, 1440px); margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 20px; z-index: 4; background: white; padding: 10px; }
.skip:focus { top: 10px; }
.hero { isolation: isolate; position: relative; display: flex; flex-direction: column; background: #11100e; color: #f4efe5; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
.topbar { display: grid; grid-template-columns: 42% 1fr; align-items: center; min-height: clamp(76px, 7vw, 100px); border-bottom: 1px solid #a694695f; }
.brand { display: inline-flex; width: fit-content; gap: 13px; align-items: center; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { font: 700 clamp(16px, 1.5vw, 22px)/1.05 var(--display); letter-spacing: .012em; }
.brand small { display: block; color: var(--gold); font: 650 10px/1 Onest, sans-serif; letter-spacing: .42em; margin-top: 7px; }
nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 60px); }
nav a { color: #f3eee3; font-size: clamp(.95rem, 1.4vw, 1.22rem); text-decoration: none; padding-block: 10px; }
.cover { margin-block: auto; padding-block: 40px; }
h1 { font-size: clamp(4.6rem, 8.8vw, 9.4rem); line-height: 1.04; letter-spacing: -.055em; }
.cover p { margin: clamp(18px, 2.3vw, 34px) 0 clamp(25px, 3.1vw, 44px); max-width: 42%; font-size: clamp(1.18rem, 2.1vw, 2rem); line-height: 1.3; letter-spacing: -.025em; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--gold); border: 1px solid #e0c88c; border-radius: 3px; color: #211c13; padding: .8em 1.35em; min-height: 48px; font: 620 clamp(1rem, 1.63vw, 1.48rem)/1.3 Onest, sans-serif; text-decoration: none; }
.button:hover { background: #e7ca8c; text-decoration: none; }
.rule { margin-bottom: min(5.5vw, 80px); display: flex; gap: 12px; align-items: center; color: var(--gold); font-size: 10px; line-height: 1; }
.rule::before, .rule::after { content: ""; flex: 1; border-top: 1px solid #a68f635e; }
.band, footer { color: var(--paper); background-color: #151514; }
.light { background: var(--paper); }
.light em { color: var(--bronze); }
main > section:not(.hero) { padding-block: clamp(60px, 7.7vw, 125px); }
.label { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--bronze); margin: 0 0 22px; }
.band .label { color: var(--gold); }
.pair { display: grid; grid-template-columns: 1fr .84fr; align-items: center; gap: clamp(35px, 9vw, 145px); }
.pair p:not(.label) { max-width: 50ch; color: #504e48; }
.pair .bodycopy { font-size: clamp(1.25rem, 1.55vw, 1.65rem); color: var(--ink); line-height: 1.45; letter-spacing: -.015em; }
.inline { display: inline-flex; align-items: center; gap: .85em; font-size: .94rem; font-weight: 600; }
.inline span { color: var(--bronze); }
.portrait img { width: 100%; aspect-ratio: 1.26; object-fit: cover; object-position: 50% 38%; filter: saturate(.7); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; color: #595447; border-bottom: 1px solid #c3bbab; padding-block: 9px; font-size: 12px; }
.cards, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.7vw, 43px); margin-top: clamp(28px, 3.7vw, 56px); }
.cards img { width: 100%; aspect-ratio: 1.38; object-fit: cover; object-position: 50% 43%; filter: saturate(.62); }
.cards h3 { margin-top: 20px; }
.cards p, .steps p { color: #c6c2b8; font-size: 16px; }
.cards .inline, .cards .inline span { color: var(--gold); }
.reverse { grid-template-columns: .84fr 1fr; }
.community { background: #e4dfd3; }
.join { background: #21211f; }
.steps { list-style: none; counter-reset: step; padding: 0; margin-bottom: 0; }
.steps li { counter-increment: step; border-top: 1px solid #746b58; padding-top: 17px; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 26px/1 var(--display); color: var(--gold); display: block; margin-bottom: 30px; }
.steps p { margin-bottom: 0; }
.faq-grid { display: grid; grid-template-columns: .9fr 1.4fr; align-items: start; gap: 7%; }
details { border-top: 1px solid #beb8aa; }
details:last-child { border-bottom: 1px solid #beb8aa; }
summary { cursor: pointer; list-style: none; font-size: clamp(17px, 1.45vw, 22px); font-weight: 550; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 65px; padding: 15px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--bronze); font-size: 25px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: #504e48; margin: 0 0 22px; max-width: 53ch; }
.invite { position: relative; isolation: isolate; background: #141411; }
.invite h2 { font-size: clamp(4rem, 7vw, 7rem); margin-bottom: 28px; }
footer { background: #100f0e; }
footer .shell { display: flex; align-items: center; gap: 32px; padding-block: 20px; }
footer .brand { margin-right: auto; }
footer a:not(.brand) { font-size: 14px; text-decoration: none; }
@media (min-width: 681px) {
  .hero { min-height: min(100vh, 69vw, 1000px); min-height: min(100dvh, 69vw, 1000px); }
  .hero-art { display: flex; justify-content: flex-end; }
  .hero-art img {
    width: auto; max-width: 100%; object-fit: contain; object-position: right center;
    mask-image: linear-gradient(to right, transparent, black 26%);
  }
  .topbar { min-height: clamp(60px, 10dvh, 90px); }
  .cover { padding-block: clamp(14px, 3dvh, 34px); }
  .cover h1 { font-size: clamp(3.6rem, min(8.8vw, 14dvh), 8.5rem); }
  .cover p { margin-block: clamp(12px, 2.4dvh, 26px) clamp(18px, 3.4dvh, 36px); }
  .rule { margin-bottom: clamp(14px, 3.4dvh, 38px); }
}
@media (max-width: 850px) {
  .shell { width: 90%; }
  .pair { gap: 6%; }
  .cover p { max-width: 46%; }
}
@media (max-width: 680px) {
  .hero { min-height: 0; display: grid; grid-template-columns: 1fr; background: #12110f; }
  .topbar { grid-row: 1; grid-template-columns: auto auto; justify-content: space-between; min-height: 67px; }
  .brand img { width: 38px; height: 38px; }
  .brand { gap: 8px; }
  .brand span { font-size: 15px; }
  .brand small { font-size: 8px; }
  nav { gap: 15px; }
  nav a { font-size: 13px; }
  .cover { grid-row: 2; padding-block: 30px 15px; }
  h1 { font-size: clamp(3.8rem, 12.9vw, 5rem); }
  .cover p { font-size: 18px; max-width: 100%; margin: 15px 0 20px; }
  .hero-art { position: static; grid-row: 3; z-index: auto; justify-self: center; width: 100%; height: clamp(220px, 67vw, 360px); }
  .hero-art img { object-fit: contain; }
  .rule { grid-row: 4; margin: 7px auto 23px; }
  .pair, .reverse, .faq-grid, .cards, .steps { grid-template-columns: 1fr; gap: 27px; }
  .reverse .portrait { order: 2; }
  .portrait img { aspect-ratio: 1.65; }
  .label { margin-bottom: 13px; }
  .cards img { aspect-ratio: 1.8; }
  .steps li::before { margin-bottom: 12px; font-size: 21px; }
  h2 { font-size: clamp(2.65rem, 8.9vw, 3.25rem); }
  footer .shell { flex-wrap: wrap; gap: 16px; }
  footer a:not(.brand) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Архивные фотографии с готовым кадрированием. */
.portrait img, .cards img {
  height: auto;
  aspect-ratio: auto;
  filter: none;
}
.club-app {
  background: #11110f;
  border-bottom: 1px solid var(--line);
}
.app-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  grid-template-areas: "copy screens" "actions screens";
  align-items: center;
  column-gap: clamp(28px, 5vw, 86px);
}
.app-copy { grid-area: copy; align-self: end; }
.app-actions { grid-area: actions; align-self: start; }
.app-screens { grid-area: screens; }
.app-copy .bodycopy { margin-bottom: 0; font-size: clamp(18px, 1.45vw, 24px); color: #dfdbd2; }
.app-features { margin: 23px 0 27px; }
.app-features div { border-top: 1px solid var(--line); padding: 12px 0; }
.app-features dt { font-weight: 600; color: var(--gold); }
.app-features dd { margin: 3px 0 0; color: #c6c2b8; font-size: 16px; }
.app-screens img { width: 100%; height: auto; }
.app-screens figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #c5bdae;
  font-size: 12px;
  margin-top: 12px;
}
.app-screens figcaption a { color: var(--gold); }
@media (max-width: 780px) {
  .app-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "screens" "actions"; row-gap: 22px; }
  .app-features { margin-top: 0; }
  .app-screens { max-width: 620px; }
}
@media (max-width: 540px) {
  .topbar { grid-template-columns: 1fr; gap: 6px; padding-block: 12px 4px; }
  .topbar nav { justify-content: space-between; }
  .topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
}

/* Фотографии клуба */
.intro .portrait { align-self: center; }
.formats .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 62px); }
.formats article { min-width: 0; }
.formats article p { max-width: 50ch; margin-bottom: 0; }
.formats article .inline { margin-top: 16px; }
.formats .cards img {
  width: 100%; height: auto; aspect-ratio: 2.12; object-fit: cover; object-position: 50% 55%;
}
.formats .feature-outing {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.8fr 1fr;
  align-items: center; background: #25241f; border-bottom: 1px solid #76633f;
}
.formats .feature-outing img { aspect-ratio: auto; }
.feature-outing > div { padding: clamp(22px, 3vw, 54px); }
.feature-outing h3 { margin-top: 0; font: 600 clamp(40px, 4.9vw, 74px)/1.08 var(--display); }
.feature-outing p { margin-top: 16px; }
@media (max-width: 680px) {
  .formats .cards, .formats .feature-outing { grid-template-columns: 1fr; }
  .formats .cards img { aspect-ratio: auto; }
  .feature-outing > div { padding: 20px; }
}
.album-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 8%; }
.album-intro p:not(.label) { color: #4e4c45; max-width: 40ch; margin: 12px 0 0; }
.album-controls { display: flex; align-items: center; justify-content: end; gap: 7px; margin: 25px 0 12px; }
.album-controls[hidden] { display: none; }
.album-count { font-size: 13px; font-variant-numeric: tabular-nums; color: #645b49; margin-right: 9px; }
.album-controls button {
  width: 44px; height: 44px; border: 1px solid #93846c; border-radius: 50%; color: #31291e;
  background: transparent; font-size: 21px; cursor: pointer;
}
.album-controls button:hover:enabled, .album-controls button:focus-visible { background: #31291e; color: #f8f3e8; }
.album-controls button:disabled { opacity: .35; cursor: default; }
.album-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: clamp(12px, 1.5vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-color: #a28c64 #d7d1c5; scrollbar-width: thin; padding-bottom: 12px;
}
.album-track:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.album-slide { scroll-snap-align: start; position: relative; background: #23231e; }
.album-slide img { width: 100%; height: clamp(220px, 34vw, 490px); object-fit: contain; }
.album-slide figcaption {
  background: #23231e; border-top: 1px solid #474536; padding: 9px 17px;
  font: 500 13px/1.5 Onest, sans-serif; color: #eee8da;
}
.invite { border-top: 1px solid #84704e; background: #181815; }
.invite .shell { border-left: 2px solid var(--gold); padding-left: clamp(22px, 3.4vw, 54px); }
.topbar nav a, .button { position: relative; }
.topbar nav a { text-decoration: none; }
.topbar nav a::after {
  content: ""; position: absolute; height: 1px; inset: auto 0 5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}
.topbar nav a:hover::after, .topbar nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 680px) {
  .invite h2 { font-size: clamp(3.25rem, 15vw, 4rem); }
  .album-intro { grid-template-columns: 1fr; gap: 8px; }
  .album-controls { margin-top: 18px; }
  .album-track { grid-auto-columns: 88%; }
  .album-slide img { height: clamp(165px, 50vw, 290px); }
  .formats .cards img { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes medallion-light {
    from { opacity: .76; }
    to { opacity: 1; }
  }
  .hero-art { animation: medallion-light 750ms ease-out both; }
  .cover h1 { animation: arrive 560ms cubic-bezier(.2,.72,.25,1) both; }
  .cover p { animation: arrive 540ms 70ms ease-out both; }
  .cover .button { animation: arrive 500ms 120ms ease-out backwards; }
  .arrives { animation: arrive 540ms cubic-bezier(.2,.72,.25,1) backwards; }
  .cards article:nth-child(2).arrives { animation-delay: 60ms; }
  .cards article:nth-child(3).arrives { animation-delay: 120ms; }
  .topbar nav a::after, .button img { transition: transform 220ms ease; }
  .button:hover img { transform: translate(2px, -2px); }
}
