/* ============================================
   Палитра «Радуга»
   ============================================ */
:root {
    --text: #1E3A5F;
    --text-soft: #6B7F99;
    --yellow: #FFC93C;
    --yellow-dark: #E8A91C;
    --red: #FF6B6B;
    --blue: #4A90E2;
    --mint: #7ED9C0;
    --surface: #FFFFFF;
    --border: #D6E5F5;
    --radius-lg: 32px;
    --radius: 24px;
    --radius-sm: 16px;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #BFE3FF 0%, #E0F0FF 40%, #FFF4E0 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue); }

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

/* ============================================
   Небо: солнце и облака
   ============================================ */
.sky {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sun {
    position: absolute;
    top: 60px;
    right: 8%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 40% 40%, #FFE27A 0%, #FFC93C 50%, #FFB300 100%);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 201, 60, 0.7), 0 0 160px rgba(255, 201, 60, 0.4), inset -12px -12px 30px rgba(255, 150, 0, 0.3);
    animation: sun-glow 6s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% { box-shadow: 0 0 80px rgba(255, 201, 60, 0.7), 0 0 160px rgba(255, 201, 60, 0.4), inset -12px -12px 30px rgba(255, 150, 0, 0.3); }
    50% { box-shadow: 0 0 100px rgba(255, 201, 60, 0.9), 0 0 200px rgba(255, 201, 60, 0.5), inset -12px -12px 30px rgba(255, 150, 0, 0.3); }
}

.cloud {
    position: absolute;
    background: #FFFFFF;
    border-radius: 100px;
    filter: drop-shadow(0 20px 40px rgba(74, 144, 226, 0.15));
    opacity: 0.9;
}

.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }

.cloud--1 { top: 12%; left: -300px; width: 220px; height: 70px; animation: cloud-drift-1 45s linear infinite; }
.cloud--1::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud--1::after { width: 70px; height: 70px; top: -35px; left: 110px; }

.cloud--2 { top: 25%; left: -400px; width: 300px; height: 90px; opacity: 0.75; animation: cloud-drift-2 70s linear infinite; animation-delay: 10s; }
.cloud--2::before { width: 140px; height: 140px; top: -70px; left: 50px; }
.cloud--2::after { width: 100px; height: 100px; top: -50px; left: 160px; }

.cloud--3 { top: 55%; left: -250px; width: 180px; height: 60px; opacity: 0.55; animation: cloud-drift-1 60s linear infinite; animation-delay: 25s; }
.cloud--3::before { width: 80px; height: 80px; top: -40px; left: 25px; }
.cloud--3::after { width: 60px; height: 60px; top: -30px; left: 90px; }

@keyframes cloud-drift-1 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 500px)); } }
@keyframes cloud-drift-2 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 600px)); } }

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

/* ============================================
   Шапка
   ============================================ */
.site-header { padding: 20px 16px 0; }

.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.12);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Nunito', sans-serif; 
    font-weight: 900; 
    font-size: 1.4rem; 
    color: var(--text); 
    height: 32px;
    white-space: nowrap;
}
.logo-emoji { font-size: 1.8rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }

.site-nav { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    font-family: 'Nunito', sans-serif; 
    font-weight: 700; 
    flex-wrap: wrap;
}

.site-nav a { 
    color: var(--text); 
    font-size: 1rem; 
    line-height: 1; 
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); }

