:root {
    --page: #f7f3eb;
    --paper: #fffdf8;
    --ink: #1d2630;
    --muted: #6b7280;
    --line: #d8cdbb;
    --blue: #24466f;
    --blue-dark: #162d49;
    --blue-soft: #e4edf7;
    --gold: #9b7a3a;
    --gold-soft: #efe3c7;
    --shadow: 0 18px 44px rgba(30, 40, 50, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #fbf8f1 0%, var(--page) 420px), var(--page);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 0;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-title {
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.main-nav a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 650;
    padding: 9px 13px;
    text-decoration: none;
}

.main-nav a:hover {
    background: var(--blue-soft);
    border-color: #c7d7ea;
}

.site-main {
    min-height: calc(100vh - 176px);
}

.hero {
    padding: 54px 0 32px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(239, 227, 199, 0.58)), radial-gradient(circle at 94% 12%, rgba(36, 70, 111, 0.16), transparent 34%);
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
    padding: 60px;
}

.hero-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(180deg, var(--blue), var(--gold));
}

.eyebrow {
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero h1,
.page-header h1 {
    color: var(--blue-dark);
    font-size: clamp(46px, 8vw, 92px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    margin: 0;
}

.hero-text {
    color: #3f4852;
    font-size: clamp(20px, 2.4vw, 28px);
    max-width: 780px;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 750;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    text-decoration: none;
}

.button.primary {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #ffffff;
}

.button.secondary {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--blue-dark);
}

.section {
    padding: 44px 0;
}

.section.muted {
    background: rgba(239, 227, 199, 0.42);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.grid-two {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.card,
.news-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(30, 40, 50, 0.06);
    padding: 28px;
}

.panel h2,
.card h2,
.card h3,
.news-item h2 {
    color: var(--blue-dark);
    line-height: 1.15;
    margin: 0 0 12px;
}

.panel p,
.card p,
.news-item p {
    color: var(--muted);
    margin: 0;
}

.clean-list {
    color: var(--muted);
    margin: 0;
    padding-left: 20px;
}

.clean-list li + li {
    margin-top: 8px;
}

.section-title {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-title h2 {
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1.1;
    margin: 0;
}

.section-title a,
.text-link,
.page-back a {
    color: var(--blue);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card time,
.news-item time {
    color: var(--gold);
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header {
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(239, 227, 199, 0.52)), radial-gradient(circle at 90% 18%, rgba(36, 70, 111, 0.12), transparent 32%);
    border-bottom: 1px solid var(--line);
    padding: 56px 0 34px;
}

.page-header p:last-child,
.page-header > .container > p:not(.eyebrow):not(.page-back) {
    color: var(--muted);
    font-size: 19px;
    max-width: 820px;
    margin: 20px 0 0;
}

.page-back {
    margin-top: 22px;
}

.news-list {
    display: grid;
    gap: 18px;
}

.archive-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-card {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 243, 235, 0.92));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(30, 40, 50, 0.08);
    min-height: 260px;
    overflow: hidden;
    position: relative;
}

.archive-card::before {
    background: linear-gradient(90deg, var(--blue), var(--gold));
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.archive-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
}

.archive-number {
    align-items: center;
    background: var(--blue-soft);
    border: 1px solid #c8d8ec;
    border-radius: 50%;
    color: var(--blue-dark);
    display: inline-flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    height: 38px;
    justify-content: center;
    margin-bottom: 22px;
    width: 38px;
}

.archive-card h2 {
    color: var(--blue-dark);
    font-size: 27px;
    line-height: 1.12;
    margin: 0 0 12px;
}

.archive-card p {
    color: var(--muted);
    margin: 0;
}

.archive-card .text-link {
    margin-top: auto;
    padding-top: 22px;
}

.meta {
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    margin-top: 16px;
}

.photo-section-list {
    display: grid;
    gap: 26px;
}

.photo-section-row {
    display: grid;
    grid-template-columns: minmax(260px, 44%) 1fr;
    min-height: 320px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 14px 34px rgba(30, 40, 50, 0.08);
    text-decoration: none;
}

.photo-section-image {
    min-height: 320px;
    background: var(--gold-soft);
}

.photo-section-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.photo-section-empty {
    background: linear-gradient(135deg, rgba(36, 70, 111, 0.12), rgba(155, 122, 58, 0.18)), var(--gold-soft);
}

.photo-section-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.photo-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--blue-soft);
    border: 1px solid #c8d8ec;
    color: var(--blue-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 850;
}

.photo-section-text h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.photo-section-text p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 21px;
}

.photo-section-text strong {
    margin-top: 22px;
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 850;
}

.photo-section-row:nth-child(even) {
    grid-template-columns: 1fr minmax(260px, 44%);
}

.photo-section-row:nth-child(even) .photo-section-image {
    order: 2;
}

.photo-section-row:nth-child(even) .photo-section-text {
    order: 1;
}

.photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-card {
    aspect-ratio: 4 / 3;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(30, 40, 50, 0.08);
    display: block;
    overflow: hidden;
}

.photo-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease;
    width: 100%;
}

.photo-card:hover img {
    transform: scale(1.035);
}

