@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/poppins-regular.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/poppins-medium.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/poppins-semibold.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/poppins-bold.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/poppins-extrabold.ttf') format('truetype'); }

:root {
  --brand: #0f766e;
  --brand-hover: #0b5b55;
  --ink: #183c34;
  --muted: #717171;
  --line: #e0e9e5;
  --brand-soft: #edf7f3;
  --page-width: 1010px;
  font-family: Poppins, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: #fff; font-size: 14px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0b5b55; outline-offset: 5px; }
input:focus-visible { outline-offset: 1px; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -100px; padding: 12px 20px; background: #fff; border: 2px solid var(--brand); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.page-width { width: min(var(--page-width), calc(100% - 48px)); margin-inline: auto; }
.flipped { transform: rotate(180deg); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.icon-button:hover { background: #f6f6f6; }

/* Bomprof: forest green actions, mint surfaces, and a clear white header. */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 26px; background: #fff; z-index: 30; }
.logo { color: var(--brand); font-size: 26px; font-weight: 800; letter-spacing: -.85px; line-height: 1; }
.desktop-nav { display: flex; align-items: center; gap: 38px; }
.desktop-nav > button { min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 600; }
.desktop-nav > button:hover { color: var(--brand-hover); }
.desktop-nav .help-button { padding: 0; }
.help-button .icon { width: 18px; height: 18px; flex-basis: 18px; }
.mobile-nav-actions, .mobile-menu { display: none; }
.hero { position: relative; padding: 6px 24px 48px; border-radius: 0 0 42px 42px; background: linear-gradient(180deg, #fff 0%, #f7fbf8 21%, #e2f2e9 61%, #cbe7dc 100%); text-align: center; }
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.4; letter-spacing: -.9px; }
.search-form { position: relative; display: flex; align-items: center; width: min(700px, 100%); min-height: 68px; margin: 52px auto 0; padding: 6px; border-radius: 60px; background: #fff; box-shadow: 0 0 0 8px #ffffff59, 0 0 25px #ffffff59; text-align: left; z-index: 5; transition: width .22s ease; }
.search-form.is-expanded { width: min(850px, 100%); }
.field { display: flex; position: relative; align-items: center; gap: 12px; padding: 0 14px; min-width: 0; }
.subject-field { flex: 1; }
.field > .icon { width: 22px; height: 22px; flex-basis: 22px; color: var(--brand); }
.field input { width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 4px; background: transparent; font-size: 14px; font-weight: 500; }
.field input::placeholder { opacity: 1; color: var(--ink); }
.field input::-webkit-search-cancel-button { cursor: pointer; }
.location-field { flex: .8; border-left: 1px solid var(--line); }
.search-submit { flex: 0 0 auto; min-width: 128px; min-height: 56px; padding: 0 25px; color: #fff; background: var(--brand); border-radius: 40px; font-size: 15px; font-weight: 600; transition: background .2s; }
.search-submit:hover { background: var(--brand-hover); }
.search-submit > .icon { display: none; }
.suggestions, .location-options { position: absolute; top: calc(100% + 20px); left: -6px; width: max(100%, 260px); max-height: 310px; overflow: auto; padding: 10px; border: 1px solid #eee; border-radius: 20px; background: #fff; box-shadow: 0 16px 44px #173e331f; }
.suggestions button, .location-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; font-size: 13px; text-align: left; }
.suggestions button:hover, .suggestions button.is-active, .location-options button:hover { background: var(--brand-soft); }
.suggestions .icon, .location-options .icon { width: 18px; height: 18px; flex-basis: 18px; color: var(--brand); }
.suggestions p { padding: 12px; color: var(--muted); font-size: 12px; }
.subject-carousel { position: relative; width: min(995px, 100%); margin: 40px auto 0; padding: 16px 64px 16px 18px; border-radius: 44px; background: #ffffffb8; }
.subject-track { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.subject-track::-webkit-scrollbar { display: none; }
.subject-item { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 90px; min-height: 64px; padding: 4px 10px; scroll-snap-align: start; border-radius: 14px; font-size: 12px; white-space: nowrap; transition: color .2s, background .2s; }
.subject-item:hover, .subject-item.is-selected { color: #0b5b55; background: #fff; }
.subject-item > svg, .language-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.language-icon { position: relative; width: 25px; height: 25px; }
.language-icon b { position: absolute; inset: 2px 0 auto; text-align: center; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; }
.carousel-arrow { position: absolute; top: 50%; right: 20px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; transform: translateY(-50%); border-radius: 50%; background: #fff; z-index: 2; box-shadow: -8px 0 15px #edf7f3; }
.carousel-arrow .icon { width: 20px; height: 20px; }
.carousel-arrow--prev { right: auto; left: 5px; box-shadow: 8px 0 15px #edf7f3; }
.carousel-arrow--prev .icon { transform: rotate(180deg); }
.carousel-arrow:hover { background: #e2f1eb; }

/* Teacher cards */
.teachers-section { padding-top: 34px; padding-bottom: 70px; scroll-margin-top: 24px; }
.teachers-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.teachers-heading h2 { font-size: 19px; line-height: 1.5; font-weight: 600; }
.rating-stars { color: var(--brand); white-space: nowrap; letter-spacing: 1px; }
.teachers-heading .rating-stars { display: inline-block; margin-left: 6px; font-size: 16px; }
.saved-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: #676767; font-size: 12px; }
.saved-button .icon { width: 20px; height: 20px; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
.teacher-card { position: relative; min-width: 0; }
.teacher-card__profile { display: block; width: 100%; padding: 0; text-align: left; }
.teacher-card__photo { position: relative; height: 320px; overflow: hidden; border-radius: 30px; background: #f3efed; }
.teacher-card__photo::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, #0009); pointer-events: none; }
.teacher-card__photo > img { width: 100%; height: 100%; transition: transform .35s; }
.teacher-card__profile:hover .teacher-card__photo > img { transform: scale(1.045); }
.teacher-card__identity { position: absolute; bottom: 22px; left: 24px; right: 18px; color: #fff; z-index: 1; }
.teacher-card__identity h3 { font-size: 30px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.teacher-card__identity p { font-size: 11px; margin-top: 4px; text-shadow: 0 1px 6px #000; }
.favorite-button { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #0000000d; z-index: 2; }
.favorite-button .icon { filter: drop-shadow(0 1px 2px #0008); stroke-width: 2; }
.favorite-button:hover { background: #0003; }
.favorite-button[aria-pressed=true] .icon { fill: var(--brand); color: #fff; }
.teacher-card__details { padding: 14px 2px 0; }
.teacher-card__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; }
.teacher-card__rating .icon { width: 15px; height: 15px; flex-basis: 15px; fill: var(--ink); stroke-width: 0; }
.teacher-card__rating strong { font-weight: 600; }
.teacher-card__rating .reviews-count { color: #565656; }
.teacher-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 7px; margin-left: 3px; background: #f6f6f6; border-radius: 5px; font-size: 10px; font-weight: 500; }
.teacher-card__description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0 10px; min-height: 63px; font-size: 12px; line-height: 1.75; }
.teacher-card__description strong { font-weight: 600; }
.teacher-card__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 17px; font-weight: 600; }
.teacher-card__price span { color: #0b5b55; font-size: 11px; font-weight: 500; }
.section-action { display: flex; justify-content: center; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 12px 28px; border-radius: 32px; font-weight: 600; font-size: 13px; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 18px; height: 18px; flex-basis: 18px; }
.button--outline { border: 1px solid #dadada; background: #fff; }
.button--outline:hover { background: #f6f6f6; }
.button--coral, .button--brand { background: var(--brand); color: #fff; }
.button--coral:hover, .button--brand:hover { background: var(--brand-hover); }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 16px; border-radius: 15px; background: #f7faf8; }
.results-toolbar p { font-size: 12px; }
.results-toolbar > div { display: flex; align-items: center; gap: 16px; }
.results-toolbar button { min-height: 44px; color: #0b5b55; font-size: 12px; text-decoration: underline; }
.results-toolbar select { max-width: 100%; min-height: 44px; padding: 8px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font-size: 12px; }
.empty-state { padding: 60px 24px; text-align: center; background: #f8faf9; border-radius: 24px; }
.empty-state > .icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 14px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); margin: 12px 0 24px; }
.no-script { padding: 30px; background: var(--brand-soft); border-radius: 20px; }

/* Reviews, discovery links and editorial cards */
.reviews-section { overflow: hidden; padding: 62px 0; background: #f0f7f3; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-eyebrow { display: block; margin-bottom: 8px; font-size: 12px; color: #386b5c; font-weight: 500; }
.section-heading h2, .cities-section > h2, .guides-section > h2 { font-size: 34px; letter-spacing: -.8px; font-weight: 700; line-height: 1.35; }
.section-heading p { margin-top: 10px; font-size: 13px; color: #666; }
.carousel-controls { display: flex; gap: 10px; }
.round-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; background: #fff; border: 1px solid #eee; border-radius: 50%; }
.round-button .icon { width: 18px; height: 18px; }
.round-button:hover { border-color: var(--brand); }
.review-track { display: flex; gap: 20px; overflow: auto; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.review-track::-webkit-scrollbar { display: none; }
.review-card { display: flex; flex: 0 0 calc((100% - 40px) / 3); flex-direction: column; min-width: 0; min-height: 310px; padding: 26px; background: #fff; border-radius: 22px; scroll-snap-align: start; }
.review-person { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.review-person img { border-radius: 50%; width: 48px; height: 48px; flex-shrink: 0; }
.review-person h3 { font-size: 16px; font-weight: 600; }
.review-person span { font-size: 10px; color: var(--muted); }
.review-card > .rating-stars { font-size: 17px; }
.review-card > p { margin: 12px 0 20px; color: #535353; font-size: 12px; line-height: 1.9; }
.review-card > strong { font-size: 12px; margin-top: auto; font-weight: 600; }
.cities-section { padding-top: 68px; padding-bottom: 68px; }
.city-tabs { display: flex; gap: 26px; margin: 28px 0 28px; border-bottom: 1px solid var(--line); }
.city-tabs button { position: relative; min-height: 50px; padding: 0 0 14px; color: #777; font-size: 13px; }
.city-tabs button[aria-selected=true] { color: var(--ink); font-weight: 600; }
.city-tabs button[aria-selected=true]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--brand); content: ''; }
.city-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.city-group h3 { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.city-group > button { display: block; min-height: 32px; padding: 4px 0; font-size: 11px; text-align: left; color: #707070; }
.city-group > button:hover { color: #0b5b55; text-decoration: underline; }
.guides-section { padding-bottom: 70px; }
.guides-section > h2 { margin-bottom: 28px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-card { display: block; padding: 0; text-align: left; background: #fff; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; transition: box-shadow .2s; }
.guide-card:hover { box-shadow: 0 10px 28px #1414140d; }
.guide-card > img { width: 100%; height: 225px; }
.guide-card > div { padding: 24px; }
.guide-card > div > span { color: #386b5c; font-size: 10px; letter-spacing: .8px; font-weight: 600; }
.guide-card h3 { margin: 10px 0; font-size: 19px; font-weight: 600; line-height: 1.5; }
.guide-card p { font-size: 12px; color: var(--muted); }
.guide-card small { display: flex; justify-content: space-between; margin-top: 20px; font-size: 11px; color: #777; }
.guide-card small span { color: var(--ink); font-size: 20px; }
.last-search { padding: 54px 24px; text-align: center; background: #e2f1eb; }
.last-search h2 { margin-bottom: 24px; font-size: 30px; font-weight: 700; letter-spacing: -.5px; }

/* Footer and modal interactions */
.site-footer { padding: 52px 0 0; background: #fafafa; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding-bottom: 40px; }
.footer-grid h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.footer-grid a, .footer-grid button { display: block; min-height: 34px; padding: 6px 0; font-size: 11px; color: #717171; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .footer-app-heading { margin-top: 22px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; padding-bottom: 26px; border-top: 1px solid var(--line); color: #777; font-size: 10px; }
.footer-bottom > div { display: flex; align-items: center; gap: 20px; }
.footer-bottom .logo { font-size: 20px; }
.demo-note { text-align: right; }
.app-dialog { width: min(480px, calc(100% - 32px)); max-height: min(90dvh, 820px); margin: auto; padding: 40px 32px 32px; overflow-y: auto; border: none; border-radius: 28px; box-shadow: 0 24px 100px #0003; }
.app-dialog::backdrop { background: #102b2573; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.dialog-close .icon { width: 20px; height: 20px; }
.app-dialog .logo { display: inline-block; margin-bottom: 24px; }
.app-dialog h2 { padding-right: 12px; font-size: 25px; letter-spacing: -.7px; line-height: 1.35; }
.dialog-intro { margin: 12px 0 22px; color: var(--muted); font-size: 13px; }
.local-notice { padding: 12px 14px; background: #edf7f3; border-radius: 12px; font-size: 11px; color: #386b5c; }
.dialog-form { display: grid; gap: 15px; margin-top: 22px; }
.dialog-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; }
.dialog-form input, .dialog-form select, .dialog-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; }
.dialog-form textarea { min-height: 105px; resize: vertical; }
.dialog-form .button { width: 100%; }
.dialog-form input:focus, .dialog-form select:focus, .dialog-form textarea:focus { border-color: var(--brand); }
.dialog-switch { margin-top: 20px; text-align: center; font-size: 12px; }
.dialog-switch button { color: #0b5b55; text-decoration: underline; padding: 8px 5px; }
.help-steps { display: grid; gap: 22px; margin-top: 26px; counter-reset: step; }
.help-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.help-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; color: #0b5b55; background: var(--brand-soft); border-radius: 50%; }
.help-steps h3 { font-size: 14px; font-weight: 600; }
.help-steps p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.help-cta { margin-top: 24px; width: 100%; }
.profile-modal-image { width: 100%; height: 260px; margin: 0 0 22px; border-radius: 18px; }
.profile-modal-rating { margin: 14px 0; font-size: 12px; }
.profile-modal-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-modal-price strong { font-size: 24px; }
.profile-modal-price span { font-size: 11px; color: #0b5b55; }
.saved-list { display: grid; gap: 12px; margin-top: 24px; }
.saved-list button { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.saved-list img { width: 60px; height: 65px; border-radius: 10px; }
.saved-list strong, .saved-list small { display: block; }
.saved-list small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; width: max-content; max-width: calc(100% - 32px); padding: 14px 22px; transform: translateX(-50%); border-radius: 16px; background: #242424; color: #fff; font-size: 12px; box-shadow: 0 8px 24px #0002; text-align: center; }

@media (min-width: 1600px) {
  .hero h1 { font-size: 58px; }
}
@media (max-width: 1050px) {
  .hero h1 { font-size: 54px; }
  .teacher-card__photo { height: auto; aspect-ratio: 1; }
  .teacher-badge { margin-left: 0; }
  .teacher-card__identity { left: 20px; bottom: 18px; }
  .review-card { padding: 22px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 18px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { height: 74px; padding: 0 20px; }
  .logo { font-size: 25px; }
  .desktop-nav { display: none; }
  .mobile-nav-actions { display: flex; align-items: center; gap: 2px; }
  .mobile-nav-actions .icon { width: 21px; height: 21px; flex-basis: 21px; }
  .mobile-menu { position: absolute; display: grid; left: 16px; right: 16px; top: 66px; padding: 12px; background: #fff; box-shadow: 0 14px 36px #173e331a; border: 1px solid var(--line); border-radius: 20px; }
  .mobile-menu button { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 10px 14px; border-radius: 12px; font-size: 13px; text-align: left; }
  .mobile-menu button:hover { background: var(--brand-soft); }
  .hero { padding: 18px 20px 28px; border-radius: 0 0 30px 30px; }
  .hero h1 { font-size: clamp(31px, 7.5vw, 48px); line-height: 1.35; letter-spacing: -.75px; }
  .search-form { min-height: 64px; margin-top: 34px; padding: 5px; box-shadow: 0 0 0 6px #ffffff59; }
  .field { gap: 10px; padding: 0 12px; }
  .field input { height: 50px; font-size: 16px; }
  .search-submit { width: 52px; min-width: 52px; min-height: 52px; padding: 0; display: grid; place-items: center; }
  .search-submit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .search-submit > .icon { display: block; width: 21px; height: 21px; }
  .search-form.is-expanded { display: grid; grid-template-columns: minmax(0, 1fr) 52px; border-radius: 25px; }
  .search-form.is-expanded .subject-field { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin: 0 8px 5px; padding: 0 4px; }
  .location-field { border: 0; }
  .suggestions, .location-options { top: calc(100% + 12px); left: -6px; width: calc(100% + 12px); min-width: 240px; max-width: calc(100vw - 40px); }
  .suggestions { z-index: 2; }
  .subject-carousel { margin-top: 28px; padding: 10px 0 10px 4px; border-radius: 24px; }
  .subject-track { padding-right: 32px; gap: 2px; }
  .subject-item { min-width: 86px; min-height: 64px; padding: 4px 12px; font-size: 10px; }
  .subject-item > svg, .language-icon, .language-icon svg { width: 25px; height: 25px; }
  .carousel-arrow { width: 32px; height: 40px; right: -5px; border-radius: 20px 0 0 20px; background: #f0f7f3; box-shadow: -12px 0 20px #f0f7f3; }
  .carousel-arrow .icon { width: 16px; height: 16px; }
  .carousel-arrow--prev { left: -5px; right: auto; border-radius: 0 20px 20px 0; box-shadow: 12px 0 20px #f0f7f3; }
  .teachers-section { padding-top: 28px; padding-bottom: 44px; }
  .teachers-heading { align-items: flex-start; margin-bottom: 18px; }
  .teachers-heading h2 { max-width: 440px; font-size: 17px; line-height: 1.55; }
  .teachers-heading .rating-stars { font-size: 14px; }
  .saved-button { margin-top: -3px; padding-right: 0; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .teacher-card__photo { border-radius: 22px; }
  .teacher-card__identity h3 { font-size: 26px; }
  .teacher-card__identity p { font-size: 10px; }
  .teacher-card__identity { left: 16px; bottom: 18px; }
  .teacher-card__rating { font-size: 11px; }
  .teacher-card__description { font-size: 12px; }
  .favorite-button { top: 8px; right: 8px; }
  .section-action { margin-top: 28px; }
  .reviews-section { padding: 42px 0; }
  .section-heading { gap: 14px; margin-bottom: 24px; }
  .section-heading h2, .cities-section > h2, .guides-section > h2 { font-size: 28px; letter-spacing: -.65px; }
  .section-heading p { font-size: 12px; max-width: 340px; }
  .section-eyebrow { font-size: 10px; }
  .carousel-controls { gap: 7px; }
  .round-button { width: 36px; height: 36px; }
  .review-card { flex-basis: 80%; max-width: 350px; min-height: 290px; }
  .review-track { margin-right: -20px; padding-right: 20px; }
  .cities-section { padding-top: 44px; padding-bottom: 44px; }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .city-group h3 { font-size: 14px; }
  .city-tabs { gap: 22px; margin-top: 20px; }
  .city-tabs button { font-size: 12px; text-align: left; }
  .guides-section { padding-bottom: 44px; }
  .guide-grid { gap: 18px; }
  .guide-card { border-radius: 20px; }
  .guide-card > img { height: 170px; }
  .guide-card > div { padding: 18px; }
  .guide-card h3 { font-size: 17px; }
  .last-search { padding: 40px 20px; }
  .last-search h2 { font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { padding-top: 36px; }
  .footer-grid a, .footer-grid button { min-height: 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-bottom > div { flex-wrap: wrap; gap: 14px; }
  .demo-note { text-align: left; }
}
@media (max-width: 480px) {
  .site-header { height: 68px; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: clamp(29px, 8.3vw, 38px); }
  .search-form { margin-top: 30px; }
  .subject-carousel { margin-top: 26px; }
  .teachers-heading h2 { font-size: 16px; max-width: 280px; }
  .teachers-heading .rating-stars { display: block; margin: 3px 0 0; font-size: 14px; }
  .teacher-grid { grid-template-columns: 1fr; gap: 28px; }
  .teacher-card__photo { aspect-ratio: 1.14; border-radius: 26px; }
  .teacher-card__identity { left: 22px; bottom: 22px; }
  .teacher-card__identity h3 { font-size: 31px; }
  .teacher-card__identity p { font-size: 11px; }
  .teacher-card__details { padding: 14px 2px 0; }
  .teacher-card__rating { font-size: 12px; }
  .teacher-card__description { -webkit-line-clamp: 2; min-height: 42px; margin: 9px 0; }
  .teacher-badge { margin-left: 4px; }
  .teacher-card__price { font-size: 18px; }
  .favorite-button { top: 12px; right: 12px; }
  .results-toolbar, .results-toolbar > div { align-items: stretch; flex-direction: column; gap: 8px; }
  .results-toolbar button { text-align: left; }
  .section-heading { align-items: flex-start; }
  .carousel-controls { display: none; }
  .review-card { flex-basis: 89%; }
  .review-track { gap: 14px; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .guide-card > img { height: auto; aspect-ratio: 1.9; }
  .guide-card > div { padding: 22px; }
  .app-dialog { padding: 46px 24px 24px; width: calc(100% - 24px); border-radius: 24px; }
  .app-dialog h2 { font-size: 24px; }
  .profile-modal-image { height: 225px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
