:root {
  --font-sans: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --bg-main: #f3f5f7;
  --accent: #57c1df;
  --accent-dark: #43b2d3;
  --text-dark: #111111;
  --text-muted: #5f6268;
  --strip: #070a16;
  --line-soft: #d7e9f0;
  --container: 1280px;
  --radius-pill: 18px;
  --shadow-soft: 0 10px 24px rgba(8, 17, 33, 0.08);
  --header-height: 156px;
  --hero-accent-line-height: 3px;
  --footer-height: max(120px, 15vh);
  --cube-photo-position: 50% 50%;
  --cube-photo-overlay-opacity: 0.16;
  --dots-pattern: radial-gradient(circle, rgba(87, 193, 223, 0.34) 1px, transparent 1.45px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-dark);
}

main {
  flex: 1 0 auto;
  animation: pageFadeIn 0.45s ease both;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

:focus-visible {
  outline: 3px solid rgba(87, 193, 223, 0.5);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
}

.top-strip {
  height: 54px;
  background: var(--strip);
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: var(--header-height);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand picture {
  display: block;
}

.brand img {
  width: clamp(168px, 20vw, 250px);
  height: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 38px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.primary-nav a {
  font-weight: 300;
  font-size: 1.18rem;
  color: #4f5359;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--accent-dark);
}

.kids-nav-link {
  display: inline-flex;
  align-items: center;
}

.kids-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kids-wordmark span:nth-child(1) {
  color: #29aeca;
}

.kids-wordmark span:nth-child(2) {
  color: #8dc63f;
}

.kids-wordmark span:nth-child(3) {
  color: #e3228a;
}

.kids-wordmark span:nth-child(4) {
  color: #f3c718;
}

.phone-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.phone-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.whatsapp-float {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 35;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(18, 38, 27, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #1fbe5d;
  box-shadow: 0 22px 42px rgba(18, 38, 27, 0.28);
}

.whatsapp-float .icon {
  width: 1.95rem;
  height: 1.95rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: rgba(87, 193, 223, 0.14);
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #1c232f;
  margin: 0 auto;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #FEFEFE;
  min-height: calc(100svh - var(--header-height) - var(--hero-accent-line-height));
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0%;
  background: url("Media/hero-dots.png") no-repeat left center / auto 100%;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-main) 32%, rgba(243, 245, 247, 0.68) 57%, rgba(243, 245, 247, 0.34) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--header-height) - var(--hero-accent-line-height));
  height: calc(100svh - var(--header-height) - var(--hero-accent-line-height));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  padding: 56px 0 0;
}

.hero-content {
  max-width: 700px;
  padding-bottom: 92px;
}

.hero-content h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3.6vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.hero-content h1 span {
  color: var(--accent-dark);
}

.hero-content p {
  margin: 0;
  font-size: clamp(1rem, 1vw, 1.95rem);
  line-height: 1.56;
  color: var(--text-muted);
  max-width: 660px;
  font-weight: 300;
  font-style: normal;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 54px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 400;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.2), 0 10px 24px rgba(8, 17, 33, 0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.26), 0 12px 28px rgba(8, 17, 33, 0.12);
}

.contact-btn .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
}

.reviews {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.fb-badge {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #166fe5;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.fb-badge .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.reviews-source {
  margin: 0 0 2px;
  font-size: 0.82rem;
  color: #1d232f;
  font-weight: 500;
}

.reviews-rating {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
}

.reviews-rating strong {
  color: #eb8000;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

.stars {
  display: inline-block;
  color: #eb8000;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.reviews-meta {
  margin: 0;
  font-size: 0.5rem;
  color: #c8c8c8;
}

#reviews-meta {
  color: #a3a3a3;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  left: -15px;
}

.hero-person {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: clamp(380px, 47vw, 860px);
  height: auto;
  z-index: 3;
}

.square-grid {
  position: absolute;
  display: grid;
  gap: 16px;
  z-index: 2;
}

.square-grid span {
  position: relative;
  overflow: hidden;
  width: clamp(50px, 5.4vw, 96px);
  aspect-ratio: 1 / 1;
  background: var(--accent);
  opacity: 1;
}

.square-grid span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 62%);
  opacity: 0.8;
}

.square-grid-main {
  grid-template-columns: repeat(4, 1fr);
  top: 18px;
  left: 34px;
}

.square-grid-side {
  grid-template-columns: repeat(2, 1fr);
  right: -6px;
  bottom: 166px;
}

.square-grid-side-2 {
  grid-template-columns: repeat(2, 1fr);
  right: 182px;
  bottom: 166px;
}

.square-grid-side-3 {
  grid-template-columns: repeat(2, 1fr);
  right: -6px;
  bottom: 80px;
}

