/* ===========================================
   Свадебный сайт Вениамина и Дарьи — v3
   GSAP + Lenis + SplitType + tsParticles
   REDESIGNED LAYOUT
   =========================================== */

:root {
    --color-dusty-rose: #C496A1;
    --color-sage: #919D85;
    --color-lavender: #8E88A3;
    --color-cream: #EBE1C6;
    --color-light-cream: #F5F0E8;
    --color-bronze: #81785A;
    --color-text: #292929;
    --color-white: #ffffff;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.6;
    background: url('фон_хотим_seamless.JPG') center top repeat-y scroll;
    background-size: 100% auto;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-bronze);
    text-shadow: 0 0 40px rgba(196, 150, 161, 0.15);
}

/* ===========================================
   tsParticles canvas
   =========================================== */

#particles {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

/* ===========================================
   Блок 0: Lock Screen — ASYMMETRIC SPLIT
   =========================================== */

.lock-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(245, 240, 232, 0.94) 0%, rgba(245, 240, 232, 0.88) 40%, rgba(235, 225, 198, 0.92) 100%),
        url('фон_хотим.JPG') center/cover no-repeat;
}

.lock-content {
    position: relative;
    z-index: 2;
    color: var(--color-text);
    padding: 20px;
    max-width: 460px;
    width: 100%;
}

.lock-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.lock-verse-col {
    display: flex;
    align-items: center;
}

.lock-verse {
    opacity: 0;
}

.lock-verse p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    text-align: left;
}

.lock-verse cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--color-dusty-rose);
    letter-spacing: 0.1em;
}

.lock-photo-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.lock-photo {
    width: 280px;
    height: 280px;
    min-width: 280px;
    min-height: 280px;
    max-width: 280px;
    max-height: 280px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(196, 150, 161, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.8);
}

.lock-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    display: block;
    filter: brightness(1.1) contrast(0.95) saturate(0.7) sepia(0.15) blur(0.3px);
}

.lock-names {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-bronze);
    margin-bottom: 2.5rem;
    opacity: 0;
    text-align: center;
}

.lock-btn {
    display: block;
    margin: 0 auto;
    padding: 18px 48px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--color-dusty-rose);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.lock-btn:hover {
    background: var(--color-lavender);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 150, 161, 0.3);
}

/* ===========================================
   Кнопка музыки
   =========================================== */

.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.music-btn:hover {
    transform: scale(1.1);
    background: var(--color-white);
}

.music-btn.playing {
    animation: musicPulse 2s infinite;
}

.music-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-dusty-rose);
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); }
    50% { box-shadow: 0 4px 25px rgba(196, 150, 161, 0.5); }
}

/* ===========================================
   Toast
   =========================================== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 200;
    background: rgba(41, 41, 41, 0.9);
    color: var(--color-white);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 340px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================================
   Блок 1: Hero — EDITORIAL FULL-BLEED
   =========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text);
    padding: 40px 30px 50px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    will-change: transform;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-bronze);
    opacity: 0;
}

.hero-names {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
}

.hero-names span {
    display: block;
}

.hero-names .amp {
    font-size: 1.8rem;
    font-style: italic;
    opacity: 0;
    margin: 0.1rem 0;
    color: var(--color-text);
}

.hero-names .split-name {
    display: block;
    overflow: hidden;
    visibility: hidden;
}

.hero-names .split-name.split-ready {
    visibility: visible;
}

/* SplitType char styling */
.hero-names .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-date {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2rem;
    color: var(--color-text);
    opacity: 0;
}

/* ===========================================
   Блок 2: Личное послание — EDITORIAL LEFT-ALIGNED
   =========================================== */

.message-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.message-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.message-deco {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 0.8;
    color: var(--color-dusty-rose);
    opacity: 0.25;
    flex-shrink: 0;
    margin-top: -0.15em;
}

