:root {
  --layout-header-bg: rgba(11, 18, 36, 0.92);
  --layout-header-text: #f7f8fb;
  --layout-header-line: rgba(201, 168, 102, 0.22);
  --layout-accent: #c9a866;
  --layout-accent-soft: #e2cea1;
  --layout-footer-bg: #0b1224;
  --layout-footer-text: rgba(255, 255, 255, 0.74);
  --layout-shadow: 0 22px 60px rgba(7, 10, 20, 0.28);
  --layout-header-height: 76px;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#main-header,
#main-footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

main,
section {
  width: 100%;
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.98), rgba(9, 14, 26, 0.92));
  border-bottom: 1px solid var(--layout-header-line);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 55px rgba(7, 10, 20, 0.32);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 102, 0.55), transparent);
  opacity: 0.8;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: -2px -2px 50% -2px;
  background: radial-gradient(480px 200px at 18% 0%, rgba(201, 168, 102, 0.18), transparent 60%);
  pointer-events: none;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--layout-header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--layout-header-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  height: 50px;
  width: auto;
  border-radius: 14px;
  filter: drop-shadow(0 12px 24px rgba(201, 168, 102, 0.22));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  letter-spacing: 1px;
}
.brand .tagline {
  font-size: 12px;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 12px;
  position: relative;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 102, 0.85), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.site-nav a.active {
  color: #fff;
  background: rgba(201, 168, 102, 0.12);
  border-color: rgba(201, 168, 102, 0.35);
}
.site-nav a.nav-cta {
  background: rgba(201, 168, 102, 0.18);
  border: 1px solid rgba(201, 168, 102, 0.45);
  color: #fff;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.site-nav a.nav-cta:hover {
  background: rgba(201, 168, 102, 0.32);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-select label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
.lang-select select {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 8px 30px 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c9a866' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select select:hover {
  border-color: rgba(201, 168, 102, 0.55);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.lang-select select option {
  background: #0b1224;
  color: #fff;
}


.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 980px) {
  html, body {
    width: 100%;
  }
  body {
    min-width: 100vw;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .brand {
    min-width: 0;
  }
  .brand-text {
    min-width: 0;
  }
  .brand .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  .header-actions {
    flex-shrink: 0;
  }
  .brand img {
    height: 48px;
  }
  .site-nav {
    position: fixed;
    top: calc(var(--layout-header-height) + 6px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px;
    background: rgba(11, 18, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: var(--layout-shadow);
    max-height: calc(100vh - var(--layout-header-height) - 20px);
    overflow: auto;
  }
  .site-nav.open {
    display: flex;
    animation: navDrop 0.2s ease;
  }
  .site-nav a {
    width: 100%;
    padding: 12px 14px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 14px;
  }
  .header-actions {
    gap: 6px;
    margin-left: auto;
  }
  .lang-select label {
    display: none;
  }
  .lang-select select {
    font-size: 12px;
    padding: 8px 26px 8px 10px;
    min-width: 54px;
    border-radius: 12px;
    text-align: center;
    text-align-last: center;
    letter-spacing: 0.08em;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 10px;
  }
  .site-nav a {
    font-size: 12px;
    letter-spacing: 0.07em;
    padding: 9px 10px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  p, li {
    font-size: 15.5px;
  }
  .section-title {
    font-size: 26px;
  }
  .section-subtitle {
    font-size: 15px;
  }
  button, .btn, a, select, input, textarea {
    min-height: 44px;
  }
  input, select, textarea {
    font-size: 16px;
  }
  .site-nav {
    left: 12px;
    right: 12px;
  }
  .site-nav a.nav-cta {
    width: 100%;
    text-align: center;
  }
  .brand .tagline {
    display: none;
  }
  .site-header {
    background: #0a0f1f;
    box-shadow: 0 18px 52px rgba(6, 9, 18, 0.62);
  }
  .header-inner {
    border-bottom: 1px solid rgba(201, 168, 102, 0.3);
  }
  .site-nav {
    background: linear-gradient(180deg, rgba(10, 15, 31, 0.995), rgba(8, 12, 24, 0.995));
    border: 1px solid rgba(201, 168, 102, 0.22);
    box-shadow: 0 22px 60px rgba(5, 8, 16, 0.55);
  }
  .wa-fab {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 42px;
  }
  .brand .name {
    font-size: 18px;
    max-width: 120px;
  }
  .header-actions {
    gap: 0;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ================= FOOTER ================= */
.site-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: radial-gradient(900px 340px at 15% 0%, rgba(201, 168, 102, 0.12), transparent 60%), var(--layout-footer-bg);
  color: var(--layout-footer-text);
  padding: 50px 20px 26px;
  border-top: 1px solid rgba(201, 168, 102, 0.18);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 260px at 90% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
}

.footer-col {
  display: grid;
  gap: 12px;
}
.footer-col h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 102, 0.9);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.64);
}

.footer-brand {
  gap: 14px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.footer-logo img {
  height: 46px;
  width: auto;
  border-radius: 12px;
  filter: drop-shadow(0 12px 22px rgba(201, 168, 102, 0.18));
}
.footer-logo .name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.4px;
}
.footer-logo .tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom span span {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
