.secondary-nav { margin-left:auto; display:flex; align-items:center; gap:24px; }
.secondary-nav a { color:var(--muted); text-decoration:none; }
.secondary-hero { padding:90px 0 70px; background:linear-gradient(145deg,rgba(243,227,229,.7),rgba(220,232,220,.7)); border-bottom:1px solid var(--line); }
.secondary-hero h1 { font-size:clamp(3rem,8vw,6rem); margin-bottom:20px; }
.secondary-hero p { color:var(--muted); font-size:1.1rem; }
.public-gallery { padding:70px 0 100px; }
.public-gallery-grid { columns:3 280px; column-gap:20px; }
.public-art { display:inline-block; width:100%; margin-bottom:20px; overflow:hidden; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.72); box-shadow:var(--shadow-soft); }
.public-art button { display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.public-art img { width:100%; }
.public-art > div { padding:20px; }
.public-art h2 { font-size:1.45rem; margin-bottom:7px; }
.public-art p { color:var(--muted); white-space:pre-line; }
.public-art small { color:var(--rose); }
.empty-public { max-width:730px; margin:auto; padding:45px; text-align:center; }
.empty-public img { width:230px; margin:0 auto 20px; border-radius:50%; mix-blend-mode:multiply; }
.art-lightbox { width:min(900px,calc(100% - 30px)); max-height:calc(100vh - 30px); padding:18px; border:0; border-radius:25px; background:#fffaf6; box-shadow:var(--shadow); }
.art-lightbox::backdrop { background:rgba(30,42,36,.7); backdrop-filter:blur(8px); }
.art-lightbox img { max-height:75vh; width:100%; object-fit:contain; border-radius:17px; }
.art-lightbox button { position:absolute; right:25px; top:25px; width:42px; height:42px; border:0; border-radius:50%; background:white; font-size:1.4rem; cursor:pointer; }
.art-lightbox h2 { margin:15px 8px 4px; }
.simple-footer { padding:30px 0; background:#eef0e7; border-top:1px solid var(--line); }
.simple-footer .shell { display:flex; justify-content:space-between; }
.simple-footer a { color:var(--muted); }
.map-page-heading { display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:60px; }
.map-page-heading h1 { margin:0; }
.map-page-layout { display:grid; grid-template-columns:1fr 330px; gap:22px; padding:50px 0 80px; }
.map-shell { position:relative; min-height:680px; overflow:hidden; border:8px solid rgba(255,255,255,.7); border-radius:34px; box-shadow:var(--shadow); background:#e9eee6; }
#placesMap { position:absolute; inset:0; z-index:2; }
#placesMap .leaflet-tile-pane { filter:saturate(.78) contrast(.94) brightness(1.035); }
#placesMap .leaflet-control-attribution { padding:2px 5px; border-radius:7px 0 0 0; background:rgba(255,250,246,.72); color:#829087; font-size:8px; line-height:1.25; backdrop-filter:blur(5px); }
#placesMap .leaflet-control-attribution a { color:#6d7f75; text-decoration:none; }
.map-fallback { position:absolute; inset:0; overflow:hidden; background:radial-gradient(circle at center,#f3eee5 0 22%,transparent 22%),repeating-radial-gradient(circle at center,transparent 0 75px,rgba(47,111,92,.15) 76px 78px),#e5eee3; }
.fallback-river { position:absolute; width:130%; height:90px; left:-15%; top:45%; border:25px solid #b9dce2; border-inline:0; border-radius:50%; transform:rotate(-17deg); }
.fallback-pin { position:absolute; width:24px; height:24px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--rose); }
.fallback-pin::after { content:""; position:absolute; inset:7px; border-radius:50%; background:#fff; }
.map-page-layout aside { display:grid; align-content:start; gap:18px; }
.map-legend,.map-help { padding:25px; }
.map-legend h2 { font-size:1.7rem; }
#placesList { display:grid; gap:8px; max-height:430px; overflow:auto; }
.place-list-item { display:grid; grid-template-columns:38px 1fr; gap:10px; padding:9px; border-radius:12px; color:inherit; text-decoration:none; background:var(--paper); }
.place-list-item img { width:38px; height:38px; object-fit:cover; border-radius:50%; }
.place-list-item b { font-size:.82rem; }
.place-list-item small { display:block; color:var(--muted); }
.map-help ol { padding-left:20px; color:var(--muted); }
.leaflet-popup-content-wrapper { border-radius:17px; font-family:var(--sans); }
.place-detail { min-height:100vh; display:grid; place-items:center; align-content:center; gap:30px; padding:45px 20px; background:linear-gradient(145deg,var(--blush),var(--sage)); }
.place-detail-card { width:min(980px,100%); display:grid; grid-template-columns:1fr 1fr; overflow:hidden; }
.place-detail-card > img { width:100%; height:100%; min-height:500px; object-fit:cover; }
.place-detail-card > div { padding:55px; display:flex; flex-direction:column; justify-content:center; }
.place-detail-card h1 { font-size:clamp(2.5rem,6vw,4.5rem); }
.place-detail-card p { color:var(--muted); }
.place-actions { display:flex; gap:10px; margin-top:25px; }
.message-page { min-height:100vh; display:grid; place-items:center; padding:25px; background:linear-gradient(145deg,var(--blush),var(--sage)); }
.message-card { width:min(680px,100%); padding:55px; text-align:center; }
.message-card > img { width:80px; margin:0 auto 20px; }
.message-card h1 { font-size:clamp(2.5rem,7vw,4.3rem); }
.message-card p { color:var(--muted); }
.message-card > strong { display:block; font:500 2rem var(--serif); color:var(--malachite); margin:20px; }
.message-card > div { display:flex; justify-content:center; gap:10px; margin-top:25px; }
@media(max-width:800px){.secondary-nav a:not(.button){display:none}.map-page-heading,.map-page-layout,.place-detail-card{grid-template-columns:1fr}.map-shell{min-height:520px}.place-detail-card>img{min-height:320px}.place-detail-card>div{padding:35px}.map-page-layout aside{grid-template-columns:1fr 1fr}.place-actions{flex-direction:column}}
@media(max-width:520px){.map-page-layout aside{grid-template-columns:1fr}.message-card{padding:35px 22px}.message-card>div{flex-direction:column}.simple-footer .shell{display:grid;gap:8px}}

/* Юридические страницы: тот же светлый лист, что и весь сайт */
.legal-main { padding: 46px 0 80px; }
.legal-page .container { width: min(880px, calc(100% - 40px)); margin-inline: auto; padding: clamp(26px, 4vw, 58px); border: 1px solid rgba(82,108,95,.12); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.legal-back { margin-bottom: 26px; }
.legal-back span { margin-right: 4px; }
.legal-page .container h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; }
.legal-page .container h1::after { content: ""; display: block; width: 78px; height: 3px; margin-top: 16px; border-radius: 99px; background: linear-gradient(90deg, var(--sage-deep), var(--blush-deep)); }
.legal-page .container section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-page .container h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--malachite-dark); }
.legal-page .container h3 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--malachite-dark); }
.legal-page .container p { margin: 0 0 16px; color: var(--ink); line-height: 1.75; }
.legal-page .container ul, .legal-page .container ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink); line-height: 1.75; }
.legal-page .container li { margin-bottom: 8px; }
.legal-page .container li::marker { color: var(--sage-deep); }
.legal-page .container strong { color: var(--malachite-dark); }
.legal-page .container a { color: var(--malachite); }
.legal-page .container blockquote, .legal-page .container .highlight-box { margin: 26px 0; padding: 20px 24px; border-left: 3px solid var(--sage-deep); border-radius: 0 14px 14px 0; background: rgba(220,232,220,.4); font-style: italic; }
.legal-page .container footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .88rem; }
.legal-page .container table { width: 100%; margin-bottom: 18px; border-collapse: collapse; }
.legal-page .container th, .legal-page .container td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; font-size: .92rem; }
.legal-page .container th { background: var(--sage); color: var(--malachite-dark); }
@media (max-width: 620px) { .legal-main { padding: 26px 0 54px; } .legal-page .container { width: calc(100% - 24px); } }