.personal-message {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.9;
    text-align: left;
    color: var(--color-text);
    max-width: 480px;
    border-left: 2px solid rgba(196, 150, 161, 0.3);
    padding-left: 1.25rem;
}

/* SplitType word styling for message */
.personal-message .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}

/* ===========================================
   Блок 3: Дата + Календарь — ASYMMETRIC
   =========================================== */

.calendar-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.calendar-section .container {
    width: 100%;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: center;
}

.calendar-title-col h2 {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.calendar-grid-col {
    display: flex;
    justify-content: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 320px;
}

.calendar-grid .calendar-weekday {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-sage);
    padding: 10px 0;
}

.calendar-grid span:not(.calendar-weekday) {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 50%;
}

.calendar-grid span.wedding-day {
    background: var(--color-dusty-rose);
    color: var(--color-white);
    font-weight: 500;
    position: relative;
}

.calendar-grid span.wedding-day::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--color-dusty-rose);
    border-radius: 50%;
}

/* ===========================================
   Блок 4: Локация — IMMERSIVE FULL-BLEED MAP
   =========================================== */

.location {
    padding: 0;
}

.location-immersive {
    position: relative;
    width: 100%;
}

.location .maps-container {
    width: 100%;
    position: relative;
}

.map-tabs {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.map-tab {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 26px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.map-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-tab:not(.active):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.location .map-image {
    position: relative;
    overflow: hidden;
    clip-path: circle(0% at 50% 50%);
    border-radius: 0;
    box-shadow: none;
    display: none;
}

.location .map-image.map-active {
    display: block;
}

.location .map-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.8) contrast(0.7) saturate(0.4) sepia(0.2);
    min-height: 400px;
    object-fit: cover;
}

.location .map-tint {
    position: absolute;
    inset: 0;
    background: rgba(235, 225, 198, 0.25);
    pointer-events: none;
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0 2.5rem;
    background: linear-gradient(to top, rgba(41, 41, 41, 0.85) 0%, rgba(41, 41, 41, 0.6) 60%, transparent 100%);
    z-index: 2;
}

.location-overlay h2 {
    color: var(--color-cream);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.location-overlay .location-address {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.location-overlay .location-coords {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--color-dusty-rose);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-lavender);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 150, 161, 0.3);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-route {
    display: flex;
    margin: 0 auto;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
}

/* ===========================================
   Блок 5: Тайминг — ZIGZAG STAGGERED LAYOUT
   =========================================== */

.timing {
    padding: 100px 20px;
}

.timeline {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* No vertical line — replaced by card layout */
    padding-left: 0;
}

/* Remove the old vertical line */
.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(196, 150, 161, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Zigzag: alternate left/right offset */
.timeline-item.timeline-left {
    margin-right: 25%;
    margin-left: 0;
}

.timeline-item.timeline-right {
    margin-left: 25%;
    margin-right: 0;
}

.timeline-item:last-child {
    padding-bottom: 1.25rem;
}

.timeline-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--color-light-cream);
    border: 2px solid var(--color-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    position: static;
    left: auto;
    top: auto;
}

.timeline-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-sage);
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-content .time {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-bronze);
    line-height: 1.1;
}

.timeline-content .event {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-top: 0.15rem;
}

/* ===========================================
   Блок 6: Дресс-код — ARTISTIC SCATTERED
   =========================================== */

.dresscode {
    padding: 100px 20px;
}

.dresscode-text {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
    font-size: 1.05rem;
}