.hero-accent-line {
  height: var(--hero-accent-line-height);
  background: var(--accent);
}

.anchor-target {
  min-height: 1px;
}

.site-footer {
  position: relative;
  margin-top: auto;
  z-index: 15;
  min-height: var(--footer-height);
  background: #ffffff;
  border-top: 1px solid rgba(87, 193, 223, 0.18);
  box-shadow: 0 -18px 36px rgba(8, 17, 33, 0.12);
  flex-shrink: 0;
}

.footer-inner {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.footer-brand,
.footer-links,
.footer-actions {
  display: flex;
  align-items: center;
}

.footer-brand picture {
  display: block;
}

.footer-brand img {
  width: clamp(88px, 7vw, 118px);
  height: auto;
}

.footer-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: #45505d;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(87, 193, 223, 0.12);
  color: #1c3642;
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-pill-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.footer-pill-whatsapp .icon {
  font-size: 1.15rem;
}

.specialties-section {
  position: relative;
  overflow: hidden;
}

.specialties-panel::before,
.location-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dots-pattern);
  background-size: 18px 18px;
  background-position: 0 0;
  opacity: 1;
  pointer-events: none;
}

.specialties-panel {
  position: relative;
  background: linear-gradient(180deg, #4da6cb 0%, #469ec5 100%);
}

.specialties-inner {
  position: relative;
  z-index: 1;
  padding: 70px 0 88px;
}

.specialties-inner h2 {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: clamp(1.7rem, 2.4vw, 2.75rem);
  text-transform: uppercase;
}

.specialties-grid {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px 20px;
}

.specialty-card {
  flex: 0 1 205px;
  width: 100%;
  text-align: center;
}

.specialty-trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.specialty-icon {
  width: clamp(118px, 10vw, 164px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 35% 25%, rgba(166, 223, 245, 0.95), rgba(93, 182, 217, 0.9));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.specialty-icon .icon {
  width: clamp(2rem, 2.8vw, 3.1rem);
  height: clamp(2rem, 2.8vw, 3.1rem);
  color: #f4fbff;
}

.specialty-trigger-copy {
  display: grid;
  justify-items: center;
}

.specialty-trigger-title {
  max-width: 180px;
  color: #f8fdff;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specialty-trigger:hover .specialty-icon,
.specialty-trigger:focus-visible .specialty-icon {
  transform: translateY(-3px) scale(1.03);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.24), 0 14px 24px rgba(12, 37, 51, 0.14);
}

.specialty-trigger:hover .specialty-trigger-title,
.specialty-trigger:focus-visible .specialty-trigger-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.specialty-trigger:focus-visible {
  outline: none;
}

.specialty-icon,
.specialty-trigger-title {
  transition: transform 0.2s ease, box-shadow 0.2s ease, text-decoration-color 0.2s ease;
}

body.service-overlay-open {
  overflow: hidden;
}

.service-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.service-overlay[hidden] {
  display: none !important;
}

.service-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 33, 0.54);
}

.service-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(calc(100dvh - 48px), 720px);
  border-radius: 30px;
  border: 1px solid rgba(87, 193, 223, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 60px rgba(8, 17, 33, 0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.service-overlay.is-open .service-overlay-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 246, 250, 0.96);
  color: #245d77;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12, 37, 51, 0.12);
}

.service-overlay-close:hover,
.service-overlay-close:focus-visible {
  background: #ffffff;
}

.service-overlay-close:focus-visible {
  outline: 2px solid rgba(87, 193, 223, 0.75);
  outline-offset: 2px;
}

.service-overlay-scroll {
  max-height: inherit;
  overflow-y: auto;
  padding: 34px 30px 30px;
}

.service-overlay-copy {
  display: grid;
  gap: 18px;
}

.service-overlay-eyebrow {
  margin-bottom: -6px;
}

.service-overlay-title {
  margin: 0;
  color: #13202d;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 15ch;
}

.service-overlay-description {
  margin: 0;
  color: #445261;
  font-size: 1rem;
  line-height: 1.64;
  max-width: 56ch;
}

.service-overlay-meta {
  border-radius: 22px;
  border: 1px solid rgba(87, 193, 223, 0.18);
  background: rgba(240, 248, 251, 0.82);
  padding: 18px 18px 18px 20px;
}

.service-overlay-list-title {
  margin: 0 0 12px;
  color: #227fa2;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.service-overlay-list {
  margin: 0;
  padding-left: 18px;
  color: #233140;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.location-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0 108px;
  background: #f7fafc;
}

.location-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 34px;
  align-items: center;
}

#location-title {
  grid-column: 1 / -1;
  margin: 0;
  margin-bottom: -34px;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.location-copy {
  justify-items: left;
}

