@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-cyrillic.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-italic-cyrillic.woff2') format('woff2'); font-style: italic; font-weight: 400 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #292620;
  background: #f4f0e9;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ae694f; outline-offset: 4px; }
::selection { background: #d6bdac; color: #292620; }

.site-shell { max-width: 1700px; margin: auto; overflow: hidden; }
.skip-link { position: absolute; z-index: 50; top: -100px; left: 18px; background: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.site-header { height: 96px; margin: 0 5.3%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d9d3c9; }
.wordmark { font-family: Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -.075em; white-space: nowrap; }
.wordmark-amp { font-style: italic; font-size: 18px; font-weight: 400; margin: 0 4px; }
.wordmark-dot { color: #b77962; }
.header-link { display: inline-flex; gap: 24px; align-items: center; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; padding: 12px 0; }
.header-link span { font-size: 19px; line-height: 1; font-weight: 400; }

.hero { min-height: 674px; display: grid; grid-template-columns: 50% 50%; padding-left: 5.3%; position: relative; }
.hero-copy { padding: 108px 0 100px; position: relative; z-index: 2; }
.eyebrow, .section-kicker, .hero-caption, .section-topline, .album-card-kicker, .viewer-overline, .viewer-position, .photo-count {
  text-transform: uppercase; letter-spacing: .17em; font-size: 10px; font-weight: 700;
}
.eyebrow { display: flex; align-items: center; gap: 17px; color: #695f53; }
.eyebrow-line { width: 28px; height: 1px; background: #a97662; }
.eyebrow-number { color: #a39687; margin-left: 6px; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(79px, 8.9vw, 142px); line-height: 1.05; letter-spacing: -.075em; margin: 52px -90px 50px -7px; white-space: nowrap; }
.hero h1 em { font-weight: 400; }
.title-join { font-size: .53em; font-style: italic; letter-spacing: -.09em; }
.title-period { color: #bd8b77; }
.hero-bottom { display: flex; align-items: center; gap: 25px; }
.hero-divider { width: 1px; height: 51px; background: #b79b86; flex: none; }
.hero-bottom p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 16px; line-height: 1.55; color: #6a6158; min-width: 154px; }
.primary-link { background: #373d34; color: #fff; padding: 21px 25px; display: inline-flex; gap: 27px; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: background .2s, transform .2s; }
.primary-link:hover { background: #59614d; transform: translateY(-2px); }
.primary-link span { font-size: 19px; font-weight: 400; line-height: .7; }

.hero-art { min-height: 674px; background: #ddd4c8; position: relative; isolation: isolate; }
.hero-art::after { content: ''; position: absolute; inset: 0; opacity: .3; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.18' filter='url(%23n)'/%3E%3C/svg%3E"); z-index: 5; }
.hero-orbit { position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; left: 22%; top: 19%; }
.hero-orbit::before { content: ''; position: absolute; inset: -18%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-photo { position: absolute; background: #ede4d8; padding: 9px 9px 32px; box-shadow: 0 20px 65px rgba(63,54,44,.18); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-back { width: 35%; height: 48%; left: 10%; top: 12%; transform: rotate(-11deg); }
.hero-photo-front { width: 51%; height: 70%; left: 37%; top: 16%; transform: rotate(7deg); z-index: 1; }
.hero-seal { position: absolute; z-index: 3; width: 112px; height: 112px; border-radius: 50%; bottom: 12%; left: 13%; background: #f4f0e9; border: 1px solid #ad8c78; display: flex; justify-content: center; align-items: center; gap: 2px; transform: rotate(-13deg); font-family: Georgia, serif; font-size: 26px; box-shadow: 0 8px 20px rgba(63,54,44,.13); }
.seal-heart { color: #a97161; font-size: 14px; margin: 0 2px; }
.hero-caption { position: absolute; bottom: 26px; right: 30px; color: #514a41; }

.collection { background: #e9e4db; padding: 0 5.3% 110px; scroll-margin-top: 20px; }
.section-topline { border-top: 1px solid #c9bfb3; border-bottom: 1px solid #c9bfb3; padding: 21px 0; display: flex; justify-content: space-between; color: #756f65; }
.section-intro { display: flex; justify-content: space-between; align-items: end; padding: 84px 0 43px; gap: 30px; }
.section-kicker { color: #a46e59; display: block; }
.section-intro h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(48px, 6vw, 83px); line-height: 1.14; letter-spacing: -.065em; margin: 16px 0 0; }
.section-intro h2 em { font-weight: 400; }
.section-hint { font-size: 13px; color: #71695e; line-height: 1.8; width: 226px; margin: 0 3px 10px 0; }
.gallery-status { padding: 40px; background: #f4f0e9; color: #665f56; text-align: center; margin-bottom: 30px; }
.retry-button { border: 0; display: block; margin: 18px auto 0; padding: 13px 16px; background: #373d34; color: white; cursor: pointer; }
.album-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.album-card { display: block; position: relative; border: 0; background: #d8c8b8; cursor: pointer; overflow: hidden; width: 100%; height: 330px; text-align: left; color: white; }
.album-card::after { content: ''; background: linear-gradient(transparent 35%, rgba(21,19,16,.75)); position: absolute; inset: 0; pointer-events: none; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover img, .album-card:focus-visible img { transform: scale(1.045); }
.album-card.image-unavailable::before, .photo-card.image-unavailable::before { content: 'Превью недоступно'; position: absolute; top: 24px; left: 24px; z-index: 1; font-size: 12px; color: #fff; }
.album-card[aria-pressed="true"] { outline: 2px solid #a47968; outline-offset: 4px; }
.album-card-body { position: absolute; bottom: 26px; left: 28px; right: 28px; z-index: 1; }
.album-card-kicker { display: block; font-size: 9px; margin-bottom: 8px; }
.album-card-title { font: 400 38px 'Playfair Display', Georgia, serif; letter-spacing: -.045em; }
.album-card-arrow { position: absolute; right: 0; bottom: 3px; font-size: 25px; font-weight: 400; }
.album-list:has(.album-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.album-card:only-child { height: 340px; background: #3c443b; }
.album-card:only-child img { width: 58%; height: 100%; }
.album-card:only-child::after { right: 42%; background: linear-gradient(90deg, transparent, rgba(21,19,16,.27)); }
.album-card:only-child .album-card-body { left: 63%; right: 5%; bottom: 50%; transform: translateY(50%); }
.album-card:only-child .album-card-title { font-size: clamp(40px, 5vw, 70px); }
.album-card:only-child .album-card-kicker { color: #e4d7c7; margin-bottom: 18px; }
.album-card:only-child .album-card-arrow { right: 0; bottom: -5px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; margin: 83px 0 23px; border-bottom: 1px solid #c9bfb3; padding-bottom: 23px; scroll-margin-top: 20px; }
.gallery-heading h3 { font: 400 48px 'Playfair Display', Georgia, serif; letter-spacing: -.05em; margin: 10px 0 0; }
.photo-count { color: #766f66; margin-bottom: 5px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.photo-card { border: 0; padding: 0; position: relative; background: #d7c9b9; cursor: pointer; aspect-ratio: 1 / 1.13; overflow: hidden; color: #fff; }
.photo-card:nth-child(6n + 2), .photo-card:nth-child(6n + 5) { aspect-ratio: 1 / .89; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.035); filter: brightness(.83); }
.photo-card-overlay { position: absolute; left: 18px; right: 18px; bottom: 17px; display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .13em; text-shadow: 0 1px 8px #292620; }
.photo-card-overlay span:last-child { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.photo-card:hover .photo-card-overlay span:last-child, .photo-card:focus-visible .photo-card-overlay span:last-child { opacity: 1; transform: none; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 127px; margin: 0 5.3%; font: 400 21px 'Playfair Display', Georgia, serif; }
.site-footer a { font: 700 10px 'DM Sans', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a span { font-size: 16px; padding-left: 12px; }

.viewer { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; color: #f4f0e9; background: #262924; }
.viewer::backdrop { background: #262924; }
.viewer-layout { max-width: 1750px; margin: auto; height: 100%; min-height: 560px; display: flex; flex-direction: column; padding: 0 4.5%; }
.viewer-topbar { height: 88px; flex: none; border-bottom: 1px solid #565b53; display: flex; align-items: center; justify-content: space-between; }
.viewer-brand { font: 500 23px Georgia, serif; letter-spacing: -.075em; }
.viewer-brand span { font-size: 17px; font-style: italic; }
.viewer-position { color: #b5beb1; }
.viewer-close { background: none; color: inherit; border: 0; padding: 14px 0 14px 20px; cursor: pointer; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.viewer-close span { font-size: 17px; padding-left: 18px; vertical-align: middle; }
.viewer-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; gap: 12px; padding: 20px 0; }
.viewer-image-wrap { min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.viewer-image-wrap img { height: 100%; max-height: 100%; width: 100%; object-fit: contain; }
.viewer-image-error { padding: 30px; text-align: center; line-height: 1.6; color: #e2ddd2; }
.viewer-arrow { width: 48px; height: 48px; border: 1px solid #858c80; border-radius: 50%; color: inherit; background: none; cursor: pointer; font-size: 23px; }
.viewer-arrow:hover:not(:disabled) { background: #495046; }
.viewer-arrow:disabled { opacity: .25; cursor: default; }
.viewer-bottom { border-top: 1px solid #565b53; padding: 25px 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.viewer-overline { color: #c6aa98; }
.viewer-description h2 { font: 400 32px 'Playfair Display', Georgia, serif; margin: 6px 0 0; }
.viewer-actions { display: flex; gap: 12px; }
.download-button { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; align-content: center; min-width: 205px; min-height: 67px; padding: 11px 20px; font: 700 11px 'DM Sans', Arial, sans-serif; cursor: pointer; text-align: left; }
.download-button > span { font-size: 19px; line-height: 15px; font-weight: 400; }
.download-button small { display: block; width: 100%; padding-left: 29px; font-size: 10px; font-weight: 400; color: #bfc6bb; }
.download-button-outline { color: #f4f0e9; background: none; border: 1px solid #858c80; }
.download-button-outline:hover:not(:disabled) { background: #495046; }
.download-button-solid { color: #292620; background: #f4f0e9; border: 1px solid #f4f0e9; }
.download-button-solid small { color: #696b62; }
.download-button-solid:hover:not(:disabled) { background: #e2d4c6; }
.download-button:disabled { opacity: .55; cursor: wait; }
.download-status { min-height: 29px; margin: 0; color: #e1c2af; font-size: 12px; text-align: right; }

@media (max-width: 1150px) {
  .hero { min-height: 570px; }
  .hero-copy { padding-top: 90px; }
  .hero-art { min-height: 570px; }
  .hero h1 { font-size: clamp(70px, 8vw, 105px); margin-bottom: 40px; }
  .hero-bottom { flex-wrap: wrap; }
  .primary-link { margin-top: 3px; }
}

@media (max-width: 750px) {
  .site-header { height: 72px; margin: 0 6%; }
  .hero { display: flex; flex-direction: column; padding-left: 0; }
  .hero-copy { padding: 67px 6% 52px; }
  .hero h1 { font-size: clamp(69px, 15vw, 110px); margin: 35px 0 36px -4px; }
  .hero-bottom { gap: 17px; }
  .hero-bottom p { font-size: 14px; min-width: 125px; }
  .hero-divider { height: 46px; }
  .primary-link { margin-top: 12px; width: 100%; }
  .hero-art { min-height: 430px; }
  .hero-photo-back { width: 37%; left: 11%; height: 54%; }
  .hero-photo-front { width: 48%; left: 41%; height: 73%; }
  .hero-seal { width: 86px; height: 86px; font-size: 20px; bottom: 7%; }
  .collection { padding: 0 6% 72px; }
  .section-intro { display: block; padding: 62px 0 29px; }
  .section-intro h2 { font-size: clamp(47px, 9vw, 66px); }
  .section-hint { width: min(350px, 100%); margin-top: 19px; }
  .album-list { grid-template-columns: 1fr; }
  .album-card { height: 290px; }
  .album-card:only-child { height: 330px; }
  .album-card:only-child img { width: 100%; height: 100%; }
  .album-card:only-child::after { right: 0; background: linear-gradient(transparent 35%, rgba(21,19,16,.78)); }
  .album-card:only-child .album-card-body { left: 25px; right: 25px; bottom: 23px; transform: none; }
  .album-card:only-child .album-card-title { font-size: 42px; }
  .album-card:only-child .album-card-kicker { margin-bottom: 8px; }
  .gallery-heading { margin-top: 70px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-card, .photo-card:nth-child(6n + 2), .photo-card:nth-child(6n + 5) { aspect-ratio: 1 / 1.13; }
  .site-footer { margin: 0 6%; min-height: 105px; }
  .viewer-layout { padding: 0 4%; min-height: 0; }
  .viewer-topbar { height: 65px; }
  .viewer-stage { grid-template-columns: 35px minmax(0, 1fr) 35px; gap: 3px; padding: 10px 0; }
  .viewer-arrow { width: 33px; height: 33px; font-size: 18px; }
  .viewer-bottom { padding: 15px 0 10px; display: block; }
  .viewer-description h2 { font-size: 25px; }
  .viewer-actions { margin-top: 16px; }
  .download-button { min-width: 0; width: 50%; padding: 9px 8px; column-gap: 5px; font-size: 10px; min-height: 66px; }
  .download-button small { padding-left: 19px; font-size: 9px; }
  .download-status { min-height: 36px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
