.gate-page {
    min-height: 100vh;
    color: var(--white);
    background: var(--black);
}

.gate-page.is-locked {
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url("/assets/images/good-death-symbol.png") center / cover no-repeat;
}

.gate-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: clamp(22px, 6vw, 72px);
}

.gate-panel {
    max-width: 760px;
}

.gate-panel h1,
.protected-hero h1 {
    max-width: 900px;
    color: var(--white);
    font-size: clamp(46px, 8vw, 112px);
}

.gate-intro {
    max-width: 720px;
    margin: 28px 0 0;
    font-size: clamp(21px, 3vw, 32px);
    line-height: 1.18;
    font-weight: 800;
}

.back-link,
.logout-link {
    display: inline-flex;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.gate-panel .back-link {
    margin-bottom: 42px;
}

.back-link:hover,
.logout-link:hover {
    color: var(--red);
}

.password-form {
    max-width: 620px;
    margin-top: 42px;
}

.password-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.password-row {
    display: flex;
    gap: 10px;
}

.password-row input {
    width: 100%;
    min-height: 54px;
    border: 2px solid var(--white);
    padding: 0 14px;
    font: inherit;
    font-size: 20px;
    background: var(--white);
    color: var(--black);
}

.password-row .button {
    min-width: 210px;
    justify-content: center;
    cursor: pointer;
}

.form-error {
    color: var(--white);
    margin: 14px 0 0;
    font-weight: 900;
}

.protected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(22px, 4vw, 54px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.protected-page {
    background: var(--white);
    color: var(--black);
}

.protected-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
    gap: clamp(32px, 7vw, 92px);
    align-items: center;
    padding: clamp(58px, 9vw, 118px) clamp(22px, 5vw, 72px);
    background: var(--black);
    color: var(--white);
}

.protected-hero-copy {
    min-width: 0;
}

.download-card {
    min-width: 0;
    padding: clamp(24px, 4vw, 36px);
    border: 2px solid var(--white);
}

.download-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 18px;
}

.download-heading h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 48px);
}

.download-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 900;
}

.security-note {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.protected-feature {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 86px);
    align-items: center;
    padding: clamp(70px, 10vw, 128px) clamp(22px, 5vw, 72px);
}

.protected-image {
    min-height: 360px;
    background: var(--black);
    overflow: hidden;
}

.protected-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.protected-book-copy h2 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
}

.protected-book-copy p {
    max-width: 850px;
    margin: 0 0 18px;
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.36;
    font-weight: 700;
}

.protected-details {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 86px);
    padding: 0 clamp(22px, 5vw, 72px) clamp(76px, 11vw, 132px);
}

.protected-stats {
    display: grid;
    gap: 1px;
    align-self: start;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--line);
}

.protected-stats li {
    min-height: 92px;
    padding: 22px;
    background: var(--white);
    color: var(--black);
    border-left: 14px solid var(--red);
    font-weight: 900;
}

.protected-quote {
    margin: 0;
    padding-left: 28px;
    border-left: 14px solid var(--red);
}

.protected-quote p {
    max-width: 900px;
    margin: 0;
    font-size: clamp(25px, 3.2vw, 46px);
    line-height: 1.12;
    font-weight: 900;
}

.protected-quote cite {
    display: block;
    margin-top: 24px;
    color: var(--black);
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 900px) {
    .protected-hero,
    .protected-feature,
    .protected-details {
        grid-template-columns: 1fr;
    }

    .download-list li,
    .password-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .password-row .button,
    .download-list .button {
        width: 100%;
        justify-content: center;
    }
}

.gate-language {
    flex: 0 0 auto;
}

.gate-language a {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
}

.gate-language .is-active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.gate-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.gate-topline .back-link {
    margin-bottom: 0;
}

.gate-page .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 560px) {
    .protected-header,
    .gate-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}


.protected-image {
    height: clamp(360px, 33vw, 520px);
    min-height: 0;
}

.protected-image img {
    max-width: none;
    transform: scale(1.18);
    object-position: center 46%;
}


.protected-header {
    position: static;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 52px);
}

.gate-header {
    border-bottom: 0;
    background: transparent;
}

.gate-language {
    position: static;
    margin-left: auto;
}

.protected-header .gate-language {
    display: flex;
    align-items: center;
}

.protected-header .logout-link {
    align-items: center;
    min-height: 34px;
}

@media (max-width: 560px) {
    .protected-header {
        padding: 14px 18px;
    }

    .gate-language {
        position: static;
    }

    .gate-header,
    .protected-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
