@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
    --navy: #14245a;
    --navy-2: #1b2e6b;
    --navy-deep: #0f1c48;
    --yellow: #f4b02c;
    --mint: #23b3a3;
    --mint-dark: #1a9184;
    --lilac: #7d72bb;
    --paper: #f3f5fb;
    --ink: #1b2138;
    --muted: #5b6480;
    --line: #e2e7f2;
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Circe', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: white; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 12px 18px; background: white; border-radius: 12px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; height: 70px; padding: 0 28px; color: white; background: rgba(20,36,90,.94); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.header-inner { max-width: 1180px; height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.back-link { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 11px 18px; font-size: 13px; font-weight: 700; text-decoration: none; transition: .2s; }
.back-link:hover { background: white; color: var(--navy); }

.hero { min-height: min(760px, calc(100vh - 70px)); position: relative; overflow: hidden; display: flex; align-items: center; padding: 72px max(28px, calc((100vw - 1124px) / 2)); color: white; background: linear-gradient(90deg,rgba(13,22,64,.94) 0%,rgba(13,22,64,.8) 36%,rgba(13,22,64,.42) 66%,rgba(13,22,64,.18) 100%), linear-gradient(0deg,rgba(13,22,64,.55) 0%,rgba(13,22,64,0) 45%), var(--hero) center 37%/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, rgba(9,15,43,.55)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: min(620px, 90vw); }
.eyebrow { margin: 0 0 20px; color: #d7ddef; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: var(--mint-dark); }
.hero-aegis { margin: 0 0 26px; color: #b8abff; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { margin: 0; }
.hero-logo { display: block; width: min(560px, 100%); height: auto; }
.hero-title span { display: inline-block; margin-top: 18px; color: white; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(34px, 5vw, 62px); font-style: italic; font-weight: 500; line-height: 1; letter-spacing: -.025em; }
.hero-copy { max-width: 520px; margin: 24px 0 24px; color: rgba(255,255,255,.9); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 36px; font-size: 14px; font-weight: 700; }
.hero-meta span { position: relative; }
.hero-meta span + span::before { content: '•'; position: absolute; left: -16px; color: var(--mint); }
.photo-count strong { color: var(--mint); }
.hero-button { display: inline-flex; align-items: center; gap: 24px; padding: 16px 30px; border: 2px solid transparent; border-radius: 999px; color: var(--navy-deep); background: var(--yellow); box-shadow: 0 12px 30px -12px rgba(244,176,44,.7); font-size: 15px; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: transform .18s, box-shadow .18s; }
.hero-button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(244,176,44,.85); }
.stripe { position: absolute; z-index: 1; right: -5vw; height: 7px; width: 42vw; border-radius: 20px; transform: rotate(-6deg); transform-origin: right; opacity: .95; }
.stripe-a { top: 26%; background: var(--yellow); }
.stripe-b { top: calc(26% + 16px); width: 38vw; background: var(--mint); }
.stripe-c { top: calc(26% + 32px); width: 34vw; background: var(--lilac); }

.gallery-section { padding: clamp(72px, 10vw, 120px) 28px; background: var(--paper); }
.section-heading { max-width: 1180px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin: 0 auto; color: var(--navy); font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.section-heading > p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.toolbar { max-width: 1180px; margin: 0 auto 24px; padding: 14px; display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 18px 50px -36px rgba(20,36,90,.35); }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.search-field svg { width: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.search-field input { width: 100%; padding: 9px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: #969bad; }
.sort-field { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid #deddd8; color: var(--muted); font-size: 13px; }
.sort-field select { min-width: 130px; padding: 10px 34px 10px 12px; border: 0; border-radius: 11px; color: var(--ink); background: white; font-weight: 700; }
.share-gallery { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border: 0; border-radius: 12px; color: white; background: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s; }
.share-gallery:hover { background: var(--navy-2); transform: translateY(-1px); }
.share-gallery svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.status { max-width: 1180px; min-height: 28px; margin: 0 auto 14px; color: var(--muted); font-size: 13px; }

.photo-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 12px; }
.photo-card { position: relative; grid-column: span 4; min-height: 250px; overflow: hidden; border: 0; border-radius: var(--radius); padding: 0; background: #e6eaf3; box-shadow: 0 18px 50px -30px rgba(20,36,90,.32); cursor: zoom-in; }
.photo-card:nth-child(10n + 1), .photo-card:nth-child(10n + 7) { grid-column: span 6; }
.photo-card:nth-child(10n + 4) { grid-column: span 5; }
.photo-card:nth-child(10n + 5) { grid-column: span 3; }
.photo-card img { width: 100%; height: 100%; min-height: inherit; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(10,17,46,.68)); opacity: .85; transition: opacity .2s; }
.photo-card:hover img { transform: scale(1.035); }
.photo-card:hover::after { opacity: 1; }
.photo-label { position: absolute; z-index: 2; left: 16px; bottom: 14px; color: white; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.photo-open { position: absolute; z-index: 2; right: 14px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 18px; transform: translateY(8px); opacity: 0; transition: .2s; }
.photo-card:hover .photo-open, .photo-card:focus-visible .photo-open { transform: translateY(0); opacity: 1; }
.photo-card:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more { padding: 14px 28px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); background: transparent; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: .18s; }
.load-more:hover { color: white; background: var(--navy); }
.load-more[disabled] { opacity: .55; cursor: wait; }

.site-footer { position: relative; overflow: hidden; padding: 90px max(28px, calc((100vw - 1124px) / 2)) 32px; color: white; background: var(--navy-deep); }
.footer-logo { position: relative; width: min(320px, 62vw); height: auto; margin-bottom: 38px; }
.footer-lines { position: absolute; right: -4vw; top: 80px; width: 44vw; display: grid; gap: 13px; transform: rotate(-5deg); }
.footer-lines i { height: 8px; border-radius: 20px; background: var(--yellow); }
.footer-lines i:nth-child(2) { margin-left: 8%; background: var(--mint); }
.footer-lines i:nth-child(3) { margin-left: 16%; background: var(--lilac); }
.footer-kicker { color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.site-footer h2 { position: relative; margin: 20px 0 100px; max-width: 820px; font-size: clamp(54px, 8vw, 118px); line-height: .9; letter-spacing: -.065em; text-transform: uppercase; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #aeb6d2; font-size: 12px; }
.footer-bottom a { color: white; text-decoration: none; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: rgba(7,12,33,.97); }
.lightbox::backdrop { background: rgba(7,12,33,.97); }
.lightbox-shell { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.lightbox-topbar { min-height: 70px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.lightbox-topbar p { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.lightbox-actions { display: flex; align-items: center; gap: 10px; }
.lightbox-actions a { padding: 10px 16px; border-radius: 999px; color: var(--navy); background: var(--yellow); font-size: 12px; font-weight: 800; text-decoration: none; }
.lightbox-actions .lightbox-share { width: auto; height: auto; padding: 10px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 12px; font-weight: 700; }
.lightbox-actions button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: transparent; font-size: 26px; cursor: pointer; }
.lightbox-stage { min-height: 0; display: grid; grid-template-columns: 72px 1fr 72px; place-items: center; gap: 14px; padding: 18px; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 108px); object-fit: contain; }
.lightbox-nav { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-size: 20px; cursor: pointer; }
.lightbox-nav:hover { color: var(--navy); background: var(--yellow); }

.share-dialog { width: min(560px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(8,16,48,.34); }
.share-dialog::backdrop { background: rgba(8,16,48,.68); backdrop-filter: blur(5px); }
.share-card { padding: 28px; }
.share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.share-head .eyebrow { margin-bottom: 6px; }
.share-head h2 { margin: 0; color: var(--navy); font-size: 30px; line-height: 1.1; }
.share-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: white; font-size: 25px; cursor: pointer; }
.share-networks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-network { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-align: center; text-decoration: none; }
.share-network b { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: white; font-size: 16px; transition: transform .18s, box-shadow .18s; }
.share-network b img { width: 27px; height: 27px; object-fit: contain; }
.share-network:hover b { transform: translateY(-3px); box-shadow: 0 10px 24px -10px currentColor; }
.share-network.vk b { background: #0077ff; }
.share-network.telegram b { background: #27a7e7; }
.share-network.ok b { background: #ee8208; }
.share-network.whatsapp b { background: #25d366; }
.native-share { width: 100%; margin-top: 20px; padding: 13px 18px; border: 0; border-radius: 12px; color: white; background: var(--navy); font-weight: 700; cursor: pointer; }
.copy-row { margin-top: 20px; display: flex; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.copy-row input { min-width: 0; flex: 1; padding: 8px 10px; border: 0; outline: 0; color: var(--muted); background: transparent; font-size: 13px; }
.copy-row button { padding: 10px 15px; border: 0; border-radius: 10px; color: var(--navy-deep); background: var(--yellow); font-size: 12px; font-weight: 800; cursor: pointer; }
.copy-status { min-height: 20px; margin: 8px 2px 0; color: var(--mint-dark); font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
    .photo-card, .photo-card:nth-child(n) { grid-column: span 6; min-height: 230px; }
    .photo-card:nth-child(5n + 1) { grid-column: span 12; min-height: 420px; }
    .stripe { width: 55vw; }
}

@media (max-width: 600px) {
    .site-header { height: 66px; padding: 0 16px; }
    .brand span:last-child { max-width: 150px; font-size: 11px; }
    .back-link { padding: 9px 12px; font-size: 0; }
    .back-link span { font-size: 17px; }
    .hero { min-height: calc(100svh - 66px); align-items: flex-end; padding: 76px 20px 56px; background: linear-gradient(0deg, rgba(13,22,64,.97) 0%, rgba(20,36,90,.58) 68%, rgba(20,36,90,.2)), var(--hero) 55% center/cover no-repeat; }
    .hero-aegis { margin-bottom: 18px; font-size: 11px; }
    .hero-logo { width: min(430px, 100%); }
    .hero-title span { margin-top: 12px; }
    .hero-copy { font-size: 16px; }
    .hero-meta { gap: 8px 18px; }
    .hero-meta span + span::before { left: -11px; }
    .stripe { top: 17%; right: -12vw; width: 70vw; }
    .stripe-b { top: calc(17% + 13px); }
    .stripe-c { top: calc(17% + 26px); }
    .gallery-section { padding-left: 12px; padding-right: 12px; }
    .section-heading { padding: 0 6px; }
    .toolbar { flex-direction: column; }
    .sort-field { padding: 10px 8px 0; border-top: 1px solid #deddd8; border-left: 0; justify-content: space-between; }
    .share-gallery { width: 100%; padding: 13px 17px; }
    .photo-grid { gap: 8px; }
    .photo-card, .photo-card:nth-child(n) { grid-column: span 6; min-height: 175px; border-radius: 12px; }
    .photo-card:nth-child(5n + 1) { grid-column: span 12; min-height: 300px; }
    .lightbox-stage { grid-template-columns: 1fr; padding: 8px; }
    .lightbox-nav { position: absolute; z-index: 2; top: 50%; background: rgba(7,12,33,.65); }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-actions .lightbox-share { padding: 9px 12px; }
    .share-card { padding: 22px 16px 16px; }
    .share-networks { gap: 5px; }
    .share-network b { width: 50px; height: 50px; }
    .share-network span { font-size: 9px; }
    .footer-lines { width: 70vw; opacity: .6; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
