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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f5e6d3 0%, #f0d9c4 25%, #e8c9b0 50%, #f5e6d3 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #6b5b4f;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    background: rgba(255, 245, 238, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(107, 91, 79, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 201, 176, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #8b6f5e;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #a67c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 90, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, #e8c9b0 0%, #d4b5a0 100%);
    color: #fff;
    border-color: #c9a689;
    box-shadow: 0 4px 15px rgba(166, 124, 90, 0.3);
    font-weight: 600;
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(107, 91, 79, 0.15);
    border: 1px solid rgba(232, 201, 176, 0.4);
}

.page-title {
    text-align: center;
    color: #8b6f5e;
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Контейнер пожеланий */
.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.wish-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(232, 201, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.wish-card:hover::before {
    opacity: 1;
}

.wish-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(166, 124, 90, 0.25);
    border-color: rgba(232, 201, 176, 0.6);
}

.wish-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.wish-text {
    font-size: 18px;
    color: #6b5b4f;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Контент боксы для других страниц */
.content-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 245, 238, 0.6) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 20px;
    color: #8b6f5e;
    border: 2px solid rgba(232, 201, 176, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .page-content {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .wishes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wish-card {
        padding: 25px;
    }
    
    .wish-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .page-title {
        font-size: 28px;
    }
}

/* Календарь */
.calendar-content {
    padding: 40px 30px;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.month-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    border-radius: 25px;
    padding: 35px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e8c9b0, #d4b5a0, #e8c9b0);
    opacity: 0.6;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.2);
    border-color: rgba(232, 201, 176, 0.5);
}

.month-title {
    font-size: 32px;
    color: #8b6f5e;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.month-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 25px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 245, 238, 0.6) 0%, rgba(232, 201, 176, 0.4) 100%);
    border: 2px dashed rgba(232, 201, 176, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.month-image-container:hover {
    border-color: rgba(232, 201, 176, 0.8);
    background: linear-gradient(135deg, rgba(255, 245, 238, 0.8) 0%, rgba(232, 201, 176, 0.6) 100%);
}

.month-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.month-image[src]:not([src=""]) {
    display: block;
}

.month-image[src]:not([src=""]) ~ .image-placeholder {
    display: none;
}

.image-placeholder {
    color: #a67c5a;
    font-size: 18px;
    text-align: center;
    font-style: italic;
    padding: 20px;
    opacity: 0.7;
}

.month-text {
    width: 100%;
}

.month-textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid rgba(232, 201, 176, 0.4);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    color: #6b5b4f;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.month-textarea:focus {
    border-color: rgba(232, 201, 176, 0.8);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(166, 124, 90, 0.15);
}

.month-textarea::placeholder {
    color: #a67c5a;
    opacity: 0.6;
    font-style: italic;
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
    .calendar-content {
        padding: 30px 15px;
    }
    
    .calendar-container {
        gap: 30px;
    }
    
    .month-card {
        padding: 25px 20px;
    }
    
    .month-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .month-image-container {
        margin-bottom: 20px;
    }
    
    .image-placeholder {
        font-size: 16px;
        padding: 15px;
    }
    
    .month-textarea {
        min-height: 120px;
        padding: 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-content {
        padding: 20px 10px;
    }
    
    .month-card {
        padding: 20px 15px;
    }
    
    .month-title {
        font-size: 24px;
    }
    
    .month-textarea {
        min-height: 100px;
        font-size: 14px;
    }
}

/* Страница с фразами */
.phrases-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 245, 238, 0.7) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    text-align: center;
}

.phrases-intro p {
    color: #6b5b4f;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.phrases-intro p:last-child {
    margin-bottom: 0;
}

.phrases-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.phrase-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.1);
    transition: all 0.4s ease;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.phrase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8c9b0, #d4b5a0, #e8c9b0);
    opacity: 0.6;
}

.phrase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.2);
    border-color: rgba(232, 201, 176, 0.5);
}

.phrase-number {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8c9b0 0%, #d4b5a0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(166, 124, 90, 0.3);
    flex-shrink: 0;
}

.phrase-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phrase-line {
    color: #6b5b4f;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

.phrase-note {
    color: #a67c5a;
    font-size: 16px;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* Адаптивность для страницы с фразами */
@media (max-width: 768px) {
    .phrases-intro {
        padding: 25px 20px;
    }
    
    .phrases-intro p {
        font-size: 16px;
    }
    
    .phrase-card {
        padding: 25px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .phrase-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        align-self: flex-start;
    }
    
    .phrase-line {
        font-size: 16px;
    }
    
    .phrase-note {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .phrases-intro {
        padding: 20px 15px;
    }
    
    .phrases-intro p {
        font-size: 15px;
    }
    
    .phrase-card {
        padding: 20px 15px;
    }
    
    .phrase-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .phrase-line {
        font-size: 15px;
    }
}

/* Страница с мыслями */
.thoughts-content {
    padding: 40px 30px;
}

.thoughts-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 245, 238, 0.7) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    text-align: center;
}

.thoughts-intro p {
    color: #6b5b4f;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.thoughts-intro p:last-child {
    margin-bottom: 0;
}

.thoughts-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.thoughts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e8c9b0, #d4b5a0, #e8c9b0);
    opacity: 0.6;
}

