*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #1a1410;
    --bg-soft: #231c17;
    --surface: rgba(12, 8, 5, 0.62);
    --surface-hover: rgba(12, 8, 5, 0.78);
    --border: rgba(201, 169, 110, 0.22);
    --gold: #c9a96e;
    --gold-light: #dfc792;
    --text: #f5efe6;
    --text-muted: rgba(245, 239, 230, 0.55);
    --primary: #8b5a2b;
    --primary-light: #a6723f;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 440px;
    margin: 0 auto;
    padding:
        calc(clamp(0.75rem, 2.5vh, 2rem) + var(--safe-top))
        clamp(1rem, 4vw, 1.25rem)
        calc(clamp(0.5rem, 1.5vh, 1.5rem) + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    overflow: hidden;
}

.page__bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: var(--bg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.page__bg.is-ready {
    opacity: 1;
}

.page__bg-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
}

.page__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(20, 14, 8, 0.7) 0%,
        rgba(58, 40, 18, 0.7) 30%,
        rgba(107, 74, 36, 0.7) 55%,
        rgba(74, 52, 26, 0.7) 78%,
        rgba(18, 12, 6, 0.7) 100%
    );
}

@media (min-width: 769px) {
    .page__bg-image {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
    }
}

.header,
.main,
.footer,
.page__center {
    position: relative;
    z-index: 1;
}

.page__center {
    display: contents;
}

.header {
    text-align: center;
    padding: 0;
    flex-shrink: 0;
}

.header__logo {
    width: clamp(120px, 28vw, 200px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.main {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.82rem, 2.2vh, 1rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold);
    margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
    flex-shrink: 0;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1.1vh, 0.75rem);
}

.link-btn {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.5vw, 0.9rem);
    width: 100%;
    min-height: clamp(44px, 7.2vh, 56px);
    padding: clamp(0.55rem, 1.4vh, 0.9rem) clamp(0.85rem, 2.5vw, 1.1rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    font-size: clamp(0.85rem, 2.1vh, 0.97rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.link-btn:active {
    transform: scale(0.985);
    background: var(--surface-hover);
}

@media (hover: hover) {
    .link-btn:hover {
        background: var(--surface-hover);
        border-color: rgba(201, 169, 110, 0.4);
    }
}

.link-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: rgba(201, 169, 110, 0.35);
    color: #fff;
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.3);
}

.link-btn--primary .link-btn__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.link-btn--primary:active {
    background: linear-gradient(135deg, #7a4f26, var(--primary));
}

@media (hover: hover) {
    .link-btn--primary:hover {
        background: linear-gradient(135deg, var(--primary-light), #b8804a);
        border-color: rgba(201, 169, 110, 0.5);
    }
}

.link-btn--instagram .link-btn__icon {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    border: none;
}

.link-btn__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 6vh, 38px);
    height: clamp(32px, 6vh, 38px);
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.12);
    color: var(--gold-light);
}

.link-btn__icon svg {
    width: clamp(16px, 3vh, 20px);
    height: clamp(16px, 3vh, 20px);
}

.link-btn__text {
    flex: 1;
    text-align: left;
}

.link-btn__arrow {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.7;
}

.link-btn--primary .link-btn__arrow {
    color: rgba(255, 255, 255, 0.7);
}

.footer {
    margin-top: 0;
    padding-top: clamp(0.5rem, 1.2vh, 1.25rem);
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    font-size: clamp(0.68rem, 1.6vh, 0.78rem);
    color: var(--text-muted);
    line-height: 1.4;
}

.footer__copy {
    margin-top: 0.15rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .page {
        justify-content: flex-start;
    }

    .page__center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 1;
        width: 100%;
        min-height: 0;
    }

    .header {
        margin-bottom: clamp(0.35rem, 1vh, 0.65rem);
    }

    .main {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    .section-title {
        margin-top: 0;
        margin-bottom: clamp(0.65rem, 1.8vh, 1rem);
    }

    .header__logo {
        width: clamp(175px, 48vw, 260px);
    }

    .footer {
        margin-top: auto;
        width: 100%;
        padding-bottom: calc(0.25rem + var(--safe-bottom));
    }
}

@media (max-width: 768px) and (max-height: 640px) {
    .header__logo {
        width: clamp(150px, 40vw, 210px);
    }

    .link-btn {
        min-height: 42px;
        border-radius: 12px;
    }

    .section-title {
        margin-bottom: 0.4rem;
    }
}

@media (min-width: 441px) {
    .link-btn {
        font-size: clamp(0.9rem, 2vh, 1rem);
    }
}
