/*
 * Юбилейное оформление публичной страницы регистрации.
 * Все правила ограничены классом .anniversary-home и не влияют
 * на административную панель и страницу подтверждения.
 */

.anniversary-home {
    --page-background: #f8f1e8;
    --page-background-deep: #efe3d5;
    --surface: #fffdf9;
    --surface-soft: #f5ece2;
    --surface-strong: #eadbcb;
    --text: #2b211d;
    --text-muted: #66574f;
    --primary: #6f382d;
    --primary-dark: #4b251f;
    --primary-soft: #ead8d0;
    --gold: #d49a43;
    --gold-light: #f4d99d;
    --gold-dark: #744711;
    --teal: #2e6870;
    --teal-dark: #204c52;
    --danger: #a52b25;
    --danger-background: #fff0ed;
    --success: #376b4d;
    --border: rgba(91, 66, 55, 0.2);
    --border-strong: rgba(91, 66, 55, 0.36);
    --focus: #1f6f7b;
    --shadow-soft:
            0 22px 60px rgba(64, 42, 32, 0.1),
            0 4px 16px rgba(64, 42, 32, 0.05);
    --shadow-card:
            0 28px 80px rgba(64, 42, 32, 0.12),
            0 7px 22px rgba(64, 42, 32, 0.06);
    --mobile-dock-space:
            calc(92px + env(safe-area-inset-bottom, 0px));

    /* Совместимость с общими компонентами из style.v1.css. */
    --ink: var(--text);
    --muted: var(--text-muted);
    --cream: var(--page-background);
    --paper: var(--surface);
    --green: var(--primary);
    --green-dark: var(--primary-dark);
    --amber: var(--gold);
    --coral: var(--primary);
    --lavender: var(--teal);
    --radius: 28px;
    --shadow: var(--shadow-card);

    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
            radial-gradient(
                    circle at 5% 3%,
                    rgba(230, 189, 112, 0.28),
                    transparent 24rem
            ),
            radial-gradient(
                    circle at 98% 40%,
                    rgba(98, 143, 151, 0.14),
                    transparent 28rem
            ),
            var(--page-background);
    font-family:
            Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
            "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
    .anniversary-home {
        overflow-x: clip;
    }
}

.anniversary-home *,
.anniversary-home *::before,
.anniversary-home *::after {
    box-sizing: border-box;
}

.anniversary-home::selection,
.anniversary-home ::selection {
    color: var(--primary-dark);
    background: var(--gold-light);
}

.anniversary-home img,
.anniversary-home svg {
    max-width: 100%;
}

.anniversary-home h1,
.anniversary-home h2,
.anniversary-home h3,
.anniversary-home p {
    margin-top: 0;
}

.anniversary-home h1,
.anniversary-home h2,
.anniversary-home h3 {
    color: var(--text);
    text-wrap: balance;
}

.anniversary-home h1,
.anniversary-home h2 {
    font-family: Georgia, "Times New Roman", ui-serif, serif;
}

.anniversary-home a {
    color: var(--teal-dark);
}

.anniversary-home button,
.anniversary-home input,
.anniversary-home select,
.anniversary-home textarea,
.anniversary-home summary {
    font: inherit;
}

.anniversary-home button,
.anniversary-home summary,
.anniversary-home a {
    -webkit-tap-highlight-color: transparent;
}

.anniversary-home :is(
	a,
	button,
	input,
	select,
	textarea,
	summary
):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.anniversary-home .shell {
    width: min(1180px, calc(100% - 24px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 14px;
    color: #fff;
    background: var(--teal-dark);
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Герой */

.anniversary-home .anniversary-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid rgba(111, 56, 45, 0.13);
    background:
            radial-gradient(
                    circle at 15% 4%,
                    rgba(244, 217, 157, 0.42),
                    transparent 25rem
            ),
            linear-gradient(145deg, #fffaf3 0%, #f6ede3 100%);
}

.anniversary-home .anniversary-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -160px;
    left: -170px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(212, 154, 67, 0.22);
    border-radius: 45% 55% 58% 42%;
    box-shadow:
            0 0 0 34px rgba(212, 154, 67, 0.035),
            0 0 0 70px rgba(212, 154, 67, 0.025);
    transform: rotate(18deg);
    pointer-events: none;
}

.anniversary-home .anniversary-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    rgba(248, 241, 232, 0.04) 0%,
                    rgba(248, 241, 232, 0.16) 48%,
                    rgba(248, 241, 232, 0.9) 100%
            ),
            linear-gradient(
                    90deg,
                    rgba(248, 241, 232, 0.98) 0%,
                    rgba(248, 241, 232, 0.9) 45%,
                    rgba(248, 241, 232, 0.25) 100%
            );
    pointer-events: none;
}

