:where(.bapteme-page, .bapteme-page *) {
    margin: 0;
    padding: 0;
}

body.bapteme-page {
    justify-content: center;
    font-size: 1.1rem;
}

img {
    width: 100%;
    height: auto;
}

picture {
    display: block;
}

.bapteme-main {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bapteme-main section {
    width: calc(95% - 2 * 20px);
    padding: 15px 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-sky-200);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(8 47 73 / 7%);
}

.bapteme-main section h2 {
    color: var(--color-ocean-950);
}

.bapteme-main .bapteme-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(360px, 58svh, 560px);
    display: flex;
    align-items: center;
    align-self: center;
    padding: clamp(24px, 7vw, 72px);
    border: 0;
    border-radius: 12px;
    background-color: var(--color-ocean-950);
    box-shadow: none;
}

.bapteme-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(8 47 73 / 92%) 0%, rgb(8 47 73 / 76%) 48%, rgb(8 47 73 / 25%) 100%),
        linear-gradient(0deg, rgb(8 47 73 / 35%), transparent 55%);
    content: "";
}

.bapteme-hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.bapteme-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.bapteme-hero .page-heading {
    width: min(100%, 720px);
    color: var(--color-white);
}

.bapteme-hero .page-heading span {
    color: var(--color-sky-200);
}

.bapteme-hero .page-heading h1 {
    color: var(--color-white);
    font-size: clamp(1.4rem, 6vw, 4.5rem);
    line-height: 1.08;
}

.bapteme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.bapteme form {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.bapteme .form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bapteme form label {
    color: var(--color-ocean-950);
    font-size: 0.95rem;
    font-weight: 700;
}

.bapteme form input,
.bapteme form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    background-color: var(--color-white);
    color: var(--color-text);
    font: inherit;
}

.bapteme form textarea {
    min-height: 130px;
    resize: vertical;
}

.bapteme form input::placeholder,
.bapteme form textarea::placeholder {
    color: #64748b;
}

.bapteme form button {
    align-self: flex-start;
    padding: 12px 22px;
    border: 0;
    border-radius: 7px;
    background-color: var(--color-ocean-800);
    color: var(--color-white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 480px) {
    .bapteme form {
        padding: 18px;
    }

    .bapteme form button {
        align-self: stretch;
    }
}

@media (max-width: 600px) {
    .bapteme-main .bapteme-hero {
        width: calc(100% - 24px);
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .bapteme-hero::before {
        display: none;
    }

    .bapteme-hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .bapteme-hero .page-heading {
        width: 100%;
        max-width: none;
        padding: 20px;
        background-color: var(--color-ocean-950);
    }
}

@media (min-width: 601px) {
    .bapteme-main {
        width: min(calc(100% - 48px), var(--content-max-width));
        gap: 24px;
    }

    .bapteme-main section {
        width: 100%;
        padding: clamp(22px, 3vw, 36px);
    }

    .bapteme-main .bapteme-hero {
        padding: clamp(24px, 7vw, 72px);
    }

    .bapteme-hero::before {
        background:
            linear-gradient(90deg, rgb(8 47 73 / 94%) 0%, rgb(8 47 73 / 78%) 42%, rgb(8 47 73 / 12%) 100%),
            linear-gradient(0deg, rgb(8 47 73 / 30%), transparent 60%);
    }

    .bapteme form {
        width: min(100%, 700px);
    }
}

.bapteme-page .skip-link {
    padding: 10px 16px;
}