:root {
  --yad-ink: #16181d;
  --yad-muted: #586273;
  --yad-line: #e4e6eb;
  --yad-blue: #0176d3;
  --yad-blue-dark: #014486;
  --yad-blue-pale: #d9f2ff;
}
.yad-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 20px;
  background: #032d60;
  color: #fff;
  font: 500 13px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.yad-announcement a { color: #fff; font-weight: 750; text-underline-offset: 3px; }
:where(.yad-header, .yad-footer, .yad-announcement) a:focus-visible,
.yad-menu-toggle:focus-visible {
  outline: 3px solid #5aa9e6;
  outline-offset: 3px;
}
.yad-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 14px 42px;
  background: #d9f2ff;
  border-bottom: 1px solid var(--yad-line);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.yad-brand { display: flex; align-items: center; flex: 0 0 auto; }
.yad-brand img { display: block; width: 196px; height: auto; }
.yad-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yad-line);
  border-radius: 9px;
  background: #fff;
  color: var(--yad-ink);
  font-size: 21px;
  cursor: pointer;
}
.yad-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  position: static;
  background: transparent;
  box-shadow: none;
}
.yad-nav > a, .yad-nav-group > button {
  border: 0;
  background: transparent;
  color: var(--yad-muted);
  text-decoration: none;
  font: 600 13.5px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.yad-nav > a:hover, .yad-nav-group > button:hover { color: var(--yad-ink); }
.yad-nav-group { position: relative; }
.yad-nav-group > button { padding: 12px 0; }
.yad-nav-group > button::after { content: "⌄"; margin-left: 5px; font-size: 11px; }
.yad-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: -16px;
  width: 286px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--yad-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .15);
}
.yad-nav-group:hover .yad-dropdown,
.yad-nav-group:focus-within .yad-dropdown,
.yad-nav-group.open .yad-dropdown { display: block; }
.yad-dropdown a { display: block; padding: 10px 11px; border-radius: 8px; text-decoration: none; }
.yad-dropdown a:hover { background: var(--yad-blue-pale); }
.yad-dropdown strong { display: block; color: var(--yad-ink); font-size: 13px; }
.yad-dropdown small { display: block; margin-top: 2px; color: var(--yad-muted); font-size: 11px; line-height: 1.4; }
.yad-login { color: var(--yad-ink) !important; }
.yad-start {
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: var(--yad-blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(1, 118, 211, .18);
}
.yad-start:hover { background: var(--yad-blue-dark) !important; }
.yad-footer {
  padding: 48px 30px 26px;
  background: #032d60;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.yad-footer-inner { width: min(1180px, 100%); margin: auto; }
.yad-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 34px; }
.yad-footer-brand img { width: 196px; }
.yad-footer-brand p { max-width: 270px; margin: 14px 0 0; color: #b8c7d8; font-size: 13px; line-height: 1.65; }
.yad-footer h3 { margin: 0 0 13px; color: #fff; font-size: 13px; }
.yad-footer-links { display: flex; flex-direction: column; gap: 9px; }
.yad-footer a { color: #b8c7d8; text-decoration: none; font-size: 12.5px; }
.yad-footer a:hover { color: #fff; }
.yad-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #91a4b8; font-size: 11.5px; }

@media (max-width: 980px) {
  .yad-header { min-height: 68px; padding: 12px 20px; }
  .yad-brand img { width: 178px; }
  .yad-menu-toggle { display: grid; place-items: center; }
  .yad-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
    padding: 12px 20px 20px;
    background: #d9f2ff;
    border-top: 1px solid var(--yad-line);
    box-shadow: 0 14px 28px rgba(16, 24, 40, .13);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .yad-nav.open { display: flex; }
  .yad-nav > a { display: block; padding: 11px 8px; }
  .yad-nav-group > button { width: 100%; padding: 11px 8px; text-align: left; color: var(--yad-ink); font-weight: 750; }
  .yad-dropdown { display: none; position: static; width: auto; padding: 0 0 5px 10px; border: 0; box-shadow: none; }
  .yad-nav-group:hover .yad-dropdown { display: none; }
  .yad-nav-group.open .yad-dropdown { display: block; }
  .yad-dropdown a { padding: 8px; }
  .yad-dropdown small { display: none; }
  .yad-start { margin-top: 5px; text-align: center; }
  .yad-footer-grid { grid-template-columns: 1fr 1fr; }
  .yad-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .yad-announcement { align-items:center; justify-content:center; gap:4px 8px; flex-direction:row; flex-wrap:wrap; padding:7px 12px; font-size:12px; }
  .yad-header { padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .yad-brand img { width: 166px; }
  .yad-menu-toggle { min-width: 44px; min-height: 44px; }
  .yad-nav { max-height: calc(100dvh - 98px); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .yad-nav > a, .yad-nav-group > button { min-height: 44px; }
  .yad-start { display: grid !important; place-items: center; }
  input, select, textarea { font-size: 16px !important; }
  .yad-footer-grid { grid-template-columns: 1fr; }
  .yad-footer-brand { grid-column: auto; }
  .yad-footer-bottom { flex-direction: column; }
  .yad-footer { padding: 40px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
}
@media (prefers-reduced-motion: reduce) {
  .yad-header *, .yad-footer *, .yad-announcement * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