.anniversary-home .topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    border-bottom: 1px solid rgba(111, 56, 45, 0.12);
}

.anniversary-home .brand {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.anniversary-home .church-mark {
    display: block;
    width: clamp(7.4rem, 38vw, 9.7rem);
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    object-position: left center;
}

.nav-registration-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 9px 13px;
    border: 1px solid rgba(111, 56, 45, 0.22);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(255, 253, 249, 0.88);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(64, 42, 32, 0.06);
    transition:
            color 170ms ease,
            background 170ms ease,
            border-color 170ms ease,
            transform 170ms ease;
}

.nav-registration-link svg {
    flex: 0 0 auto;
    transition: transform 170ms ease;
}

.hero-art {
    --art-shift: 0px;

    position: absolute;
    z-index: 0;
    right: -42%;
    bottom: -9%;
    left: 12%;
    height: 70%;
    overflow: hidden;
    opacity: 0.54;
    transform: translate3d(0, var(--art-shift), 0);
    pointer-events: none;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -4%;
    background:
            linear-gradient(
                    180deg,
                    rgba(248, 241, 232, 0.08),
                    rgba(75, 37, 31, 0.16)
            ),
            url("anniversary-35.webp") center 42% / cover no-repeat;
    transform: translateZ(0) scale(1.035);
    transform-origin: center;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    rgba(248, 241, 232, 0.72) 0%,
                    transparent 28%,
                    rgba(75, 37, 31, 0.14) 100%
            ),
            linear-gradient(
                    90deg,
                    rgba(248, 241, 232, 0.8),
                    transparent 45%
            );
}

@supports (
	(-webkit-mask-image: linear-gradient(#000, #000)) or
	(mask-image: linear-gradient(#000, #000))
) {
    .hero-art {
        -webkit-mask-image:
                linear-gradient(
                        180deg,
                        transparent 0%,
                        #000 18%,
                        #000 100%
                );
        mask-image:
                linear-gradient(
                        180deg,
                        transparent 0%,
                        #000 18%,
                        #000 100%
                );
    }
}

.hero-stage {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 72px;
}

.hero-copy {
    width: 100%;
    min-width: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    padding: 7px 12px;
    border: 1px solid rgba(212, 154, 67, 0.26);
    border-radius: 999px;
    color: var(--gold-dark);
    background: rgba(255, 249, 237, 0.9);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 9px 24px rgba(64, 42, 32, 0.05);
}

.hero-kicker-mark {
    color: var(--gold);
    font-size: 0.86rem;
}

.hero-eyebrow,
.anniversary-overline,
.step-label,
.info-overline,
.donation-overline {
    margin-bottom: 9px;
    color: var(--gold-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.45;
    text-transform: uppercase;
}

.anniversary-home .hero-copy h1 {
    max-width: 13ch;
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: clamp(2.55rem, 12vw, 4.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 640px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: clamp(1.03rem, 3.4vw, 1.22rem);
    line-height: 1.65;
}

.hero-verse {
    display: grid;
    gap: 2px;
    max-width: 580px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 4px solid var(--gold);
    border-radius: 5px 16px 16px 5px;
    background: rgba(255, 253, 249, 0.84);
    box-shadow: 0 12px 30px rgba(64, 42, 32, 0.06);
}

.hero-verse p {
    margin-bottom: 0;
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.hero-verse cite {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 750;
}

.hero-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 690px;
    margin-bottom: 24px;
}

.hero-fact {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(91, 66, 55, 0.2);
    border-radius: 17px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 10px 28px rgba(64, 42, 32, 0.055);
}

.hero-fact-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: var(--primary-dark);
    background: var(--gold-light);
}

.hero-fact-copy {
    display: grid;
    min-width: 0;
}

.hero-fact-copy small {
    margin-bottom: 1px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-fact-copy strong {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    max-width: 690px;
}

.anniversary-home .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
            transform 160ms ease,
            box-shadow 160ms ease,
            background 160ms ease,
            border-color 160ms ease;
}

.anniversary-home .button-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
            linear-gradient(
                    135deg,
                    var(--primary) 0%,
                    var(--primary-dark) 100%
            );
    box-shadow:
            0 15px 34px rgba(75, 37, 31, 0.25),
            inset 0 1px rgba(255, 255, 255, 0.17);
}

.anniversary-home .button-primary::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -100%;
    bottom: -100%;
    left: -36%;
    width: 28%;
    background:
            linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.24),
                    transparent
            );
    transform: rotate(18deg) translateX(-220%);
    transition: transform 620ms ease;
}

.anniversary-home .button-secondary {
    border-color: rgba(111, 56, 45, 0.25);
    color: var(--primary-dark);
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(64, 42, 32, 0.07);
}

.anniversary-home .button:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.hero-primary-button {
    width: 100%;
    min-height: 58px;
}

.button-icon {
    flex: 0 0 auto;
    transition: transform 170ms ease;
}

.hero-action-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
}

