/*
Theme Name: ImenDenBG
Theme URI: https://imendenbg.com/
Author: imendenbg.com
Description: Бърза WordPress тема с интерактивен календар на българските имени дни.
Version: 1.1.36
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: imendenbg
*/

:root {
  --ink: #273630;
  --ink-2: #354941;
  --muted: #6f7a75;
  --paper: #f8f6f1;
  --warm: #fffdf9;
  --surface: #fffefb;
  --line: #e8e3da;
  --green: #3f715f;
  --green-2: #527f6e;
  --mint: #e8f0eb;
  --mint-2: #f3f6f3;
  --lime: #d4f47c;
  --sand: #f3eadf;
  --shadow-sm: 0 9px 28px rgba(46,55,51,.06);
  --shadow: 0 24px 70px rgba(46,55,51,.11);
  --radius: 24px;
  --container: min(1200px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; width: 100%; min-height: 80px; padding: 0 max(24px, calc((100% - 1200px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.96); box-shadow: 0 5px 25px rgba(7,91,59,.06); backdrop-filter: blur(18px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg,#f0f3f1 0 33.33%,#07814f 33.33% 66.66%,#cf2435 66.66%); box-shadow: 0 1px 2px rgba(16,43,35,.12); }
.admin-bar .site-header { top: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.035em; text-decoration: none; font-size: 1.28rem; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d8e3dd; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#fff 0 33.33%,#07814f 33.33% 66.66%,#cf2435 66.66%); box-shadow: 0 3px 10px rgba(7,91,59,.14); font-family: Georgia, serif; font-size: 1.35rem; text-shadow: 0 1px 2px rgba(5,55,38,.9),0 0 1px #053726; }
.brand-dot { color: var(--green-2); }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a { padding: 9px 13px; border-radius: 999px; color: #344e46; font-size: .92rem; font-weight: 700; text-decoration: none; transition: background .18s ease, color .18s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); background: var(--mint-2); }
.site-nav .nav-gift { margin-left: 4px; color: #b91f31; background: #fff5f6; }
.site-nav .nav-gift:hover { color: #fff; background: #cf2435; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; color: var(--ink); background: var(--mint-2); font-size: 1.4rem; cursor: pointer; }

.hero-shell { overflow: clip; background: radial-gradient(circle at 88% 8%, rgba(232,201,130,.18), transparent 24rem), linear-gradient(180deg, var(--warm), var(--paper)); }
.hero { width: var(--container); min-height: 560px; margin: 0 auto; padding: 50px 0 44px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: clamp(36px,5vw,66px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--green); font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 999px; background: var(--mint); }
.hero .eyebrow { letter-spacing: 0; }
.eyebrow b { padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--green); font-size: .66rem; letter-spacing: 0; }
h1, h2, h3 { margin-top: 0; line-height: 1.07; letter-spacing: -.04em; }
h1 { max-width: 720px; margin: 14px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem,3.3vw,3.15rem); font-weight: 500; }
.hero h1 { max-width: none; letter-spacing: 0; white-space: nowrap; }
h1 em { color: var(--green); font-weight: inherit; }
.hero-copy > p { max-width: 650px; margin: 0 0 18px; color: var(--muted); font-size: clamp(1rem,1.5vw,1.16rem); }

.name-search { position: relative; max-width: 650px; height: 66px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 20px; border: 1px solid #cfdcd4; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(16,45,37,.1); transition: border-color .18s ease, box-shadow .18s ease; }
.name-search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(11,139,102,.12), 0 18px 45px rgba(16,45,37,.12); }
.name-search svg { flex: 0 0 22px; width: 22px; fill: none; stroke: var(--green); stroke-width: 1.9; }
.name-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.name-search input::placeholder { color: #82918c; }
.name-search button { align-self: stretch; padding: 0 22px; border: 0; border-radius: 14px; color: #fff; background: var(--green); font-weight: 800; cursor: pointer; }
.name-search button:hover { background: var(--green-2); }
.search-hint { margin: 9px 0 0 !important; color: #7b8d87 !important; font-size: .78rem !important; }
.search-results { position: absolute; z-index: 40; left: 0; right: 0; max-width: 650px; max-height: 390px; margin-top: 10px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.search-result { display: grid; grid-template-columns: 54px 1fr auto; gap: 13px; align-items: center; padding: 12px; border-radius: 13px; text-decoration: none; }
.search-result:hover, .search-result:focus-visible { background: var(--mint-2); outline: none; }
.search-result time { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: var(--mint); font-weight: 900; line-height: 1.05; }
.search-result time small { margin-top: -10px; font-size: .58rem; }
.search-result strong { display: block; font-size: .9rem; }
.search-result p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.search-result > span { color: var(--green); font-weight: 900; }
.search-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; }

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.primary-btn, .gift-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 19px; border: 1px solid var(--green); border-radius: 999px; color: #fff; background: var(--green); text-decoration: none; font-weight: 800; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-btn:hover, .gift-link:hover { background: var(--green-2); box-shadow: 0 9px 24px rgba(8,114,85,.18); transform: translateY(-2px); }
.primary-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-link { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }
.text-link span { margin-left: 4px; color: var(--green); }
.today-card { position: relative; overflow: hidden; min-height: 420px; padding: 30px; border-radius: 30px; color: #fff; background: linear-gradient(150deg, #3b4c46, #26362f 72%); box-shadow: var(--shadow); }
.today-card::before, .today-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.today-card::before { width: 260px; height: 260px; right: -95px; top: -105px; background: rgba(232,201,130,.09); border: 1px solid rgba(232,201,130,.24); }
.today-card::after { width: 115px; height: 115px; right: 45px; top: -54px; border: 1px solid rgba(232,201,130,.16); }
.card-topline { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(212,244,124,.11); }
.card-label { color: #d6e5df; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.date-block { display: flex; align-items: baseline; gap: 11px; margin-top: 20px; }
.date-block strong { color: var(--lime); font-family: Georgia, serif; font-size: 6rem; font-weight: 500; line-height: .85; letter-spacing: -.08em; }
.date-block span { color: #dce9e4; font-weight: 850; letter-spacing: .13em; }
.card-divider { height: 1px; margin: 20px 0; background: rgba(255,255,255,.14); }
.event-title { margin: 0 0 8px; color: var(--lime); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.today-card h2 { max-width: 420px; max-height: 2.3em; margin: 0 0 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-family: Georgia, serif; font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 500; line-height: 1.15; }
.card-description { margin: 0; color: #b8cbc4; font-size: .9rem; }
.today-card .gift-link { width: 100%; margin-top: 18px; padding: 9px 14px; color: var(--ink); background: var(--lime); border-color: var(--lime); font-size: .84rem; }
.today-card .gift-link:hover { background: #e1f9a0; }

.calendar-section, .names-section { width: var(--container); margin: 0 auto; padding: 96px 0; scroll-margin-top: 96px; }
.calendar-section { position: relative; isolation: isolate; }
.calendar-section::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fbfaf7; border-top: 1px solid #eee9e0; border-bottom: 1px solid #eee9e0; box-shadow: 0 0 0 100vmax #fbfaf7; clip-path: inset(0 -100vmax); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.4rem,4.7vw,4.5rem); font-weight: 500; }
.section-heading p { max-width: 650px; margin: 12px 0 0; color: var(--muted); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 22px; color: var(--muted); font-size: .83rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border: 1px solid #d9e9ad; border-radius: 50%; background: #eff8d7; }
.dot.today { background: var(--lime); box-shadow: 0 0 0 1px var(--green); }
.calendar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.month-card { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 24px rgba(46,55,51,.025); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.month-card:hover { border-color: #d9d2c7; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.month-card:hover, .month-card:focus-within { z-index: 30; }
.month-card.is-current-month { border-color: #d8c7a6; box-shadow: inset 0 0 0 1px rgba(216,199,166,.55), 0 9px 28px rgba(46,55,51,.05); }
.month-card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 17px; }
.month-card-header h3 { margin: 0; font-size: 1.05rem; }
.month-card-header span { color: #84938e; font-size: .68rem; }
.weekday-row, .day-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.weekday-row { margin-bottom: 7px; color: #9a9d99; font-size: .63rem; font-weight: 750; text-align: center; }
.calendar-day, .calendar-empty { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border-radius: 50%; font-size: .76rem; }
.calendar-empty { opacity: 0; }
.calendar-day.has-names { position: relative; color: #344139; background: #eff8d7; border: 1px solid #dcebb5; font-weight: 700; transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.calendar-day.has-names:hover { z-index: 20; background: #e5f3bf; border-color: #cfe399; box-shadow: 0 7px 16px rgba(46,55,51,.07); transform: scale(1.06); }
.calendar-day.is-today { color: var(--ink) !important; background: var(--lime) !important; border-color: #aacd50 !important; box-shadow: inset 0 0 0 1px #aacd50; font-weight: 850; }
.calendar-day-trigger { width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; color: inherit; background: transparent; font-weight: inherit; cursor: pointer; }
.calendar-day-trigger:focus-visible { position: relative; z-index: 21; outline: 3px solid #bdcfc6; outline-offset: 2px; }
.calendar-popover { position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 11px); width: 250px; display: none; padding: 16px; border: 1px solid #e4ded5; border-radius: 16px; color: var(--ink); background: #fffefb; box-shadow: 0 14px 34px rgba(46,55,51,.12); text-align: left; transform: translateX(-50%); }
.calendar-popover::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.calendar-popover small, .calendar-popover strong, .calendar-popover > span { display: block; }
.calendar-popover small { margin-bottom: 5px; color: var(--green); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.calendar-popover strong { margin-bottom: 4px; font-size: .86rem; }
.calendar-popover > span { color: var(--ink); font-size: .74rem; font-weight: 400; line-height: 1.45; }
.calendar-popover-gift { position: relative; z-index: 2; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; color: #fff; background: var(--green); font-size: .72rem; font-weight: 750; line-height: 1.2; text-decoration: none; }
.calendar-popover-gift:hover, .calendar-popover-gift:focus-visible { background: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(63,113,95,.13); }
.calendar-day.has-names:hover .calendar-popover, .calendar-day.has-names:focus-within .calendar-popover { display: block; pointer-events: auto; }
.month-card:nth-child(3n + 1) .calendar-popover { left: 0; transform: none; }
.month-card:nth-child(3n + 1) .calendar-popover::after { left: 20px; }
.month-card:nth-child(3n) .calendar-popover { right: 0; left: auto; transform: none; }
.month-card:nth-child(3n) .calendar-popover::after { right: 20px; left: auto; }
.stats-band { color: #fff; background: linear-gradient(135deg, #35453f, #26332e); }
.stats-band-inner { width: var(--container); margin: 0 auto; padding: 54px 0; display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: clamp(40px,7vw,96px); align-items: center; }
.stats-intro span { color: var(--lime); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.stats-intro h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(1.8rem,3.2vw,3rem); font-weight: 500; }
.stats-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.stats-list li { min-width: 0; padding: 8px clamp(18px,3vw,36px); border-left: 1px solid rgba(255,255,255,.16); }
.stats-list strong, .stats-list span { display: block; }
.stats-list strong { color: var(--lime); font-family: Georgia, serif; font-size: clamp(2rem,4vw,3.5rem); font-weight: 500; line-height: 1; }
.stats-list span { margin-top: 9px; color: #c1d2cc; font-size: .78rem; }

.names-wrap { padding: 96px 0 32px; color: var(--ink); background: #fffdf9; }
.names-section { padding: 0; }
.names-section .section-heading { margin-bottom: 26px; }
.month-jumps { position: sticky; top: 88px; z-index: 30; display: flex; gap: 7px; margin: 0 0 28px; padding: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); scrollbar-width: thin; }
.admin-bar .month-jumps { top: 120px; }
.month-jumps a { flex: 0 0 auto; padding: 7px 11px; border-radius: 9px; color: #536861; text-decoration: none; font-size: .78rem; font-weight: 750; }
.month-jumps a:hover, .month-jumps a:focus-visible { color: var(--green); background: var(--mint); }
.name-months { display: grid; gap: 12px; }
.name-month { scroll-margin-top: 160px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: clip; }
.name-month summary { display: grid; grid-template-columns: 1fr auto 22px; gap: 20px; align-items: center; padding: 22px 24px; cursor: pointer; list-style: none; }
.name-month summary::-webkit-details-marker { display: none; }
.name-month summary > span { display: flex; align-items: center; gap: 14px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.name-month summary small { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); font-family: Inter,sans-serif; font-size: .68rem; }
.name-month summary b { color: var(--muted); font-size: .75rem; }
.name-month summary i { position: relative; width: 20px; height: 20px; }
.name-month summary i::before, .name-month summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; background: var(--green); }
.name-month summary i::after { transform: rotate(90deg); transition: transform .18s ease; }
.name-month[open] summary { border-bottom: 1px solid var(--line); }
.name-month[open] summary i::after { transform: rotate(0); }
.name-list { padding: 8px 24px 18px; }
.name-day-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid #edf1ee; scroll-margin-top: 170px; }
.name-day-row:last-child { border-bottom: 0; }
.name-day-row:target { margin: 0 -12px; padding: 18px 12px; border-radius: 14px; background: var(--mint-2); }
.name-date { width: 58px; height: 58px; display: grid; place-items: center; align-content: center; border-radius: 15px; color: var(--green); background: var(--mint-2); line-height: 1; }
.name-date strong { font-family: Georgia, serif; font-size: 1.45rem; }
.name-date small { margin-top: 4px; font-size: .58rem; font-weight: 850; }
.name-event { color: var(--green); font-size: .72rem; font-weight: 800; }
.name-content h3 { margin: 3px 0 5px; color: var(--ink); font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.45; }
.name-content p { margin: 0; color: var(--muted); font-size: .82rem; }
.mini-gift { margin-top: 9px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); text-decoration: none; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.mini-gift:hover { border-color: var(--green); background: var(--mint-2); }
.site-footer { padding: 50px 0; color: #b9c1bd; background: #232f2a; }
.footer-inner { width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.copyright { grid-column: 1/-1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.creator-credit { grid-column: 1/-1; margin: -10px 0 0; color: #91a59e; font-size: .7rem; font-weight: 400; text-align: center; }
.creator-credit a { color: #a9bbb4; font-weight: 400; text-decoration-color: rgba(169,187,180,.5); text-underline-offset: 3px; }
.creator-credit a:hover { color: #fff; }
.content-page { width: min(780px,calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.content-page h1 { font-size: clamp(2.6rem,6vw,5rem); }
.content-page a { color: var(--green); }
.privacy-policy-copy { color: #30473f; line-height: 1.75; }
.privacy-policy-copy h2 { margin: 2.2rem 0 .65rem; color: var(--ink); font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.45rem,3vw,2rem); font-weight: 500; letter-spacing: -.025em; }
.privacy-policy-copy p { margin: 0 0 1rem; }
.privacy-updated { color: var(--muted); font-size: .88rem; }
.privacy-note { margin-top: 2.5rem !important; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--mint-2); font-size: .88rem; }

@media (max-width: 1020px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 46px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { white-space: nowrap; }
  .today-card { min-height: auto; max-width: 680px; }
  .calendar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .month-card:nth-child(3n + 1) .calendar-popover, .month-card:nth-child(3n) .calendar-popover { right: auto; left: 50%; transform: translateX(-50%); }
  .month-card:nth-child(3n + 1) .calendar-popover::after, .month-card:nth-child(3n) .calendar-popover::after { right: auto; left: calc(50% - 6px); }
  .month-card:nth-child(2n + 1) .calendar-popover { left: 0; transform: none; }
  .month-card:nth-child(2n + 1) .calendar-popover::after { left: 20px; }
  .month-card:nth-child(2n) .calendar-popover { right: 0; left: auto; transform: none; }
  .month-card:nth-child(2n) .calendar-popover::after { right: 20px; left: auto; }
  .stats-band-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .month-jumps { top: 132px; } }

@media (max-width: 720px) {
  :root { --container: min(100% - 28px,1200px); }
  .site-header { min-height: 70px; padding: 0 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 66px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav .nav-gift { margin: 4px 0 0; text-align: center; }
  .hero { gap: 26px; padding: 34px 0 30px; }
  h1 { margin-top: 12px; font-size: clamp(3rem,15vw,4.8rem); }
  .hero h1 { font-size: clamp(2.05rem,6.2vw,2.75rem); white-space: nowrap; }
  .name-search { height: 60px; padding-left: 15px; }
  .name-search button { padding: 0 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .today-card { padding: 27px; border-radius: 27px; }
  .date-block strong { font-size: 5rem; }
  .calendar-section { padding: 68px 0; }
  .section-heading { display: block; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-grid { grid-template-columns: 1fr; }
  .month-card { padding: 19px; }
  .calendar-day { font-size: .86rem; }
  .calendar-popover, .calendar-day.has-names:hover .calendar-popover, .calendar-day.has-names:focus-within .calendar-popover { display: none; }
  .stats-band-inner { padding: 42px 0; gap: 24px; }
  .stats-list li { padding: 7px 13px; }
  .names-wrap { padding-top: 68px; }
  .month-jumps { top: 76px; margin-left: -2px; margin-right: -2px; }
  .admin-bar .month-jumps { top: 122px; }
  .name-month summary { grid-template-columns: 1fr auto 20px; padding: 18px; }
  .name-month summary > span { font-size: 1.2rem; }
  .name-list { padding: 4px 16px 12px; }
  .name-day-row { grid-template-columns: 54px minmax(0,1fr); gap: 13px; }
  .name-date { width: 50px; height: 50px; }
  .mini-gift { grid-column: 2; justify-self: start; margin-top: -5px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.7rem,12vw,3.4rem); white-space: normal; }
}

@media (max-width: 420px) {
  .name-search svg { display: none; }
  .name-search { padding-left: 13px; }
  .name-search button { padding: 0 13px; font-size: .85rem; }
  .search-result { grid-template-columns: 48px 1fr; }
  .search-result > span { display: none; }
  .stats-list strong { font-size: 1.75rem; }
  .stats-list span { font-size: .68rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