.colors {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 180px;
    align-items: center;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

/* Artistic scattered: varying sizes and offsets */
.color-item.color-pos-1 {
    transform: translateY(-15px);
}

.color-item.color-pos-1 .color-circle {
    width: 72px;
    height: 72px;
}

.color-item.color-pos-2 {
    transform: translateY(20px);
}

.color-item.color-pos-2 .color-circle {
    width: 56px;
    height: 56px;
}

.color-item.color-pos-3 {
    transform: translateY(-25px);
}

.color-item.color-pos-3 .color-circle {
    width: 68px;
    height: 68px;
}

.color-item.color-pos-4 {
    transform: translateY(10px);
}

.color-item.color-pos-4 .color-circle {
    width: 50px;
    height: 50px;
}

.color-item.color-pos-5 {
    transform: translateY(-8px);
}

.color-item.color-pos-5 .color-circle {
    width: 64px;
    height: 64px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(0);
}

.color-item span {
    font-size: 0.75rem;
    color: var(--color-text);
    text-align: center;
    max-width: 70px;
}

/* ===========================================
   Блок 7: Пожелания — MASONRY OFFSET
   =========================================== */

.wishes {
    padding: 100px 20px;
}

.wishes-intro {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

.wish-accordion {
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.wish-accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.wish-accordion-header:hover {
    background: rgba(245, 240, 232, 0.5);
}

.wish-accordion-header .wish-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--color-light-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-sage);
}

.wish-accordion-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-bronze);
    flex: 1;
    margin: 0;
}

.wish-chevron {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--color-bronze);
    opacity: 0.5;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.wish-chevron svg {
    width: 20px;
    height: 20px;
}

.wish-accordion.active .wish-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.wish-accordion-body {
    max-height: 0;
    overflow: hidden;
}

.wish-accordion-body p {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0;
}

/* ===========================================
   Блок 8: Контакты — STACKED ALTERNATING
   =========================================== */

.contacts {
    padding: 100px 20px;
}

.contacts-text {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    font-size: 1.05rem;
}

.contact-cards {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
}

.contact-card {
    background: var(--color-white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    flex: 1;
    min-width: 0;
}

.contact-host {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-host .contact-card {
    flex: none;
    max-width: 260px;
    width: 100%;
}

.contact-host-role {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-dusty-rose);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-bronze);
    margin-bottom: 0.15rem;
    text-align: center;
}

.contact-card .phone-number {
    font-size: 0.78rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.contact-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
}

.btn-telegram,
.btn-phone {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.btn-telegram .btn-label,
.btn-phone .btn-label {
    display: none;
}

.btn-telegram svg,
.btn-phone svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-telegram {
    background: var(--color-dusty-rose);
}

.btn-telegram:hover {
    background: var(--color-lavender);
}

.btn-phone {
    background: var(--color-sage);
}

.btn-phone:hover {
    background: var(--color-bronze);
}

/* Countdown is now inside footer — no separate section */

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-dusty-rose);
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===========================================
   Блок 10: Анкета
   =========================================== */

.questionnaire {
    padding: 100px 20px;
}

.questionnaire .container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(196, 150, 161, 0.15);
    max-width: 460px;
}

.deadline-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 auto 2rem;
    max-width: 100%;
    background: rgba(235, 225, 198, 0.4);
    border: 1px solid rgba(196, 150, 161, 0.25);
    border-radius: 10px;
}

.deadline-notice svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--color-bronze);
}

.deadline-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-bronze);
    font-weight: 400;
    line-height: 1.4;
}

.rsvp-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid rgba(196, 150, 161, 0.3);
    border-radius: 10px;
    background: rgba(245, 240, 232, 0.4);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--color-dusty-rose);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 150, 161, 0.1);
}

.phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(196, 150, 161, 0.3);
    border-radius: 10px;
    background: rgba(245, 240, 232, 0.4);
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.phone-input-wrap:focus-within {
    border-color: var(--color-dusty-rose);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 150, 161, 0.1);
}

.phone-prefix {
    padding: 12px 0 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-bronze);
    font-weight: 400;
    flex-shrink: 0;
    user-select: none;
}

.phone-input-wrap input[type="tel"] {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 4px;
    flex: 1;
    min-width: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(245, 240, 232, 0.5);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.radio-label:hover {
    border-color: var(--color-dusty-rose);
    background: rgba(196, 150, 161, 0.08);
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-dusty-rose);
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--color-dusty-rose);
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(245, 240, 232, 0.5);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    border-color: var(--color-dusty-rose);
    background: rgba(196, 150, 161, 0.08);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-dusty-rose);
    flex-shrink: 0;
}