.hero-action-note svg {
    flex: 0 0 auto;
    color: var(--success);
}

/* Компактная юбилейная композиция */

.anniversary-ribbon {
    position: relative;
    z-index: 6;
    margin-top: -31px;
}

.anniversary-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 17px;
    border: 1px solid rgba(244, 217, 157, 0.24);
    border-radius: 25px;
    color: #fff;
    background:
            radial-gradient(
                    circle at 90% 10%,
                    rgba(212, 154, 67, 0.32),
                    transparent 40%
            ),
            linear-gradient(135deg, #623529 0%, #351d19 100%);
    box-shadow:
            0 24px 58px rgba(55, 29, 24, 0.24),
            inset 0 1px rgba(255, 255, 255, 0.09);
}

.anniversary-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -75px;
    bottom: -115px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(244, 217, 157, 0.14);
    border-radius: 50%;
    box-shadow:
            0 0 0 28px rgba(244, 217, 157, 0.025),
            0 0 0 56px rgba(244, 217, 157, 0.02);
}

.anniversary-panel::after {
    content: "";
    position: absolute;
    top: -140%;
    bottom: -140%;
    left: -20%;
    width: 12%;
    background:
            linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.16),
                    transparent
            );
    transform: rotate(18deg) translateX(-200%);
    pointer-events: none;
}

.anniversary-emblem {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: var(--gold-light);
    background:
            radial-gradient(
                    circle,
                    rgba(244, 217, 157, 0.14),
                    rgba(244, 217, 157, 0.03) 65%,
                    transparent 66%
            );
}

.anniversary-emblem strong {
    margin-top: -7px;
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: 2.9rem;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.anniversary-emblem small {
    position: absolute;
    bottom: 10px;
    color: #fff4d7;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.emblem-orbit {
    position: absolute;
    inset: -3px;
    border: 1px dashed rgba(244, 217, 157, 0.68);
    border-radius: 50%;
}

.emblem-orbit::before,
.emblem-orbit::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(244, 217, 157, 0.11);
}

.emblem-orbit::before {
    top: 4px;
    left: 15px;
}

.emblem-orbit::after {
    right: 4px;
    bottom: 18px;
}

.anniversary-message {
    min-width: 0;
}

.anniversary-message .anniversary-overline {
    margin-bottom: 3px;
    color: var(--gold-light);
}