.logout-btn { 
    background: none; 
    border: none; 
    font-family: inherit; 
    font-weight: 700; 
    font-size: 1rem; 
    color: var(--text); 
    cursor: pointer; 
    padding: 0; 
    transition: color 0.2s; 
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.logout-btn:hover { color: var(--red); }

/* ============================================
   Основной контент
   ============================================ */
.site-main { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 24px 60px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 30px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: #FFFFFF; border-radius: 100px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--blue); box-shadow: 0 6px 16px rgba(74, 144, 226, 0.15); margin-bottom: 16px; }
.hero-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.1; color: var(--text); margin-bottom: 16px; letter-spacing: -0.03em; text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(255, 107, 107, 0.3); word-break: break-word; }
.hero-subtitle { font-size: 1.05rem; color: #4A6079; max-width: 520px; margin: 0 auto 24px; line-height: 1.6; }

/* Кнопки */
.btn { display: inline-block; padding: 14px 32px; background: linear-gradient(180deg, #FFD84D 0%, #FFC93C 100%); color: var(--text); font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.05rem; border-radius: 100px; text-decoration: none; box-shadow: 0 8px 0 var(--yellow-dark), 0 12px 32px rgba(255, 201, 60, 0.5); transition: transform 0.15s ease, box-shadow 0.15s ease; position: relative; max-width: 100%; text-align: center; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--yellow-dark), 0 16px 40px rgba(255, 201, 60, 0.6); color: var(--text); }
.btn:active { transform: translateY(3px); box-shadow: 0 4px 0 var(--yellow-dark), 0 6px 16px rgba(255, 201, 60, 0.4); }

/* Секции */
.section { margin-top: 30px; }
.section-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 6px; height: 28px; background: linear-gradient(180deg, #FFC93C 0%, #FF6B6B 100%); border-radius: 3px; flex-shrink: 0; }
.page-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2rem; margin-bottom: 24px; color: var(--text); text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(255, 107, 107, 0.3); letter-spacing: -0.02em; word-break: break-word; }

/* Сетка фото */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: block; padding: 10px; position: relative; }
.photo-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 24px 48px rgba(74, 144, 226, 0.25); color: inherit; }
.photo-card__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--border); }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover .photo-card__img img { transform: scale(1.05); }
.photo-card__title { padding: 10px 8px 4px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--text); text-align: center; }

/* Сетка месяцев */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.month-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1); transition: transform 0.25s ease, box-shadow 0.25s ease; padding: 10px; text-decoration: none; color: inherit; }
.month-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(74, 144, 226, 0.25); color: inherit; }
.month-card__cover { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--border); }
.month-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.month-card:hover .month-card__cover img { transform: scale(1.05); }
.month-card__body { padding: 12px 8px 6px; display: flex; justify-content: space-between; align-items: center; }
.month-card__name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.month-card__count { font-size: 0.85rem; color: var(--blue); font-weight: 700; }

/* Список годов */
.year-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.year-card { padding: 20px 24px; background: var(--surface); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1); transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; justify-content: space-between; align-items: center; border: 4px solid transparent; }
.year-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(74, 144, 226, 0.25); border-color: var(--yellow); color: inherit; }
.year-card__number { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--text); }
.year-card__arrow { font-size: 1.4rem; color: var(--yellow); font-weight: 900; transition: transform 0.25s ease; }
.year-card:hover .year-card__arrow { transform: translateX(6px); }