/* Страница «Обо мне»: тот же акварельный лист */
.story-hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.story-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.story-hero-copy h1 { margin: 0 0 4px; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; }
.story-hero-copy h1 em { font-style: italic; color: var(--rose); }
.story-hero-copy p { margin: 0 0 14px; color: var(--muted); line-height: 1.72; }
.story-ornament { width: 120px; height: 3px; margin: 20px 0 26px; border-radius: 99px; background: linear-gradient(90deg, var(--sage-deep), var(--blush-deep), transparent); }
.story-hero-art .portrait-frame { max-width: 380px; margin-inline: auto; }
.story-block { max-width: 940px; margin-inline: auto; padding: clamp(26px, 4vw, 56px); }
.story-block h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.story-block p { margin: 0 0 18px; color: var(--ink); font-size: 1.03rem; line-height: 1.78; }
.story-block .drop-cap::first-letter { float: left; margin: 6px 14px 0 0; color: var(--rose); font-family: var(--serif); font-size: 3.6rem; line-height: .78; }
.story-block .highlight { padding: 1px 6px; border-radius: 7px; background: rgba(231,203,210,.55); color: var(--malachite-dark); font-weight: 650; }
.quote-box { margin: 28px 0; padding: 22px 26px; border-left: 3px solid var(--sage-deep); border-radius: 0 16px 16px 0; background: rgba(220,232,220,.45); color: var(--malachite-dark); font-family: var(--serif); font-size: 1.12rem; font-style: italic; line-height: 1.6; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 46px; }
.steps-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps-list li { position: relative; padding-left: 30px; color: var(--ink); line-height: 1.68; }
.steps-list li::before { content: "✿"; position: absolute; left: 0; top: 1px; color: var(--sage-deep); }
.story-signature { margin: 0; color: var(--rose); font-family: var(--serif); font-size: 1.25rem; font-style: italic; text-align: right; }
.section-action { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
@media (max-width: 900px) {
  .story-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-hero-art { order: -1; }
  .story-hero-art .portrait-frame { max-width: 300px; }
  .story-columns { grid-template-columns: 1fr; }
}

/* Страница сказа: книжный разворот на светлой бумаге */
.tale-sheet { max-width: 880px; margin-inline: auto; padding: clamp(24px, 4vw, 60px); }
.book-text { white-space: pre-wrap; color: var(--ink); font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.95; text-align: justify; hyphens: auto; }
.book-text::first-letter { float: left; margin: 10px 14px 0 0; color: var(--rose); font-size: 4.1rem; line-height: .72; }
@media (max-width: 620px) { .book-text { text-align: left; } .book-text::first-letter { font-size: 3rem; } }

/* Служебные страницы: оплата, ошибки */
.message-card { max-width: 620px; margin-inline: auto; padding: clamp(30px, 5vw, 58px); text-align: center; }
.message-card h1 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.message-card p { margin: 0 auto 8px; max-width: 460px; color: var(--muted); line-height: 1.7; }
.message-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: var(--sage); color: var(--malachite); font-size: 2rem; }
.message-spinner { width: 54px; height: 54px; margin: 0 auto 20px; border: 3px solid var(--sage); border-top-color: var(--malachite); border-radius: 50%; animation: message-spin 1s linear infinite; }
@keyframes message-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .message-spinner { animation-duration: 3s; } }