.thoughts-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.15);
    border-color: rgba(232, 201, 176, 0.5);
}

.section-title {
    font-size: 28px;
    color: #8b6f5e;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(232, 201, 176, 0.3);
    padding-bottom: 15px;
}

.section-text {
    margin-bottom: 25px;
}

.section-text p {
    color: #6b5b4f;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-image {
    margin: 25px 0;
    text-align: center;
}

.section-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.thought-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(232, 201, 176, 0.3);
}

.thought-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.3);
    border-color: rgba(232, 201, 176, 0.6);
}

.image-caption {
    color: #a67c5a;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
    opacity: 0.8;
}

/* Адаптивность для страницы с мыслями */
@media (max-width: 768px) {
    .thoughts-content {
        padding: 30px 15px;
    }
    
    .thoughts-intro {
        padding: 25px 20px;
    }
    
    .thoughts-intro p {
        font-size: 16px;
    }
    
    .thoughts-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .section-text p {
        font-size: 16px;
        text-align: left;
    }
    
    .section-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-caption {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .thoughts-content {
        padding: 20px 10px;
    }
    
    .thoughts-intro {
        padding: 20px 15px;
    }
    
    .thoughts-intro p {
        font-size: 15px;
    }
    
    .thoughts-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-text p {
        font-size: 15px;
    }
}

/* Страница с причинами любить */
.reasons-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 245, 238, 0.7) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    text-align: center;
}

.reasons-intro p {
    color: #6b5b4f;
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.reasons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.reason-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(232, 201, 176, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.reason-card:hover::before {
    opacity: 1;
}

.reason-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(166, 124, 90, 0.25);
    border-color: rgba(232, 201, 176, 0.6);
}

.reason-card-special {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(232, 201, 176, 0.3) 0%, rgba(255, 245, 238, 0.8) 100%);
    border: 3px solid rgba(232, 201, 176, 0.5);
    padding: 40px;
}

.reason-card-special:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(166, 124, 90, 0.3);
}

.reason-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8c9b0 0%, #d4b5a0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(166, 124, 90, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.reason-card-special .reason-number {
    width: 60px;
    height: 60px;
    font-size: 26px;
    background: linear-gradient(135deg, #d4b5a0 0%, #c9a689 100%);
}

.reason-text {
    font-size: 18px;
    color: #6b5b4f;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin: 0;
}

.reason-card-special .reason-text {
    font-size: 22px;
    font-weight: 500;
    color: #8b6f5e;
}

/* Адаптивность для страницы с причинами */
@media (max-width: 768px) {
    .reasons-intro {
        padding: 25px 20px;
    }
    
    .reasons-intro p {
        font-size: 18px;
    }
    
    .reasons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reason-card {
        padding: 25px;
    }
    
    .reason-card-special {
        padding: 30px 25px;
    }
    
    .reason-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .reason-card-special .reason-number {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .reason-text {
        font-size: 16px;
    }
    
    .reason-card-special .reason-text {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .reasons-intro {
        padding: 20px 15px;
    }
    
    .reasons-intro p {
        font-size: 16px;
    }
    
    .reason-card {
        padding: 20px;
    }
    
    .reason-card-special {
        padding: 25px 20px;
    }
    
    .reason-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .reason-card-special .reason-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .reason-text {
        font-size: 15px;
    }
    
    .reason-card-special .reason-text {
        font-size: 17px;
    }
}

/* Страница с лучшими моментами */
.moments-content {
    padding: 40px 30px;
}

.moments-intro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 245, 238, 0.7) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    text-align: center;
}

.moments-intro p {
    color: #6b5b4f;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.moments-intro p:last-child {
    margin-bottom: 0;
}

.moments-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 238, 0.8) 100%);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    border: 2px solid rgba(232, 201, 176, 0.3);
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.moments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e8c9b0, #d4b5a0, #e8c9b0);
    opacity: 0.6;
}

.moments-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.15);
    border-color: rgba(232, 201, 176, 0.5);
}

.moment-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(107, 91, 79, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(232, 201, 176, 0.3);
}

.moment-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(166, 124, 90, 0.3);
    border-color: rgba(232, 201, 176, 0.6);
}

/* Адаптивность для страницы с моментами */
@media (max-width: 768px) {
    .moments-content {
        padding: 30px 15px;
    }
    
    .moments-intro {
        padding: 25px 20px;
    }
    
    .moments-intro p {
        font-size: 16px;
    }
    
    .moments-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .section-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .moments-content {
        padding: 20px 10px;
    }
    
    .moments-intro {
        padding: 20px 15px;
    }
    
    .moments-intro p {
        font-size: 15px;
    }
    
    .moments-section {
        padding: 20px 15px;
    }
}

