@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(./media/cormorant-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(./media/cormorant-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(./media/cormorant-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(./media/cormorant-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./media/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./media/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --plum: #38243e;
  --ink: #38243e;
  --muted: #6a5d68;
  --paper: #fbf9f6;
  --surface: #fffdfa;
  --border: #e6dfdf;
  --leaf: #3d5848;
  --lilac: #efe8f4;
  --green-light: #eef0e8;
  --pink-light: #f5e9e9;
  --sand-light: #f1eae0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Onest, system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 48px #36223b12;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; line-height: 1.55; }
main { min-height: 62vh; }
main:focus { outline: none; }
body, button, input, textarea, select { font-family: var(--sans); }
button, input, textarea, select { font-size: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, ol, ul { margin: 0; }
h1, h2 { line-height: 1.02; font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 6.2vw, 6rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.75rem); }
h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid #7b5191; outline-offset: 4px; }
::selection { background: #e1d3ea; color: var(--ink); }

.wrap { width: min(100% - 88px, 1240px); margin-inline: auto; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; transform: translateY(-160%); padding: 9px 16px; color: white; background: var(--plum); border-radius: 8px; }
.skip-link:focus { transform: none; }
.loading { padding-block: 65px; color: var(--muted); }

.site-header { border-bottom: 1px solid #e9e3e6; position: relative; z-index: 2; background: var(--paper); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(163px, 1fr); align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; width: max-content; max-width: 100%; gap: 9px; font-size: 1.25rem; letter-spacing: -.045em; font-weight: 700; }
.brand .icon { width: 29px; height: 29px; color: var(--leaf); }
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(19px, 3vw, 42px); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.main-nav a { padding-block: 26px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--leaf); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--leaf); }
.header-actions { justify-content: end; gap: 13px; }
.header-actions .btn { min-height: 42px; padding: 8px 20px; }
.nav-icon, .menu-button { display: inline-grid; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.nav-icon:hover, .nav-icon[aria-current="page"], .menu-button:hover { background: var(--lilac); }
.nav-icon .icon, .menu-button .icon { width: 23px; height: 23px; }
.menu-button { display: none; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font-size: .88rem; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink); background: transparent; transition: background .18s, border-color .18s, color .18s; }
.btn .icon { width: 17px; height: 17px; }
.btn.primary { background: var(--plum); color: white; border-color: var(--plum); }
.btn.primary:hover { background: #513455; border-color: #513455; }
.btn.secondary { border-color: #d9cfd8; background: var(--surface); }
.btn.secondary:hover { background: var(--lilac); border-color: #c6b5c7; }
.btn.plain { white-space: nowrap; background: transparent; border-color: transparent; padding-inline: 10px; }
.btn.plain:hover { background: var(--lilac); }
.text-link, .back-link { color: var(--leaf); display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; background: transparent; border: 0; padding: 0; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); gap: clamp(26px, 5.8vw, 92px); align-items: center; padding: 45px 0 27px; }
.hero-content { padding: 19px 0; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--leaf); font-size: .72rem; letter-spacing: .095em; font-weight: 700; margin-bottom: 20px; }
.eyebrow span { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--leaf); }
.hero h1 { font-size: clamp(4rem, 7.65vw, 7.05rem); line-height: .83; letter-spacing: -.062em; margin-left: -4px; }
.hero h1 em { color: var(--leaf); font-weight: 600; }
.hero-intro { max-width: 445px; margin: 27px 0 25px; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.14rem); }
.hero-photo { height: clamp(335px, 42vw, 520px); border-radius: 48% 48% 19px 19px / 31% 31% 19px 19px; background: #d8c6dc; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero-search { display: flex; align-items: center; gap: 11px; width: min(100%, 490px); background: #fff; padding: 6px 6px 6px 15px; border: 1px solid #ded4dd; border-radius: 11px; box-shadow: 0 8px 22px #49304908; }
.hero-search > .icon { color: var(--leaf); width: 21px; height: 21px; }
.hero-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); outline-offset: 3px; padding: 6px 0; }
.hero-search input::placeholder { color: #726775; }
.hero-search button { min-height: 45px; padding-inline: 25px; }
.hero-links { margin-top: 16px; }

.home-section { margin-block: 70px; }
.topic-section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-bottom: 21px; }
.section-head h2 { min-width: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-card { display: grid; grid-template-columns: auto minmax(0, 1fr) 15px; gap: 12px; align-items: center; min-height: 84px; padding: 12px 14px; border-radius: 12px; background: var(--lilac); border: 1px solid transparent; font-size: .94rem; font-weight: 600; line-height: 1.25; transition: border-color .18s, transform .18s; }
.topic-card:nth-child(2) { background: var(--green-light); }
.topic-card:nth-child(3) { background: var(--pink-light); }
.topic-card:nth-child(4) { background: var(--sand-light); }
.topic-card:hover { border-color: #a99ba6; transform: translateY(-2px); }
.topic-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #ffffff75; color: var(--leaf); }
.topic-arrow { justify-self: end; font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.practitioner-card, .event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; min-width: 0; display: flex; flex-direction: column; }
.practitioner-picture, .event-picture, .detail-art { position: relative; }
.media-placeholder { display: grid; place-items: center; position: relative; min-width: 0; background: #e8e7dc; color: var(--leaf); overflow: hidden; }
.media-placeholder .icon { width: 45px; height: 45px; opacity: .65; }
.practitioner-picture .media-placeholder { aspect-ratio: 4/3; }
.event-picture .media-placeholder { aspect-ratio: 16/9; }
.media-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; transition: transform .35s; }
.practitioner-picture a:hover img, .event-picture a:hover img { transform: scale(1.03); }
.event-picture img { object-position: center; }
.favorite-button { position: absolute; top: 13px; right: 13px; width: 40px; height: 40px; display: grid; place-items: center; background: #fffefaf5; border: 1px solid #ffffff; color: var(--plum); border-radius: 50%; box-shadow: 0 3px 9px #38243e24; }
.favorite-button:hover { background: var(--lilac); }
.favorite-button.selected { color: #8f3e68; }
.favorite-button.selected .icon { fill: #8f3e68; }
.favorite-button .icon { width: 21px; height: 21px; }
.ad-mark { position: absolute; left: 12px; top: 13px; display: inline-flex; align-items: center; border-radius: 5px; border: 1px solid #efede7; color: #493c46; background: #fffefaf5; padding: 3px 8px; font-size: .72rem; font-weight: 650; }
.card-content { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 8px; padding: 17px 18px 14px; min-width: 0; }
.card-heading { display: flex; justify-content: space-between; width: 100%; gap: 7px; }
.card-content h3 { font-size: clamp(1.02rem, 1.6vw, 1.24rem); font-weight: 670; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card-content h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rating { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #604b57; font-weight: 650; font-size: .85rem; }
.rating .icon { fill: #cba964; stroke: #86672a; width: 16px; height: 16px; }
.card-subtitle, .card-meta { font-size: .84rem; color: var(--muted); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.card-meta .icon { color: var(--leaf); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; background: var(--lilac); color: #4a3851; border-radius: 8px; padding: 4px 8px; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-foot { width: 100%; margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 7px; font-size: .91rem; }
.card-detail { display: inline-flex; align-items: center; gap: 4px; color: var(--leaf); font-size: .82rem; font-weight: 630; }
.card-detail:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-excerpt { font-size: .88rem; color: var(--muted); line-height: 1.45; }

.match-promo { background: #e9eee3; display: grid; grid-template-columns: auto 1fr auto; gap: 23px; align-items: center; padding: clamp(23px, 5vw, 48px); margin-block: 60px; border: 1px solid #dfe6d9; border-radius: var(--radius); }
.match-promo h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.match-promo p { margin-top: 8px; color: #4f6256; }
.match-art { color: var(--leaf); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 1px solid #c5d1c1; }
.match-art .icon { width: 30px; height: 30px; stroke-width: .9; }

.page { padding-block: 48px 75px; }
.page-heading { margin-bottom: 28px; max-width: 940px; }
.page-heading p { margin-top: 12px; font-size: clamp(.95rem, 1.5vw, 1.13rem); color: var(--muted); max-width: 665px; }
.page-heading h1, .section-head h2 { overflow-wrap: anywhere; }
.listing { display: grid; grid-template-columns: minmax(190px, 243px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.listing .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-body { min-width: 0; }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 17px; }
.filter-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.filter-title h2 { display: flex; align-items: center; gap: 6px; font: 700 1rem var(--sans); letter-spacing: -.03em; }
.filter-title .text-link { padding: 8px 0; font-size: .78rem; }
.filter-fields { display: grid; gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; font-size: .87rem; font-weight: 550; }
.field input, .field select, .field textarea { color: var(--ink); border: 1px solid #ddd5dd; background: #fff; width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border-radius: 8px; font-weight: 400; line-height: 1.35; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #756d77; opacity: 1; }
.field select { padding-right: 5px; }
.results-head { align-items: end; display: flex; justify-content: space-between; gap: 14px; min-height: 48px; margin-bottom: 13px; }
.results-head p { color: var(--muted); font-size: .91rem; }
.results-head .field { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.results-head .field select { width: auto; min-height: 38px; }
.empty { grid-column: 1/-1; padding: clamp(25px, 6vw, 65px) 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-icon, .success-icon { display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; width: 43px; height: 43px; background: var(--green-light); color: var(--leaf); }
.empty h2 { font-size: clamp(2rem, 4.3vw, 3.35rem); }
.empty p { color: var(--muted); margin: 9px auto 0; max-width: 56ch; }
.empty .btn { margin-top: 20px; }
.back-link { margin-bottom: 20px; }
.detail-hero { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 66px); align-items: center; padding: 26px; background: var(--lilac); border-radius: 24px; }
.detail-art { min-width: 0; }
.detail-art .media-placeholder { border-radius: 13px; }
.profile-picture { aspect-ratio: 6/5; }
.event-detail-picture { aspect-ratio: 5/4; }
.event-detail-picture img { object-position: center; }
.detail-intro .page-heading { margin-bottom: 14px; }
.detail-intro h1 { font-size: clamp(3rem, 6.2vw, 5.65rem); }
.detail-tagline { font-size: 1.1rem; max-width: 580px; margin-block: 4px 16px; }
.detail-meta, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px 13px; align-items: center; }
.detail-meta > span { display: flex; align-items: center; gap: 5px; font-size: .85rem; }
.detail-meta .icon { color: var(--leaf); }
.detail-actions { margin-top: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(220px, 1fr); align-items: start; gap: clamp(25px, 5vw, 66px); margin-top: 32px; }
.detail-layout > * { min-width: 0; }
.profile-section + .profile-section, .check-panel + .contact-links { margin-top: 34px; }
.profile-section h2, .check-panel h2, .contact-links h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 11px; }
.profile-section .section-head h2 { margin: 0; }
.long-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-section .long-copy { color: var(--muted); }
.profile-section .tags, .profile-section .facts { margin-top: 14px; }
.facts > div + div { margin-top: 10px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.check-panel, .contact-links, .panel, .service-card, .review-card { background: var(--surface); padding: clamp(16px, 2.5vw, 25px); border: 1px solid var(--border); border-radius: 15px; }
.check-panel { background: var(--green-light); border-color: #e1e6d8; }
.check-panel ul { list-style: none; padding: 0; }
.check-panel li + li { margin-top: 8px; }
.check-panel li .icon { color: var(--leaf); margin-right: 6px; }
.check-panel p { color: var(--muted); font-size: .82rem; margin-top: 13px; }
.check-panel ol { padding-left: 20px; font-size: .92rem; }
.contact-links { display: grid; gap: 12px; }
.contact-links h2 { margin-bottom: 0; }
.profile-video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; background: #2c202f; }
.stack { display: grid; gap: 13px; }
.service-heading, .review-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.service-card .long-copy { margin-top: 8px; }
.service-card .btn { margin-top: 14px; }
.review-reply { background: var(--paper); padding: 12px; margin-top: 11px; border-radius: 8px; }
.review-reply strong { font-size: .84rem; }
.verified { font-size: .76rem; color: var(--leaf); margin-left: 5px; }
.report-link { padding-block: 7px; margin-top: 7px; font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-status:empty { display: none; }
.form-status.error { color: #8d2d45; font-size: .88rem; }
.form-submit { justify-self: start; }
.share-link { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 25px; padding: 16px; background: var(--lilac); border-radius: 12px; }
.share-link .field { flex: 1 0 min(270px, 100%); }
.share-link .btn { min-height: 42px; }
.share-link p:not(:empty) { flex-basis: 100%; color: var(--leaf); }
.status-note { padding: 10px 14px; color: var(--leaf); background: var(--green-light); border-radius: 9px; margin-bottom: 16px; }
.price-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(14px, 3vw, 28px); border-radius: 16px; border: 1px solid #e2d8e4; background: var(--lilac); }
.price-card:nth-child(2) { background: var(--green-light); border-color: #dce1d4; }
.price-card:nth-child(3) { background: var(--pink-light); border-color: #eadbdf; }
.price-card h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.price strong { font-size: 1.5rem; }
.price span { font-size: .88rem; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin-block: 16px 22px; }
.price-card li + li { margin-top: 8px; }
.price-card li .icon { color: var(--leaf); margin-right: 5px; }
.price-card .btn { margin-top: auto; }
.price-extras { display: grid; gap: 10px; }
.price-extras article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 15px; }
.price-extras p { color: var(--muted); margin-top: 4px; }

.modal { width: min(100% - 30px, 525px); max-height: min(90vh, 820px); color: var(--ink); border: 1px solid var(--border); padding: 0; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.modal::backdrop { background: #261b2c78; backdrop-filter: blur(3px); }
.modal-inner { padding: clamp(18px, 5vw, 33px); position: relative; }
.modal h2 { max-width: calc(100% - 35px); font-size: clamp(2rem, 4.8vw, 3.2rem); margin-bottom: 8px; }
.modal p:not(.form-status) { margin-bottom: 14px; color: var(--muted); }
.modal-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; background: var(--lilac); color: var(--ink); border: 0; border-radius: 50%; }
.modal-close:hover { background: #e0d3e7; }
.modal .success-icon { margin-inline: 0; }

.site-footer { border-top: 1px solid var(--border); background: #f4f0ef; }
.footer-inner { padding-block: 28px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.footer-inner p, .footer-inner nav { color: var(--muted); font-size: .85rem; }
.footer-inner p { margin-top: 8px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px 16px; }
.footer-inner nav a:hover { color: var(--leaf); text-decoration: underline; }
.footer-inner .demo-note { grid-column: 1/-1; margin: 0; font-size: .77rem; }

@media (max-width: 1070px) {
  .wrap { width: min(100% - 56px, 1240px); }
  .listing .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { gap: 7px; padding-inline: 10px; }
}

@media (max-width: 850px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; min-height: 65px; }
  .header-actions { grid-column: 2; grid-row: 1; padding-right: 4px; }
  .menu-button { display: grid; grid-column: 3; grid-row: 1; }
  .main-nav { display: none; grid-column: 1/-1; grid-row: 2; padding-bottom: 12px; gap: 8px 17px; flex-wrap: wrap; }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 8px 0; }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(3.7rem, 8vw, 5.75rem); }
  .hero-photo { height: clamp(290px, 49vw, 410px); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { min-height: 72px; }
  .cards { gap: 14px; }
  .card-content { padding-inline: 13px; }
  .detail-layout { grid-template-columns: minmax(0, 1.45fr) minmax(195px, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 1.13rem; gap: 5px; }
  .brand .icon { width: 24px; height: 24px; }
  .header-actions { gap: 4px; padding: 0; }
  .header-actions .btn { min-height: 38px; padding: 7px 12px; }
  .menu-button, .nav-icon { width: 38px; height: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 22px; }
  .hero-content { padding-top: 10px; padding-bottom: 4px; }
  .hero h1 { margin-left: -2px; font-size: clamp(3.4rem, 12.4vw, 5.55rem); }
  .eyebrow { font-size: .66rem; margin-bottom: 15px; }
  .hero-intro { margin-block: 16px 18px; }
  .hero-photo { height: clamp(225px, 74vw, 385px); border-radius: 48% 48% 14px 14px / 28% 28% 14px 14px; grid-row: 2; }
  .hero-photo img { object-position: center 40%; }
  .hero-search button { min-height: 40px; padding-inline: 17px; }
  .home-section { margin-block: 37px; }
  .topic-section { margin-top: 12px; }
  .section-head { margin-bottom: 14px; gap: 8px; align-items: flex-start; }
  .section-head .btn { min-height: 32px; font-size: .76rem; padding: 5px 2px 5px 6px; gap: 4px; }
  .section-head .btn .icon { width: 14px; }
  .topic-grid { gap: 8px; }
  .topic-card { min-height: 63px; font-size: .78rem; }
  .topic-icon { width: 25px; height: 25px; }
  .topic-icon .icon { width: 15px; }
  .cards, .listing .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-content { padding: 11px; gap: 6px; }
  .card-heading { flex-wrap: wrap; gap: 3px; }
  .card-subtitle, .card-meta, .card-detail { font-size: .75rem; }
  .card-foot { padding-top: 8px; font-size: .81rem; }
  .event-excerpt { font-size: .78rem; }
  .favorite-button { width: 35px; height: 35px; right: 8px; top: 8px; }
  .ad-mark { left: 7px; top: 8px; font-size: .62rem; }
  .match-promo { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; margin-block: 35px; padding: 17px; }
  .match-promo p { font-size: .87rem; }
  .match-promo .btn { grid-column: 2; justify-self: start; }
  .match-art { width: 40px; height: 40px; align-self: start; }
  .match-art .icon { width: 22px; height: 22px; }
  .page { padding-block: 27px 45px; }
  .page-heading { margin-bottom: 19px; }
  .listing, .detail-hero, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { gap: 19px; margin-top: 20px; }
  .detail-hero { padding: 13px; gap: 14px; }
  .detail-intro { padding: 0 4px 8px; }
  .detail-intro h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .detail-actions { margin-top: 14px; }
  .detail-layout aside { grid-row: 1; }
  .matching-page .detail-layout aside { grid-row: 2; }
  .filter-panel { padding: 12px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-title { margin-bottom: 6px; }
  .results-head .field { gap: 5px; font-size: .75rem; }
  .results-head .field select { font-size: .78rem; }
  .results-head p { font-size: .8rem; }
  .pricing-cards { grid-template-columns: minmax(0, 1fr); }
  .price-extras article { grid-template-columns: 1fr auto; }
  .price-extras .btn { grid-column: 1/-1; justify-self: start; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner nav { justify-content: start; }
}

@media (max-width: 365px) {
  .wrap { width: calc(100% - 24px); }
  .cards, .listing .cards { grid-template-columns: minmax(0, 1fr); }
  .topic-card { grid-template-columns: auto minmax(0, 1fr); }
  .topic-arrow { display: none; }
}

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