/* Базовые стили */
:root {
    --primary-color: #000;
    --secondary-color: #555;
    --accent-color: #c8a97e;
    --bg-color: #f9f9f9;
    --text-color: #000;
    --light-text: #888;
    --white: #fff;
    --black: #000;
    --red-heart: #e74c3c;
}

/* Подключение Ceremonious Two (если шрифт локальный) */
@font-face {
    font-family: 'Ceremonious Two';
    src: url('../fonts/CeremoniousTwo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bikham';
    src: url('../fonts/bikhamcyrscript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*outline: 4px solid green !important;*/
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', cursive;
    font-weight: normal;
    color: var(--black);
}

.section-title, .calendar-title, .dresscode-title {
    font-family: 'Bikham', cursive;
    font-weight: normal;
    color: var(--black);
}

.section-title {
    font-size: 6.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 30px 0;
    min-height: 25vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

/* Главный экран */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 100%;
    background-image: url('../img/main.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    filter: brightness(0.9);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 0px;
    margin-bottom: -60px;
}

.invitation-text {
    text-align: center;
    color: black;
    font-family: 'Montserrat', sans-serif;
}

/*.invitation-text.visible {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}*/

.invitation-text h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-family: 'Bikham', sans-serif;
    line-height: 1.1;
}

.invitation-text p {
    font-size: 1.4rem;
    margin: 10px 0;
    font-weight: 400;
}

.name {
    font-family: 'Ceremonious Two', cursive;
    font-size: 5vw;
    font-weight: normal;
    letter-spacing: 5px;
    margin: 5px 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.ampersand {
    font-size: 3vw;
    margin: 10px 0;
    color: #c8a97e;
    font-family: 'Ceremonious Two', cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.date {
    font-family: 'Ceremonious Two', cursive;
    font-size: 2vw;
    letter-spacing: 5px;
    color: white;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Секция с таймером */
.countdown-section {
    background-color: white;
    text-align: center;
    padding: 0px 0;
    position: relative;
}

.countdown-wrapper {
    background-image: url('../img/rabbel_2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: -265px;
    position: relative;
    z-index: 2;
}

.countdown-item {
    text-align: center;
    width: 100px;
}

.number {
    font-size: 8.5rem;
    font-weight: 300;
    color: var(--black);
    font-family: 'Bikham', serif;
}

.label {
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: -40px;
}

/* Секция с датой */
.invitation-section {
    background-color: var(--bg-color);
    text-align: center;
    padding: 30px 0;
}

.calendar {
    margin: 0 auto 20px;
    max-width: 400px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-title {
    font-size: 5.5rem;
    margin-bottom: 10px;
}

.calendar-month {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.weekdays, .days {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5px;
}

.weekdays span {
    width: 14%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.days span {
    width: 14%;
    text-align: center;
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
}

.highlight-image {
    position: absolute;
    top: -5px;
    left: -13.5px;
    width: 165%;
    height: 165%;
    background-image: url(../img/rabbel_2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.highlight-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    z-index: 2;
    font-size: 1.2rem;
}

.days .highlight {
    position: relative;
    color: white;
    font-weight: 700;
}

.days .highlight::before {
    display: none;
}


.save-date {
    margin-top: 20px;
}

.save-date h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--black);
}

.save-date p {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
}

.time-note {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

/* Место проведения */
.location-section {
    background-color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
}

.location-image {
    width: 100%;
    height: 300px;
    background-image: url('../img/place.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border-radius: 10px;
}

.location-content p {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
}

.map-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.map-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Программа */
.program-section {
    background-color: var(--bg-color);
    text-align: center;
    padding: 80px 0;
}

.program-content {
    max-width: 600px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.program-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.time {
    color: var(--black);
    font-size: 3.8rem;
    min-width: 120px;
    text-align: right;
    font-family: 'Bikham', sans-serif;
    line-height: 1;
    padding-top: 0.5rem;
}

.divider {
    width: 2px;
    height: 40px;
    background-color: var(--black);
    margin: 0 25px;
}

.event {
    font-size: 1.5rem;
    text-align: left;
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    min-width: 300px;
    line-height: 1.4;
}

/* Дресс-код */
.dresscode-section {
    background-color: var(--white);
    text-align: center;
    padding: 0px 0;
}

.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
}

.dresscode-title {
    font-family: 'Bikham', cursive;
    font-size: 6.5rem;
    margin-bottom: 0px;
    color: var(--black);
}

.dresscode-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.color-palette {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.color-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
}

.color-item {
    text-align: center;
    margin: 0 5px;
    flex: 0 0 calc(16.666% - 20px);
    max-width: calc(16.666% - 20px);
}

.color-sample {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Секция контактов организаторов */
.organizers-section {
    background-color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.organizers-content {
    max-width: 600px;
    margin: 0 auto;
}

.organizers-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--black);
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
}

.contact-name {
    font-size: 1.3rem;
    margin-left: 10px;
    color: var(--black);
}

/* Секция Детали */
.details-section {
    background-color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--black);
    padding: 0 20px;
}

.details-content p {
    margin-bottom: 40px;
}

/* Анкета гостя */
/* Обновленные стили для анкеты гостя */
.guest-form-section {
    background-color: var(--bg-color);
    text-align: center;
    padding: 35px 0;
}

.guest-form-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--black);
    text-align: center;
}

.guest-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 500;
}

.form-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 500;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    margin-left: 0px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    margin-right: 10px;
}

.radio-option input[type="radio"]:checked ~ .custom-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option input[type="checkbox"]:checked ~ .custom-checkbox::after {
    content: '✓';
    position: absolute;
    color: var(--accent-color);
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.other-input {
    margin-top: 5px;
    margin-left: 28px;
    width: calc(100% - 28px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-image {
        background-size: cover;
        width: 100%;
        top: 0;
    }

    .invitation-text h1 {
        font-size: 3.3rem;
        line-height: 0.9;
    }

    .invitation-text p {
        font-size: 1.5rem;
    }

    .hero-content {
        padding-bottom: 0px;
        margin-bottom: -65px;
    }

    .section-title {
        font-size: 5rem;
        line-height: 1.1;
        margin-bottom: 55px;
    }

    .name {
        font-size: 10vw;
    }

    .ampersand {
        font-size: 6vw;
    }

    .date {
        font-size: 4vw;
    }

    .countdown-wrapper {
        width: 335px;
        height: 355px;
        background-size: cover;
    }

    .countdown {
        gap: 11px;
        margin-top: -168px;
    }

    .countdown-item {
        width: 45%;
    }

    .number {
        font-size: 6rem;
    }

    .label {
        font-size: 1.1rem;
        margin-top: -23px;
    }

    .calendar-title {
        font-size: 5rem;
    }

    .invitation-text p {
        font-size: 1.4rem;
    }

    .save-date h3 {
        font-size: 1.2rem;
    }

    .save-date p {
        font-size: 1rem;
    }

    .save-date .time-note {
        font-size: 1rem;
    }

    .location-image {
        height: 200px;
    }

    .program-section {
        padding: 50px 0;
    }

    .program-item {
        flex-direction: column;
        text-align: center;
    }

    .time {
        font-size: 4rem;
        min-width: auto;
        text-align: center;
        padding-top: 0;
    }

    .divider {
        width: 100px;
        height: 2px;
        margin: 15px auto;
    }

    .event {
        font-size: 1.5rem;
        text-align: center;
        min-width: auto;
    }

    /* Дресс-код */
    .dresscode-section {
        padding: 50px 0;
    }

    .dresscode-content {
        padding: 20px;
    }

    .dresscode-title {
        font-size: 5rem;
    }

    .dresscode-text {
        font-size: 1.2rem;
    }

    .color-palette {
        gap: 10px;
    }

    .color-sample {
        width: 50px;
        height: 50px;
    }

    .color-item {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }

    .color-name {
        font-size: 1rem;
    }

    .details-section {
        padding: 50px 0;
    }

    .details-content {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .guest-form-content {
        padding: 20px;
    }

    .form-description {
        font-size: 1rem;
    }

    .form-group label,
    .form-question {
        font-size: 1rem;
    }

    .organizers-text {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .contact-number {
        font-size: 1.2rem;
    }

    .contact-name {
        font-size: 1.1rem;
    }
}
