/* Purpose-built phone layout. Desktop and tablet composition remain unchanged. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle,
.menu-link-label,
.header-email { display: none; }

.menu-toc { display: none; }
.menu-socials { display: contents; }
.menu-social-title { display: none; }

@media (max-width: 680px) {
  body { padding-bottom: 0; }
  .mobile-consult { display: none; }

  .site-header { background: rgba(13, 13, 11, .88); backdrop-filter: blur(12px); }
  .site-header-inner { min-height: 72px; gap: 12px; }
  .header-brand { min-width: 0; gap: 10px; }
  .header-brand img { width: 38px; height: 38px; }
  .header-brand .brand-name { display: grid; }
  .header-brand .brand-name strong { font-size: 20px; line-height: 1; }
  .header-brand .brand-name small { margin-top: 5px; font-size: 7px; letter-spacing: .2em; }

  .menu-toggle {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    gap: 7px;
    margin-left: auto;
    padding: 0;
    color: var(--gold-light);
    background: rgba(13, 13, 11, .48);
    border: 1px solid rgba(241, 199, 109, .72);
    border-radius: 50%;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { width: 20px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

  .header-contacts {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 14px;
    max-height: calc(100svh - 72px);
    padding: 20px 18px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0, rgba(202, 157, 63, .09), transparent 36%),
      linear-gradient(180deg, #15140f 0%, #090908 100%);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(241, 199, 109, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .site-header.is-menu-open .header-contacts { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }

  .menu-toc {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(241, 199, 109, .32);
    border-bottom: 1px solid rgba(241, 199, 109, .18);
  }
  .menu-title {
    padding: 0 0 9px;
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .menu-toc a {
    position: relative;
    min-height: 43px;
    display: flex;
    align-items: center;
    padding-right: 24px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 17px;
    line-height: 1.15;
    text-decoration: none;
  }
  .menu-toc a:last-child { border-bottom: 0; }
  .menu-toc a::after {
    content: "";
    position: absolute;
    right: 3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid rgba(241, 199, 109, .72);
    border-right: 1px solid rgba(241, 199, 109, .72);
    transform: rotate(45deg);
  }
  .menu-toc a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

  .menu-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .menu-social-title {
    width: 100%;
    display: block;
    margin-bottom: 1px;
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .menu-socials .header-icon {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--gold-light);
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(241, 199, 109, .48);
    border-radius: 50%;
  }
  .header-contact,
  .header-email {
    width: 100%;
    min-height: 46px;
    display: flex;
    justify-content: flex-start;
    gap: 13px;
    padding: 8px 12px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(241, 199, 109, .24);
    border-radius: 12px;
    font-size: 18px;
    text-decoration: none;
  }
  .header-icon .social-mark,
  .header-contact-icon { width: 32px; height: 32px; flex: 0 0 32px; }
  .header-icon .social-mark svg,
  .header-icon .social-mark img,
  .header-contact-icon svg { width: 18px; height: 18px; }
  .header-contact-label { display: inline; color: currentColor; font-size: 18px; font-weight: 400; letter-spacing: 0; }
  .menu-link-label { display: none; }
  .header-email > span:last-child { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
  .header-email .header-contact-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  .hero { height: auto; min-height: 100svh; }
  .hero-media { background-image: url("assets/hero-banner-family-mobile-v1.webp"); background-position: center top; background-size: cover; }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .04) 34%, rgba(0, 0, 0, .16) 60%, rgba(0, 0, 0, .72) 100%); }
  .hero-shade::after { display: none; }
  .hero-frame { min-height: 100svh; height: auto; padding: 96px 0 32px; justify-content: flex-end; }
  .hero-copy { width: 100%; }
  .eyebrow { max-width: 100%; margin-bottom: 12px; font-size: 10px; line-height: 1.3; letter-spacing: .1em; text-shadow: 0 2px 12px rgba(0, 0, 0, .72); }
  .hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.25rem); line-height: 1; letter-spacing: -.015em; }
  .hero h1 > span { white-space: nowrap; }
  .hero h1 > span { text-shadow: 0 3px 18px rgba(0, 0, 0, .82); }
  .hero-copy-bottom { justify-content: center; margin-top: 20px; }
  .hero-copy-bottom .action-gold { min-height: 50px; width: fit-content; max-width: 100%; justify-content: center; gap: 0; padding: 10px 16px; font-size: 16px; white-space: nowrap; }

  .proof { padding: 24px 0; }
  .proof::after {
    content: "";
    position: absolute;
    right: 6%;
    bottom: 0;
    left: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 217, 142, .4), rgba(255, 255, 255, .08), transparent);
  }
  .proof-strip { align-items: flex-start; overflow-y: hidden; }
  .proof-item { min-height: 210px; place-content: start center; padding-top: 0; }
  .proof-icon--image { flex: 0 0 auto; }

  .about,
  .consultation { padding: 54px 0; }
  .about-copy h2,
  .consultation h2 { max-width: 100%; font-size: 24px; line-height: 1.03; letter-spacing: -.015em; text-wrap: balance; }
  .consultation h2 > span { display: block; white-space: normal; }
  .about-lead,
  .consultation-head > p { font-size: 16px; line-height: 1.45; }
  .consultation-steps strong { font-size: 20px; }
  .consultation-steps small { font-size: 16px; }

  .messengers { grid-template-columns: 1fr; gap: 12px; }
  .messenger {
    min-height: 62px;
    grid-template-columns: 40px auto;
    justify-content: start;
    justify-items: start;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    border-radius: 999px;
    text-align: left;
  }
  .messenger strong { min-width: 0; font-size: 16px; line-height: 1.15; }
  .messenger-label-long { display: inline; }

  .site-footer { padding-top: 42px; }
}

@media (max-width: 360px) {
  .header-brand .brand-name strong { font-size: 18px; }
  .header-brand .brand-name small { font-size: 6.5px; }
  .menu-toc a { font-size: 17px; }
  .hero h1 { font-size: 1.68rem; }
  .hero-copy-bottom .action-gold { font-size: 15.5px; padding-inline: 14px; }
}