.anniversary-message h2 {
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(1.28rem, 5vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.anniversary-values {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.anniversary-values li {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 5px;
    border: 1px solid rgba(244, 217, 157, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.055);
    font-size: clamp(0.66rem, 2.7vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Область регистрации */

.registration-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 72px;
    scroll-margin-top: 12px;
}

.registration-main,
.registration-aside {
    min-width: 0;
}

.anniversary-home .form-card {
    position: relative;
    overflow: visible;
    padding: 24px 16px 28px;
    border: 1px solid rgba(91, 66, 55, 0.18);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: none;
}

.anniversary-home .form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    height: 5px;
    border-radius: 0 0 999px 999px;
    background:
            linear-gradient(
                    90deg,
                    var(--primary),
                    var(--gold) 50%,
                    var(--teal)
            );
}

.form-heading {
    margin-bottom: 30px;
    padding-top: 8px;
}

.form-heading-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.form-heading .step-label {
    margin-bottom: 0;
}

.form-heading-badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 11px;
    border: 1px solid rgba(111, 56, 45, 0.16);
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 0.72rem;
    font-weight: 850;
}

.form-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.form-heading > p:not(.required-explanation) {
    max-width: 700px;
    margin-bottom: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.required-explanation {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.required-explanation > span {
    color: var(--danger);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
}

.form-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-guide li {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 4px;
    border: 1px solid rgba(91, 66, 55, 0.17);
    border-radius: 14px;
    color: var(--text-muted);
    background: var(--surface-soft);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
}

.form-guide li > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 0.75rem;
    font-weight: 900;
}

.form-guide strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.anniversary-home .error-summary,
.anniversary-home .closed-message {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 17px;
}

.anniversary-home .error-summary {
    border: 1px solid rgba(165, 43, 37, 0.3);
    color: #731e1a;
    background: var(--danger-background);
}

.anniversary-home .error-summary:focus {
    outline: 3px solid var(--danger);
    outline-offset: 3px;
}

.anniversary-home .error-summary h3 {
    margin-bottom: 9px;
    color: #731e1a;
    font-size: 1.16rem;
}

.anniversary-home .error-summary ul {
    margin: 0 0 12px;
    padding-left: 23px;
}

.anniversary-home .error-summary li + li {
    margin-top: 5px;
}

.anniversary-home .error-summary p:last-child {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.anniversary-home .closed-message {
    border: 1px solid rgba(212, 154, 67, 0.34);
    color: var(--gold-dark);
    background: #fff5df;
}

.anniversary-home .closed-message h3 {
    margin-bottom: 7px;
    color: var(--gold-dark);
}

.anniversary-home .closed-message p:last-child {
    margin-bottom: 0;
}

.anniversary-home .registration-form {
    min-width: 0;
}

.anniversary-home .form-section {
    min-width: 0;
    margin: 0 0 30px;
    padding: 0 0 30px;
    border: 0;
    border-bottom: 1px solid rgba(91, 66, 55, 0.17);
}

.anniversary-home .form-section legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    color: var(--text);
}

.legend-number {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.legend-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.legend-copy strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.legend-copy small {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.fieldset-hint {
    margin: -4px 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.anniversary-home .field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 16px;
}

.anniversary-home .field {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 760;
}

.field-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 9px;
    line-height: 1.35;
}

.required-badge,
.optional-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.required-badge {
    color: #7c211c;
    background: #fbe1dc;
}

.optional-badge {
    color: var(--text-muted);
    background: var(--surface-strong);
}

.anniversary-home .field > small {
    color: var(--text-muted);
    font-size: 0.79rem;
    font-weight: 520;
    line-height: 1.45;
}

.anniversary-home .field input,
.anniversary-home .field select,
.anniversary-home .field textarea {
    width: 100%;
    min-height: 57px;
    padding: 13px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(64, 42, 32, 0.025);
    transition:
            border-color 160ms ease,
            box-shadow 160ms ease,
            background 160ms ease;
    scroll-margin-block: 120px;
}

.anniversary-home .field input::placeholder,
.anniversary-home .field textarea::placeholder {
    color: #786a63;
    opacity: 0.82;
}

.anniversary-home .field input:hover,
.anniversary-home .field select:hover,
.anniversary-home .field textarea:hover {
    border-color: rgba(75, 37, 31, 0.55);
}

.anniversary-home .field input:focus,
.anniversary-home .field select:focus,
.anniversary-home .field textarea:focus {
    border-color: var(--focus);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 111, 123, 0.13);
    outline: 0;
}

@supports selector(input:user-invalid) {
    .anniversary-home .field input:user-invalid {
        border-color: var(--danger);
        box-shadow: 0 0 0 3px rgba(165, 43, 37, 0.1);
    }
}

/* Счётчики участников */

.anniversary-home .counter-list {
    display: grid;
    gap: 12px;
}

.anniversary-home .counter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(91, 66, 55, 0.2);
    border-radius: 19px;
    background:
            linear-gradient(
                    145deg,
                    var(--surface-soft),
                    #fffaf5
            );
    transition:
            border-color 170ms ease,
            background 170ms ease,
            box-shadow 170ms ease,
            transform 170ms ease;
}

.counter-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.counter-copy strong {
    line-height: 1.35;
}

.counter-copy span {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.anniversary-home .counter {
    display: grid;
    grid-template-columns: 52px 62px 52px;
    align-items: center;
    justify-self: start;
}

.anniversary-home .counter button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(75, 37, 31, 0.19);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition:
            background 140ms ease,
            box-shadow 140ms ease,
            transform 100ms ease,
            opacity 140ms ease;
}

.anniversary-home .counter button:active {
    background: var(--primary-dark);
    box-shadow: 0 3px 8px rgba(75, 37, 31, 0.17);
    transform: scale(0.94);
}

.anniversary-home .counter button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.anniversary-home .counter input {
    width: 62px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--text);
    background: transparent;
    font-size: 1.12rem;
    font-weight: 900;
    text-align: center;
    box-shadow: none;
    -moz-appearance: textfield;
    scroll-margin-block: 120px;
}

.anniversary-home .counter input::-webkit-inner-spin-button,
.anniversary-home .counter input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.anniversary-home .counter input:focus {
    box-shadow: 0 0 0 3px rgba(31, 111, 123, 0.15);
    outline: 0;
}

.participant-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 13px;
    padding: 13px 15px;
    border: 1px solid rgba(46, 104, 112, 0.2);
    border-radius: 15px;
    color: var(--teal-dark);
    background: #edf5f5;
}

