.anniv-page {
    --anniv-gold: #d6b67d;
    --anniv-gold-soft: #e4cd9d;
    --anniv-white: #f5f2eb;
    background: #0a0807;
    color: var(--anniv-white);
    overflow-x: hidden;
}

.anniv-page *,
.anniv-page *::before,
.anniv-page *::after {
    box-sizing: border-box;
}

.anniv-page .anniv-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    isolation: isolate;
}

.anniv-page .anniv-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.anniv-page .anniv-screen.is-visible .anniv-animate {
    opacity: 1;
    transform: translateY(0);
}

.anniv-page .anniv-burger {
    position: fixed;
    top: clamp(16px, 2.2vw, 40px);
    left: clamp(16px, 2.6vw, 48px);
    width: 56px;
    height: 14px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    z-index: 45;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.anniv-page .anniv-burger:hover {
    border: 0;
    background: transparent;
    transform: none;
}

.anniv-page .anniv-burger span {
    width: 56px;
    height: 1px;
    background: rgba(255, 255, 255, 0.86);
}

.anniv-page .anniv-burger span:last-child {
    width: 56px;
    transform: none;
}

.anniv-page .anniv-nav {
    position: fixed;
    top: clamp(18px, 2.1vw, 42px);
    right: clamp(18px, 2.1vw, 42px);
    z-index: 38;
    text-align: right;
}

.anniv-page .anniv-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.7vw, 14px);
}