.guest-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.guest-row input {
    flex: 1;
}

.guest-row .btn-remove-guest {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(196, 150, 161, 0.3);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dusty-rose);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.guest-row .btn-remove-guest:hover {
    background: var(--color-dusty-rose);
    color: var(--color-white);
    border-color: var(--color-dusty-rose);
}

.btn-add-guest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-dusty-rose);
    background: none;
    border: 1px dashed rgba(196, 150, 161, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-guest:hover {
    background: var(--color-cream);
    border-color: var(--color-dusty-rose);
    color: var(--color-dusty-rose);
}

.btn-add-guest svg {
    stroke: currentColor;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    letter-spacing: 0.15em;
    border-radius: 12px;
}

/* Validation error state */
.field-error {
    outline: 2px solid var(--color-dusty-rose) !important;
    outline-offset: 2px;
    border-radius: 8px;
}

.field-error input[type="text"],
.field-error input[type="tel"] {
    border-color: var(--color-dusty-rose) !important;
}

input.field-error {
    border-color: var(--color-dusty-rose) !important;
}

.form-message {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    display: none;
    font-size: 0.85rem;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* Модальное окно успешной отправки */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.success-modal-content {
    position: relative;
    z-index: 1;
    background: var(--color-bg, #fffaf5);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.success-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--color-dusty-rose, #c9a4a9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    line-height: 1;
}

.success-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-bronze);
    margin-bottom: 0.5rem;
}

.success-modal-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    opacity: 0.7;
}

button.success-modal-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--color-dusty-rose, #c9a4a9);
    color: #fff;
    padding: 14px 36px;
    font-size: 0.85rem;
    width: 100%;
    min-height: 48px;
}

.btn-submit.is-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-submit.is-loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================
   Блок 11: Футер — LEFT-ALIGNED WITH DECO
   =========================================== */

.footer {
    padding: 80px 20px;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--color-text) 40px
    );
    color: var(--color-white);
}

.footer .container {
    text-align: center;
}

.footer-message {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 0.95rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
}

.footer-countdown {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-countdown-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 1rem;
}

.footer-heart {
    width: 36px;
    height: 36px;
    margin: 0 auto;
}

/* ===========================================
   Секции: кремовый overlay + blob-просветы
   =========================================== */

.message-section,
.calendar-section,
.location,
.timing,
.dresscode,
.wishes,
.contacts,
.questionnaire {
    position: relative;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(245, 240, 232, 0.88) 40px,
        rgba(245, 240, 232, 0.88) calc(100% - 40px),
        transparent 100%
    );
    overflow: hidden;
}

/* Location override: transparent bg for immersive map */
.location {
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(245, 240, 232, 0.6) 40px,
        rgba(245, 240, 232, 0.6) calc(100% - 40px),
        transparent 100%
    );
}

/* Blob-просветы */
.message-section::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: calc(-40px + var(--blob-y, 0px));
    width: 280px;
    height: 320px;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 45%, rgba(245,240,232,0.88) 70%);
    border-radius: 43% 57% 62% 38% / 55% 38% 62% 45%;
    pointer-events: none;
    z-index: 0;
}

.timing::before {
    content: '';
    position: absolute;
    left: -50px;
    top: calc(-30px + var(--blob-y, 0px));
    width: 240px;
    height: 280px;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(245,240,232,0.88) 65%);
    border-radius: 58% 42% 35% 65% / 45% 60% 40% 55%;
    pointer-events: none;
    z-index: 0;
}

.wishes::after {
    content: '';
    position: absolute;
    right: -40px;
    top: calc(60px + var(--blob-y, 0px));
    width: 220px;
    height: 260px;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 42%, rgba(245,240,232,0.88) 68%);
    border-radius: 35% 65% 52% 48% / 60% 42% 58% 40%;
    pointer-events: none;
    z-index: 0;
}