.participant-summary > span {
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.participant-summary strong {
    font-size: 1rem;
}

/* Пожертвование */

.donation-summary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 21px 18px;
    border: 1px solid rgba(244, 217, 157, 0.22);
    border-radius: 22px;
    color: #fff;
    background:
            radial-gradient(
                    circle at 100% 0,
                    rgba(212, 154, 67, 0.4),
                    transparent 45%
            ),
            linear-gradient(135deg, #623529, #351d19);
    box-shadow: 0 18px 42px rgba(55, 29, 24, 0.18);
}

.donation-summary::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -70px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(244, 217, 157, 0.14);
    border-radius: 50%;
    box-shadow:
            0 0 0 25px rgba(244, 217, 157, 0.025),
            0 0 0 50px rgba(244, 217, 157, 0.018);
}

.donation-summary .donation-overline {
    margin-bottom: 5px;
    color: var(--gold-light);
}

.donation-summary h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: clamp(1.35rem, 5vw, 1.72rem);
}

.donation-summary p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.5;
}

.anniversary-home .donation-total {
    display: grid;
    min-width: 0;
    text-align: left;
}

.anniversary-home .donation-total strong {
    color: #fff4d7;
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.anniversary-home .radio-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
}

.anniversary-home .radio-cards label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 78px;
    padding: 15px;
    border: 1px solid rgba(91, 66, 55, 0.24);
    border-radius: 18px;
    background: var(--surface-soft);
    cursor: pointer;
    transition:
            border-color 170ms ease,
            background 170ms ease,
            box-shadow 170ms ease,
            transform 170ms ease;
}

.anniversary-home .radio-cards label:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(31, 111, 123, 0.11);
}

.anniversary-home .radio-cards label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow:
            0 0 0 2px rgba(111, 56, 45, 0.09),
            0 10px 24px rgba(64, 42, 32, 0.06);
}

.anniversary-home .radio-cards input {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.choice-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.choice-copy strong {
    line-height: 1.35;
}

.choice-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.42;
}

.upload-disclosure {
    margin-top: 17px;
    border: 1px solid rgba(91, 66, 55, 0.22);
    border-radius: 19px;
    background: #fffaf5;
}

.upload-disclosure > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 13px 48px 13px 15px;
    border-radius: 19px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.upload-disclosure > summary::-webkit-details-marker {
    display: none;
}

.upload-disclosure > summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 170ms ease;
}

.upload-disclosure[open] > summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.upload-disclosure > summary > span {
    display: grid;
    gap: 1px;
}

.upload-disclosure > summary strong {
    line-height: 1.35;
}

.upload-disclosure > summary small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.upload-disclosure[open] > summary {
    border-bottom: 1px solid rgba(91, 66, 55, 0.16);
    border-radius: 19px 19px 0 0;
}

.upload-content {
    padding: 14px;
}

.anniversary-home .upload-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 178px;
    padding: 24px 16px;
    border: 2px dashed rgba(111, 56, 45, 0.34);
    border-radius: 18px;
    color: var(--text);
    background:
            linear-gradient(
                    145deg,
                    rgba(234, 216, 208, 0.58),
                    rgba(255, 253, 249, 0.9)
            );
    text-align: center;
    cursor: pointer;
    transition:
            border-color 170ms ease,
            background 170ms ease,
            box-shadow 170ms ease,
            transform 170ms ease;
}

.anniversary-home .upload-box:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(31, 111, 123, 0.11);
}

.anniversary-home .upload-box.dragging {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 5px rgba(111, 56, 45, 0.08);
}

.anniversary-home .upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.anniversary-home .upload-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 17px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(75, 37, 31, 0.18);
}

.anniversary-home .upload-box > strong {
    line-height: 1.4;
}

.anniversary-home .upload-box > span:last-child {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.45;
}

.anniversary-home .file-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.anniversary-home .file-list:empty {
    display: none;
}

.anniversary-home .file-list li {
    padding: 10px 12px;
    border: 1px solid rgba(91, 66, 55, 0.18);
    border-radius: 12px;
    color: var(--text-muted);
    background: var(--surface-soft);
    font-size: 0.81rem;
    overflow-wrap: anywhere;
}

.anniversary-home .donation-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 18px;
}

.anniversary-home .donation-actions .button {
    width: 100%;
    min-height: 55px;
    padding-inline: 17px;
    font-size: 0.89rem;
}

.vk-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--teal-dark);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

/* Согласие и отправка */

