:root {
    --bg-color: #f9f8f6;
    --text-color: #1a1a1a;
    --line-color: #d1d1d1;
    --amp-color: #f2efec;
    --accent-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- ЗАСТАВКА --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero-top {
    z-index: 100;
    text-align: center;
    width: 100%;
    margin-top: 50px;
}

.top-tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: block;
}

.vertical-line {
    width: 1px;
    height: 100px;
    background-color: var(--line-color);
    margin: 0 auto;
}

.names-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.ampersand-bg {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 320px;
    color: var(--amp-color);
    z-index: 1;
    line-height: 1;
    font-style: normal;
    font-weight: 300;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.names {
    position: relative;
    z-index: 10;
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    color: #2c2c2c;
    text-transform: none;
}

.hero-bottom {
    z-index: 100;
    margin-bottom: 100px;
}

.hero-bottom .vertical-line {
    height: 100px;
}

/* --- КОНТЕНТ --- */

.heart-line {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.content {
    background-color: white;
    padding-bottom: 80px;
}

.info-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px 40px;
}

.intro-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 60px;
    line-height: 1.6;
    color: #444;
}

/* --- КАЛЕНДАРЬ --- */
.calendar-container {
    margin: 40px auto 80px;
    width: 100%;
    max-width: 320px;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #f0efed;
}

.month-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 5px;
    text-align: center;
}

.day-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    padding-bottom: 15px;
}

.calendar-grid div:not(.day-name) {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    position: relative;
}

.marked-day {
    color: #fff !important;
    font-weight: 600;
    z-index: 2;
}

.marked-day::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    15% { transform: translate(-50%, -50%) scale(1.2); }
    30% { transform: translate(-50%, -50%) scale(1); }
    45% { transform: translate(-50%, -50%) scale(1.1); }
    60% { transform: translate(-50%, -50%) scale(1); }
}

/* --- ТАЙМИНГ --- */
.timing-section {
    margin: 80px auto;
    max-width: 500px;
    text-align: center;
}

.timing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 40px;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 200;
    margin-bottom: 10px;
}

.event {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
}

.timeline-line {
    width: 1px;
    height: 80px;
    background-color: #ddd;
    margin: 20px 0;
}

/* --- ЛОКАЦИЯ --- */
.location-section {
    margin-top: 100px;
    text-align: center;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #f0efed;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 0;
    margin-bottom: 80px;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    padding: 0 30px;
    text-transform: lowercase;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.location-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 84px;
    font-weight: 300;
    margin-bottom: 40px;
}

.venue-name, .venue-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 200;
    margin-bottom: 15px;
    color: #333;
}

.map-button {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid #000;
    border-radius: 40px;
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- ДЕТАЛИ --- */
.details-section {
    margin: 100px auto;
    max-width: 600px;
    text-align: center;
}

.details-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 40px;
}

.details-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 20px;
}

.details-divider {
    font-size: 32px;
    color: #bbb;
    margin: 20px 0;
}

/* --- ФОРМА RSVP --- */
.rsvp-section {
    max-width: 500px;
    margin: 120px auto 0;
    padding: 0 30px;
    text-align: left;
}

.rsvp-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    color: #999;
    text-align: center;
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 45px;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
}

.rsvp-form input[type="text"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #aaa;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: transparent;
    outline: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
}

.radio-container input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
}

.radio-container input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
}

.submit-button {
    display: block;
    width: 100%;
    margin-top: 60px;
    padding: 20px;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 80px 20px;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .top-tagline { font-size: 24px; margin-top: -20px; }
    .names { font-size: 42px; }
    .ampersand-bg { font-size: 240px; }
    .location-title, .timing-title, .details-title { font-size: 56px; }
    .venue-name, .venue-address, .details-text { font-size: 18px; }
    .time { font-size: 32px; }
    .event { font-size: 18px; }
    .form-label { font-size: 20px; }
    .slider {
        width: 250px;
    }
    .content h1 {
        font-size: 1.8rem;
    }
}

.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    user-select: none; /* ← ДОБАВЬ ЭТО */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.unlock-container {
    position: relative;
    z-index: 10000;
    margin-bottom: 50px;
    text-align: center;
    user-select: none; /* ← И ЭТО */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.unlock-text {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.slider {
    width: 300px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    cursor: grab;
    margin: 0 auto;
    user-select: none; /* ← И ЭТО */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-circle {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.slider-circle.active {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.5);
}

/* Анимация исчезновения */
.lock-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .slider {
        width: 250px;
    }
    
    .unlock-text {
        font-size: 0.9rem;
    }

    
}

@keyframes pulse-hint {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

.slider-circle {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    animation: pulse-hint 2s ease-in-out infinite; /* ← ДОБАВЬ ЭТО */
}

.slider-circle.active {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.5);
    animation: none; /* ← Убрать анимацию при касании */
}


.unlock-text::after {
    content: '→';
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(20px);
        opacity: 0.6;
    }
}

.unlock-text2 {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    }

    .background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('lepestok.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0; /* ← ЗА ВСЕМ */
    pointer-events: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.guest-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    position: relative;
}

.btn-add-guest, .btn-remove {
    padding: 10px 15px;
    background-color: #007bff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-remove {
    background-color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    position: absolute;
    right: 10px;
    top: 30px;
}

.btn-add-guest:hover, .btn-remove:hover {
    opacity: 0.8;
}

.btn-submit {
    padding: 12px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

