@font-face {
    font-family: 'KZ Balmoral';
    src: url('kzbalmoral_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

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

/* ОСНОВНОЙ ФОН САЙТА С ПАТТЕРНОМ */
body {
    font-family: 'Playfair Display', serif;
    color: #2C5D63;
    overflow-x: hidden;
    background: url('fw2.png') repeat;
    font-weight: 400;
    line-height: 1.6;
}

.parallax-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    background: transparent !important;
}

/* БЕЛЫЙ ОВЕРЛЕЙ ДЛЯ ФОНА */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 247, 244, 0.7);
    z-index: -1;
}

.bg-1, .bg-2, .bg-3, .bg-4, .bg-5 {
    background: transparent !important;
}

.content {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ЗАГОЛОВКИ С KZ BALMORAL */
h1, h2, h3, h4, h5, h6 {
    font-family: 'KZ Balmoral', serif;
    font-weight: 500;
    font-style: italic;
    color: #2C5D63;
    line-height: 1.4;
}

h1 {
    font-size: 5rem;
    margin-bottom: 25px;
}

h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ОСНОВНОЙ ТЕКСТ С KZ BALMORAL */
p {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.5rem;
    line-height: 1.7;
    color: #2C5D63;
    font-weight: 400;
    margin-bottom: 20px;
}

strong, b {
    font-weight: 600;
    font-style: italic;
}

/* Главная секция с фото */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-family: 'KZ Balmoral', serif;
    font-size: 8rem;
    font-weight: 600;
    font-style: italic;
    color: #2C5D63;
    margin-bottom: 10px;
}

.main-subtitle {
    font-family: 'KZ Balmoral', serif;
    font-size: 7rem;
    font-weight: 500;
    font-style: italic;
    color: #2C5D63;
    margin-bottom: 40px;
}