.anniv-page .anniv-nav a {
    display: inline-block;
    font-family: "Garamond", serif;
    font-size: clamp(20px, 1.52vw, 31px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.anniv-page .anniv-nav a:hover {
    color: #fff;
    transform: translateX(-3px);
}

.anniv-page .anniv-hero {
    display: flex;
    align-items: start;
    justify-content: center;
    padding: clamp(112px, 14vh, 178px) clamp(16px, 3.6vw, 36px) clamp(110px, 15vh, 170px);
    background: url("../img/anniversary/hero-bg.jpg") center / cover no-repeat;
}

.anniv-page .anniv-hero-content {
    position: relative;
    z-index: 3;
    width: min(1320px, 90vw);
    text-align: center;
    margin-top: 32px;
}

.anniv-page .anniv-hero-kicker {
    margin: 0 0 clamp(10px, 1.4vw, 18px);
    font-family: "Century Gothic", sans-serif;
    font-size: clamp(24px, 1.7vw, 34px);
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
}

.anniv-page .anniv-hero-title {
    margin: 0;
    font-family: "Garamond", serif;
    font-weight: 400;
    font-size: clamp(140px, 14.1vw, 268px);
    line-height: 0.9;
    letter-spacing: 0.015em;
    color: var(--anniv-gold);
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.anniv-page .anniv-hero-years {
    margin: clamp(18px, 2.2vw, 26px) 0 0;
    font-family: "Garamond", serif;
    font-weight: 400;
    font-size: clamp(64px, 5.2vw, 102px);
    line-height: 0.95;
    color: #fff;
}

.anniv-page .anniv-hero-subtitle {
    position: absolute;
    left: 50%;
    bottom: clamp(28px, 6.4vh, 92px);
    z-index: 3;
    margin: 0;
    width: min(1020px, calc(100vw - 36px));
    transform: translateX(-50%);
    text-align: center;
    font-family: "Anastasia Script", serif;
    font-size: clamp(58px, 4.35vw, 98px);
    line-height: 0.9;
    color: var(--anniv-gold-soft);
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.anniv-page .anniv-hero-subtitle.anniv-animate {
    transform: translate(-50%, 28px);
}

.anniv-page .anniv-screen.is-visible .anniv-hero-subtitle.anniv-animate {
    transform: translate(-50%, 0);
}

.anniv-page .anniv-about {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: clamp(48px, 8vh, 92px) clamp(16px, 3vw, 36px);
    background: url("../img/anniversary/about-bg.jpg") center / cover no-repeat;
}

.anniv-page .anniv-about-content {
    position: relative;
    z-index: 3;
    width: min(1370px, 87vw);
    margin-bottom: clamp(8px, 2.6vh, 36px);
}

.anniv-page .anniv-about-quote {
    position: absolute;
    top: -40%;
    left: 40px;
}

.anniv-page .anniv-about-text {
    position: relative;
    z-index: 1;
    font-family: "Anastasia Script", serif;
    font-size: clamp(58px, 4vw, 64px);
    width: max-content;
    line-height: 0.96;
    color: #fff;
    margin: 0 auto;
}

.anniv-page .anniv-about-instagram {
    display: block;
    margin-top: clamp(18px, 2.4vw, 40px);
    text-align: right;
    font-family: "Century Gothic", sans-serif;
    font-size: clamp(32px, 2.4vw, 46px);
    color: #fff;
    transition: opacity 0.2s ease;
}

.anniv-page .anniv-about-instagram:hover {
    opacity: 0.85;
}

.anniv-page .anniv-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(68px, 11vh, 150px) clamp(16px, 3vw, 46px);
    background: #000000;
    min-height: 100vh;
    height: max-content;
}

.anniv-page .anniv-gallery-divider {
    margin: 0 auto clamp(18px, 1.9vw, 34px);
    width: min(1420px, 89vw);
    height: 2px;
    background: var(--anniv-gold);
    transform-origin: center;
}

.anniv-page .anniv-gallery-grid {
    width: min(1420px, 89vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: clamp(14px, 1.4vw, 34px);

}

.anniv-page .anniv-card {
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    opacity: 0;
    transform: translateY(45px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.anniv-page .anniv-gallery.is-visible .anniv-card {
    opacity: 1;
    transform: translateY(0);
}

.anniv-page .anniv-gallery.is-visible .anniv-card:nth-child(1) {
    transition-delay: 0.08s;
}

.anniv-page .anniv-gallery.is-visible .anniv-card:nth-child(2) {
    transition-delay: 0.18s;
}

.anniv-page .anniv-gallery.is-visible .anniv-card:nth-child(3) {
    transition-delay: 0.28s;
}

.anniv-page .anniv-gallery.is-visible .anniv-card:nth-child(4) {
    transition-delay: 0.38s;
}

.anniv-page .anniv-card::after {
    content: "";
    position: absolute;
    inset: 0;
}

.anniv-page .anniv-card:hover {
    transform: translateY(-8px);
}

.anniv-page .anniv-card:focus-visible {
    outline: 3px solid rgba(214, 182, 125, 0.95);
    outline-offset: 2px;
}

.anniv-page .anniv-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.anniv-page .anniv-card:hover .anniv-card-image {
    transform: scale(1.045);
}

.anniv-page .anniv-card-content {
    position: absolute;
    inset: 14px 14px 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.anniv-page .anniv-card-title {
    font-family: "Anastasia Script", serif;
    font-size: clamp(24px, 2.5vw, 42px);
    line-height: 0.92;
    color: var(--anniv-gold-soft);
    text-align: left;
}

.anniv-page .anniv-card-subtitle {
    font-family: "Century Gothic", sans-serif;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
}

.anniv-gallery-modal {
    --anniv-modal-offset: 0px;
    --anniv-modal-safe-gap: clamp(8px, 1.6vw, 20px);
    --anniv-modal-height: calc(100vh - var(--anniv-modal-offset) - (var(--anniv-modal-safe-gap) * 2));
    background: rgba(0, 0, 0, 0.95) !important;
    padding: var(--anniv-modal-safe-gap) !important;
    padding-top: calc(var(--anniv-modal-safe-gap) + var(--anniv-modal-offset)) !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
}

@supports (height: 100svh) {
    .anniv-gallery-modal {
        --anniv-modal-height: calc(100svh - var(--anniv-modal-offset) - (var(--anniv-modal-safe-gap) * 2));
    }
}

body.admin-bar .anniv-gallery-modal {
    --anniv-modal-offset: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .anniv-gallery-modal {
        --anniv-modal-offset: 46px;
    }
}

.anniv-gallery-modal .uk-modal-dialog {
    width: min(calc(100vw - (var(--anniv-modal-safe-gap) * 2)), 1800px);
    max-width: none;
    height: var(--anniv-modal-height);
    max-height: var(--anniv-modal-height);
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 0 auto !important;
    background: #000;
    overflow: hidden;
    border-radius: clamp(8px, 1.4vw, 20px);
    transform: none !important;
}

.anniv-gallery-modal .uk-modal-body {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.anniv-gallery-modal .anniv-gallery-close.uk-modal-close-default {
    position: absolute !important;
    top: clamp(10px, 1.6vw, 18px);
    right: clamp(10px, 1.6vw, 18px);
    width: clamp(44px, 3.1vw, 54px);
    height: clamp(44px, 3.1vw, 54px);
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(214, 182, 125, 0.92);
    background: rgba(0, 0, 0, 0.72);
    color: var(--gold) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.anniv-gallery-modal .anniv-gallery-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4px;
}

.anniv-gallery-modal .anniv-gallery-close:hover,
.anniv-gallery-modal .anniv-gallery-close:focus-visible {
    transform: scale(1.06);
    background: rgba(214, 182, 125, 0.22);
    border-color: var(--anniv-gold-soft);
    color: #fff !important;
}

.anniv-gallery-modal .anniv-swiper {
    width: 100%;
    height: 100%;
    --swiper-navigation-color: var(--anniv-gold) !important;
    --swiper-navigation-size: 24px;
}

.anniv-gallery-modal .anniv-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    width: 100%;
    height: 100%;
    padding: clamp(10px, 1.4vw, 20px) clamp(58px, 8vw, 124px);
    overflow: hidden;
}

.anniv-gallery-modal .anniv-swiper .swiper-slide .anniv-swiper-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.anniv-gallery-modal .anniv-swiper .swiper-slide .anniv-swiper-image.is-portrait {
    height: 100%;
    max-height: 100%;
    width: auto !important;
    max-width: none;
}

.anniv-gallery-modal .anniv-swiper .swiper-slide .anniv-swiper-image.is-landscape {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

.anniv-gallery-modal .anniv-swiper-prev,
.anniv-gallery-modal .anniv-swiper-next {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(214, 182, 125, 0.9);
    background: rgba(0, 0, 0, 0.58);
    color: var(--gold) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.anniv-gallery-modal .anniv-swiper-prev::after,
.anniv-gallery-modal .anniv-swiper-next::after {
    font-size: 24px;
    font-weight: 700;
    color: var(--anniv-gold) !important;
}

.anniv-gallery-modal .anniv-swiper-prev:hover,
.anniv-gallery-modal .anniv-swiper-next:hover,
.anniv-gallery-modal .anniv-swiper-prev:focus-visible,
.anniv-gallery-modal .anniv-swiper-next:focus-visible {
    transform: scale(1.06);
    border-color: var(--anniv-gold-soft);
}

.anniv-gallery-modal .anniv-swiper-prev {
    left: clamp(10px, 2vw, 28px);
}


.anniv-gallery-modal .anniv-swiper-next {
    right: clamp(10px, 2vw, 28px);
}

.anniv-gallery-modal .anniv-swiper-prev.swiper-button-disabled,
.anniv-gallery-modal .anniv-swiper-next.swiper-button-disabled {
    opacity: 0.28;
}

.anniv-page .screen.s8-section {
    min-height: 100vh;
}


@media (max-width: 1320px) {
    .anniv-page .anniv-nav a {
        font-size: clamp(18px, 1.35vw, 24px);
    }

    .anniv-page .anniv-about-text {
        font-size: clamp(48px, 4vw, 72px);
    }

    .anniv-page .anniv-about-instagram {
        font-size: clamp(32px, 2.4vw, 44px);
    }
}

@media (max-width: 1100px) {
    .anniv-page .anniv-hero-title {
        font-size: clamp(116px, 13vw, 180px);
    }

    .anniv-page .anniv-hero-years {
        font-size: clamp(54px, 5.2vw, 78px);
    }

    .anniv-page .anniv-about-content {
        width: min(980px, 90vw);
    }

    .anniv-page .anniv-about-text {
        font-size: clamp(44px, 3.8vw, 64px);
    }

    .anniv-page .anniv-gallery-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 960px) {
    .anniv-page .anniv-nav {
        display: none;
    }

    .anniv-page .anniv-burger {
        width: 44px;
        height: 13px;
    }

    .anniv-page .anniv-burger span,
    .anniv-page .anniv-burger span:last-child {
        width: 44px;
    }

    .anniv-page .anniv-hero {
        min-height: 100svh;
        padding-top: clamp(90px, 12vh, 120px);
    }

    .anniv-page .anniv-hero-kicker {
        font-size: clamp(18px, 2.9vw, 24px);
    }

    .anniv-page .anniv-hero-title {
        font-size: clamp(92px, 18vw, 144px);
    }

    .anniv-page .anniv-hero-years {
        font-size: clamp(42px, 8.4vw, 68px);
    }

    .anniv-page .anniv-hero-subtitle {
        font-size: clamp(42px, 7.4vw, 62px);
        line-height: 0.93;
        width: min(760px, calc(100vw - 26px));
    }

    .anniv-page .anniv-about {
        min-height: 92svh;
        align-items: flex-end;
    }

    .anniv-page .anniv-about-content {
        width: min(760px, 94vw);
        margin-bottom: 0;
        padding-top: 44px;
    }

    .anniv-page .anniv-about-quote {
        left: 0;
        top: 0;
        font-size: clamp(120px, 20vw, 168px);
    }

    .anniv-page .anniv-about-text {
        font-size: clamp(40px, 7vw, 60px);
        width: auto;
    }

    .anniv-page .anniv-about-instagram {
        margin-top: 18px;
        text-align: left;
        font-size: clamp(30px, 6vw, 44px);
    }
}

@media (max-width: 740px) {
    .anniv-page .anniv-hero {
        padding-bottom: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 50px;
    }

    .anniv-page .anniv-hero-subtitle {
        position: static;
        margin-top: 30px;
        transform: none;
    }

    .anniv-page .anniv-hero-subtitle.anniv-animate {
        transform: translateY(28px);
    }

    .anniv-page .anniv-screen.is-visible .anniv-hero-subtitle.anniv-animate {
        transform: translateY(0);
    }

    .anniv-page .anniv-about {
        padding-top: 36px;
        padding-bottom: 36px;
        align-items: flex-end;
    }

    .anniv-page .anniv-about-content {
        padding-top: 28px;
    }

    .anniv-page .anniv-about-text {
        font-size: clamp(34px, 8vw, 46px);
        line-height: 1;
    }

    .anniv-page .anniv-about-instagram {
        font-size: clamp(26px, 5.8vw, 34px);
    }

    .anniv-page .anniv-gallery {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .anniv-page .anniv-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: min(420px, 92vw);
    }

    .anniv-page .anniv-card-title {
        font-size: clamp(36px, 9vw, 48px);
    }

    .anniv-page .anniv-card-subtitle {
        font-size: clamp(34px, 8.1vw, 42px);
    }

    .anniv-gallery-modal .anniv-swiper .swiper-slide .anniv-swiper-image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 100%;
    }

    .anniv-gallery-modal .anniv-swiper-prev,
    .anniv-gallery-modal .anniv-swiper-next {
        width: 52px;
        height: 52px;
    }

    .anniv-gallery-modal .anniv-swiper-prev::after,
    .anniv-gallery-modal .anniv-swiper-next::after {
        font-size: 18px;
    }

    .anniv-gallery-modal .anniv-swiper .swiper-slide {
        padding: 10px clamp(50px, 12vw, 88px);
    }
}

@media (max-width: 480px) {
    .anniv-page .anniv-hero-kicker {
        font-size: 16px;
    }
    .anniv-page .anniv-about{
        background-position: 55% center;
    }
    .anniv-page .anniv-about-text br{
        display: none;
    }

    .anniv-page .anniv-hero-title {
        font-size: clamp(24px, 18vw, 64px);
    }

    .anniv-page .anniv-hero-years {
        font-size: clamp(34px, 10vw, 52px);
    }

    .anniv-page .anniv-hero-subtitle {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 0.95;
    }

    .anniv-page .anniv-about-content {
        width: 95vw;
        padding-top: 20px;
    }

    .anniv-page .anniv-about-quote {
        font-size: clamp(96px, 28vw, 132px);
    }

    .anniv-page .anniv-about-text {
        font-size: clamp(29px, 9.6vw, 39px);
    }

    .anniv-page .anniv-about-instagram {
        font-size: clamp(22px, 8vw, 28px);
    }

    .anniv-gallery-modal .anniv-swiper-prev {
        left: 8px;
    }

    .anniv-gallery-modal .anniv-swiper-next {
        right: 8px;
    }

    .anniv-gallery-modal .anniv-swiper-prev,
    .anniv-gallery-modal .anniv-swiper-next {
        width: 44px;
        height: 44px;
    }

    .anniv-gallery-modal .anniv-swiper .swiper-slide {
        padding: 8px 42px;
    }

    .anniv-gallery-modal .anniv-gallery-close.uk-modal-close-default {
        width: 42px;
        height: 42px;
    }

    .anniv-gallery-modal .anniv-gallery-close svg {
        width: 18px;
        height: 18px;
    }
    .anniv-page .anniv-about-quote{
        top: -110px;
    }
    .anniv-page .anniv-about-quote img{
        width: 180px;
    }
}