/* Хлебные крошки */
.breadcrumbs { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 20px; font-family: 'Nunito', sans-serif; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 8px; color: #A8C5E0; }

/* Страница одного фото */
.photo-view { max-width: 900px; margin: 0 auto; width: 100%; }
.photo-view__img { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px rgba(30, 58, 95, 0.15); margin-bottom: 24px; padding: 12px; }
.photo-view__img img { width: 100%; height: auto; border-radius: var(--radius); }
.photo-view__meta { text-align: center; margin-bottom: 32px; }
.photo-view__title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.8rem; margin-bottom: 8px; color: var(--text); text-shadow: 2px 2px 0 var(--yellow); word-break: break-word; }
.photo-view__date { color: var(--text-soft); font-size: 1rem; margin-bottom: 16px; }
.photo-view__description { color: var(--text); max-width: 600px; margin: 0 auto; line-height: 1.7; word-break: break-word; }
.photo-view__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-link { padding: 12px 22px; border-radius: 100px; background: var(--surface); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--text); transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08); text-align: center; }
.nav-link:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.nav-link--disabled { opacity: 0.4; cursor: not-allowed; }
.nav-link--disabled:hover { background: var(--surface); color: var(--text); transform: none; }
.nav-link--back { background: var(--mint); color: white; }
.nav-link--back:hover { background: #68C4AB; color: white; }
.photo-view__like { display: flex; justify-content: center; margin-top: 24px; }
.photo-view__like .like-btn { position: static; background: #FFFFFF; box-shadow: 0 4px 16px rgba(30, 58, 95, 0.12); }

/* Кнопка лайка */
.like-btn { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; background: rgba(255, 255, 255, 0.95); border: none; border-radius: 100px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem; color: var(--text); cursor: pointer; box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15); transition: all 0.2s ease; z-index: 2; backdrop-filter: blur(8px); }
.like-btn:hover { transform: scale(1.08); background: #FFFFFF; box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3); }
.like-btn:active { transform: scale(0.96); }
.like-btn__heart { font-size: 1rem; color: #C8D3E0; transition: all 0.2s ease; line-height: 1; }
.like-btn.is-liked .like-btn__heart { color: var(--red); animation: heart-pop 0.4s ease; }
.like-btn.is-liked { background: #FFF0F0; }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
.like-btn__count { font-size: 0.85rem; color: var(--text-soft); min-width: 12px; text-align: center; }
.like-btn.is-liked .like-btn__count { color: var(--red); }

/* Заблокированные фото */
.photo-card__img--blurred { position: relative; }
.photo-card__img--blurred img { filter: blur(12px) saturate(0.7); transform: scale(1.08); }
.photo-card__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #FFFFFF; background: rgba(30, 58, 95, 0.35); backdrop-filter: blur(2px); text-align: center; padding: 16px; transition: background 0.2s ease; }
.photo-card--locked:hover .photo-card__lock { background: rgba(30, 58, 95, 0.5); }
.photo-card__lock-icon { font-size: 2rem; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); }
.photo-card__lock-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }

/* Комментарии */
.comments { max-width: 900px; margin: 60px auto 0; padding: 0 4px; width: 100%; }
.comments__title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--text); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.comments__count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; background: var(--yellow); color: var(--text); border-radius: 100px; font-size: 0.95rem; font-weight: 900; }
.comments__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.comments__empty { padding: 24px; background: rgba(255, 255, 255, 0.6); border-radius: var(--radius); text-align: center; color: var(--text-soft); font-style: italic; }
.comment { display: flex; gap: 14px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06); transition: box-shadow 0.2s ease; }
.comment:hover { box-shadow: 0 6px 20px rgba(30, 58, 95, 0.1); }
.comment__avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.2rem; color: #FFFFFF; background: linear-gradient(135deg, #4A90E2, #7ED9C0); box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3); }
.comment:nth-child(6n+1) .comment__avatar { background: linear-gradient(135deg, #4A90E2, #7ED9C0); }
.comment:nth-child(6n+2) .comment__avatar { background: linear-gradient(135deg, #FFC93C, #FF6B6B); }
.comment:nth-child(6n+3) .comment__avatar { background: linear-gradient(135deg, #FF6B6B, #FFC93C); }
.comment:nth-child(6n+4) .comment__avatar { background: linear-gradient(135deg, #7ED9C0, #4A90E2); }
.comment:nth-child(6n+5) .comment__avatar { background: linear-gradient(135deg, #A78BFA, #FF6B6B); }
.comment:nth-child(6n+6) .comment__avatar { background: linear-gradient(135deg, #4A90E2, #FFC93C); }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment__author { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem; color: var(--text); }
.comment__date { font-size: 0.85rem; color: var(--text-soft); }
.comment__text { color: var(--text); line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; }
.comment__actions { display: flex; gap: 14px; margin-top: 8px; }
.comment__action { background: none; border: none; padding: 0; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text-soft); cursor: pointer; transition: color 0.2s ease; }
.comment__action:hover { color: var(--blue); }
.comment__action--delete:hover { color: var(--red); }

/* Форма */
.comment-form { padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08); width: 100%; }
.comment-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form__row { margin-bottom: 12px; }
.comment-form__row--submit { display: flex; justify-content: flex-end; margin-bottom: 0; }
.comment-form input[type="text"], .comment-form textarea { width: 100%; padding: 12px 16px; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text); background: #F5F9FF; border: 2px solid #E1ECF9; border-radius: var(--radius-sm); transition: all 0.2s ease; resize: vertical; }
.comment-form input[type="text"]:focus, .comment-form textarea:focus { outline: none; border-color: var(--yellow); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.2); }
.comment-form textarea { min-height: 80px; line-height: 1.5; }
.comment-form__submit { cursor: pointer; border: none; padding: 12px 32px; }
.comment-form__error { padding: 12px 16px; background: #FFECEC; border: 2px solid #FFB3B3; border-radius: var(--radius-sm); color: #C0392B; font-size: 0.95rem; margin-bottom: 12px; }

/* Переключатель языка */
.lang-switch {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 32px;
}

.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 32px; 
    padding: 0 28px 0 14px;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1;
    background: #FFFFFF;
    border: 2px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231E3A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    letter-spacing: 0.05em;
}

.lang-switch select:hover {
    border-color: var(--yellow);
    background-color: #FFF8E0;
    box-shadow: 0 4px 12px rgba(255, 201, 60, 0.3);
}

.lang-switch select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.2);
}

/* Профиль и инвайты */
.profile-card, .invite-form {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
    margin-bottom: 32px;
    width: 100%;
}
.profile-card p { margin-bottom: 10px; font-size: 1.05rem; }
.invites-count { font-weight: 900; color: var(--blue); font-size: 1.3rem; background: #EAF4FF; padding: 2px 10px; border-radius: 10px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 8px; }

.form-group input[type="text"], .form-group input[type="email"], .form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: #F5F9FF;
    border: 2px solid #E1ECF9;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.invites-list { display: flex; flex-direction: column; gap: 12px; }
.invite-item { background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06); border-left: 4px solid var(--yellow); }
.invite-link { display: flex; gap: 10px; margin-top: 12px; }
.invite-link input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: 'Inter', sans-serif; background: #F5F9FF; color: var(--text-soft); }
.invite-link button { padding: 10px 20px; background: var(--yellow); border: none; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--text); cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.invite-link button:hover { background: var(--yellow-dark); }

/* Аутентификация */
.container--narrow { max-width: 480px; margin: 0 auto; width: 100%; }
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; padding: 40px 36px; background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: 0 20px 48px rgba(30, 58, 95, 0.12); text-align: center; }
.auth-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--text); margin-bottom: 8px; }
.auth-subtitle { color: var(--text-soft); font-size: 1rem; margin-bottom: 28px; }

/* Уведомления */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; }
.alert-success { background: #E8F5E9; color: #2E7D32; }
.alert-error { background: #FFECEC; color: #C0392B; }
.alert-warning { background: #FFF8E1; color: #8B6F00; }

/* Футер */
.site-footer { text-align: center; margin-top: 40px; padding: 20px 16px 40px; border-top: 3px dashed #A8C5E0; font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--text-soft); }

/* ============================================
   АДАПТИВ (ПЛАНШЕТЫ И ТЕЛЕФОНЫ)
   ============================================ */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
    .sun { width: 130px; height: 130px; right: 2%; top: 40px; }
}

/* Мобильные устройства и смартфоны (до 768px) */
@media (max-width: 768px) {
    .container, .site-main { padding-left: 12px; padding-right: 12px; }
    
    .site-header { padding: 10px 10px 0; }
    .site-header .header-inner { 
        flex-direction: column; 
        gap: 12px; 
        padding: 14px 16px; 
        border-radius: 24px; 
        max-width: 100%; 
    }
    
    .logo { font-size: 1.25rem; }
    .logo-emoji { font-size: 1.5rem; }
    
    .site-nav { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 12px; 
        font-size: 0.9rem; 
        width: 100%; 
        height: auto; 
    }
    
    .lang-switch select {
        height: 30px;
        padding: 0 24px 0 10px;
        font-size: 0.8rem;
    }

    .hero { padding: 20px 0 16px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 rgba(255, 107, 107, 0.3); }
    .hero-subtitle { font-size: 0.95rem; padding: 0 8px; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }

    .sun { width: 70px; height: 70px; top: 15px; right: 10px; opacity: 0.7; }
    .cloud { display: none; }

    .section { margin-top: 20px; }
    .section-title { font-size: 1.25rem; }
    
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-card { padding: 6px; border-radius: 16px; }
    .photo-card__title { font-size: 0.85rem; padding: 6px 4px 2px; }
    
    .month-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .year-list { grid-template-columns: 1fr; }
    .year-card { padding: 16px 20px; }
    
    .photo-view__img { padding: 8px; border-radius: var(--radius); }
    .photo-view__title { font-size: 1.4rem; }
    .photo-view__nav { flex-direction: column; gap: 8px; }
    .nav-link { width: 100%; }

    .comments { margin-top: 30px; }
    .comment { padding: 12px 14px; gap: 10px; }
    .comment__avatar { width: 36px; height: 36px; font-size: 1rem; }
    .comment-form { padding: 16px; }

    .auth-card { padding: 24px 16px; border-radius: var(--radius); }
    .auth-title { font-size: 1.4rem; }

    .invite-link { flex-direction: column; }
    .invite-link button { width: 100%; }
    .profile-card, .invite-form { padding: 18px; }
}

/* Компактные экраны (до 400px) */
@media (max-width: 400px) {
    .photo-grid, .month-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Исправление полей django-invitations в Unfold
   ============================================ */

.model-invitation input[type="text"],
.model-invitation input[type="email"],
.model-invitation .vTextField,
.model-invitation select {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 500px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.model-invitation input:focus,
.model-invitation select:focus {
    background-color: #FFFFFF !important;
    border-color: #4A90E2 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2) !important;
}

.model-invitation label {
    color: #1E3A5F !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}