@media (max-width: 1040px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(7, 17, 31, 0.62);
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(90vw, 390px);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0 0 118px;
    border: 0;
    border-radius: 0;
    background: #f4f6f9;
    box-shadow: 22px 0 70px rgba(11, 33, 66, 0.32);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    color: var(--text);
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-105%, 0, 0);
    will-change: transform;
    transition: transform 0.32s cubic-bezier(0.22, 0.72, 0.22, 1), visibility 0.32s ease;
  }

  .main-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .main-nav::before {
    display: none;
  }

  .main-nav::after {
    content: "Ankara / Türkiye\A 05397390593\A WhatsApp destek hattı";
    display: block;
    flex: 0 0 auto;
    margin: 14px 14px 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
    white-space: pre-line;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
    box-shadow: 0 10px 28px rgba(11, 33, 66, 0.08);
  }

  .main-nav a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
  }

  .nav-item {
    flex: 0 0 auto;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .has-submenu.is-submenu-open {
    background: #f8fafc;
  }

  .has-submenu.is-submenu-open .nav-link {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff7ed;
    color: var(--orange);
    box-shadow: 0 8px 18px rgba(11, 33, 66, 0.08);
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 58px;
    padding: 14px 22px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
  }

  .nav-link span {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-nav > a::before,
  .nav-link::before {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--orange);
    font-size: 20px;
    font-weight: 400;
  }

  .nav-home-link::before {
    content: "⌂";
  }

  .nav-about-link::before {
    content: "◎";
  }

  .nav-link::before {
    content: "☑";
  }

  .main-nav > a[href*="ilceler"]::before,
  .main-nav > a[href*="hizmet-bolgeleri"]::before {
    content: "⌖";
  }

  .main-nav > a[href*="surec"]::before {
    content: "↻";
  }

  .main-nav > a[href*="sss"]::before {
    content: "?";
  }

  .main-nav > a[href*="blog"]::before {
    content: "▣";
  }

  .main-nav > a[href*="iletisim"]::before {
    content: "✉";
  }

  .submenu {
    flex: 0 0 auto;
    position: static;
    display: none;
    width: 100%;
    padding: 0 14px 14px;
    border: 0;
    background: #f8fafc;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    max-height: 252px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .submenu::before {
    display: none;
  }

  .submenu a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: auto;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 6px;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .submenu a::before {
    display: none;
  }

  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    display: none;
    transform: none;
  }

  .has-submenu.is-submenu-open .submenu {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .nav-open .menu-toggle {
    position: fixed;
    top: 10px;
    left: min(calc(90vw - 62px), 318px);
    z-index: 130;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  }

  .nav-open .menu-toggle span {
    background: var(--white);
    margin: 0;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(2px) rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
  }

  .header-actions .btn {
    display: none;
  }

  .quick-panel,
  .split,
  .service-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

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

  .service-form .btn {
    grid-column: 1 / -1;
  }

  .card-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hub-grid,
  .hub-services,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .district-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 16px;
  }

  .main-nav {
    top: 0;
  }

  .main-nav::before {
    display: none;
  }

  .has-submenu.is-submenu-open .nav-link {
    top: 0;
  }

  .nav-open .menu-toggle {
    top: 10px;
  }

  .breadcrumb {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(11, 33, 66, 0.94) 0%, rgba(11, 33, 66, 0.84) 58%, rgba(11, 33, 66, 0.58) 100%);
  }

  .hero-media img {
    object-position: 60% center;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .hero-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search {
    margin-top: -42px;
  }

  .quick-panel {
    padding: 20px;
  }

  .service-form,
  .card-grid,
  .benefit-grid,
  .process-grid,
  .footer-grid,
  .district-mini,
  .hub-grid,
  .hub-services,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .js .section > .container,
  .js #hizmetler > .container {
    opacity: 1;
    transform: none;
  }

  .service-hero .container {
    padding: 62px 0 58px;
  }

  .service-hero h1 {
    font-size: 34px;
  }

  .content-panel {
    padding: 22px;
  }

  .service-detail-image {
    margin: -22px -22px 20px;
  }

  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .district-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .service-card-media {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: none;
    height: auto;
  }

  .service-card-image,
  .service-card-content,
  .service-card-buttons {
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  .service-card-image {
    display: block;
  }

  .service-card-content {
    padding: 18px;
  }

  .service-card-buttons {
    flex-direction: row;
  }

  .service-card-buttons a {
    width: 50%;
    padding: 14px 10px;
    font-size: 15px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 66px;
  }

  .mobile-cta {
    position: fixed;
    left: 0 !important;
    right: auto !important;
    bottom: 0;
    z-index: 60;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    background: var(--orange) !important;
    box-shadow: 0 -10px 30px rgba(11, 33, 66, 0.14);
  }

  .mobile-cta a {
    display: flex;
    width: 100% !important;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--orange) !important;
    padding: 12px 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
  }

  .mobile-cta a:first-child,
  .mobile-cta a:last-child {
    background: var(--orange);
  }

  .mobile-call-pulse {
    position: relative;
    isolation: isolate;
    animation: callPulse 1.2s ease-in-out infinite;
  }

  .nav-open .mobile-cta {
    display: none;
  }
}

@keyframes callPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(244, 123, 32, 0.9),
      0 0 0 0 rgba(255, 255, 255, 0.42),
      0 -10px 34px rgba(244, 123, 32, 0.58);
  }

  45% {
    transform: scale(1.045);
    box-shadow:
      0 0 0 12px rgba(244, 123, 32, 0.28),
      0 0 0 22px rgba(255, 255, 255, 0.14),
      0 -12px 40px rgba(244, 123, 32, 0.68);
  }

  80% {
    transform: scale(1);
    box-shadow:
      0 0 0 28px rgba(244, 123, 32, 0),
      0 0 0 38px rgba(255, 255, 255, 0),
      0 -10px 34px rgba(244, 123, 32, 0.48);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(244, 123, 32, 0),
      0 0 0 0 rgba(255, 255, 255, 0),
      0 -10px 34px rgba(244, 123, 32, 0.58);
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 34px;
  }

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