/* ====================
   Общие настройки
==================== */
body {
    margin: 0;
    padding: 0;
    font-family: "RoutineVariableThin";
    background-color: #dddfd1;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #9ba986 0%, #9ba986 100%);
    text-align: center;
}

/* ====================
   Заголовки
==================== */
.header {
    padding: 20px;
}

.header h1 {
    font-family: "Spell", cursive;
}

h1 {
    font-size: 2em;
    color: #394931;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: "Spell";
    font-size: 2.4em;
    color: #394931;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h3 {
    font-family: "Spell";
    font-size: 2.4em;
    color: #394931;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ====================
   Приветствие
==================== */
.greeting {
    font-size: 1.2em;
    color: #2c3e50;
}

.greeting-block {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    background-color: #dddfd1;
    max-height: 300px;
    margin: 0 auto;
    border-radius: 15px 15px;
    padding: 80px 10px 30px 10px;
}

.greeting-block p {
    margin-block-start: 0;
}

/* ====================
   Фото-блок
==================== */
.photo-block {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.photo-block img {
    max-width: 100%;
    height: auto;
    background-clip: padding-box;
}

/* ====================
   Облако с именами
==================== */
.cloud-text {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    font-family: "Spell", cursive;
    z-index: 10;
}

.cloud-text span {
    background: linear-gradient(135deg, #dddfd1 0%, #dddfd1 100%);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.cloud-text::before,
.cloud-text::after {
    content: '❤';
    position: absolute;
    color: #ff6b6b;
    opacity: 0.9;
    font-size: 1.5em;
    animation: pulse 1.5s infinite;
}

.cloud-text::before {
    top: -15px;
    left: 17%;
    rotate: 15deg;
}

.cloud-text::after {
    top: -15px;
    right: 22%;
    rotate: 19deg;
}

/* ====================
   Анимации
==================== */
@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ====================
   Дата
==================== */
.date {
    font-size: 2.5em;
    color: #dddfd1;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Spell", cursive;
}

/* ====================
   Место торжества
==================== */
.place-celebration {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://chulkovoresort.ru/media/images/66.2e16d0ba.fill-900x600.jpg");
    height: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
}

.place-celebration h3 {
    color: white;
    font-size: 2.6em;
    margin: 10px;
}

.place-text {
    color: white;
    font-size: 1.4em;
    margin: 10px;
}

.place-button {
    background-color: #dddfd1;
    width: 200px;
    display: block;
    margin: 30px auto 0;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.3em;
    font-family: 'RoutineVariableThin';
    color: black;
    padding: 20px;
    text-align: center;
    text-decoration: none;
}

/* ====================
   Форма (анкета)
==================== */
.form {
    padding: 20px;
    color: #2e2b28;
    max-width: 600px;
    text-align: left;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.form p {
    text-align: center;
    font-size: 0.9em;
}

.form h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.form label {
    font-size: 1.05em;
    display: block;
    margin-bottom: 5px;
}

.form .radio label,
.form .checkbox label {
    font-size: 1.0em;
}

.form input[type="text"] {
    background-color: #dddfd1;
    border-radius: 5px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #2e2b28;
    font-size: 1em;
    padding: 8px 4px;
    color: #2e2b28;
}

.form input::placeholder {
    color: #b2a89f;
}

.form input[type="radio"],
.form input[type="checkbox"] {
    font-size: 1em;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #2e2b28;
}

.form .radio,
.form .checkbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.form button,
.form input[type="submit"] {
    background-color: #394931;
    width: 200px;
    display: block;
    margin: 30px auto 0;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    font-family: 'RoutineVariableThin';
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
}

.form button:hover {
    background-color: #4a4641;
}

.thank-you-block {
    padding-top: 20px;
}

.thank-you-block p {
    font-family: "RoutineVariableThin";
    text-align: center;
    font-size: 1.2em;
}

.thank-you-block .reset {
    font-family: "RoutineVariableThin";
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 0.9em;
    display: block;
    padding-top: 12px;
}

/* ====================
   Тайминг
==================== */
.timeline {
    position: relative;
    margin: 0 auto;
}

/* ВЕРТИКАЛЬНАЯ ЛИНИЯ */
.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 132px;
    width: 2px;
    background-color: #ccc;
    z-index: 0;
    height: 280px;
}

.timeline-title {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin: 40px 0 60px 40px;
    z-index: 1;
    /* выше вертикальной линии */
}

.time {
    width: 80px;
    text-align: right;
    font-weight: bold;
    font-size: 1.4em;
    position: relative;
}

.event {
    margin-left: 30px;
    font-size: 1.3em;
    position: relative;
}

@media (max-width: 350px) {
    .event {
        font-size: 1em;
    }
}

/* КРУЖОК */
.event::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    z-index: 2;
}

/* ====================
   Дресс-код
==================== */
.dress-code {
    padding: 20px;
}

.dress-code h3 {
    font-size: 1.8em;
    margin: 0;
}

.dress-code p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.dress-code img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.color-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: gray;
    /* будет переопределён */
}

.color-woman:nth-child(1) {
    background-color: #D8BFD8;
}

.color-woman:nth-child(2) {
    background-color: #B0C4DE;
}

.color-woman:nth-child(3) {
    background-color: #2E8B57;
}

.color-woman:nth-child(4) {
    background-color: #F5DEB3;
}

.color-man:nth-child(1) {
    background-color: black;
}

.color-man:nth-child(2) {
    background-color: white;
}

/* ====================
   Подарки
==================== */

.gifts p {
    font-size: 1.2em;
    margin: 0;
}

.gifts-block {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    background-color: #dddfd1;
    max-height: 300px;
    border-radius: 15px 15px;
    padding: 20px;
    margin: 0 10px 0 10px;
}

.gifts {
    padding-bottom: 30px;
}

.gifts-photo-block {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 65%;
    margin: 0 auto;
}

.gifts-photo-block img {
    max-width: 100%;
    height: auto;
    background-clip: padding-box;
}

/* ====================
   Календарь
==================== */
.calendar {
    margin-bottom: 20px;
}

.month {
    margin-bottom: 20px;
    font-family: "Spell";
    font-size: 2.4em;
    color: #394931;
}

.week {
    display: flex;
    justify-content: center;
    gap: 45px;
    font-size: 2em;
    position: relative;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day span {
    font-size: 16px;
}

.highlight {
    position: relative;
    color: #dddfd1;
    font-weight: bold;
}

.highlight::before {
    content: "";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 85 Q10 50 25 25 Q40 10 50 25 Q60 10 75 25 Q90 50 50 85 Z" fill="none" stroke="%23394931" stroke-width="3" /></svg>');
}

@media (max-width: 480px) {
    .week {
        gap: 35px;
    }
    .highlight::before {
        top: -30px;
        left: 50%;
        width: 120px;
        height: 120px;
    }
}

/* ====================
   Таймер
==================== */
.timer h3 {
    font-size: 1.8em;
}

#countdown {
    font-size: 2em;
    font-weight: bold;
    color: #394931;
}

/* ====================
   Шрифты
==================== */
@font-face {
    font-family: "RoutineVariableThin";
    src: url("/static/fonts/RoutineVariableThin-Thin.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Spell";
    src: url("/static/fonts/Spell.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

/* ====================
   Дополнительные функции
==================== */
.bottom-hr {
    border-bottom: 4px solid #dddfd1;
    /* толщина и цвет полосы */
}


/* ====================
   Админ-панель
==================== */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2 {
    text-align: center;
}

.drink-stats {
    text-align: left;
    padding-left: 20px;
}

.drink-stats li {
    margin: 5px 0;
}

.table-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.guest-table {
    width: 90%;
    max-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.guest-table th,
.guest-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.guest-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

.guest-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.guest-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {

    .guest-table th,
    .guest-table td {
        padding: 8px 5px;
        font-size: 14px;
    }
}

/* ====================
   Галерея
==================== */
