/* Shared layout, typography, header and footer */
:root {
  --ink: #1b2b35;
  --ink-soft: #41515b;
  --navy: #172b3a;
  --navy-deep: #10212d;
  --navy-mid: #294553;
  --paper: #fff;
  --sand: #f2f0eb;
  --line: #d8d9d6;
  --muted: #75818a;
  --accent: #d17837;
  --accent-dark: #b66125;
  --accent-pale: #f3dfce;
  --content-width: 1200px;
  --header-height: 88px;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(18, 35, 47, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; transform: translateY(-150%); background: #fff; color: var(--ink); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-height); color: #fff; background: var(--navy-deep); box-shadow: 0 5px 24px rgba(0,0,0,.10); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; color: #fff; text-decoration: none; }
.brand img { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__text strong { font-size: 25px; font-weight: 800; letter-spacing: .10em; }
.brand__text small { margin-top: 5px; color: #c6d0d6; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; }
.primary-nav a { position: relative; padding-block: 10px; color: #e4eaed; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.primary-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a.is-current { color: #fff; }
.primary-nav a:hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
.header-call { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; gap: 2px; color: #fff; text-decoration: none; }
.header-call__label { color: #aebcc5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.header-call strong { font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-footer { padding: 22px 0; color: #c2cdd3; background: #0c1b25; font-size: 13px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.brand--footer img { width: 38px; height: 38px; }
.brand--footer .brand__text strong { font-size: 19px; }
.brand--footer .brand__text small { font-size: 9px; }
.back-to-top { color: #e6b58f; text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }
@media (max-width: 1050px) {
  .site-header__inner { gap: 18px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 13px; }
  .header-call strong { font-size: 14px; }
}
@media (max-width: 850px) {
  :root { --header-height: 76px; }
  .site-header__inner { gap: 16px; }
  .brand img { width: 43px; height: 43px; }
  .brand__text strong { font-size: 23px; }
  .menu-toggle { display: block; margin-left: auto; order: 3; }
  .header-call { margin-left: auto; order: 2; }
  .primary-nav { position: fixed; inset: var(--header-height) 0 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 18px 24px 36px; background: var(--navy-deep); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav a { padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; }
  .primary-nav a::after { display: none; }
}
@media (max-width: 540px) {
  .container { width: min(var(--content-width), calc(100% - 36px)); }
  .site-header__inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand__text strong { font-size: 20px; }
  .brand__text small { font-size: 9px; }
  .header-call { align-items: flex-start; margin-left: auto; }
  .header-call__label { display: none; }
  .header-call strong { font-size: 12px; }
  .menu-toggle { width: 40px; height: 40px; padding: 8px; }
  .site-footer__inner { flex-wrap: wrap; }
  .site-footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
