:root {
  --green: #5bd065;
  --green-dark: #163a25;
  --green-mid: #2e9b45;
  --ink: #13291b;
  --paper: #f4f5f6;
  --muted: #667085;
  --line: #dfe5e1;
  --white: #ffffff;
  --black: #171717;
  --max: 1220px;
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

#team,
#services,
#documents,
#contact {
  scroll-margin-top: 130px;
}

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

button,
summary {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 6px 18px rgba(19, 41, 27, 0.08);
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 8px 18px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 400px;
  height: 150px;
  object-fit: contain;
  object-position: left center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-weight: 800;
}

.nav__links a:hover,
.lang-toggle:hover {
  color: var(--green-mid);
}

.lang-toggle {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  padding: 8px 0;
}

.lang-toggle.active {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-menu {
  position: relative;
}

.language-menu__button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 42px;
  padding: 9px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.language-menu__button::after {
  content: "▾";
  margin-left: 8px;
  color: var(--green-mid);
}

.language-menu__options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(19, 41, 27, 0.16);
}

.language-menu:hover .language-menu__options,
.language-menu:focus-within .language-menu__options {
  display: grid;
}

.language-menu__options .lang-toggle {
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}

.language-menu__options .lang-toggle:hover,
.language-menu__options .lang-toggle.active {
  background: rgba(91, 208, 101, 0.14);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(22, 58, 37, 0.93), rgba(22, 58, 37, 0.72), rgba(22, 58, 37, 0.3)),
    url("/assets/images/backgrounds/FONDO.avif");
  background-size: cover;
  background-position: center;
}

.hero__content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 54px;
  align-items: center;
  padding: 76px 0;
}

.hero__copy {
  color: #fff;
}