/* Круглая рамка с фото */
.bride-hero-frame {
    width: 70vmin;
    height: 70vmin;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bride-hero-image {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 50%;
}

/* Контент для скролла */
.scroll-content {
    margin-top: 50px;
}

/* Общая рамка приглашения */
.invitation-combined {
    padding: 50px;
    margin: 40px 0;
    text-align: center;
}

.invitation-combined h2 {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.5rem; /* Увеличьте по необходимости */
    color: #2C5D63;
    text-align: center;
    margin: 20px 0;
}
.greeting-list {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.8rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.invitation-content {
    margin-top: 30px;
    padding-top: 30px;
}

.invitation-content h3 {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.5rem; /* Настройте размер по желанию */
    color: #2C5D63;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}
.invitation-message {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.9rem;
    line-height: 1.8;
    font-style: italic;
    color: #2C5D63;
}

.bride-name {
    font-family: 'KZ Balmoral', serif;
    font-size: 6rem !important;
    font-weight: 600;
    font-style: italic;
    color: #2C5D63;
    margin: 20px 0;
}

.date-box {
    padding: 40px;
    margin: 40px 0;
    display: inline-block;
}

.date-box h3 {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.9rem;
}

.date-box p {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.9rem;
}

/* Стили для галереи программы */
.program-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px 0;
    width: 900px;
}

.program-item-image {
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-item-image:hover {
    transform: translateY(-5px);
}

.image-frame {
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-item-image:hover .image-frame {
    transform: scale(1.05);
}

.program-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
}

.program-caption {
    text-align: center;
}

.program-caption strong {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.2rem;
    color: #2C5D63;
}

/* ТАЙМЕР С ЗАГОЛОВКОМ */
#title {
    font-family: 'KZ Balmoral', serif;
    font-size: 3.5rem;
    color: #2C5D63;
    text-align: center;
    margin: 25px 0;
    font-style: italic;
    width: 100%;
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.countdown-items {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-direction: row;
}

.countdown-item {
    color: #2C5D63;
    padding: 30px 25px;
    border-radius: 15px;
    min-width: 120px;
    text-align: center;
}

.countdown-number {
    font-family: 'KZ Balmoral', serif;
    font-size: 4rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-family: 'KZ Balmoral', serif;
    font-size: 1.8rem;
    opacity: 0.9;
    letter-spacing: 1px;
    color: #2C5D63;
}

.location-info h2 {
    font-family: 'KZ Balmoral', serif;
    font-size: 5rem;
}

.location-info h3 {
    font-family: 'KZ Balmoral', serif;
    font-size: 4rem;
}

.location-link {
    color: #2C5D63;
    text-decoration: none;
    border-bottom: 1px solid #2C5D63;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    font-family: 'KZ Balmoral', serif;
    font-size: 2.2rem;
}

.location-link:hover {
    color: #79B4A9;
    border-bottom-color: #79B4A9;
    transform: translateY(-2px);
}

/* Календарь Ноября 2025 */
.calendar-container {
    font-family: 'Playfair Display', serif !important;
    padding: 40px;
    margin: 30px auto;
    max-width: 600px;
}

.calendar-header {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2C5D63;
    margin-bottom: 30px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin: 0 auto;
}

.calendar-weekday {
    padding: 15px;
    text-align: center;
    color: #2C5D63;
    font-weight: bold;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
}

.calendar-day {
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    color: #2C5D63;
    font-family: 'Playfair Display', serif;
}

/* ОРАНЖЕВАЯ ПОМЕТКА ДЛЯ СОБЫТИЯ */
.calendar-day.event {
    background: orange !important;
    color: white;
    font-weight: bold;
    transform: scale(1.1);
}

.calendar-day.empty {
    background: transparent;
}

/* Форма - ШИРОКАЯ ВЕРСИЯ */
.form-card {
    padding: 50px;
    margin: 30px auto;
    width: 95%;
    max-width: 1150px;
}

.form-title {
    font-family: 'KZ Balmoral', serif;
    font-size: 4rem;
    font-weight: 500;
    font-style: italic;
    color: #2C5D63;
    text-align: center;
    margin-bottom: 50px;
}

.form-section {
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-family: 'KZ Balmoral', serif;
    font-size: 3rem;
    font-weight: 500;
    color: #2C5D63;
    margin-bottom: 15px;
}

.section-description {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.2rem;
    color: #2C5D63;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.9;
}

.text-input, .number-input {
    width: 100%;
    padding: 20px 25px;
    border-radius: 12px;
    font-size: 2.2rem;
    font-family: 'KZ Balmoral', serif;
    background: rgba(255, 255, 255, 0.8);
    color: #2C5D63;
    transition: all 0.3s ease;
}

.text-input:focus, .number-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.text-input::placeholder {
    color: rgba(44, 93, 99, 0.6);
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.radio-option:hover {
    transform: translateY(-2px);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(44, 93, 99, 0.5);
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.radio-option input:checked + .radio-custom {
    border-color: #2C5D63;
    background: #2C5D63;
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.5rem;
    color: #2C5D63;
    font-weight: 400;
}

.number-input {
    max-width: 120px;
    text-align: center;
    font-size: 2.2rem;
    padding: 15px;
}

.number-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.number-label {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.5rem;
    color: #2C5D63;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(44, 93, 99, 0.8), rgba(121, 180, 169, 0.8));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 25px;
    font-size: 2.5rem;
    font-family: 'KZ Balmoral', serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2C5D63, #79B4A9);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    font-family: 'KZ Balmoral', serif;
    font-size: 2.5rem;
    font-weight: 500;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'KZ Balmoral', serif;
    font-size: 2.2rem;
}

.message {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
    font-family: 'KZ Balmoral', serif;
    display: none;
}

.message.success {
    background: rgba(144, 238, 144, 0.2);
    color: #2d7d32;
    border-color: rgba(144, 238, 144, 0.4);
}

.message.error {
    background: rgba(255, 182, 193, 0.2);
    color: #c53030;
    border-color: rgba(255, 182, 193, 0.4);
}

/* Аудио контрол */
.audio-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(121, 180, 169, 0.3);
    border: 1px solid rgba(121, 180, 169, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: rgba(121, 180, 169, 0.4);
    transform: scale(1.1);
}

.audio-control i {
    color: #2C5D63;
    font-size: 1.3rem;
}

/* Навигационные точки */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(121, 180, 169, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #2C5D63;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(121, 180, 169, 0.7);
}

/* Декоративные элементы */
.floral-decoration {
    position: absolute;
    font-size: 3rem;
    color: rgba(121, 180, 169, 0.6);
    z-index: -1;
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* УБРАТЬ РАМКИ И ТЕНИ */
.content, 
.invitation-combined, 
.date-box, 
.location-info, 
.calendar-container,
.form-card,
.image-frame,
.countdown-item,
.calendar-day,
.text-input, 
.number-input,
.radio-option,
.bride-hero-frame {
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.5rem; }
    p { font-size: 2rem; }
    
    .main-title { font-size: 4rem; }
    .main-subtitle { font-size: 3rem; }
    .bride-name { font-size: 3.5rem !important; }
    
    .program-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }
    
    .program-image {
        width: 120px;
        height: 120px;
    }
    
    .program-caption strong {
        font-size: 1.8rem;
    }
    
    .countdown { flex-wrap: wrap; gap: 15px; }
    .countdown-item { min-width: 80px; padding: 20px 15px; }
    .countdown-number { font-size: 3rem; }
    .countdown-label { font-size: 1.5rem; }
    .countdown-title { font-size: 2.5rem; }
    
    .form-title { font-size: 3rem; }
    .section-label { font-size: 2.5rem; }
    .section-description { font-size: 1.8rem; }
    .radio-text { font-size: 2rem; }
    .text-input, .number-input { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    p { font-size: 1.8rem; }
    
    .main-title { font-size: 3.5rem; }
    .main-subtitle { font-size: 2.5rem; }
    .bride-name { font-size: 3rem !important; }
    
    .countdown-title { font-size: 2rem; }
}