.site-footer {
    background: var(--paper);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 24px 0;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 1080px) {
    .archive-grid,
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero-card {
        padding: 42px 30px;
    }

    .grid-two,
    .cards {
        grid-template-columns: 1fr;
    }

    .archive-grid,
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .photo-section-row,
    .photo-section-row:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .photo-section-row:nth-child(even) .photo-section-image,
    .photo-section-row:nth-child(even) .photo-section-text {
        order: initial;
    }

    .photo-section-image,
    .photo-section-image img {
        min-height: 240px;
    }

    .photo-section-text {
        padding: 30px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand-title {
        font-size: 28px;
    }

    .main-nav {
        gap: 6px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 7px 9px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-card {
        border-radius: 24px;
        padding: 34px 22px;
    }

    .section {
        padding: 32px 0;
    }

    .archive-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }
}
.photo-card {
    aspect-ratio: auto;
    min-height: 220px;
    padding: 10px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 227, 199, 0.55)),
        var(--paper);
}

.photo-card img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: var(--paper);
    border-radius: 12px;
}

.photo-section-image img {
    object-fit: contain;
    background: var(--paper);
    padding: 10px;
}
.photo-grid {
    align-items: stretch;
}

.photo-card {
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 227, 199, 0.55)),
        var(--paper) !important;
}

.photo-card img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}
.birthday-calendar {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.birthday-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(30, 40, 50, 0.08);
    overflow: hidden;
}

.birthday-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 227, 199, 0.55)),
        var(--paper);
}

.birthday-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.birthday-photo-empty {
    background: var(--gold-soft);
}

.birthday-text {
    padding: 18px 20px 22px;
}

.birthday-text time {
    display: block;
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 850;
    margin-bottom: 8px;
}

.birthday-text h2 {
    color: var(--blue-dark);
    font-size: 24px;
    line-height: 1.12;
    margin: 0;
}

@media (max-width: 1080px) {
    .birthday-calendar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .birthday-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .birthday-calendar {
        grid-template-columns: 1fr;
    }
}
.birthday-months {
    display: grid;
    gap: 34px;
}

.birthday-month {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(30, 40, 50, 0.08);
    padding: 28px;
}

.birthday-month h2 {
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 22px;
}

.birthday-days {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.birthday-day {
    min-height: 132px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 227, 199, 0.55)),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
}

.birthday-day-number {
    color: var(--blue-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
    margin-bottom: 10px;
}

.birthday-day-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.birthday-day-photo {
    display: block;
    width: 54px;
    height: 72px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.birthday-day-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1080px) {
    .birthday-days {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .birthday-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .birthday-month {
        padding: 20px;
    }

    .birthday-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.brand-full-title {
    display: block;
    color: var(--blue-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.brand-full-title-second {
    margin-top: 8px;
    font-size: 27px;
    font-weight: 700;
}
.upcoming-birthdays {
    display: grid;
    gap: 18px;
}

.upcoming-birthday {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(30, 40, 50, 0.08);
    padding: 18px;
}

.upcoming-birthday-date time {
    display: block;
    color: var(--blue-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.upcoming-birthday-date span {
    display: inline-block;
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.upcoming-birthday-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upcoming-birthday-photos a {
    display: block;
    width: 72px;
    height: 96px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.upcoming-birthday-photos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 680px) {
    .upcoming-birthday {
        grid-template-columns: 1fr;
    }
}
.upcoming-birthday-date strong {
    display: block;
    color: var(--blue-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 750;
    margin-top: 10px;
}

.upcoming-birthday-photos a {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 72px !important;
    max-width: 54px !important;
    max-height: 72px !important;
}

.upcoming-birthday-photos img {
    width: 54px !important;
    height: 72px !important;
    max-width: 54px !important;
    max-height: 72px !important;
    object-fit: cover !important;
}
.news-item p {
    white-space: pre-line;
}
.news-detail {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(30, 40, 50, 0.08);
    padding: 34px;
}

.news-detail-text {
    color: var(--text);
    font-size: 18px;
    line-height: 1.72;
    white-space: pre-line;
}

.news-detail .hero-actions {
    margin-top: 30px;
}
.compact-title {
    margin-bottom: 18px;
}

.home-upcoming-list {
    display: grid;
    gap: 12px;
}

.home-upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 253, 248, 0.72);
}

.home-upcoming-item time {
    display: block;
    color: var(--blue-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.home-upcoming-item span {
    display: block;
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-top: 5px;
    text-transform: uppercase;
}

.home-upcoming-item strong {
    color: var(--blue-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.home-news-list {
    display: grid;
    gap: 18px;
}

.home-news-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.home-news-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.home-news-item time {
    display: block;
    color: var(--gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 8px;
}

.home-news-item h3 {
    color: var(--blue-dark);
    font-size: 24px;
    line-height: 1.18;
    margin: 0 0 10px;
}

.home-news-item p {
    margin-bottom: 12px;
}
.birthday-day {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

.birthday-day-number {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 14px !important;
}

.birthday-day-photos {
    width: 100% !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.birthday-day-photo-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 64px !important;
}

.birthday-day-photo {
    width: 54px !important;
    height: 72px !important;
    margin: 0 auto !important;
}

.birthday-chat-link {
    display: block !important;
    color: var(--blue-dark) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-top: 7px !important;
    text-align: center !important;
    text-decoration: underline !important;
}
.audio-panel {
    overflow: hidden;
}

.audio-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
}

.audio-item h3 {
    color: var(--blue-dark);
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.audio-item p {
    margin: 0;
}

.audio-item audio {
    width: 100%;
}

@media (max-width: 760px) {
    .audio-item {
        grid-template-columns: 1fr;
    }
}
