/* ===== СТРОГИЙ ГЕОМЕТРИЧЕСКИЙ СТИЛЬ ===== */
:root {
    --black: #000000;
    --light: #D7D1C5;
    --brown: #8C6F51;
    --gray-dark: #2A2A2A;
    --gray-light: #F5F3F0;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== HERO SECTION - ИСПРАВЛЕННЫЙ ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Фон с легким размытием */
    background-image: url('Image1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Темный оверлей с градиентом */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Легкое размытие фона */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

/* ИМЕНА В 3 СТРОКИ */
.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-name:first-child {
    margin-bottom: 10px;
}

.hero-and {
    font-size: 2rem;
    color: var(--light);
    font-weight: 400;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-name:last-child {
    margin-top: 10px;
}

.hero-date {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    margin: 40px 0;
    padding: 20px 0;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-date::before,
.hero-date::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--white);
}

.hero-date::before {
    top: 0;
}

.hero-date::after {
    bottom: 0;
}

.hero-invitation {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--light);
    line-height: 1.8;
    max-width: 500px;
    margin: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer - БЕЗ ГРАНИЦ И ПО ЦЕНТРУ */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-width: 100px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* СТРЕЛКА ВНИЗ */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounceArrow 2s infinite;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0;
    transition: 0.3s;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--black);
}

/* ===== ПРОГРАММА ДНЯ ===== */
.program-section {
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 120px;
    position: relative;
    min-height: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-time {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brown);
    width: 100px;
    text-align: right;
    padding-right: 20px;
}

.timeline-content {
    padding: 25px;
    background: var(--white);
    border: 2px solid var(--light);
    width: 100%;
}

.timeline-event {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-description {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== НАШИ ПРЕДПОЧТЕНИЯ ===== */
.preferences-section {
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.preferences-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.preference-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 35px;
    background: var(--white);
    border: 2px solid var(--light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Задержка для каждой карточки */
.preference-card:nth-child(1) { transition-delay: 0.1s; }
.preference-card:nth-child(2) { transition-delay: 0.2s; }
.preference-card:nth-child(3) { transition-delay: 0.3s; }

.preference-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.8rem;
}

.preference-text {
    flex: 1;
}

.preference-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.preference-description {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.preferences-note {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border: 2px solid var(--light);
    max-width: 700px;
    margin: 0 auto;
}

.preferences-note p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--black);
    font-style: italic;
    margin: 0;
}

/* ===== ФОРМА ПОДТВЕРЖДЕНИЯ ===== */
.rsvp-section {
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--black);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--black);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light);
    position: relative;
}

.radio-option input {
    display: none;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--black);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--black);
}

.drinks-group {
    margin-top: 15px;
}

.drink-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.drink-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--light);
    transition: border-color 0.3s ease;
}

.drink-option:hover {
    border-color: var(--brown);
}

.drink-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--black);
}

.drink-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--white);
    color: var(--black);
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-date {
    font-size: 1rem;
    color: var(--light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.85rem;
}

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--white);
    color: var(--black);
}

/* ===== ЛОКАЦИЯ ===== */
.location-section {
    background: var(--white);
}

/* 1. Заголовок по центру */
.location-header {
    margin-bottom: 10px;
    text-align: center;
}

.location-main-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
}