.contacts::before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: calc(-20px + var(--blob-y, 0px));
    width: 180px;
    height: 200px;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(245,240,232,0.88) 65%);
    border-radius: 62% 38% 45% 55% / 48% 58% 42% 52%;
    pointer-events: none;
    z-index: 0;
}

/* Content above blobs */
.message-section > *,
.calendar-section > *,
.location > *,
.timing > *,
.dresscode > *,
.wishes > *,
.contacts > *,
.countdown-section > *,
.questionnaire > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   Адаптивность
   =========================================== */

@media (max-width: 480px) {
    h2 {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }

    /* Lock screen */
    .lock-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lock-photo-col {
        justify-content: center;
        order: -1;
    }

    .lock-photo {
        width: 220px;
        height: 220px;
        min-width: 220px;
        min-height: 220px;
        max-width: 220px;
        max-height: 220px;
    }

    .lock-verse p {
        font-size: 1rem;
        text-align: center;
    }

    .lock-names {
        font-size: 2rem;
    }

    .lock-btn {
        padding: 16px 36px;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero-names {
        font-size: 2.8rem;
    }

    .hero-date {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 30px 24px 40px;
        margin: 0 16px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    /* Message */
    .message-deco {
        font-size: 5rem;
    }

    .personal-message {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    /* Calendar */
    .calendar-title-col h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .calendar-grid {
        max-width: 280px;
    }

    /* Sections padding */
    .message-section,
    .calendar-section,
    .countdown-section {
        min-height: auto;
        padding: 80px 20px;
    }

    .timing,
    .dresscode,
    .wishes,
    .contacts,
    .questionnaire {
        padding: 80px 20px;
    }

    /* Timing zigzag smaller offset */
    .timeline-item.timeline-left {
        margin-right: 15%;
    }

    .timeline-item.timeline-right {
        margin-left: 15%;
    }

    .timeline-content .time {
        font-size: 1.8rem;
    }

    /* Countdown in footer */
    .countdown-number {
        font-size: 2rem;
    }

    /* Dresscode */
    .colors {
        gap: 0.3rem;
        min-height: 140px;
    }

    .color-item.color-pos-1 .color-circle { width: 56px; height: 56px; }
    .color-item.color-pos-2 .color-circle { width: 44px; height: 44px; }
    .color-item.color-pos-3 .color-circle { width: 52px; height: 52px; }
    .color-item.color-pos-4 .color-circle { width: 40px; height: 40px; }
    .color-item.color-pos-5 .color-circle { width: 48px; height: 48px; }

    .color-item.color-pos-1 { transform: translateY(-10px); }
    .color-item.color-pos-2 { transform: translateY(15px); }
    .color-item.color-pos-3 { transform: translateY(-18px); }
    .color-item.color-pos-4 { transform: translateY(8px); }
    .color-item.color-pos-5 { transform: translateY(-5px); }

    .color-item span {
        font-size: 0.65rem;
        max-width: 55px;
    }

    /* Contacts */
    .contact-card {
        max-width: 85%;
    }

    .contact-card h3 {
        font-size: 0.95rem;
    }

    .contact-card .phone-number {
        font-size: 0.72rem;
    }

    .btn-telegram,
    .btn-phone {
        width: 38px;
        height: 38px;
    }

    /* Footer */
    .footer-names {
        font-size: 2rem;
    }

    .footer-deco-line {
        height: 50px;
    }
}

@media (max-width: 360px) {
    .hero-names {
        font-size: 2.8rem;
    }

    .lock-names {
        font-size: 1.7rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .timeline-item.timeline-left {
        margin-right: 8%;
    }

    .timeline-item.timeline-right {
        margin-left: 8%;
    }

    .contact-card {
        max-width: 90%;
    }
}
