:root {
  --sun: #ffc83d;
  --sun-dark: #f5b400;
  --leaf: #0e3b2c;
  --forest: #0e3b2c;
  --forest-2: #134a37;
  --cream: #fff8ea;
  --soft: #fff8ea;
  --line: #efe4cc;
  --text: #000;
  --bg: #fff;
  --radius: 10px;
  --container: 1440px;
  --pad-x: 40px;
  --header-h: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.nav-open { overflow: hidden; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }
.ic { display: block; flex-shrink: 0; stroke-width: 1.9; }

.container {
  width: 100%;
  padding-inline: max(var(--pad-x), calc((100% - var(--container)) / 2 + var(--pad-x)));
}

/* Buttons: pill + round icon chip */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:hover .btn-ico { transform: rotate(-45deg); }

.btn-sun { background: var(--sun); color: #000; }
.btn-sun::before { background: #000; }
.btn-sun .btn-ico { background: #000; color: #fff; }
.btn-sun:hover { color: #fff; }
.btn-sun:hover .btn-ico { background: var(--sun); color: #000; }

.btn-dark { background: #000; color: #fff; }
.btn-dark::before { background: var(--sun); }
.btn-dark .btn-ico { background: var(--sun); color: #000; }
.btn-dark:hover { color: #000; }
.btn-dark:hover .btn-ico { background: #000; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 59, 44, .06); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background .3s var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .has-drop.open > .nav-link, .nav-link[aria-current="page"] { background: var(--cream); }
.chev { display: grid; transition: transform .35s var(--ease); }
.has-drop.open .chev { transform: rotate(180deg); }

/* Dropdowns */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(14, 59, 44, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: top left;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 10px;
  background: var(--sun);
}
.drop-body { display: flex; gap: 8px; padding: 12px; }
.is-wide .drop { min-width: 660px; }
.mega-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mega-letters { flex: 0 0 auto; padding: 12px; background: var(--cream); border-radius: 10px; gap: 12px; }
.mega-head { font-weight: 800; padding-inline: 12px; }
.mega-letters .mega-head { padding-inline: 0; }
.letter-grid { display: grid; grid-template-columns: repeat(6, 40px); gap: 6px; }
.letter-grid a, .footer-letters a {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.letter-grid a { background: #fff; }
.letter-grid a:hover, .letter-grid a[aria-current="page"] { background: var(--sun); transform: translateY(-2px); }

.m-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background .3s var(--ease);
}
.m-item:hover { background: var(--soft); }
.m-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--cream);
  color: var(--leaf);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.m-item:hover .m-ico, .m-item[aria-current="page"] .m-ico { background: var(--sun); color: #000; }
.m-txt { display: flex; flex-direction: column; }
.m-txt strong { font-weight: 800; }

/* Burger */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--sun);
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 10px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.site-footer { position: relative; background: var(--forest); color: #fff; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 80px 32px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 440px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; cursor: default; }
.f-plus { display: none; }
.f-links { display: grid; grid-template-rows: 1fr; }
.f-links-in { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.footer-col h4 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.footer-col h4::before { content: ""; width: 8px; height: 8px; border-radius: 10px; background: var(--sun); }
.footer-col a, .footer-legal a {
  align-self: flex-start;
  background-image: linear-gradient(var(--sun), var(--sun));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.footer-col a:hover, .footer-legal a:hover { background-size: 100% 2px; }
.footer-letters-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.footer-letters-title { font-weight: 800; }
.footer-letters { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 6px; }
.footer-letters a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-letters a:hover { background: var(--sun); color: #000; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }

/* Responsive */
@media (max-width: 1280px) {
  :root { --pad-x: 32px; }
  .main-nav { gap: 12px; }
  .nav-link { padding-inline: 10px; }
  .footer-letters { grid-template-columns: repeat(13, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  :root { --pad-x: 24px; --header-h: 72px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px var(--pad-x) 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .4s var(--ease), visibility .35s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > .nav-link, .drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:hover, .has-drop.open > .nav-link, .nav-link[aria-current="page"] { background: none; }
  .drop, .is-wide .drop {
    position: static;
    min-width: 0;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 10px;
    transition: grid-template-rows .4s var(--ease);
  }
  .has-drop.open .drop { grid-template-rows: 1fr; }
  .drop-inner { overflow: hidden; min-height: 0; }
  .drop::before { display: none; }
  .drop-inner { padding-block: 0; transition: padding .4s var(--ease); }
  .has-drop.open .drop-inner { padding-block: 12px; }
  .drop-body { flex-direction: column; gap: 12px; padding: 12px; border-radius: 10px; background: var(--cream); }
  .mega-col { gap: 6px; }
  .mega-letters { padding: 0; background: none; gap: 10px; }
  .mega-head { padding: 4px 4px 0; }
  .letter-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .letter-grid a { height: 40px; background: #fff; }
  .m-item { align-items: center; gap: 12px; padding: 10px; background: #fff; }
  .m-item:hover { background: #fff; }
  .m-ico { width: 38px; height: 38px; background: var(--cream); }
  .m-txt { min-width: 0; }
  .m-txt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .footer-inner { padding-block: 64px 28px; gap: 40px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; }
  .logo-text { font-size: 20px; }
  .footer-inner { padding-block: 48px 24px; gap: 32px; }
  .footer-brand { gap: 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
  .footer-col { gap: 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .f-head { width: 100%; padding-block: 16px; cursor: pointer; }
  .f-plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .1); transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease); }
  .footer-col.open .f-plus { transform: rotate(45deg); background: var(--sun); color: #000; }
  .f-links { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .footer-col.open .f-links { grid-template-rows: 1fr; }
  .f-links-in { padding-bottom: 0; }
  .footer-col.open .f-links-in { padding-bottom: 18px; }
  .footer-letters { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .footer-letters-wrap { padding: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-legal { order: -1; gap: 10px 20px; }
}

/* Reserve header space before the global header loads (prevents layout shift) */
#site-header { display: block; height: var(--header-h); }
