:root {
    --bg: #f4faff;
    --bg-soft: #eef7ff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --text: #173853;
    --muted: #6b8aa4;
    --line: rgba(110, 176, 227, 0.22);
    --accent: #8bd5ff;
    --accent-strong: #45a6eb;
    --accent-deep: #2a8bd6;
    --shadow: 0 24px 60px rgba(43, 110, 161, 0.14);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(168, 222, 255, 0.55), transparent 34%),
        radial-gradient(circle at top right, rgba(222, 243, 255, 0.95), transparent 36%),
        linear-gradient(180deg, #fbfeff 0%, #f3faff 52%, #f9fdff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.page {
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    padding: 52px 18px 34px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(228, 244, 255, 0.82)),
        radial-gradient(circle at center, rgba(120, 201, 255, 0.28), transparent 48%);
}

.hero__bg::before,
.hero__bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero__bg::before {
    width: 460px;
    height: 460px;
    top: -180px;
    right: -90px;
    background: rgba(156, 221, 255, 0.35);
    filter: blur(12px);
}

.hero__bg::after {
    width: 340px;
    height: 340px;
    left: -80px;
    bottom: -170px;
    background: rgba(211, 239, 255, 0.9);
    filter: blur(12px);
}

.hero__inner,
main,
.footer {
    position: relative;
    width: min(100%, var(--container));
    margin: 0 auto;
}

.hero__inner {
    min-height: 34vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

main {
    padding: 0 18px 30px;
}

.video-section {
    margin-top: -12px;
}

.video-shell,
.order-card,
.success-card,
.info-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.video-shell {
    padding: 16px;
    border-radius: var(--radius-xl);
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #dcebfa;
    aspect-ratio: 16 / 9;
}

.video-card__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f6ff, #c3e5ff);
}

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background:
        linear-gradient(180deg, rgba(18, 48, 75, 0.08), rgba(18, 48, 75, 0.44)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    cursor: pointer;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-start__pulse {
    position: absolute;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(152, 220, 255, 0.74), rgba(152, 220, 255, 0));
    animation: pulse 2.2s ease-in-out infinite;
}

.video-start__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 148px;
    padding: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 22px 46px rgba(65, 154, 222, 0.28);
}

.order-section[hidden] {
    display: none;
}

.order-section {
    margin-top: 28px;
}

.order-card {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.order-form {
    display: grid;
    gap: 22px;
}

.order-form__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #edf7ff);
}

.order-form__image img {
    display: block;
    width: min(100%, 340px);
    height: auto;
}

.order-form__fields {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 10px;
}

.field span {
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(69, 166, 235, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.field input:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(69, 166, 235, 0.14);
    transform: translateY(-1px);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #92dcff, #43a4ea);
    box-shadow: 0 18px 38px rgba(67, 164, 234, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
}

.submit-button--inline {
    width: auto;
    margin-top: 10px;
}

.order-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.footer {
    padding: 0 18px 38px;
    text-align: center;
}

.footer__links,
.footer__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.footer__links {
    margin-bottom: 16px;
}

.footer__links a,
.footer__contacts a,
.footer__contacts span,
.footer__disclaimer,
.info-card p {
    color: var(--muted);
}

.footer__disclaimer {
    width: min(100%, 860px);
    margin: 18px auto 0;
    line-height: 1.7;
}

.success-page,
.info-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.success-card,
.info-card {
    width: min(100%, 680px);
    border-radius: var(--radius-xl);
    padding: 34px 28px;
    text-align: left;
}

.success-card h1,
.info-card h1 {
    margin-top: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.success-card {
    text-align: center;
}

.info-card p,
.info-card li {
    line-height: 1.75;
}

.info-card ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.info-card strong {
    color: var(--text);
}

.info-card a {
    color: var(--accent-strong);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (min-width: 860px) {
    .order-form {
        grid-template-columns: minmax(280px, 360px) 1fr;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 14px 24px;
    }

    main,
    .footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .video-shell,
    .order-card,
    .success-card,
    .info-card {
        border-radius: 24px;
    }

    .video-card {
        border-radius: 22px;
    }

    .video-start__pulse {
        width: 138px;
        height: 138px;
    }

    .video-start__button {
        min-width: 112px;
        min-height: 112px;
        font-size: 1.28rem;
    }

    .order-card {
        padding: 18px;
    }

    .order-form__image {
        min-height: 220px;
    }
}

/* Buyer video overrides */
.video-card__media,
.media-shell__video,
.video-card__player {
    object-fit: contain !important;
    background: #000 !important;
    pointer-events: auto !important;
}

.video-card,
.media-shell {
    background: #000 !important;
}

@media (max-width: 640px) {
    .video-card {
        aspect-ratio: 3 / 4 !important;
    }

    .video-start__pulse,
    .media-shell__pulse,
    .video-card__pulse,
    .video-start__ring {
        width: 180px !important;
        height: 180px !important;
    }

    .video-start__button,
    .media-shell__start-label,
    .video-card__start-label,
    .video-start__label {
        width: min(240px, calc(100% - 32px)) !important;
        max-width: calc(100% - 32px) !important;
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 14px 22px !important;
        border-radius: 999px !important;
        font-size: 1rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
    }
}