.anniversary-home .consent-box {
    margin: 2px 0 22px;
    padding: 17px;
    border: 1px solid rgba(212, 154, 67, 0.27);
    border-left: 4px solid var(--gold);
    border-radius: 6px 17px 17px 6px;
    color: var(--text-muted);
    background: #fff5df;
    font-size: 0.84rem;
    line-height: 1.58;
}

.anniversary-home .consent-box p {
    margin-bottom: 12px;
}

.anniversary-home .consent-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.anniversary-home .consent-links a {
    color: var(--teal-dark);
    font-weight: 800;
}

.submit-dock {
    position: relative;
    margin-top: 0;
}

.anniversary-home .submit-button {
    display: inline-flex;
    width: 100%;
    min-height: 61px;
    font-size: 1.04rem;
}

.anniversary-home .submit-button:disabled .button-icon {
    display: none;
}

.anniversary-home .submit-button:disabled::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: anniversary-submit-spin 700ms linear infinite;
}

/* Боковая информация */

.registration-aside {
    display: grid;
    gap: 15px;
}

.anniversary-home .info-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(91, 66, 55, 0.18);
    border-radius: 21px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

.info-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 15px;
    color: var(--primary-dark);
    background: var(--gold-light);
}

.anniversary-home .info-card .info-overline {
    margin-bottom: 6px;
}

.anniversary-home .info-card h2 {
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.anniversary-home .info-card > p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.deadline-card {
    background:
            radial-gradient(
                    circle at 100% 0,
                    rgba(244, 217, 157, 0.42),
                    transparent 52%
            ),
            var(--surface) !important;
}

.deadline-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 78px;
    height: 4px;
    background: var(--gold);
}

.event-summary {
    display: grid;
    gap: 0;
    margin: 0;
}

.event-summary > div {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(91, 66, 55, 0.15);
}

.event-summary > div:first-child {
    padding-top: 2px;
}

