.ag-layout-header,
.ag-layout-footer,
.ag-layout-mobile-panel,
.ag-layout-trust-sticky,
.ag-mega-menu,
.ag-mobile-mega {
  --ag-layout-navy-fallback: #0b1f3a;
  --ag-layout-gold-fallback: #c8a66a;
  --ag-layout-white-fallback: #ffffff;
  color: #102033;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ag-layout-header {
  background: linear-gradient(140deg, rgba(11, 31, 58, 0.98), rgba(8, 18, 34, 0.95));
  border-bottom: 1px solid rgba(200, 166, 106, 0.35);
  box-shadow: 0 12px 30px rgba(7, 16, 31, 0.22);
  position: relative;
  z-index: 80;
}

.ag-layout-header__inner {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(460px, 1.4fr) minmax(280px, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  padding: 12px 18px;
}

.ag-layout-brand {
  align-items: center;
  display: flex;
  gap: 10px;
}

.ag-layout-brand__emblem,
.ag-layout-brand__ops {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.ag-layout-brand__premium-logo {
  display: block;
  height: 48px;
  max-width: 96px;
  object-fit: contain;
  width: auto;
}

.ag-layout-brand__ops-logo {
  display: block;
  height: 40px;
  max-width: 210px;
  object-fit: contain;
  width: auto;
}

.ag-layout-brand__fallback {
  border: 1px solid rgba(200, 166, 106, 0.5);
  border-radius: 8px;
  color: var(--ag-layout-white, var(--ag-layout-white-fallback));
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 11px 13px;
  text-transform: uppercase;
}

.ag-layout-brand__fallback--premium {
  background: linear-gradient(135deg, rgba(200, 166, 106, 0.22), rgba(255, 255, 255, 0.06));
}

.ag-layout-brand__fallback--ops {
  background: rgba(255, 255, 255, 0.06);
}

.ag-layout-nav {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ag-layout-nav__list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-layout-nav__list a {
  border-radius: 999px;
  color: var(--ag-layout-white, var(--ag-layout-white-fallback));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ag-layout-nav__list a:hover,
.ag-layout-nav__list a:focus-visible {
  background: rgba(200, 166, 106, 0.18);
  color: #f8efdc;
  outline: none;
}

.ag-layout-nav__mega-toggle {
  background: transparent;
  border: 1px solid rgba(200, 166, 106, 0.45);
  border-radius: 999px;
  color: #f8efdc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.ag-layout-nav__mega-toggle:hover,
.ag-layout-nav__mega-toggle:focus-visible {
  background: rgba(200, 166, 106, 0.16);
  outline: none;
}

.ag-layout-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.ag-layout-slogan {
  color: rgba(248, 239, 220, 0.88);
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.ag-layout-cta-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ag-layout-cta {
  border-radius: 999px;
  color: #0a1a32;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 40px;
  padding: 13px 14px;
  text-decoration: none;
}

.ag-layout-cta--book {
  background: linear-gradient(145deg, #d9b67a, #c8a66a);
}

.ag-layout-cta--wa {
  background: #25d366;
}

.ag-layout-lang-placeholder {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #eef2f8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 12px;
}

.ag-mega-menu {
  background: #f8f9fb;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.15);
}

.ag-mega-menu__inner {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1320px;
  padding: 18px;
}

.ag-mega-menu__group {
  background: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.ag-mega-menu__group h3 {
  color: #1b2f4f;
  font-size: 15px;
  margin: 0 0 8px;
}

.ag-mega-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-mega-menu__links li + li {
  margin-top: 6px;
}

.ag-mega-menu__links a {
  color: #1f3559;
  font-size: 13px;
  text-decoration: none;
}

.ag-mega-menu__links a:hover,
.ag-mega-menu__links a:focus-visible {
  color: #91672c;
  outline: none;
  text-decoration: underline;
}

.ag-layout-mobile-toggle {
  display: none;
}

.ag-layout-mobile-panel {
  background: #0e223f;
  border-top: 1px solid rgba(200, 166, 106, 0.34);
  padding: 0 16px 14px;
}

.ag-layout-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 10px 0 8px;
}

.ag-layout-mobile-nav li + li {
  margin-top: 5px;
}

.ag-layout-mobile-nav a {
  color: #f7f0de;
  display: block;
  font-weight: 600;
  padding: 10px 2px;
  text-decoration: none;
}

.ag-mobile-mega {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
  padding-top: 8px;
}

.ag-mobile-mega__group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ag-mobile-mega__group summary {
  color: #f7f0de;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
}

.ag-mobile-mega__group .ag-mega-menu__links {
  padding: 0 0 10px;
}

.ag-mobile-mega__group .ag-mega-menu__links a {
  color: #e8eefa;
  font-size: 13px;
}

.ag-layout-footer {
  background: #09162c;
  color: #e8edf7;
  margin-top: 24px;
  padding: 0 0 30px;
}

.ag-layout-footer__trust-strip {
  border-bottom: 1px solid rgba(200, 166, 106, 0.32);
  padding: 12px 16px;
}

.ag-layout-footer__trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  max-width: 1320px;
  padding: 0;
}

.ag-layout-footer__trust-strip li {
  background: rgba(200, 166, 106, 0.2);
  border: 1px solid rgba(200, 166, 106, 0.34);
  border-radius: 999px;
  color: #f8f2e2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
}

.ag-layout-footer__main {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1320px;
  padding: 20px 16px 12px;
}

.ag-layout-footer__main section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 166, 106, 0.18);
  border-radius: 14px;
  padding: 14px;
}

.ag-layout-footer h2 {
  color: #f4e8ce;
  font-size: 15px;
  margin: 0 0 10px;
}

.ag-layout-footer p,
.ag-layout-footer li,
.ag-layout-footer a {
  color: #e8edf7;
  font-size: 13px;
  line-height: 1.55;
}

.ag-layout-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-layout-footer li + li {
  margin-top: 6px;
}

.ag-layout-footer a {
  text-decoration: none;
}

.ag-layout-footer a:hover,
.ag-layout-footer a:focus-visible {
  color: #f4d6a0;
  outline: none;
  text-decoration: underline;
}

.ag-layout-footer__slogan {
  color: #f4d6a0;
  font-weight: 700;
  margin-top: 10px;
}

.ag-layout-footer__logos {
  border-top: 1px solid rgba(200, 166, 106, 0.28);
  margin: 8px auto 0;
  max-width: 1320px;
  padding: 16px;
}

.ag-layout-footer__logos h2 {
  margin: 0 0 8px;
}

.ag-layout-logo-track {
  overflow: hidden;
  padding: 8px 0 16px;
}

.ag-layout-logo-track ul {
  align-items: center;
  animation: ag-layout-marquee 38s linear infinite;
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  min-width: max-content;
  padding: 0;
}

.ag-layout-logo-track__item {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 166, 106, 0.25);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.ag-layout-logo-track__img {
  height: 28px;
  object-fit: contain;
  width: auto;
}

.ag-layout-logo-track__name {
  font-size: 12px;
  font-weight: 600;
}

.ag-layout-logo-track__verified {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.52);
  border-radius: 999px;
  color: #9ff1c0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.ag-layout-trust-sticky {
  background: #0e223f;
  border: 1px solid rgba(200, 166, 106, 0.38);
  border-radius: 999px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 138px);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.33);
  color: #f7e5be;
  font-size: 12px;
  font-weight: 700;
  left: 12px;
  line-height: 1;
  padding: 10px 12px;
  position: fixed;
  text-decoration: none;
  z-index: 82;
}

@keyframes ag-layout-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .ag-layout-header__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ag-layout-actions {
    justify-items: start;
  }

  .ag-layout-nav {
    justify-content: flex-start;
  }

  .ag-layout-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ag-layout-nav {
    display: none;
  }

  .ag-layout-mobile-toggle {
    background: rgba(200, 166, 106, 0.16);
    border: 1px solid rgba(200, 166, 106, 0.42);
    border-radius: 999px;
    color: #f8efdc;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin: 0 16px 14px;
    padding: 10px 13px;
  }

  .ag-layout-footer__main {
    grid-template-columns: 1fr;
  }

  .ag-layout-trust-sticky {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 132px);
  }
}

@media (max-width: 520px) {
  .ag-layout-header__inner {
    padding: 12px;
  }

  .ag-layout-brand__premium-logo {
    height: 42px;
    max-width: 84px;
  }

  .ag-layout-brand__ops-logo {
    height: 34px;
    max-width: 178px;
  }

  .ag-layout-cta-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ag-layout-cta,
  .ag-layout-lang-placeholder {
    min-height: 44px;
    padding: 12px;
  }

  .ag-layout-logo-track ul {
    animation-duration: 46s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-layout-logo-track ul {
    animation: none;
  }

  .ag-layout-nav__list a,
  .ag-layout-nav__mega-toggle {
    transition: none;
  }
}
