:root {
    --bg: #fff8f5;
    --bg-soft: #fcecef;
    --card: #ffffff;
    --ink: #3b1a26;
    --text: #5a3a45;
    --muted: #8d6d77;
    --burgundy: #7d1d3f;
    --burgundy-dark: #5a1230;
    --pink: #f8dfe5;
    --pink-strong: #e6aabb;
    --gold: #c39a4a;
    --line: #f1dde2;
    --tile: linear-gradient(160deg, #fdf3f4 0%, #f9e3e9 100%);
    --panel: linear-gradient(120deg, #f8d9e1 0%, #fae7eb 48%, #fdf2ef 100%);
    --shadow: 0 1px 2px rgba(90, 18, 48, .04), 0 10px 30px rgba(125, 29, 63, .08);
    --shadow-hover: 0 2px 4px rgba(90, 18, 48, .05), 0 18px 40px rgba(125, 29, 63, .16);
    --radius: 22px;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; color: var(--ink);
    background: linear-gradient(180deg, #fbe8ed 0, #fdf2f2 640px, var(--bg) 1400px) no-repeat, var(--bg);
    font: 16px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .logo-name { font-family: var(--serif); color: var(--burgundy-dark); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin: 0 0 24px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--text); max-width: 540px; margin: 0 0 22px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Шапка */
.site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 8px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tile); font-size: 22px; color: var(--burgundy); overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(125, 29, 63, .06); }
.logo-mark img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.logo-name { display: block; font-size: 23px; font-weight: 700; }
.logo-sub { display: block; font-size: 12.5px; color: var(--muted); }
.search-mini { position: relative; display: flex; align-items: center; gap: 6px; }
.search-mini .i { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search-mini input[type="search"] { width: 250px; padding-left: 40px; border-radius: 999px; }
input[type="search"], input[type="email"] {
    font: inherit; padding: 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-mini button { font: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--burgundy); color: #fff; cursor: pointer; }
.search-mini button:hover { background: var(--burgundy-dark); }
.nav-toggle { display: none; font: inherit; font-weight: 600; padding: 8px 16px; border: 1px solid var(--pink-strong); border-radius: 12px; background: transparent; color: var(--burgundy); cursor: pointer; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 0 0 10px; }
.main-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--bg-soft); color: var(--burgundy); text-decoration: none; }
.main-nav a.active { background: var(--burgundy); color: #fff; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: #fff; color: var(--burgundy); transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--bg-soft); border-color: var(--pink-strong); text-decoration: none; }
.btn-sm { font-size: 13px; padding: 7px 12px; border-radius: 10px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn.done { border-color: var(--gold); color: #8a6420; background: #fff8e8; }
.btn-primary { background: linear-gradient(180deg, #8f2a4e 0%, var(--burgundy) 100%); border-color: transparent; color: #fff; padding: 13px 28px; font-size: 16px; border-radius: 14px; box-shadow: 0 8px 18px rgba(125, 29, 63, .25); }
.btn-primary:hover { background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); border-color: transparent; transform: translateY(-1px); }
.btn-light { background: rgba(255, 255, 255, .75); border-color: var(--pink-strong); border-radius: 999px; padding: 9px 18px; }

/* Hero */
.hero-wrap { padding-top: 24px; }
.hero {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 16px;
    min-height: 540px; padding: 56px 24px 56px 64px; border-radius: 32px; overflow: hidden;
    background: radial-gradient(ellipse 60% 70% at 78% 45%, rgba(255, 250, 247, .95) 0%, rgba(255, 250, 247, 0) 70%), var(--panel);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 50px rgba(125, 29, 63, .08);
}
.hero::after { content: ''; position: absolute; inset: auto -10% -40% 35%; height: 60%; background: radial-gradient(ellipse at center, rgba(230, 170, 187, .35), transparent 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; color: #6a1834; margin-bottom: 22px; }
.hero .lead { font-size: 19px; max-width: 460px; }
.hero-art { position: relative; z-index: 1; width: calc(100% + 48px); max-width: 680px; height: auto; justify-self: end; margin: -24px -12px -40px 0; filter: drop-shadow(0 22px 26px rgba(125, 29, 63, .16)); }
.search-hero { display: flex; gap: 10px; margin: 26px 0 18px; max-width: 600px; }
.search-field { position: relative; flex: 1; display: flex; align-items: center; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(125, 29, 63, .10); border: 1px solid rgba(241, 221, 226, .8); }
.search-field .i { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input[type="search"] { flex: 1; width: 100%; border: 0; background: transparent; padding: 15px 18px 15px 50px; font-size: 16px; border-radius: 16px; }
.search-field input:focus-visible { outline-offset: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chip { display: inline-block; padding: 8px 18px; border: 1px solid var(--pink-strong); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; color: var(--burgundy); transition: background .15s, transform .15s; }
.chips a:hover, .chip:hover { background: #fff; text-decoration: none; transform: translateY(-1px); }

/* Блоки */
.block { padding: 64px 0 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.block-head h2 { margin: 0; }
.more-link { font-weight: 600; font-size: 15px; white-space: nowrap; }
.more-link i, .cat-name i, .rubric-arrow { font-style: normal; display: inline-block; transition: transform .15s; }
.more-link:hover i { transform: translateX(3px); }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
    display: flex; flex-direction: column; padding: 10px 10px 16px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); text-decoration: none; box-shadow: var(--shadow-hover); }
.cat-tile { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--tile); overflow: hidden; }
.cat-tile img { width: 82%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.cat-card:hover .cat-tile img { transform: scale(1.05); }
.cat-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 10px 0; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.cat-name i { color: var(--burgundy); }
.cat-card:hover .cat-name i { transform: translateX(4px); }
.more-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.more-sections span { margin-right: 4px; }

.records-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.popular-card { display: flex; flex-direction: column; padding: 24px 26px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.popular-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.popular-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: -14px; }
.popular-top .art { width: 104px; height: 92px; margin: -8px -8px 0 0; filter: drop-shadow(0 8px 10px rgba(125, 29, 63, .12)); }
.tag { display: inline-block; align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--pink); color: var(--burgundy); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.quote-mark { display: block; height: 26px; font: 700 60px/1 var(--serif); color: var(--gold); }
.popular-card h3 { margin: 6px 0 10px; font-size: 23px; }
.popular-card h3 a { color: var(--burgundy-dark); }
.popular-card .record-text { flex: 1; font-size: 15px; line-height: 1.65; color: var(--text); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.popular-card .record-actions { margin-top: 18px; }

.calendar-panel { padding: 40px 44px 44px; border-radius: 32px; background: var(--panel); box-shadow: 0 20px 50px rgba(125, 29, 63, .06); }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.date-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 20px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(241, 221, 226, .9); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.date-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.date { display: flex; flex-direction: column; align-items: center; }
.date b { font: 700 46px/1 var(--serif); color: var(--burgundy); }
.date .month { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
.date-card .art { width: 132px; height: 104px; margin: 12px 0 10px; filter: drop-shadow(0 8px 10px rgba(125, 29, 63, .12)); }
.date-card .name { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }

/* Внутренние страницы */
.page { padding: 24px 0 8px; }
.page-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 44px; margin-bottom: 32px; border-radius: 28px; background: radial-gradient(ellipse 40% 90% at 88% 50%, rgba(255, 250, 247, .9), rgba(255, 250, 247, 0) 70%), var(--panel); box-shadow: 0 16px 40px rgba(125, 29, 63, .07); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { margin-bottom: 14px; }
.page-hero .lead:empty { display: none; }
.page-hero-grow { flex: 1; }
.page-hero-art { display: grid; place-items: center; width: 170px; height: 170px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 12px 30px rgba(125, 29, 63, .10); }
.page-hero-art img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--text); font-weight: 600; }
.crumbs i { font-style: normal; color: var(--gold); margin: 0 8px; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--pink-strong); border-radius: var(--radius); }

.rubric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rubric-card { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.rubric-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rubric-art { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 16px; background: var(--tile); }
.rubric-art img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.rubric-name { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.25; }
.rubric-arrow { color: var(--burgundy); }
.rubric-card:hover .rubric-arrow { transform: translateX(4px); }

.layout-two { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.records-narrow { max-width: 880px; margin-inline: auto; }
.record { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 32px 22px; margin-bottom: 20px; }
.record .quote-mark { position: absolute; top: 18px; right: 26px; height: auto; font-size: 64px; opacity: .55; }
.record-tag { margin-bottom: 12px; }
.record-tag:hover { text-decoration: none; background: var(--pink-strong); }
.record-text { font-size: 17px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.record > .record-actions { padding-top: 16px; border-top: 1px solid var(--line); }
.side { position: sticky; top: 130px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 14px 14px; }
.side-head { display: flex; align-items: center; gap: 12px; padding: 0 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.side-head img { width: 52px; height: 52px; padding: 4px; object-fit: contain; border-radius: 14px; background: var(--tile); mix-blend-mode: multiply; }
.side h3 { margin: 0; font-size: 21px; }
.side ul { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.side li a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.side li a:hover { background: var(--bg-soft); text-decoration: none; }
.side li a.active { background: var(--burgundy); color: #fff; font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0; }
.pager a, .pager .current, .pager .gap { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 14px; font-weight: 600; }
.pager a { border: 1px solid var(--line); background: var(--card); box-shadow: 0 2px 6px rgba(125, 29, 63, .05); }
.pager a:hover { border-color: var(--pink-strong); background: var(--bg-soft); text-decoration: none; }
.pager .current { background: linear-gradient(180deg, #8f2a4e, var(--burgundy)); color: #fff; box-shadow: 0 6px 14px rgba(125, 29, 63, .25); }
.pager .gap { min-width: 20px; padding: 0; color: var(--muted); }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #e9f5ec; color: #1b5e20; border: 1px solid #cfe8d5; }

/* Форма «Предложить» */
.form-card.form-site { max-width: 820px; margin-inline: auto; padding: 32px; gap: 18px; }
.form-site select, .form-site textarea, .form-site input { background: #fffafa; }

/* Подвал */
.site-footer { margin-top: 80px; background: radial-gradient(ellipse 50% 120% at 0% 0%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(135deg, #4d0f28 0%, var(--burgundy-dark) 45%, var(--burgundy) 100%); color: #f3dde4; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 48px 0 32px; }
.footer-brand p { font-size: 15px; color: #e9c9d3; max-width: 380px; margin: 14px 0 18px; }
.footer-brand .logo-name { color: #fff; font-size: 24px; }
.footer-brand .btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.footer-brand .btn-light:hover { background: rgba(255, 255, 255, .2); }
.footer-nav h3 { color: #fff; font-size: 20px; margin: 4px 0 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; }
.footer-nav li { padding: 4px 0; break-inside: avoid; }
.footer-nav a { color: #f3dde4; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #dcb6c2; }

/* Диалог отправки */
.send-dialog { border: 0; border-radius: var(--radius); padding: 26px; width: min(420px, 92vw); background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(58, 23, 34, .35); }
.send-dialog::backdrop { background: rgba(58, 23, 34, .45); backdrop-filter: blur(2px); }
.send-dialog h3 { margin: 0 0 6px; font-size: 24px; }
.send-dialog p { color: var(--text); margin: 0 0 6px; }
.send-dialog input { width: 100%; margin: 8px 0 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Общие иллюстрации */
.art { object-fit: contain; }

@media (max-width: 1080px) {
    .hero { padding: 44px 16px 44px 40px; min-height: 0; }
    .cards-grid, .calendar { grid-template-columns: repeat(2, 1fr); }
    .records-grid { grid-template-columns: 1fr 1fr; }
    .layout-two { grid-template-columns: 1fr; }
    .side { position: static; }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-block; margin-bottom: 10px; }
    .main-nav { display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding-bottom: 12px; }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 10px; padding: 9px 12px; }
    .hero { grid-template-columns: 1fr; text-align: left; }
    .hero-art { width: 100%; max-width: 420px; margin: -8px auto -12px; justify-self: center; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 32px); }
    .site-header { position: static; }
    .header-top { flex-wrap: wrap; }
    .search-field input[type="search"] { font-size: 15px; }
    .logo-name { font-size: 21px; }
    .search-mini { width: 100%; } .search-mini input { flex: 1; width: auto; }
    .hero-wrap { padding-top: 14px; }
    .hero { padding: 30px 20px 18px; border-radius: 24px; }
    .hero h1 { font-size: 36px; }
    .hero .lead { font-size: 17px; }
    .hero-art { max-width: 340px; }
    .search-hero { flex-direction: column; }
    .block { padding-top: 44px; }
    .block-head { flex-direction: column; gap: 4px; align-items: flex-start; }
    .cards-grid { gap: 12px; }
    .cat-card { padding: 7px 7px 12px; border-radius: 18px; }
    .cat-name { font-size: 16px; padding: 10px 6px 0; }
    .records-grid { grid-template-columns: 1fr; }
    .calendar-panel { padding: 26px 16px 18px; border-radius: 24px; }
    .calendar { gap: 12px; }
    .date-card { padding: 16px 10px; }
    .date b { font-size: 36px; }
    .date-card .art { width: 100px; height: 80px; }
    .date-card .name { font-size: 14px; }
    .page-hero { flex-direction: column-reverse; align-items: flex-start; padding: 22px 20px 24px; border-radius: 22px; gap: 10px; }
    .page-hero-art { width: 96px; height: 96px; }
    .page-hero h1 { font-size: 32px; }
    .page-hero .lead { font-size: 16px; }
    .rubric-grid { grid-template-columns: 1fr; gap: 10px; }
    .record { padding: 22px 20px 18px; }
    .record .quote-mark { right: 16px; font-size: 52px; }
    .record-text { font-size: 16px; }
    .form-card.form-site { padding: 22px 18px; }
    .footer-nav ul { columns: 2; }
}