.event-summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.event-summary dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.event-summary dd {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.organizer-card details {
    border-top: 1px solid rgba(91, 66, 55, 0.15);
}

.organizer-card summary {
    position: relative;
    min-height: 50px;
    padding: 13px 30px 10px 0;
    color: var(--teal-dark);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.organizer-card summary::-webkit-details-marker {
    display: none;
}

.organizer-card summary::after {
    content: "+";
    position: absolute;
    top: 10px;
    right: 0;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.organizer-card details[open] summary::after {
    content: "−";
}

.organizer-card details p {
    margin-bottom: 0;
    padding-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* Подвал */

.anniversary-home .footer {
    position: relative;
    z-index: 2;
    padding: 0 0 42px;
    color: var(--text-muted);
    text-align: center;
}

.footer-mark {
    display: grid;
    grid-template-columns: minmax(30px, 90px) auto minmax(30px, 90px);
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 15px;
    color: var(--gold-dark);
}

.footer-mark span {
    height: 1px;
    background:
            linear-gradient(
                    90deg,
                    transparent,
                    rgba(116, 71, 17, 0.5)
            );
}

.footer-mark span:last-child {
    background:
            linear-gradient(
                    90deg,
                    rgba(116, 71, 17, 0.5),
                    transparent
            );
}

.footer-mark b {
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: 1.05rem;
}

.anniversary-home .footer p {
    margin-bottom: 0;
    font-size: 0.79rem;
    line-height: 1.5;
}

/* Появление секций */

.motion-ready .anniversary-home [data-reveal] {
    --reveal-delay: 0ms;

    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
            opacity 620ms cubic-bezier(0.2, 0.75, 0.25, 1),
            transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
    transition-delay: var(--reveal-delay);
    will-change: opacity, transform;
}

.motion-ready .anniversary-home [data-reveal="scale"] {
    transform: translate3d(0, 14px, 0) scale(0.98);
}

.motion-ready .anniversary-home [data-delay="1"] {
    --reveal-delay: 90ms;
}

.motion-ready .anniversary-home [data-delay="2"] {
    --reveal-delay: 170ms;
}

.motion-ready .anniversary-home [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
}

/* Анимации */

@keyframes anniversary-image-breathe {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1.035);
    }

    50% {
        transform: translate3d(-0.7%, -0.5%, 0) scale(1.07);
    }
}

@keyframes anniversary-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes anniversary-ribbon-light {
    from {
        transform: rotate(18deg) translateX(-240%);
    }

    to {
        transform: rotate(18deg) translateX(980%);
    }
}

@keyframes anniversary-counter-nudge {
    50% {
        border-color: var(--primary);
        background: var(--primary-soft);
        transform: scale(1.006);
    }
}

@keyframes anniversary-pulse {
    50% {
        transform: scale(1.035);
    }
}

@keyframes anniversary-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.anniversary-home .counter-row.is-changing {
    animation: anniversary-counter-nudge 280ms ease;
}

.anniversary-home .pulse {
    animation: anniversary-pulse 280ms ease;
}

/* Небольшие телефоны */

@media (max-width: 359px) {
    .anniversary-home .shell {
        width: min(100% - 18px, 1180px);
    }

    .anniversary-home {
        font-size: 1rem;
    }

    .anniversary-home .form-card {
        padding-inline: 13px;
    }

    .anniversary-panel {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding-inline: 13px;
    }

    .anniversary-emblem {
        width: 72px;
        height: 72px;
    }

    .anniversary-emblem strong {
        font-size: 2.55rem;
    }

    .anniversary-emblem small {
        bottom: 8px;
    }

    .form-guide li {
        font-size: 0.67rem;
    }

    .anniversary-values {
        gap: 5px;
    }
}

@media (min-width: 430px) {
    .anniversary-home .counter-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .anniversary-home .counter {
        justify-self: end;
    }
}

@media (min-width: 500px) {
    .anniversary-home .shell {
        width: min(1180px, calc(100% - 32px));
    }

    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .hero-primary-button {
        width: auto;
        min-width: 220px;
    }

    .hero-action-note {
        justify-content: flex-start;
        text-align: left;
    }

    .anniversary-home .form-card {
        padding: 31px 27px 34px;
    }

    .anniversary-home .donation-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .anniversary-home .donation-actions .button {
        width: auto;
    }

    .vk-link {
        justify-content: flex-start;
        text-align: left;
    }

    .anniversary-home .consent-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 18px;
    }
}

@media (min-width: 700px) {
    .hero-stage {
        padding-top: 52px;
        padding-bottom: 84px;
    }

    .anniversary-home .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .anniversary-home .field-wide {
        grid-column: 1 / -1;
    }

    .anniversary-home .radio-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 24px;
    }

    .anniversary-home .donation-total {
        min-width: 190px;
        text-align: right;
    }

    .anniversary-home .form-card {
        padding: 39px 38px 42px;
    }

    .form-guide {
        gap: 10px;
    }

    .form-guide li {
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        padding: 10px 12px;
        font-size: 0.82rem;
        text-align: left;
    }

    .form-guide li > span {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 900px) {
    .anniversary-home .anniversary-hero::after {
        background:
                linear-gradient(
                        90deg,
                        rgba(248, 241, 232, 1) 0%,
                        rgba(248, 241, 232, 0.98) 36%,
                        rgba(248, 241, 232, 0.77) 53%,
                        rgba(248, 241, 232, 0.14) 78%,
                        rgba(248, 241, 232, 0.08) 100%
                ),
                linear-gradient(
                        0deg,
                        rgba(248, 241, 232, 0.78),
                        transparent 30%
                );
    }

    .hero-art {
        top: 0;
        right: 0;
        bottom: 0;
        left: 46%;
        height: auto;
        opacity: 0.84;
    }

    .hero-art::before {
        background-position: center 45%;
    }

    .hero-stage {
        min-height: 575px;
    }

    .hero-copy {
        width: 57%;
        max-width: 690px;
    }

    .anniversary-home .hero-copy h1 {
        max-width: 14ch;
    }

    .anniversary-panel {
        grid-template-columns: 100px minmax(270px, 1fr) minmax(350px, 1.15fr);
        gap: 22px;
        padding: 18px 24px;
    }

    .anniversary-emblem {
        width: 88px;
        height: 88px;
    }

    .anniversary-values {
        grid-column: auto;
    }

    .registration-layout {
        padding-top: 54px;
    }
}

@media (min-width: 1040px) {
    .registration-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 26px;
        padding-top: 64px;
        padding-bottom: 88px;
    }

    .registration-aside {
        position: sticky;
        top: 18px;
    }

    .anniversary-home .form-card {
        padding: 46px 44px 49px;
    }

    .anniversary-home .form-section {
        margin-bottom: 34px;
        padding-bottom: 34px;
    }
}

@media (min-width: 1180px) {
    .hero-stage {
        min-height: 610px;
        padding-top: 64px;
        padding-bottom: 96px;
    }

    .hero-copy {
        width: 55%;
    }

    .anniversary-home .hero-copy h1 {
        font-size: 4.9rem;
    }
}

/* Фиксированная кнопка на телефонах */