/* 2. Сетка деталей без границ - ЦЕНТРИРОВАННЫЕ ИКОНКИ */
.location-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.location-detail {
    padding: 30px 25px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.location-detail:hover {
    transform: translateY(-5px) translateY(0);
}

.detail-icon {
    color: var(--brown);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.detail-title {
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.2;
}

.detail-value {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 1.05rem;
}

/* 3. Карта */
.location-map-container {
    margin: 0;
    height: 100%;
}

.static-map-link {
    display: block;
    position: relative;
    border: 3px solid var(--black);
    transition: transform 0.3s ease;
    height: 100%;
    min-height: 400px;
}

.static-map-link:hover {
    transform: translateY(-5px);
}

.static-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.static-map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.map-overlay span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

/* 4. Новый дизайн подвала локации */
.location-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 10px;
    align-items: start;
}

/* Левая колонка - транспортная информация */
.transport-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.transport-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.transport-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.transport-option {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 20px;
    border: 2px solid var(--light);
    width: 100%;
    justify-content: flex-start;
}

.transport-option i {
    color: var(--brown);
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.transport-text {
    display: flex;
    flex-direction: column;
}

.transport-text strong {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.transport-text p {
    color: var(--gray-dark);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Кнопка в левой колонке */
.route-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.route-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 3px solid var(--black);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.route-button:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== ДРЕСС-КОД ===== */
.dresscode-section {
    background: var(--white);
}

.dresscode-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.dresscode-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

/* Цветовая палитра */
.color-palette {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border: 3px solid var(--light);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-name {
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ПАРАЛЛАКС ЛИНИИ ===== */
.parallax-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Должно быть выше фона, но ниже контента */
    pointer-events: none;
}

.line {
    position: absolute;
    background: rgba(139, 111, 81, 0.15); /* Увеличиваем прозрачность */
}

/* Вертикальные линии */
.line-1 {
    width: 1px;
    height: 120%;
    left: 15%;
    top: -10%;
    transform: rotate(5deg);
    background: rgba(139, 111, 81, 0.2); /* Ярче */
}

.line-2 {
    width: 2px;
    height: 80%;
    right: 25%;
    top: 10%;
    transform: rotate(-3deg);
    background: rgba(139, 111, 81, 0.25); /* Ярче */
}

.line-3 {
    width: 3px;
    height: 90%;
    left: 30%;
    bottom: -10%;
    transform: rotate(2deg);
    background: rgba(139, 111, 81, 0.15);
}

.line-6 {
    width: 1px;
    height: 110%;
    right: 20%;
    top: -5%;
    transform: rotate(-4deg);
    background: rgba(139, 111, 81, 0.18); /* Ярче */
}

.line-7 {
    width: 2px;
    height: 70%;
    left: 20%;
    bottom: 15%;
    transform: rotate(3deg);
    background: rgba(139, 111, 81, 0.22); /* Ярче */
}

/* Вертикальные линии - дополнительные */
.line-11 {
    width: 1px;
    height: 85%;
    left: 10%;
    top: 5%;
    transform: rotate(8deg);
    background: rgba(139, 111, 81, 0.18);
}

.line-12 {
    width: 2px;
    height: 95%;
    right: 15%;
    top: -5%;
    transform: rotate(-6deg);
    background: rgba(139, 111, 81, 0.22);
}

.line-13 {
    width: 3px;
    height: 75%;
    left: 35%;
    bottom: 5%;
    transform: rotate(4deg);
    background: rgba(139, 111, 81, 0.16);
}

.line-14 {
    width: 1px;
    height: 110%;
    right: 30%;
    top: -8%;
    transform: rotate(-7deg);
    background: rgba(139, 111, 81, 0.19);
}

.line-15 {
    width: 2px;
    height: 65%;
    left: 45%;
    bottom: 15%;
    transform: rotate(9deg);
    background: rgba(139, 111, 81, 0.21);
}

/* Горизонтальные линии */
.line-4 {
    width: 40%;
    height: 1px;
    top: 30%;
    right: -10%;
    transform: rotate(15deg);
    background: rgba(139, 111, 81, 0.2); /* Ярче */
}

.line-5 {
    width: 30%;
    height: 2px;
    bottom: 40%;
    left: -5%;
    transform: rotate(-10deg);
    background: rgba(139, 111, 81, 0.18); /* Ярче */
}

.line-8 {
    width: 35%;
    height: 1px;
    top: 60%;
    left: -8%;
    transform: rotate(-12deg);
    background: rgba(139, 111, 81, 0.2); /* Ярче */
}

.line-9 {
    width: 45%;
    height: 3px;
    bottom: 20%;
    right: -12%;
    transform: rotate(8deg);
    background: rgba(139, 111, 81, 0.25); /* Ярче */
}

/* Горизонтальные линии - дополнительные */
.line-16 {
    width: 25%;
    height: 2px;
    top: 20%;
    left: -8%;
    transform: rotate(12deg);
    background: rgba(139, 111, 81, 0.17);
}

.line-17 {
    width: 35%;
    height: 1px;
    bottom: 30%;
    right: -15%;
    transform: rotate(-18deg);
    background: rgba(139, 111, 81, 0.23);
}

.line-18 {
    width: 50%;
    height: 3px;
    top: 70%;
    left: -12%;
    transform: rotate(22deg);
    background: rgba(139, 111, 81, 0.20);
}

.line-19 {
    width: 40%;
    height: 2px;
    bottom: 10%;
    right: -5%;
    transform: rotate(-14deg);
    background: rgba(139, 111, 81, 0.18);
}

.line-20 {
    width: 30%;
    height: 1px;
    top: 45%;
    left: -20%;
    transform: rotate(25deg);
    background: rgba(139, 111, 81, 0.15);
}

/* Линии для второй секции - дополнительные */
.line-21 {
    width: 1px;
    height: 95%;
    left: 25%;
    top: -3%;
    transform: rotate(7deg);
    background: rgba(139, 111, 81, 0.19);
}

.line-22 {
    width: 2px;
    height: 80%;
    right: 35%;
    top: 12%;
    transform: rotate(-5deg);
    background: rgba(139, 111, 81, 0.24);
}

.line-23 {
    width: 3px;
    height: 105%;
    left: 15%;
    bottom: -7%;
    transform: rotate(3deg);
    background: rgba(139, 111, 81, 0.17);
}

.line-24 {
    width: 1px;
    height: 70%;
    right: 10%;
    top: 20%;
    transform: rotate(-9deg);
    background: rgba(139, 111, 81, 0.21);
}

.line-25 {
    width: 2px;
    height: 90%;
    left: 40%;
    bottom: 8%;
    transform: rotate(11deg);
    background: rgba(139, 111, 81, 0.23);
}

/* Диагональные линии */
.line-10 {
    width: 60%;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(139, 111, 81, 0.1);
}

/* Диагональные и специальные линии - дополнительные */
.line-26 {
    width: 55%;
    height: 1px;
    top: 35%;
    right: -18%;
    transform: rotate(30deg);
    background: rgba(139, 111, 81, 0.18);
}

.line-27 {
    width: 45%;
    height: 2px;
    bottom: 50%;
    left: -25%;
    transform: rotate(-35deg);
    background: rgba(139, 111, 81, 0.22);
}

.line-28 {
    width: 60%;
    height: 1px;
    top: 65%;
    right: -30%;
    transform: rotate(40deg);
    background: rgba(139, 111, 81, 0.16);
}

.line-29 {
    width: 70%;
    height: 3px;
    bottom: 25%;
    left: -35%;
    transform: rotate(-45deg);
    background: rgba(139, 111, 81, 0.25);
}

.line-30 {
    width: 80%;
    height: 2px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) rotate(60deg);
    background: rgba(139, 111, 81, 0.12);
}

/* Кривые линии (волны) */
.line-31 {
    width: 40%;
    height: 1px;
    top: 40%;
    left: 10%;
    transform: rotate(0deg);
    border-radius: 50%;
    background: rgba(139, 111, 81, 0.15);
    box-shadow: 0 0 10px rgba(139, 111, 81, 0.1);
}

.line-32 {
    width: 35%;
    height: 2px;
    bottom: 35%;
    right: 15%;
    transform: rotate(0deg);
    border-radius: 50%;
    background: rgba(139, 111, 81, 0.18);
    box-shadow: 0 0 8px rgba(139, 111, 81, 0.1);
}

/* Точки/круги */
.line-33 {
    width: 8px;
    height: 8px;
    top: 25%;
    left: 70%;
    border-radius: 50%;
    background: rgba(139, 111, 81, 0.25);
    box-shadow: 0 0 15px rgba(139, 111, 81, 0.2);
}

.line-34 {
    width: 12px;
    height: 12px;
    bottom: 60%;
    right: 25%;
    border-radius: 50%;
    background: rgba(139, 111, 81, 0.3);
    box-shadow: 0 0 20px rgba(139, 111, 81, 0.25);
}

.line-35 {
    width: 6px;
    height: 6px;
    top: 75%;
    left: 30%;
    border-radius: 50%;
    background: rgba(139, 111, 81, 0.2);
    box-shadow: 0 0 10px rgba(139, 111, 81, 0.15);
}

/* Позиционирование для секций */
.program-section,
.preferences-section {
    position: relative;
    overflow: hidden;
}

/* Фон секций должен быть под линиями */
.program-section::before,
.preferences-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-light);
    z-index: 0; /* Фон под линиями */
}

/* Контент поверх линий */
.program-section .container,
.preferences-section .container {
    position: relative;
    z-index: 2; /* Контент поверх линий */
}

/* Класс для анимированных элементов */
.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .location-footer {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .transport-title {
        text-align: center;
    }
    
    .route-button-container {
        justify-content: center;
    }
    
    .transport-section {
        align-items: center;
    }
    
    .transport-options {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .hero-and {
        font-size: 1.8rem;
    }
    
    .hero-date {
        font-size: 1.4rem;
        letter-spacing: 2px;
        margin: 30px 0;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 2px solid var(--black);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .timeline-item {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
    
    .timeline-time {
        position: relative;
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 10px;
        color: var(--black);
        top: 0;
        transform: none;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .rsvp-form {
        padding: 30px 20px;
    }
    
    .drink-options-grid {
        grid-template-columns: 1fr;
    }
    
    /* Локация для мобильных */
    .location-name {
        font-size: 1.8rem;
    }
    
    .location-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-detail {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-icon {
        font-size: 2.8rem;
    }
    
    .detail-title {
        font-size: 0.9rem;
    }
    
    .detail-value {
        font-size: 1rem;
        text-align: center;
    }
    
    .static-map-image {
        height: 350px;
        object-fit: cover;
        width: 100%;
    }
    
    .static-map-link {
        min-height: 350px;
        height: auto;
    }
    
    .location-map-container {
        margin: 0;
        height: auto;
    }
    
    .transport-options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .transport-option {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 25px 20px;
    }
    
    .transport-text {
        text-align: center;
        align-items: center;
    }
    
    .map-overlay i {
        font-size: 2rem;
    }
    
    .map-overlay span {
        font-size: 1rem;
    }
    
    /* Дресс-код для мобильных */
    .color-palette {
        gap: 20px;
    }
    
    .color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .color-name {
        font-size: 0.8rem;
    }
    
    /* Наши предпочтения для мобильных */
    .preference-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .preference-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .preference-title {
        font-size: 1.3rem;
    }
    
    .preferences-note {
        padding: 20px 15px;
    }
    
    .preferences-note p {
        font-size: 1.1rem;
    }
    
    .route-button {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-and {
        font-size: 1.5rem;
    }
    
    .hero-date {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    /* Локация для очень маленьких экранов */
    .location-name {
        font-size: 1.5rem;
    }
    
    .location-detail {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .detail-icon {
        font-size: 2.5rem;
    }
    
    .detail-title {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .static-map-image {
        height: 300px;
    }
    
    .transport-title {
        font-size: 1.3rem;
    }
    
    .transport-option {
        padding: 20px 15px;
    }
    
    .transport-option i {
        font-size: 2rem;
    }
    
    .transport-text strong {
        font-size: 1.2rem;
    }
    
    .route-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Дресс-код для очень маленьких экранов */
    .color-palette {
        gap: 15px;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
    }
    
    /* Наши предпочтения для очень маленьких экранов */
    .preference-card {
        padding: 20px 15px;
    }
    
    .preference-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .preference-title {
        font-size: 1.1rem;
    }
    
    .preference-description {
        font-size: 1rem;
    }
}

/* ===== ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ ===== */

/* Отключаем сложные анимации на мобильных */
@media (max-width: 768px) {
    /* Уменьшаем количество параллакс-линий */
    .parallax-lines .line:nth-child(n+6) {
        display: none;
    }
    
    /* Упрощаем параллакс-эффект */
    .line {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    /* Уменьшаем количество анимируемых элементов при скролле */
    .timeline-item,
    .preference-card,
    .location-detail,
    .color-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Отключаем JS анимации на мобильных */
    .hero::after {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Отключаем все сложные эффекты на очень слабых устройствах */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-lines {
        display: none;
    }
}

/* ===== ПЕРЕРАБОТАННАЯ КАРТА ===== */
.location-map-container {
    position: relative;
    width: 100%;
    height: 400px; /* Фиксированная высота на десктопе */
    margin: 40px 0 0;
}

.static-map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border: 3px solid var(--black);
    overflow: hidden;
}

.static-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.static-map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.map-overlay span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .location-map-container {
        height: 350px;
        order: -1; /* Карта вверху на планшетах */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .location-map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .location-map-container {
        height: 250px;
    }
    
    .map-overlay i {
        font-size: 2rem;
    }
    
    .map-overlay span {
        font-size: 1rem;
    }
}

/* ===== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ ГЕРОЯ ===== */
@media (max-width: 768px) {
    .hero {
        /* Убираем фиксированный фон для мобильных */
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    /* Улучшаем затемнение для мобильных */
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }
    
    /* Отключаем размытие на мобильных для производительности */
    .hero::after {
        display: none;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin-top: 0;
        padding-top: 80px; /* Компенсируем фиксированный хедер */
    }
    
    .hero-names {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .hero-name {
        font-size: 2.5rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Усиливаем тень */
    }
    
    .hero-name:first-child {
        margin-bottom: 5px;
        margin-top: 10px;
    }
    
    .hero-and {
        font-size: 1.5rem;
        margin: 5px 0;
    }
    
    .hero-name:last-child {
        margin-top: 5px;
    }
    
    .hero-date {
        font-size: 1.2rem;
        margin: 25px 0;
        padding: 15px 0;
        letter-spacing: 2px;
    }
    
    .hero-date::before,
    .hero-date::after {
        width: 80px;
    }
    
    .hero-invitation {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .countdown {
        gap: 10px;
        margin: 30px 0;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .scroll-arrow {
        bottom: 25px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-and {
        font-size: 1.3rem;
    }
    
    .hero-date {
        font-size: 1.1rem;
        margin: 20px 0;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 8px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* Для очень высоких мобильных */
@media (max-width: 768px) and (min-height: 700px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
}

/* ===== БЛОК БЛАГОДАРНОСТИ ===== */
.thankyou-block {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thankyou-content {
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--black); /* Как у формы */
    text-align: center;
    box-shadow: none; /* Убираем лишние тени */
}

.thankyou-icon {
    margin-bottom: 25px;
}

.thankyou-icon i {
    font-size: 4rem;
    color: var(--black); /* Чёрная иконка, как акцент */
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.thankyou-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thankyou-subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 300;
    border-bottom: 2px solid var(--black); /* Как у формы */
    padding-bottom: 15px;
}

.thankyou-details {
    background: transparent; /* Убираем серый фон */
    padding: 0;
    margin-bottom: 25px;
    border: none; /* Убираем границы */
    text-align: left;
}

.thankyou-detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
}

.thankyou-detail-row:last-child {
    border-bottom: none;
}

.thankyou-detail-label {
    flex: 0 0 90px;
    font-weight: 500;
    color: var(--black);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.thankyou-detail-value {
    flex: 1;
    color: var(--black);
    font-size: 1rem;
    font-weight: 400;
}

.thankyou-detail-value.yes {
    color: var(--black);
    font-weight: 500;
}

.thankyou-detail-value.yes::before {
    content: "✓ ";
    font-weight: 700;
}

.thankyou-detail-value.no {
    color: var(--black);
    font-weight: 500;
}

.thankyou-detail-value.no::before {
    content: "✗ ";
    font-weight: 700;
}

.thankyou-drinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thankyou-drink-tag {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
    padding: 4px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thankyou-note {
    text-align: center;
    color: var(--black);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--black);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .thankyou-content {
        padding: 30px 20px;
    }
    
    .thankyou-title {
        font-size: 1.6rem;
    }
    
    .thankyou-icon i {
        font-size: 3.5rem;
    }
    
    .thankyou-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .thankyou-detail-label {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .thankyou-content {
        padding: 25px 15px;
    }
    
    .thankyou-title {
        font-size: 1.4rem;
    }
}

/* Добавь в конец файла style.css */

/* Для красивого отображения фото */
.static-map-image {
    object-fit: cover;  /* Чтобы фото красиво заполняло контейнер */
    object-position: center;  /* Центрируем содержимое */
    transition: transform 0.3s ease;
}

.static-map-link:hover .static-map-image {
    transform: scale(1.02);  /* Легкое увеличение при наведении */
}