/* AZ Code header. Все правила изолированы префиксом az-. */
:root {
  --az-ink: #171717;
  --az-paper: #f4f2ec;
  --az-border: #dcd8cf;
  --az-accent: #ffcb21;
}
.az-header, .az-header * {box-sizing: border-box;}
.az-header {
  position: relative;
  z-index: 900;
  color: var(--az-ink);
  background: var(--az-paper);
  border-bottom: 1px solid var(--az-border);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}
.az-header__bar {height: 3px; background: #252525;}
.az-header__inner {
  width: min(100% - 64px, 1260px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 50px);
}
.az-brand {display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; color: var(--az-ink); text-decoration: none; letter-spacing: -.06em; line-height: 1;}
.az-brand__badge {display: grid; place-items: center; width: 36px; height: 39px; border-radius: 3px; font-weight: 900; font-size: 24px; background: var(--az-accent);}
.az-brand__name {font-size: 27px; font-weight: 900; letter-spacing: -.07em;}
.az-nav {display: flex; margin-left: auto; align-items: center; gap: clamp(11px, 1.75vw, 26px); height: 76px; min-width: 0;}
.az-nav__link {font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.01em; padding: 12px 0; white-space: nowrap; color: var(--az-ink); border: 0; background: none; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .16s ease;}
.az-nav__link:hover, .az-nav__link:focus-visible, .az-nav__link[aria-current=page] {color: #8d6810;}
.az-nav__link:focus-visible, .az-nav__service:focus-visible, .az-header__cta:focus-visible, .az-nav__dropdown-footer a:focus-visible, .az-header__burger:focus-visible, .az-nav__mobile-cta:focus-visible {outline: 2px solid #a47100; outline-offset: 4px;}
.az-nav__services {height: 100%; display: flex; position: relative; align-items: center;}
.az-chevron {width: 14px; height: 14px; flex: none; transition: transform .18s ease;}
.az-nav__services.is-open .az-chevron {transform: rotate(180deg);}
/* Элемент оболочки начинается от нижней границы шапки — без «мертвого» промежутка курсора. */
.az-nav__dropdown-shell {position: absolute; top: 100%; left: -20px; width: 362px; padding-top: 8px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease;}
.az-nav__services.is-open .az-nav__dropdown-shell {opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);}
.az-nav__dropdown {padding: 18px 10px 10px; background: #fff; border: 1px solid #dedbd5; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.13), 0 3px 12px rgba(0,0,0,.045);}
.az-nav__dropdown-label {color: #8d867b; font-size: 10px; font-weight: 800; letter-spacing: .15em; margin: 0 13px 9px;}
.az-nav__service {position: relative; display: grid; gap: 5px; padding: 13px 40px 14px 13px; border-radius: 5px; color: var(--az-ink); text-decoration: none; transition: background .14s ease;}
.az-nav__service:hover, .az-nav__service:focus-visible {background: #f5f3ec;}
.az-nav__service-main {font-size: 14px; font-weight: 750;}
.az-nav__service-caption {color: #7b7973; font-size: 12px; font-weight: 400; line-height: 1.45;}
.az-service-arrow {width: 17px; height: 17px; position: absolute; right: 13px; top: 18px; color: #aaa59c; opacity: 0; transform: translateX(-3px); transition: opacity .14s, transform .14s;}
.az-nav__service:hover .az-service-arrow, .az-nav__service:focus-visible .az-service-arrow {opacity: 1; transform: translateX(0);}
.az-nav__dropdown-footer {margin: 8px 6px 0; border-top: 1px solid #eae7e0; padding: 12px 6px 3px;}
.az-nav__dropdown-footer a {display:flex; justify-content:space-between; color:#5e574a; font-size:12px; font-weight:600; text-decoration:none; padding: 4px 3px;}
.az-nav__dropdown-footer a:hover {color:var(--az-ink);}
.az-header__cta {background: var(--az-ink); border: 1px solid var(--az-ink); color: white; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 13px 16px; border-radius: 4px; transition: background .16s ease, transform .16s ease; white-space: nowrap;}
.az-header__cta:hover {background: #383838; transform: translateY(-1px);}
.az-header__cta-arrow {margin-left: 13px; font-size: 16px; line-height: 12px; opacity: .8;}
.az-header__burger, .az-nav__mobile-cta {display: none;}

@media(max-width:1090px){
  .az-header__inner {width: min(100% - 40px, 1260px);gap:18px;}
  .az-nav {gap: 13px;}
  .az-nav__link {font-size: 13px;}
  .az-header__cta {font-size: 12px; padding: 12px;}
}
@media(max-width:900px){
  .az-header__inner {width: min(100% - 32px, 1260px); min-height: 69px; justify-content: space-between;}
  .az-brand {margin-right:auto;}
  .az-header__cta {margin-left:auto; font-size: 12px;}
  .az-nav {position: absolute; z-index: 4; top: 100%; left: 0; right: 0; background: var(--az-paper); height: auto; max-height: min(82dvh, 760px); overflow-y: auto; display: none; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; padding: 8px max(16px, calc((100vw - 1260px)/2)) 20px; border-bottom: 1px solid var(--az-border); box-shadow: 0 15px 25px rgba(0,0,0,.09); overscroll-behavior:contain;}
  .az-header.is-mobile-open .az-nav {display:flex;}
  .az-nav__link {font-size: 16px; padding: 16px 4px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--az-border); width: 100%;}
  .az-nav__services {height: auto; display:block; width:100%;}
  .az-nav__dropdown-shell {position: static; width: auto; padding-top:0; border:0; overflow: hidden; display:none; opacity:1; visibility:visible; transform:none; pointer-events:auto; transition:none;}
  .az-nav__services.is-open .az-nav__dropdown-shell {display:block;}
  .az-nav__dropdown {padding: 6px 0 10px; border:0; box-shadow:none; border-radius:0; background:transparent;}
  .az-nav__dropdown-label {margin:14px 8px 7px;}
  .az-nav__service {padding:12px 38px 12px 8px;}
  .az-nav__service-main {font-size:15px;}
  .az-service-arrow {opacity:.75;transform:none;}
  .az-nav__dropdown-footer {border-top: 1px solid var(--az-border);}
  .az-nav__mobile-cta {display:flex; justify-content:space-between; align-items:center; padding:14px 16px; margin-top: 20px; color:#fff; background:var(--az-ink); border-radius:4px; font-size:14px; font-weight:700; text-decoration:none;}
  .az-header__burger {display:flex; position:relative; flex-direction:column; justify-content:space-between; width:42px; height:42px; padding:12px 8px; background:transparent; border:1px solid #c9c5bc; border-radius:5px; cursor:pointer; flex-shrink:0;}
  .az-header__burger span {height:2px; width:100%; border-radius:2px; background:var(--az-ink); transition: transform .18s ease, opacity .18s ease;}
  .az-header.is-mobile-open .az-header__burger span:first-child {transform: translateY(7px) rotate(45deg);}
  .az-header.is-mobile-open .az-header__burger span:nth-child(2) {opacity:0;}
  .az-header.is-mobile-open .az-header__burger span:last-child {transform: translateY(-7px) rotate(-45deg);}
}
@media(max-width:470px){
  .az-header__cta {display:none;}
  .az-brand__badge {width:32px;height:35px;font-size:22px;}
  .az-brand__name {font-size:24px;}
}
@media(prefers-reduced-motion:reduce){.az-header *, .az-header *::before,.az-header *::after{transition-duration:0s!important;animation-duration:0s!important;}}

.az-header { position: sticky; top: 0; font-family: var(--f-text); }
.az-brand.logo { letter-spacing: .012em; font-family: var(--f-display); font-size: 34px; }
.az-header__cta, .az-nav__mobile-cta { cursor: pointer; font-family: inherit; }
.az-nav__service-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .az-nav { gap: 12px; } .az-nav__link { font-size: 13px; } }
@media (min-width: 901px) and (max-width: 1080px) { .az-header__inner { gap: 14px; } .az-header__cta { padding: 12px 8px; font-size: 11px; } }