@media (max-width: 767px), (max-width: 900px) and (pointer: coarse) {
    .anniversary-home.registration-open {
        padding-bottom: var(--mobile-dock-space);
        scroll-padding-bottom: var(--mobile-dock-space);
    }

    .anniversary-home .registration-form :is(
		input,
		select,
		textarea,
		button,
		summary
	) {
        scroll-margin-bottom: calc(
                var(--mobile-dock-space) + 22px
        );
    }

    .anniversary-home .submit-dock {
        position: fixed;
        z-index: 100;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        padding-top: 10px;
        padding-right:
                max(12px, env(safe-area-inset-right, 0px));
        padding-bottom:
                calc(10px + env(safe-area-inset-bottom, 0px));
        padding-left:
                max(12px, env(safe-area-inset-left, 0px));
        border-top: 1px solid rgba(91, 66, 55, 0.16);
        background:
                linear-gradient(
                        180deg,
                        rgba(248, 241, 232, 0.78),
                        rgba(248, 241, 232, 0.98) 38%
                );
        box-shadow: 0 -12px 32px rgba(64, 42, 32, 0.1);
        backdrop-filter: blur(14px);
        transition:
                opacity 150ms ease,
                transform 180ms ease;
    }

    .anniversary-home .submit-dock .submit-button {
        width: min(100%, 680px);
        margin-inline: auto;
        min-height: 60px;
        border-radius: 17px;
        box-shadow:
                0 15px 34px rgba(75, 37, 31, 0.3),
                inset 0 1px rgba(255, 255, 255, 0.17);
    }

    html.keyboard-open .anniversary-home .submit-dock {
        opacity: 0;
        transform: translateY(115%);
        pointer-events: none;
    }
}

/* Микровзаимодействия для мыши */

@media (hover: hover) and (pointer: fine) {
    .nav-registration-link:hover {
        border-color: var(--primary);
        color: #fff;
        background: var(--primary);
        transform: translateY(-2px);
    }

    .nav-registration-link:hover svg {
        transform: translateX(3px);
    }

    .anniversary-home .button-primary:hover::before {
        transform: rotate(18deg) translateX(620%);
    }

    .anniversary-home .button:hover {
        transform: translateY(-2px);
    }

    .anniversary-home .button:hover .button-icon {
        transform: translateX(3px);
    }

    .anniversary-home .button-secondary:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        box-shadow: 0 13px 30px rgba(64, 42, 32, 0.1);
    }

    .anniversary-home .counter button:hover {
        background: var(--primary-dark);
    }

    .anniversary-home .radio-cards label:hover {
        border-color: rgba(111, 56, 45, 0.5);
        transform: translateY(-2px);
    }

    .anniversary-home .upload-box:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        transform: translateY(-2px);
    }
}

/* Непрерывное движение только при разрешённой анимации */

@media (prefers-reduced-motion: no-preference) {
    .hero-art::before {
        animation: anniversary-image-breathe 18s ease-in-out infinite;
    }

    .emblem-orbit {
        animation: anniversary-orbit 18s linear infinite;
    }

    .anniversary-panel::after {
        animation: anniversary-ribbon-light 9s ease-in-out infinite;
    }
}

/* Уменьшенное движение */

@media (prefers-reduced-motion: reduce) {
    .anniversary-home *,
    .anniversary-home *::before,
    .anniversary-home *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .motion-ready .anniversary-home [data-reveal],
    .motion-ready .anniversary-home [data-reveal="scale"] {
        opacity: 1;
        transform: none;
    }

    .hero-art {
        --art-shift: 0px !important;
    }
}

/* Печать */

@media print {
    .anniversary-home {
        padding-bottom: 0 !important;
        color: #000;
        background: #fff;
    }

    .anniversary-home .nav-registration-link,
    .anniversary-home .hero-actions,
    .anniversary-home .hero-art,
    .anniversary-home .anniversary-ribbon,
    .anniversary-home .registration-aside,
    .anniversary-home .footer {
        display: none !important;
    }

    .anniversary-home .anniversary-hero {
        border: 0;
        background: #fff;
    }

    .anniversary-home .anniversary-hero::before,
    .anniversary-home .anniversary-hero::after {
        display: none;
    }

    .anniversary-home .hero-stage,
    .anniversary-home .registration-layout {
        display: block;
        min-height: 0;
        padding-block: 18px;
    }

    .anniversary-home .hero-copy {
        width: 100%;
        max-width: none;
    }

    .anniversary-home .form-card {
        border: 1px solid #aaa;
        box-shadow: none;
    }

    .anniversary-home .submit-dock {
        position: static !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

@media (max-width: 499px) {
    .anniversary-home .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.25rem, 10.5vw, 2.75rem);
        white-space: nowrap;
    }
}

@media (max-width: 359px) {
    .anniversary-home .hero-copy h1 {
        font-size: 2.1rem;
    }
}