.branch-card {
  margin-top: 24px;
  padding: 26px 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(87, 193, 223, 0.16);
  box-shadow: 0 16px 34px rgba(8, 17, 33, 0.06);
}

.branch-details {
  display: grid;
  gap: 0;
}

.branch-detail {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(215, 233, 240, 0.9);
}

.branch-detail:last-child {
  border-bottom: 0;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 193, 223, 0.12);
  color: var(--accent-dark);
}

.detail-icon .icon {
  width: 1.08rem;
  height: 1.08rem;
}

.branch-detail p {
  margin: 0 0 5px;
  color: #6f7e8f;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.branch-detail strong {
  display: block;
  color: #13202d;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.location-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.location-btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.location-btn-whatsapp {
  background: #25d366;
}

.location-btn-whatsapp:hover {
  background: #1eb55a;
}

.location-map-wrap {
  display: grid;
  gap: 14px;
}

.location-map-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(87, 193, 223, 0.18);
  box-shadow: 0 22px 46px rgba(8, 17, 33, 0.08);
}

.map-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 520px;
  border: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #e5eaee;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  border: 1px solid rgba(126, 140, 152, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.map-preview-copy {
  position: relative;
  z-index: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: #5f6871;
}

.map-preview-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  color: #7a848d;
}

.map-preview-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.map-preview-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.location-map-card iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-map-card[data-loaded="true"] .map-preview {
  opacity: 0;
  visibility: hidden;
}

.location-map-card[data-loaded="true"] iframe {
  opacity: 1;
}

