/* --- Глобальные настройки и переменные --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Montserrat:wght@300;400&display=swap');

:root {
    --font-headings: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --color-bg: #F1EBE5; /* Нежный кремовый фон  #9A6AD6 #37DB79	*/ 
    --color-text: #5D504A; /* Темный серо-коричневый для текста */
    --color-accent: #B08D77; /* Акцентный, пыльная роза / кофе */
    --color-white: #FFFFFF;
    --color-error: #c53e3e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 
  ИСПРАВЛЕНО ЗДЕСЬ: Настройки фона для желаемого вида
*/
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-image: url("14645874_5513830.jpg");
    
    /* Новые настройки фона: */
    background-size: cover;          /* Масштабировать, чтобы покрыть весь экран */
    background-repeat: no-repeat;    /* Не повторять изображение */
    background-attachment: fixed;    /* Зафиксировать фон при прокрутке */
    background-position: center;     /* Центрировать изображение */

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Это правило остается без изменений. Оно нужно, чтобы контент сдвигался вверх после входа */
body.body-logged-in {
    align-items: flex-start;
}

/* 
  (ВСЯ ОСТАЛЬНАЯ ЧАСТЬ ФАЙЛА ОСТАЕТСЯ БЕЗ ИЗМЕНЕНИЙ, КАК ВЫ И НАСТРОИЛИ) 
*/

.login-container {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-container h1 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-subtitle {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #888;
}

.input-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 119, 0.2);
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #9a7c68;
    transform: translateY(-2px);
}

#error-message {
    color: var(--color-error);
    text-align: center;
    margin-top: 15px;
    min-height: 1.2em;
}

#main-content {
    display: none;
    width: 100%;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

section {
    padding: 40px 20px;
    text-align: center;
}

h3 {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--color-text);
}

h4 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-accent);
}

p {
    line-height: 1.8;
    margin-bottom: 1em;
    font-size: 1rem;
    font-weight: 300;
}

.ppppw{
    padding-bottom: 14%;
}

.booldd{
    color: #3f2a21;
    font-weight: 500;
}

.header {
    padding: 80px 20px;
    color: var(--color-white);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    background-size: cover;
}
.footer{
    padding: 80px 20px;
    color: var(--color-white);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    background-size: cover;  
}
.header h2{
    margin-top: 7%;
    font-family: var(--font-headings);
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 3px 3px 4px rgba(10,10,10,10.5);
    color: #779E00;
}
.footer h3 {
    font-family: var(--font-headings);
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 3px 3px 4px rgba(10,10,10,10.5);
    color: #779E00;
}
.header p{
    margin-top: 2%;
    font-family: var(--font-headings);
    font-size: 2.5rem;
    color: #a2681c;
    letter-spacing: 2px;
    font-weight: 900;
   text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.footer-cr{
    margin-top: -2%;
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #a2681c;
}

.footer-credit {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #779E00;
    margin-top: -3%;
}

#greeting {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    text-align: center;
    padding: 40px 20px 0;
}

.intro-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 30px auto;
}



.faq-section { background-color: #faf6f2; }
.faq-item { margin-bottom: 25px; }
.schedule-section { background-color: var(--color-white); }
.schedule-date { font-size: 1.1rem; margin-bottom: 40px; color: var(--color-accent); }
.schedule-item { display: flex; align-items: center; text-align: left; max-width: 500px; margin: 0 auto 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.schedule-item:last-child { border-bottom: none; }
.schedule-item time { font-family: var(--font-headings); font-size: 2rem; font-weight: 700; color: var(--color-accent); margin-right: 25px; }
.schedule-details span { font-weight: 400; font-size: 1.1rem; }
.schedule-details p { font-size: 0.9rem; margin: 5px 0 0 0; line-height: 1.5; }
.map-button { background-color: #fff; color: var(--color-accent); border: 1px solid var(--color-accent); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; margin-top: 10px; display: inline-block; transition: all 0.3s ease; width: auto; }
.map-button:hover { background-color: var(--color-accent); color: var(--color-white); transform: none; }
.lovestory-section { padding-bottom: 20px; }
.lovestory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
.lovestory-item { padding-top: 100%; background-color: #ddd; background-size: cover; background-position: center; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lovestory-item:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.photo-tip { font-size: 0.8rem; margin-top: 20px; opacity: 0.7; }
.map-section-wrapper { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 40px 10px; background-color: #faf6f2; }
.map-section { flex: 1; min-width: 300px; padding: 20px; }
.map-container { width: 100%; height: 300px; background-color: #e0e0e0; border-radius: 8px; margin-top: 20px; }

.dresscode-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 22px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.color-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-block;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
    cursor: pointer;
}

.color-dot:hover {
    transform: scale(1.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    z-index: 2;
}

@media (max-width: 768px) {
    h3 { font-size: 2.2rem; }
    .header h2, .footer h3 { font-size: 2.8rem; }
    .lovestory-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-item { flex-direction: column; align-items: center; text-align: center; }
    .schedule-item time { margin-right: 0; margin-bottom: 10px; }
    .map-container{width: 100%; height: 200px;}
    .map-mob{
    width: 300px;
    height: 200px;
}
.footer-credit{ font-size: 1.3rem;}
}
@media (max-width: 480px) {
    section { padding: 30px 15px; }
    .login-container { padding: 25px; }
    h3 { font-size: 2rem; }
    .header h2, .footer h3 { font-size: 2.2rem; }
    #greeting { font-size: 2rem; }
    .lovestory-grid { grid-template-columns: 1fr; }
}