.header { z-index: 80; }
.header__inner { position: relative; }
.nav { align-items: center; }
.nav-services { position: relative; }
.nav-services summary { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); list-style: none; cursor: pointer; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: ''; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.nav-services[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.nav-services summary:hover, .nav-services[open] summary { color: var(--orange); }
.nav-services summary:focus-visible, .nav-toggle:focus-visible, .nav-services__panel a:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
.nav-services__panel { position: absolute; top: calc(100% + 27px); left: 0; z-index: 100; width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 150px); overflow: auto; padding: 26px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(6,43,59,.2); }
.nav-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.nav-services__group { min-width: 0; }
.nav-services__group strong { display: block; margin-bottom: 10px; color: var(--orange-dark); font-size: .83rem; line-height: 1.3; }
.nav-services__group a { display: block; padding: 6px 0; color: var(--ink); font-size: .86rem; font-weight: 550; line-height: 1.35; }
.nav-services__group a:hover, .nav-services__group a[aria-current="page"] { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.nav-services__all { display: inline-block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--orange-dark); font-weight: 800; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .header__inner { grid-template-columns: 1fr auto auto; }
  .header__inner > .brand { grid-column: 1; grid-row: 1; }
  .header__contact { grid-column: 2; grid-row: 1; }
  .nav-toggle { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 100; max-height: calc(100vh - 84px); overflow-y: auto; padding: 12px; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: 0 20px 45px rgba(6,43,59,.18); }
  .nav.is-open { display: grid; }
  .nav > a, .nav-services > summary { display: flex; min-height: 46px; align-items: center; padding: 8px 12px; }
  .nav-services__panel { position: static; width: 100%; max-height: none; padding: 8px 12px 20px; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .nav-services__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
}
@media (max-width: 780px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .header__contact { display: none; }
  .nav-toggle { grid-column: 2; }
}
@media (max-width: 640px) {
  .nav-services__grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-services__group a { padding: 8px 0; font-size: .94rem; }
}
