/* ==========================================================================
   Nova Clinic — responsive rules
   ========================================================================== */

@media (max-width: 1180px) {
  :root {
    --container: 1120px;
  }

  .nav__list {
    gap: 18px;
  }

  .header__cta span {
    display: none;
  }

  .header__cta {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .topbar__mid {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }

  .intro__grid,
  .location__grid,
  .page-hero__inner,
  .page-hero--type .page-hero__inner,
  .about-intro,
  .contact-layout,
  .map-layout,
  .fees-grid,
  .corporate__grid {
    grid-template-columns: 1fr;
  }

  .intro__grid {
    gap: 54px;
  }

  .intro__content {
    max-width: 660px;
  }

  .intro__figure {
    max-width: 660px;
  }

  .page-hero__inner {
    gap: 38px;
    padding-block: 54px 62px;
  }

  .page-hero--type .page-hero__aside,
  .page-hero__media,
  .about-intro__aside {
    max-width: 640px;
  }

  .page-hero__media img {
    aspect-ratio: 16 / 9;
  }

  .page-hero__media::before {
    inset: 11px -11px -11px 11px;
  }

  .page-hero--type .page-hero__aside {
    width: 100%;
  }

  .on-dark-card {
    max-width: 520px;
  }

  .contact-docket {
    max-width: 520px;
  }

  .doctor-profile {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .doctor-profile:nth-child(even) .doctor-profile__media {
    order: 0;
  }

  .doctor-profile__media {
    position: relative;
    top: auto;
    max-width: 460px;
  }

  .doctor-profile__media img {
    aspect-ratio: 4 / 3;
    object-position: 50% 28%;
  }

  .location__grid {
    gap: 36px;
  }

  .map {
    min-height: 430px;
  }

  .map-layout .map {
    min-height: 440px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .cta-band__actions {
    width: 100%;
  }

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

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-head h2 {
    max-width: 18ch;
  }

  .section-head__aside {
    max-width: 640px;
  }
}

@media (max-width: 860px) {
  .wa-float {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 34px rgba(11, 27, 61, 0.1);
  }

  .mobile-cta .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 0.72rem;
  }

  body {
    padding-bottom: 78px;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
    gap: 42px;
  }

  .doctor-card:nth-child(2) {
    margin-top: 0;
  }

  .doctor-card__media {
    aspect-ratio: 1 / 1;
  }

  .doctor-card__body {
    padding-top: 16px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-row h2 {
    max-width: 20ch;
  }

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

  .value {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value + .value {
    padding-left: 0;
  }

  .value:last-child {
    border-bottom: 0;
  }

  .value p {
    max-width: 55ch;
  }

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

  .standards div:nth-child(2) {
    border-right: 0;
  }

  .standards div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .standards div:nth-child(3) {
    padding-left: 0;
  }

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

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

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --section: 68px;
  }

  .topbar {
    font-size: 0.625rem;
  }

  .topbar__hours {
    display: none;
  }

  .topbar__phone span {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero__media img {
    object-position: 60% 50%;
  }

  .hero__media::after {
    background: linear-gradient(
        180deg,
        rgba(5, 14, 32, 0.82) 0%,
        rgba(5, 14, 32, 0.64) 42%,
        rgba(5, 14, 32, 0.93) 100%
      ),
      linear-gradient(90deg, rgba(5, 14, 32, 0.4), transparent 70%);
  }

  .hero__inner {
    padding-top: 76px;
    padding-bottom: 94px;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .hero__deck {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .hero__actions {
    margin-top: 27px;
  }

  .hero__trust {
    margin-top: 38px;
    padding-top: 16px;
  }

  .hero__stat {
    margin-right: 16px;
    padding-right: 16px;
  }

  .hero__stat strong {
    font-size: 1.55rem;
  }

  .hero__stat span {
    font-size: 0.48rem;
    letter-spacing: 0.09em;
  }

  .hours-band {
    margin-top: -42px;
  }

  .hours-card {
    grid-template-columns: 1fr;
  }

  .hours-card__item {
    padding: 21px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hours-card__item:last-child {
    border-bottom: 0;
  }

  .hours-card__time {
    margin-top: 10px;
    font-size: 1.85rem;
  }

  .intro__grid {
    gap: 42px;
  }

  .intro__figure::before {
    inset: 12px -12px -12px 12px;
  }

  .figure-plaque {
    bottom: -18px;
    left: 16px;
    padding: 11px 15px;
  }

  .figure-plaque strong {
    font-size: 1.35rem;
  }

  .intro__content > p {
    font-size: 0.9rem;
  }

  .intro__stats {
    margin-top: 24px;
  }

  .intro__stat strong {
    font-size: 1.4rem;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    max-width: 20ch;
  }

  .services-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .gallery__media,
  .gallery__wide .gallery__media {
    height: 250px;
  }

  .gallery__wide {
    margin-top: 0;
  }

  .about-facts strong {
    font-size: 1.4rem;
  }

  .doctor-profile__details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .doctor-profile__bio p {
    font-size: 0.86rem;
  }

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

  .service-row__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .fees-table {
    font-size: 0.75rem;
  }

  .fees-table td:nth-child(2) {
    display: none;
  }

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

  .panel-item__name {
    font-size: 1.45rem;
  }

  .panel-search-card {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-search-meta {
    justify-content: space-between;
    padding-bottom: 0;
  }

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

  .form-card {
    padding: 22px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Sized so the full "Nova Clinic" wordmark fits inside the container. */
  .footer__watermark {
    font-size: 16vw;
    padding-top: 16px;
  }

  .drawer__link {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    max-width: 16ch;
  }

  .page-hero__media img {
    aspect-ratio: 3 / 2;
  }

  .doctor-profile__media {
    max-width: 100%;
  }

  .doctor-profile__media img {
    aspect-ratio: 1 / 1;
  }

  .location__details {
    gap: 22px;
  }

  .location__details h3 {
    font-size: 0.5rem;
  }

  .map,
  .map-layout .map {
    min-height: 360px;
  }

  .cta-band__actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 600px) {
  .header__cta {
    width: 42px;
    min-height: 42px;
  }

  .brand__mark {
    width: 20px;
    height: 20px;
  }

  .brand__nova {
    font-size: 1.28rem;
  }

  .brand__clinic {
    font-size: 0.45rem;
    letter-spacing: 0.38em;
  }

  .hero__title br {
    display: none;
  }

  .hero__actions .btn,
  .page-hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  .hero__stat {
    flex: 1 1 33.333%;
    margin-right: 0;
    padding-right: 14px;
  }

  .hero__stat:nth-child(2) {
    padding-left: 14px;
  }

  .hero__stat:last-child {
    padding-right: 0;
    padding-left: 14px;
    border-right: 0;
  }

  .hero__stat span {
    max-width: 12ch;
  }

  .intro__figure {
    margin-right: 12px;
  }

  .intro__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .intro__stat {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
  }

  .intro__stat:nth-child(2) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .intro__stat:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .section-head h2 {
    max-width: 100%;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .page-hero__inner {
    padding-block: 42px 50px;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .page-hero__actions .btn {
    width: 100%;
  }

  .on-dark-card__stats strong {
    font-size: 1.8rem;
  }

  .about-facts div {
    padding: 16px;
  }

  .about-facts strong {
    font-size: 1.3rem;
  }

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

  .standards div {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .standards div:last-child {
    border-bottom: 0;
  }

  .standards div:nth-child(2) {
    border-right: 0;
  }

  .doctor-profile {
    padding-block: 36px;
  }

  .doctor-profile__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .fees-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .fees-table td:last-child {
    white-space: normal;
  }

  .corporate__grid {
    padding-block: 62px;
  }

  .contact-side {
    max-width: 100%;
  }

  .form-actions .btn {
    width: 100%;
  }

  .panel-item {
    padding: 13px 0;
  }

  .step__num {
    font-size: 2.2rem;
  }
}

@media (max-width: 400px) {
  .header__cta {
    display: none;
  }

  .topbar__status {
    font-size: 0.6rem;
  }

  .mobile-cta .btn {
    font-size: 0.68rem;
  }

  .service-card {
    padding: 22px;
  }

  .service-card::before {
    right: 22px;
    left: 22px;
  }
}

@media print {
  .topbar,
  .site-header,
  .drawer,
  .drawer-scrim,
  .wa-float,
  .mobile-cta,
  .cta-band,
  .site-footer {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero {
    min-height: 0;
    background: #fff;
    color: #000;
  }

  .hero__media,
  .page-hero::before {
    display: none;
  }

  .hero__title,
  .page-hero h1,
  .hero__deck,
  .page-hero__deck {
    color: #000;
  }
}