.hero__copy > p:first-child,
.hero__panel p {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.hero__copy h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero__copy > p:not(:first-child) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.confidence > a,
.timeline > a,
.service-detail a {
  border-radius: 10px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-action,
.confidence > a,
.timeline > a,
.service-detail a {
  background: var(--green);
  color: #102316;
}

.secondary-action {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.hero__panel {
  border-radius: 12px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 6px solid var(--green);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.hero__panel h2 {
  margin: 0 0 18px;
  font-size: 2.2rem;
  line-height: 1.05;
}

.hero__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__panel li {
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  position: relative;
}

.hero__panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--green);
}

.team-section {
  padding: 108px 24px;
  background: var(--black);
  color: #fff;
}

.section-intro {
  width: min(860px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-intro h2 em {
  color: var(--green);
}

.section-intro p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
}

.section-intro:not(.section-intro--dark) p {
  color: var(--muted);
}

.team-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-photo {
  width: 100%;
  /* Cambia este height para agrandar o achicar las fotos del equipo. */
  height: 460px;
  object-fit: cover;
  object-position: center top;
}

.team-card h3 {
  margin: 0 0 4px;
  color: var(--green);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
}

.team-role {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
}

.team-card p {
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.person-contact {
  margin-top: 14px;
}

.person-contact summary {
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  padding: 9px 15px;
  background: var(--green);
  color: #102316;
  font-weight: 900;
  text-transform: uppercase;
  list-style: none;
}

.person-contact summary::-webkit-details-marker {
  display: none;
}

.person-contact a {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.started-band,
.step-heading {
  display: grid;
  place-items: center;
  padding: 34px 20px;
  background: var(--green);
  text-align: center;
}

.started-band h2,
.step-heading h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: #111;
}

.step-heading p {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

.services {
  padding: 68px 24px 90px;
}

.services .section-intro h2 {
  color: var(--ink);
}

.service-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  align-items: start;
}

.service-list details {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(19, 41, 27, 0.08);
}

.service-list summary {
  cursor: pointer;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 26px 22px;
  list-style: none;
}

.service-list summary::-webkit-details-marker {
  display: none;
}

.service-list summary span {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
}

.service-list summary small {
  color: var(--green-mid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-list summary b {
  width: 100%;
  margin-top: auto;
  padding: 14px 12px;
  background: var(--green);
  color: #102316;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card--dark {
  background: #171717 !important;
  border-color: #171717 !important;
}

.service-card--dark summary span,
.service-card--dark .service-detail p,
.service-card--dark .service-detail li {
  color: #fff;
}

.service-card--dark summary small {
  color: var(--green);
}

.service-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.service-detail {
  padding: 0 22px 24px;
}

.service-detail p {
  max-width: none;
  margin: 0 0 18px;
  color: #3f4754;
  font-size: 0.94rem;
}

.service-detail ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.service-detail li {
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(102, 112, 133, 0.18);
  font-size: 0.92rem;
}

.service-detail li::before {
  content: "✓ ";
  color: var(--green-mid);
  font-weight: 900;
}

.residency-services {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.residency-service {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(19, 41, 27, 0.08);
}

.residency-service summary {
  border-radius: 14px;
  cursor: pointer;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 38px;
  list-style: none;
  overflow: hidden;
}

.residency-service summary::-webkit-details-marker {
  display: none;
}

.residency-service summary span {
  min-width: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
}

.residency-service summary b {
  border-radius: 10px;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 16px 24px;
  background: var(--green);
  color: #102316;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.residency-service[open] summary {
  border-bottom: 1px solid var(--line);
}

.residency-service[open] {
  grid-column: 1 / -1;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 28px;
  background: #f7f8f9;
}

.package-card {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(19, 41, 27, 0.06);
}

.package-card--vip,
.package-card--dark {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

.package-card > span {
  color: var(--green-mid);
  font-weight: 900;
  text-transform: uppercase;
}

.package-card--vip > span,
.package-card--dark > span {
  color: var(--green);
}

.package-card h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.08;
}

.package-card p {
  margin: 0;
  color: var(--muted);
}

.package-note {
  font-weight: 900;
  color: var(--ink) !important;
}

.package-card--vip p,
.package-card--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.package-card--vip .package-note,
.package-card--dark .package-note {
  color: var(--green) !important;
}

.package-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  padding: 11px 0;
  border-top: 1px solid rgba(102, 112, 133, 0.18);
}

.package-card li::before {
  content: "- ";
  color: var(--green-mid);
  font-weight: 900;
}

.package-times {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(102, 112, 133, 0.18);
}

.package-times > small {
  display: block;
  color: var(--green-mid);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.package-times > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.package-times span {
  border-radius: 10px;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px;
  background: rgba(91, 208, 101, 0.1);
  border: 1px solid rgba(91, 208, 101, 0.45);
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.package-times strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.package-times em {
  display: block;
  color: var(--green-mid);
  font-style: normal;
  font-weight: 800;
}

.package-times span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.package-card--vip .package-times span,
.package-card--dark .package-times span {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.package-card--vip .package-times small,
.package-card--dark .package-times small {
  color: var(--green);
}

.package-card--vip .package-times em,
.package-card--dark .package-times em {
  color: var(--green);
}

.package-card--vip .package-times span small,
.package-card--dark .package-times span small {
  color: rgba(255, 255, 255, 0.72);
}

.package-card a {
  border-radius: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--green);
  color: #102316;
  font-weight: 900;
  text-transform: uppercase;
}

.team-contact-info {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
}

.team-contact-info a {
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

a.person-contact {
  border-radius: 9px;
  display: inline-flex;
  width: max-content;
  padding: 9px 15px;
  background: var(--green);
  color: #102316;
  font-weight: 900;
  text-transform: uppercase;
}

.confidence {
  padding: 96px 24px;
  text-align: center;
  background: #f7f8f9;
}

.confidence h2 {
  max-width: 940px;
  margin: 0 auto 46px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.confidence-grid {
  width: min(1080px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.confidence-grid div {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.confidence-grid strong {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

.confidence-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.documents {
  background: #f7f8f9;
  padding-bottom: 86px;
}

.accordion {
  width: min(920px, calc(100% - 40px));
  margin: 76px auto 0;
}

.accordion details {
  border-bottom: 2px solid #fff;
}

.accordion summary {
  cursor: pointer;
  padding: 28px 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "▶";
  margin-right: 12px;
  color: var(--green-mid);
  font-size: 0.8em;
}

.accordion details[open] summary::before {
  content: "▼";
}

.accordion div {
  max-width: 780px;
  padding: 0 0 28px 34px;
  color: #111;
}

.accordion li {
  margin: 8px 0;
}

.timeline {
  padding-bottom: 0;
  text-align: center;
  background: #f7f8f9;
}

.timeline-graphic {
  width: min(900px, calc(100% - 40px));
  margin: 80px auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
}

.circle span {
  display: block;
  width: 145px;
  margin-top: -64px;
  font-size: 1rem;
  line-height: 1.2;
}

.circle--alt {
  background: #1986cf;
}

.line {
  width: 300px;
  min-height: 98px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, rgba(91, 208, 101, 0.22), var(--green), rgba(91, 208, 101, 0.22));
}

.contact {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  background: var(--black);
}

.contact-panel {
  padding: 72px max(24px, calc((100vw - var(--max)) / 2)) 72px 24px;
  color: #fff;
}

.contact-panel h2 {
  margin: 0;
  color: var(--green);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 3rem;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-panel li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-panel a,
.footer a {
  color: var(--green);
}

.map-box iframe {
  display: block;
  width: 100%;
  min-height: 480px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: var(--black);
  border-top: 12px solid var(--green);
}

.footer strong {
  color: var(--green);
}

.footer p {
  margin: 5px 0;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  cursor: pointer;
  border-radius: 0;
  width: 65px;
  height: 65px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: #102316 !important;
  font-weight: 900;
  padding: 0;
  box-shadow: none;
}

button.social-icon {
  border: 0;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.social-icon--line {
  width: 60px;
  height: 60px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.social-icon--line:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

.social-icon--line svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 12px rgba(91, 208, 101, 0.18));
}

.social-icon--line svg path,
.social-icon--line svg rect,
.social-icon--line svg circle {
  vector-effect: non-scaling-stroke;
}

.contact-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
}

.contact-choice-modal.is-open {
  display: grid;
}

.contact-choice-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.contact-choice-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 32px;
  background: #171717;
  color: #fff;
  border: 1px solid rgba(91, 208, 101, 0.36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.contact-choice-modal__close {
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(91, 208, 101, 0.42);
  background: transparent;
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
}

.contact-choice-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-choice-modal h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.contact-choice-modal__text {
  margin: 12px 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-choice-modal__options {
  display: grid;
  gap: 12px;
}

.contact-choice-card {
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(91, 208, 101, 0.08);
  border: 1px solid rgba(91, 208, 101, 0.34);
}

.contact-choice-card strong {
  color: #fff;
}

.contact-choice-card span {
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .hero__content,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 620px;
  }

  .team-grid,
  .confidence-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    align-items: start;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .residency-services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  #team,
  #services,
  #documents,
  #contact {
    scroll-margin-top: 88px;
  }

  .topbar {
    display: none;
  }

  .nav {
    min-height: 82px;
  }

  .brand img {
    width: 204px;
    height: 66px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(19, 41, 27, 0.18);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a,
  .lang-toggle,
  .language-menu__button {
    padding: 13px;
    text-align: left;
  }

  .language-menu__button {
    width: 100%;
    border: 0;
    background: transparent;
  }

  .language-menu__options {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    background: transparent;
  }

  .hero__copy h1 {
    font-size: 2.75rem;
  }

  .hero__actions,
  .timeline-graphic,
  .footer {
    flex-direction: column;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list summary {
    min-height: 210px;
  }

  .service-list summary span {
    font-size: 1.45rem;
  }

  .residency-service summary {
    min-height: 116px;
    align-items: stretch;
    flex-direction: column;
    padding: 26px 22px;
  }

  .residency-service summary span {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .residency-service summary b {
    width: 100%;
    text-align: center;
  }

  .package-grid {
    padding: 18px;
  }

  .package-card {
    padding: 22px;
  }

  .package-times {
    grid-template-columns: 1fr;
  }

  .team-section {
    padding: 70px 16px;
  }

  .team-grid {
    gap: 20px;
  }

  .team-card {
    padding: 16px;
  }

  .team-photo {
    width: 100%;
    height: clamp(260px, 82vw, 390px);
    object-position: center top;
  }

  .team-card p {
    font-size: 0.9rem;
  }

  .line {
    width: 96px;
    min-height: 150px;
  }
}

@media (max-width: 1180px) and (min-width: 781px) {
  .residency-service summary {
    padding: 30px 26px;
  }

  .residency-service summary span {
    font-size: clamp(1.55rem, 3vw, 2.6rem);
  }

  .residency-service summary b {
    padding: 14px 18px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 170px;
    height: 56px;
  }

  .hero {
    min-height: 580px;
  }

  .hero__content {
    padding: 52px 0;
  }

  .hero__copy h1 {
    font-size: 2.35rem;
  }

  .team-photo {
    height: clamp(240px, 78vw, 330px);
  }
}
