@font-face {
    font-family: "Beba";
    src: url('../fonts/bebasneuecyrillic.ttf') format('truetype');
    font-display: swap;
}

:root {
    --ink: #281c24;
    --muted: #765d69;
    --berry: #c91f68;
    --berry-dark: #981449;
    --cream: #fffaf7;
    --line: rgba(103, 50, 73, .16);
    --shadow: 0 24px 70px rgba(99, 28, 58, .22);
}

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

html {
    min-width: 320px;
    background: #f5cbd5;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(255, 250, 247, .35), rgba(245, 180, 199, .14)),
        url('../images/bg.png') center / cover no-repeat;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.main {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 520px);
    align-items: center;
    width: min(1180px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(24px, 4vh, 36px) clamp(28px, 6vw, 72px);
    overflow: hidden;
}

.main::before {
    position: absolute;
    inset: clamp(18px, 3vw, 34px);
    z-index: -2;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 36px;
    background: rgba(255, 249, 248, .36);
    box-shadow: var(--shadow);
    content: "";
    backdrop-filter: blur(6px);
}

.glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.glow--one {
    top: 7%;
    right: 9%;
    width: 230px;
    height: 230px;
    background: rgba(255, 255, 255, .38);
}

.glow--two {
    bottom: 6%;
    left: 18%;
    width: 150px;
    height: 150px;
    background: rgba(210, 52, 116, .12);
}

.model__img {
    align-self: end;
    justify-self: center;
    z-index: 1;
    width: min(46vw, 520px);
    max-height: calc(100vh - 72px);
    max-height: calc(100svh - 72px);
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 24px 24px rgba(75, 28, 45, .22));
    animation: portrait-in .75s cubic-bezier(.2, .8, .2, 1) both;
}

.container {
    z-index: 2;
    display: block;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 32px;
    background: rgba(255, 250, 247, .88);
    box-shadow: 0 28px 72px rgba(112, 33, 66, .18);
    backdrop-filter: blur(18px);
    animation: card-in .7s .08s cubic-bezier(.2, .8, .2, 1) both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(201, 31, 104, .18);
    border-radius: 999px;
    color: var(--berry-dark);
    background: rgba(255, 226, 236, .72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.title {
    max-width: 11ch;
    margin-top: 18px;
    color: var(--ink);
    font-family: "Beba", Impact, sans-serif;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .94;
    text-wrap: balance;
}

.subtitle {
    max-width: 38ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.5;
}

.buttons {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.buttons__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 20px 0 24px;
    border: 2px solid transparent;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.buttons__btn:hover {
    transform: translateY(-2px);
}

.buttons__btn:active {
    transform: translateY(0) scale(.985);
}

.buttons__btn:focus-visible {
    outline: 4px solid rgba(40, 28, 36, .22);
    outline-offset: 3px;
}

.buttons__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #dc2d79, var(--berry-dark));
    box-shadow: 0 14px 28px rgba(174, 24, 88, .30), inset 0 1px rgba(255, 255, 255, .34);
}

.buttons__btn--primary:hover {
    box-shadow: 0 18px 34px rgba(174, 24, 88, .38), inset 0 1px rgba(255, 255, 255, .34);
}

.buttons__btn--secondary {
    border-color: var(--line);
    color: var(--berry-dark);
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 22px rgba(91, 40, 61, .08);
}

.buttons__btn--secondary:hover {
    border-color: rgba(201, 31, 104, .32);
    background: #fff;
}

.button-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 22px;
    font-weight: 400;
}

.buttons__btn--secondary .button-icon {
    background: rgba(201, 31, 104, .09);
}

.note {
    margin-top: 18px;
    color: #866f78;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portrait-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 760px) {
    body {
        overflow: hidden;
    }

    .main {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 26px 18px 0;
    }

    .main::before {
        inset: 10px;
        border-radius: 28px;
    }

    .container {
        width: min(100%, 430px);
        padding: 24px 22px;
        border-radius: 26px;
        background: rgba(255, 250, 247, .93);
    }

    .eyebrow {
        min-height: 30px;
        padding: 6px 11px;
        font-size: 10px;
    }

    .title {
        max-width: 12ch;
        margin-top: 14px;
        font-size: clamp(42px, 13vw, 58px);
    }

    .subtitle {
        max-width: 34ch;
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.38;
    }

    .buttons {
        gap: 10px;
        margin-top: 18px;
    }

    .buttons__btn {
        min-height: 56px;
        border-radius: 16px;
        font-size: 17px;
    }

    .note {
        margin-top: 12px;
    }

    .model__img {
        position: absolute;
        right: -3%;
        bottom: -4%;
        z-index: 1;
        width: min(68vw, 300px);
        max-height: 44vh;
        max-height: 44svh;
        object-position: right bottom;
        opacity: .96;
    }

    .glow--one {
        top: auto;
        right: -40px;
        bottom: 10%;
    }
}

@media (max-height: 700px) and (max-width: 760px) {
    .main {
        padding-top: 16px;
    }

    .container {
        padding: 18px 20px;
    }

    .title {
        margin-top: 10px;
        font-size: clamp(36px, 11vw, 48px);
    }

    .subtitle {
        margin-top: 8px;
        font-size: 14px;
    }

    .buttons {
        margin-top: 12px;
    }

    .buttons__btn {
        min-height: 50px;
    }

    .note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
