/* ═══════════════════════════════════════════════
   AI FOOD PUBLIC — header/footer chrome
   Витягнуто зі стилю /ai/index.php (dist/style.css)
═══════════════════════════════════════════════ */
:root {
  --bg-deep:   #101010;
  --bg-dark:   #141414;
  --bg-card:   #1a1a1a;
  --bg-glass:  rgba(26,26,26,0.85);
  --orange:    #FF4E01;
  --orange2:   #FF621E;
  --orange-glow: rgba(255,78,1,0.35);
  --white:     #ffffff;
  --muted:     rgba(255,255,255,0.45);
  --border:    rgba(255,255,255,0.08);
  --border-o:  rgba(255,78,1,0.25);
  --font-head: 'Exo 2', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 6px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
  transition: all 0.25s ease; border: none; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  box-shadow: 0 4px 24px var(--orange-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--orange-glow); filter: brightness(1.1); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,78,1,0.07); transform: translateY(-2px); }

/* ── PROGRESS BAR ── */
#progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 1000; width: 0%; background: linear-gradient(90deg, var(--orange), var(--orange2)); transition: width .1s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 20px 0; transition: all .35s;
}
nav.scrolled {
  background: rgba(16,16,16,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-head);
  font-size: 22px; font-weight: 900; color: var(--white); letter-spacing: -.5px;
}
.logo-img { height: 22px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 20px; font-size: 13px; white-space: nowrap; }

@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 12px; }
}
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── LANG SWITCHER (desktop) ── */
.lang-switcher { display: flex; align-items: center; margin-right: 6px; }
.lang-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 7px 28px 7px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, background-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255%2C255%2C255%2C0.45)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.lang-select:hover, .lang-select:focus { border-color: var(--orange); background-color: rgba(255,78,1,0.1); }
.lang-select option { background: #1a1a1a; color: var(--white); }
@media (max-width: 768px) { .lang-switcher { display: none; } }

/* ── MOBILE MENU ── */
.mob-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(16,16,16,.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 998;
  padding: 76px 24px 36px;
  transform: translateY(-100%); transition: transform .4s ease;
  max-height: 100vh; overflow-y: auto;
}
.mob-menu.open { transform: translateY(0); }
.mob-menu ul { list-style: none; display: flex; flex-direction: column; }
.mob-menu ul li a { display: block; color: var(--white); text-decoration: none; font-size: 17px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mob-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.mob-lang {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.mob-lang-btn {
  flex: 1 1 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.mob-lang-btn:hover { border-color: var(--orange); color: var(--white); }
.mob-lang-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  nav { padding: 14px 0; }
  .nav-inner { position: relative; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo { font-size: 18px; }
}

/* ── PAGE CONTENT WRAP (простір під фіксований nav) ── */
.af-content { padding-top: 96px; min-height: 60vh; }
@media (max-width: 768px) { .af-content { padding-top: 78px; } }

/* ── FOOTER ── */
footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 44px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-brand .logo { margin-bottom: 4px; }
.foot-brand p { color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.6; max-width: 270px; }
.foot-col h5 { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; transition: color .2s; }
.foot-col ul li a:hover { color: var(--orange); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-copy { font-size: 12px; color: var(--muted); }

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; text-align: center; gap: 12px; }
}