.location-map-note {
  margin: 0;
  color: #6a7888;
  font-size: 0.94rem;
  line-height: 1.6;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  :root {
    --header-height: 124px;
  }

  .container {
    width: min(var(--container), calc(100% - 50px));
  }

  .header-inner {
    gap: 22px;
  }

  .nav-wrap {
    gap: 24px;
  }

  .primary-nav {
    gap: 24px;
  }

  .primary-nav a {
    font-size: 1rem;
  }

  .phone-btn {
    min-height: 52px;
    padding: 0 20px;
    font-size: 1.2rem;
  }

  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
    padding-top: 40px;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .hero-content p {
    max-width: 540px;
  }

  .hero-cta-row {
    margin-top: 36px;
    gap: 18px;
  }

  .hero-person {
    width: clamp(340px, 48vw, 700px);
    bottom: 0;
  }

  .square-grid-main {
    top: 14px;
    left: 6px;
    gap: 12px;
  }

  .square-grid-side {
    right: -6px;
    bottom: 118px;
    gap: 12px;
  }

  .square-grid-side-2 {
    right: 128px;
    bottom: 118px;
    gap: 12px;
  }

  .square-grid-side-3 {
    right: -6px;
    bottom: 46px;
    gap: 12px;
  }

  .specialties-inner {
    padding: 56px 0 72px;
  }

  .specialties-grid {
    justify-content: center;
    gap: 32px 18px;
    margin-top: 40px;
  }

  .specialty-card {
    flex-basis: 190px;
  }

  .location-section {
    padding: 78px 0 92px;
  }

  .location-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-copy {
    max-width: 760px;
  }

  .location-map-card,
  .location-map-card iframe,
  .map-preview {
    min-height: 440px;
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-brand,
  .footer-actions {
    align-items: center;
  }

  .footer-brand {
    text-align: center;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 84px;
    --footer-height: max(96px, 11vh);
  }

  .top-strip {
    height: 32px;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    transform: translateY(5px);
  }

  .brand img {
    width: 146px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    gap: 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 14px 22px rgba(8, 17, 33, 0.08);
    padding: 16px 20px 20px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-wrap.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .primary-nav a,
  .phone-btn {
    min-height: 44px;
  }

  .phone-btn {
    width: auto;
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #227fa2;
    font-size: 0.98rem;
    font-weight: 600;
  }

  .phone-btn:hover {
    transform: none;
    background: transparent;
  }

  .nav-wrap .phone-btn {
    display: none;
  }

  .whatsapp-float {
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: 58px;
    height: 58px;
  }

  .whatsapp-float .icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .hero {
    background-color: var(--bg-main);
  }

  .hero::before {
    left: 50%;
    bottom: -18px;
    width: min(190vw, 860px);
    background: url(Media/hero-dots.png) no-repeat center bottom / cover;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;
    opacity: 0.72;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(243, 245, 247, 0.95) 0%, rgba(243, 245, 247, 0.84) 58%, rgba(243, 245, 247, 0.58) 100%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    gap: 18px;
  }

  .hero-content {
    padding-bottom: 0;
    text-align: center;
    max-width: 35rem;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(2.05rem, 8.2vw, 2.72rem);
    margin-top: 0;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 34ch;
    margin: 0 auto;
  }

  .hero-cta-row {
    margin-top: 22px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn {
    min-height: 50px;
    font-size: 0.98rem;
    padding: 0 18px;
    justify-content: center;
  }

  .contact-btn .icon {
    width: 32px;
    height: 32px;
    padding: 8px;
  }

  .reviews {
    width: 100%;
    justify-content: center;
  }

  .fb-badge {
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
  }

  .fb-badge .icon {
    width: 1rem;
    height: 1rem;
  }

  .reviews-rating strong {
    font-size: 1.5rem;
  }

  .hero-visual {
    min-height: clamp(320px, 78vw, 392px);
    left: 0;
    margin-top: 0;
    overflow: visible;
  }

  .hero-person {
    width: min(90vw, 392px);
    right: auto;
    left: 52%;
    bottom: -6px;
    transform: translateX(-50%);
  }

  .square-grid-main {
    top: 18px;
    left: 50%;
    transform: translateX(-57%);
    gap: 12px;
    opacity: 0.42;
  }

  .square-grid-side {
    display: none;
  }

  .square-grid-side-2 {
    display: none;
  }

  .square-grid-side-3 {
    display: grid;
    left: 14px;
    right: auto;
    bottom: 44px;
    gap: 10px;
    opacity: 0.82;
  }

  .square-grid span {
    width: 40px;
    box-shadow: 0 10px 20px rgba(87, 193, 223, 0.18);
  }

  .square-grid-main span {
    width: 46px;
  }

  .square-grid-side-3 span {
    width: 34px;
  }

  .specialties-inner {
    padding: 28px 0 34px;
  }

  .specialties-inner h2 {
    font-size: 1.28rem;
    letter-spacing: 0.05em;
  }

  .specialties-grid {
    margin-top: 20px;
    justify-content: center;
    align-items: stretch;
    gap: 14px 8px;
  }

  .specialty-card {
    flex: 0 1 calc(33.333% - 8px);
    max-width: 104px;
  }

  .specialty-trigger {
    gap: 8px;
  }

  .specialty-icon {
    width: 74px;
    border-width: 2px;
  }

  .specialty-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .specialty-trigger-title {
    min-height: 2.7em;
    max-width: 100px;
    font-size: 0.7rem;
    line-height: 1.12;
    letter-spacing: 0.03em;
  }

  .service-overlay {
    padding: 0;
    align-items: end;
  }

  .service-overlay-panel {
    width: 100%;
    max-height: min(82dvh, 640px);
    border-radius: 28px 28px 0 0;
    transform: translateY(28px);
  }

  .service-overlay-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .service-overlay-scroll {
    padding: 22px 18px 20px;
  }

  .service-overlay-copy {
    gap: 16px;
    padding-top: 18px;
  }

  .service-overlay-title {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
    max-width: none;
  }

  .service-overlay-description,
  .service-overlay-list {
    font-size: 0.93rem;
  }

  .service-overlay-meta {
    border-radius: 18px;
    padding: 16px;
  }

  .location-section {
    padding: 42px 0 56px;
  }

  .location-inner {
    gap: 18px;
  }

  .location-copy {
    order: 3;
  }

  .location-map-wrap {
    order: 2;
  }

  #location-title {
    order: 1;
    grid-column: auto;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    text-align: left;
    margin-bottom: 0;
  }

  .branch-card {
    margin-top: 0;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .branch-detail {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
  }

  .detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .detail-icon .icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .branch-detail strong {
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .location-actions {
    gap: 10px;
    flex-direction: column;
    margin-top: 18px;
  }

  .location-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .location-map-card,
  .location-map-card iframe,
  .map-preview {
    min-height: 280px;
    border-radius: 22px;
  }

  .map-preview {
    min-height: 280px;
  }

  .map-preview::before {
    inset: 16px;
    border-radius: 18px;
    background-size: auto, 30px 30px, 30px 30px;
  }

  .map-preview {
    padding: 24px 18px;
  }

  .map-preview-copy {
    max-width: 220px;
    gap: 10px;
  }

  .map-preview-icon {
    width: 54px;
    height: 54px;
  }

  .map-preview-copy p {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .location-map-note {
    font-size: 0.88rem;
  }

  .site-footer {
    min-height: var(--footer-height);
  }

  .footer-inner {
    min-height: var(--footer-height);
    justify-content: center;
    gap: 8px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer-brand,
  .footer-links,
  .footer-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-links a,
  .footer-pill {
    font-size: 0.78rem;
  }

  .footer-links {
    gap: 6px 12px;
  }

  .footer-brand img {
    width: 68px;
  }

  .footer-pill {
    min-height: 34px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}
