/* ========== ПЕРЕМЕННЫЕ И НАСТРОЙКИ ========== */
:root {
    /* Шрифты */
    --font-primary: 'Segoe Print';
    --font-decorative: 'vetrino';
    
    /* Цветовая палитра */
    --primary-green: #2E5E4E;
    --light-green: #4A7C6D;
    --accent-red: #9A3D3D;
    --cream: #e2e8e6;
    --light-beige: #e2e8e6;
    --dark-text: #333333;
    --light-text: #666666;
    --shadow: rgba(46, 94, 78, 0.1);
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --section-padding: 80px;
    --border-radius: 10px;
}

/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@font-face {
    font-family: "Segoe Print";
    src: url("../fonts/segoe-print/segoe-print.otf") format("opentype"),
         url("../fonts/segoe-print/segoe-print.ttf") format("truetype"),
         url("../fonts/segoe-print/segoe-print.woff") format("woff"),
         url("../fonts/segoe-print/segoe-print.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "vetrino";
    src: url("../fonts/vetrino/vetrino.otf") format("opentype"),
         url("../fonts/vetrino/vetrino.woff2") format("woff2"),
         url("../fonts/vetrino/vetrino.woff") format("woff"),
         url("../fonts/vetrino/vetrino.ttf") format("truetype"),
         url("../fonts/vetrino/vetrino.svg#vetrino") format("svg");
    font-weight: normal;
    font-style: normal;
}

/* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .footer-text {
    font-family: var(--font-decorative);
    font-weight: 500;
}

h3 {
    font-family: var(--font-primary);
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--accent-red);
}

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(46, 94, 78, 0.2), rgba(46, 94, 78, 0.1)),
                url('img/фон3.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(248, 244, 239, 0.85);
    padding: 40px 60px;
    border-radius: 5px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 30px var(--shadow);
}

.hero-title {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title .and {
    color: var(--accent-red);
    margin: 0 10px;
}

.hero-date {
    font-size: 1.8rem;
    color: var(--light-green);
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 500px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-green);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ========== ДАТА И КАЛЕНДАРЬ ========== */
.date-section {
    background-color: #fff;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.calendar-container {
    max-width: 500px;
    margin: 0 auto;
}

.calendar-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.calendar {
    background-color: #f6f7f7;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--light-green);
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-date {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
}

.calendar-date.other-month {
    color: #ccc;
}

.calendar-date.wedding-day {
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
}

/* ========== ПРОГРАММА ========== */
.program-section {
    background-color: var(--light-beige);
}

.program-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.program-item:last-child {
    margin-bottom: 0;
}

.program-item::before {
    content: '';
    position: absolute;
    left: 90px;        
    top: 0;
    bottom: -40px;
    width: 2px;
    background-color: var(--primary-green);
    opacity: 0.3;
}

.program-item:last-child::before {
    bottom: 0; 
}

.program-time {
    width: 80px;
    font-weight: 500;
    color: var(--accent-red);
    font-size: 1.5rem;
    /* padding-top удалён */
}

.program-content {
    flex: 1;
    padding-left: 30px;
}

.program-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.program-description {
    color: var(--light-text);
}

/* ========== ЛОКАЦИИ ========== */
.locations-section {
    background-color: #fff;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.location-card {
    background-color: #f6f7f7;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.location-address {
    color: var(--light-text);
    margin-bottom: 20px;
}

.map-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.transfer-info {
    background-color: var(--light-beige);
    border-radius: var(--border-radius);
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.transfer-title {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.transfer-title i {
    color: var(--accent-red);
}

/* ========== ЦВЕТЫ И ПОДАРКИ ========== */
.gifts-section {
    background-color: var(--light-beige);
}

.flowers-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 30px;
	background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
}

.flowers-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.flowers-title {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.flowers-description {
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.7;
}

.flowers-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.flowers-btn:hover {
    background-color: #b34a4a;
}

.gifts-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.gifts-title {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* ========== ДРЕСС-КОД ========== */
.dresscode-section {
    background-color: #fff;
    text-align: center;
}

.dresscode-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
}

.intro-text,
.description-text,
.palette-description {
    max-width: 800px;
    color: #2F353B;
}

.intro-text,
.description-text {
    font-size: 1rem;
    margin-bottom: 20px;
}

.palette-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 30px 0 20px;
    color: var(--primary-green);
    width: 100%;
    max-width: 800px;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 20px;
    justify-content: center;
    max-width: 900px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px -6px rgba(0,0,0,0.3);
}

.color-name {
    font-size: 0.8rem;
    color: var(--light-text);
}

.footer-note {
    margin-top: 40px;
    font-size: 1.2rem;
    color: #2F353B;
    max-width: 800px;
}

/* ========== АНКЕТА ГОСТЯ ========== */
.form-section {
    background-color: var(--light-beige);
}

.form-description {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 5px;
}

.form-description:last-of-type {
    margin-bottom: 40px;  /* только у последнего элемента оставляем отступ снизу */
}

.guest-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-green);
    font-weight: 500;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.radio-label {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 10px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"],
.sub-radio-option input[type="radio"] {
    accent-color: var(--primary-green);
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.radio-option-group {
    display: flex;
    flex-direction: column;
}

.sub-options {
    display: none;
    margin-left: 30px;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px dashed var(--primary-green);
    transition: all 0.3s ease;
}

.sub-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.checkbox-group {
    margin-top: 30px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-option input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-option input[type="checkbox"][name="photo_consent"] {
    accent-color: var(--primary-green);
}

.submit-btn {
    display: block;
    width: 100%;
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #b34a4a;
}

/* Стиль для валидной кнопки отправки */
.submit-btn.valid {
    background-color: var(--primary-green); /* зелёный */
}

.submit-btn.valid:hover {
    background-color: var(--light-green);
}

/* ========== СООБЩЕНИЯ ПОСЛЕ ОТПРАВКИ ========== */
.thank-you-message {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 30px;
    background-color: var(--cream);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--primary-green);
}

.thank-you-message h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--font-decorative);
}

.thank-you-message p {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.thank-you-message p:last-child {
    margin-bottom: 0;
    color: var(--accent-red);
    font-weight: 500;
}

/* ========== ФУТЕР ========== */
.footer {
    background-color: var(--primary-green);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 1.2rem;
}

/* ========== КНОПКА НАВЕРХ ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--light-green);
}

/* ========== УТИЛИТЫ ========== */
.hidden-field {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-date {
        font-size: 1.5rem;
    }
    
    .hero-overlay {
        padding: 30px 40px;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .program-item {
        flex-direction: column;
    }
    
    .program-item::before {
        left: 15px;
    }
    
    .program-time {
        width: 100%;
        margin-bottom: 10px;
        padding-left: 30px;
    }
    
    .program-content {
        padding-left: 30px;
    }
    
    .guest-form {
        padding: 25px 20px;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .intro-text,
    .description-text,
    .palette-title,
    .footer-note {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .palette-title {
        font-size: 1.4rem;
    }
    
    .palette-grid {
        gap: 20px 15px;
    }
    
    .color-item {
        width: 90px;
    }
    
    .color-circle {
        width: 70px;
        height: 70px;
    }
    
    .thank-you-message h3 {
        font-size: 1.5rem;
    }
    
    .thank-you-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-overlay {
        padding: 25px 20px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 200px;
    }
    
    .color-item {
        width: 80px;
    }
    
    .color-circle {
        width: 65px;
        height: 65px;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========== СТИЛИ ДЛЯ КОММЕНТАРИЯ К СОГЛАСИЮ ========== */
.consent-comment {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    margin-left: 24px; /* Небольшой отступ, чтобы было под чекбоксом */
    line-height: 1.4;
}

/* Стиль для плейсхолдера телефона */
#phone::placeholder {
    color: #999;
    opacity: 1;
}

/* Для поддержки старых браузеров */
#phone::-webkit-input-placeholder {
    color: #999;
}

#phone::-moz-placeholder {
    color: #999;
}

#phone:-ms-input-placeholder {
    color: #999;
}