@media (min-width: 720px) {
  .article-carousel__slide .article-card {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }

  .float-actions {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .float-actions a {
    width: 3.55rem;
    height: 3.55rem;
  }

  .institution-row,
  .institution-row--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: var(--space-7);
  }

  .about-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  /* Orta masaüstünde telefon kartı gizlenir — menü ile çakışmasın */
  .header-cta {
    display: none;
  }

  .header-right {
    gap: 0.75rem;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .nav {
    flex: 0 1 auto;
    min-width: 0;
  }

  .theme-toggle {
    order: 3;
    flex: 0 0 auto;
  }

  .mobile-nav {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }

  .brand__logo {
    height: 3.6rem;
    max-width: 17rem;
  }

  .institution-row,
  .institution-row--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__content {
    padding-top: calc(var(--header-h) + var(--space-9));
    padding-bottom: var(--space-8);
  }
}

/* Geniş ekranda kompakt telefon kartı menünün yanında */
@media (min-width: 1280px) {
  .header-cta {
    display: flex;
  }

  .brand__logo {
    height: 3.85rem;
    max-width: 18.5rem;
  }

  .nav a {
    padding: 0.58rem 0.8rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 959px) {
  .site-header .container.header-inner,
  .header-inner.container {
    width: min(100% - 1.25rem, var(--container));
  }

  .header-inner {
    gap: 0.5rem;
  }

  .header-inner > [data-brand] {
    flex: 1 1 0;
    max-width: none;
    overflow: hidden;
  }

  .brand,
  .brand--logo {
    max-width: 100%;
  }

  .brand__logo {
    height: 2.4rem;
    width: auto;
    max-width: min(100%, 11.75rem);
  }

  .theme-toggle,
  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .header-right {
    gap: 0.35rem;
    margin-left: auto;
  }
}

@media (max-width: 719px) {
  .float-actions {
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .float-actions a {
    width: 3rem;
    height: 3rem;
  }

  .hero {
    height: 100svh;
    height: 100dvh;
    height: var(--app-vh, 100dvh);
    min-height: var(--app-vh, 100dvh);
    max-height: var(--app-vh, 100dvh);
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(12, 26, 46, 0.62) 0%, rgba(12, 26, 46, 0.28) 34%, rgba(12, 26, 46, 0.78) 68%, rgba(12, 26, 46, 0.94) 100%),
      linear-gradient(90deg, rgba(12, 26, 46, 0.55) 0%, rgba(12, 26, 46, 0.2) 100%);
  }

  .hero__content {
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 0.75rem);
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  }

  .hero__eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.88);
  }

  .hero h1,
  .hero__title--single {
    font-size: clamp(1.35rem, 6.4vw, 1.95rem);
    max-width: none;
    white-space: nowrap;
    margin-bottom: 0.15rem;
    color: #fff;
  }

  .hero__eyebrow--sign {
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero__lead {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .hero__actions .btn {
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  .hero-slider,
  .hero-slider__track,
  .hero-slider__slide {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-slider__slide {
    transform: none !important;
    opacity: 0;
  }

  .hero-slider__slide.is-active {
    opacity: 1;
    transform: none !important;
  }

  .hero-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: opacity 0.01ms;
    transform: none;
  }
}

@media (min-width: 720px) {
  .brand__logo {
    height: 3.5rem;
    max-width: 16rem;
  }
}

@media (max-width: 419px) {
  .brand__tag {
    display: none;
  }

  .header-inner > [data-brand] {
    max-width: calc(100% - 5.9rem);
  }

  .brand__logo {
    height: 2.35rem;
    max-width: 100%;
  }

  .hero h1,
  .hero__title--single {
    white-space: normal;
    font-size: clamp(1.25rem, 7vw, 1.7rem);
  }

  .practice-item {
    grid-template-columns: auto 1fr;
  }

  .practice-item__arrow {
    display: none;
  }
}
