/* ============================================================
   MEGA AT — light design system
   Palette / typography / components
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #ececec;
  --line: #e6e6e6;
  --line-strong: #d8d8d8;
  --ink: #222222;
  --ink-soft: #444444;
  --muted: #8f8f8f;
  --accent: #fa6a3c;
  --accent-2: #f18b2c;
  --accent-3: #fbbd6d;
  --accent-soft: #fff1eb;
  --dark: #222222;
  --white: #ffffff;
  --success: #2f9e6b;
  --danger: #e04f4f;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 2px 8px rgba(34, 34, 34, .04);
  --shadow: 0 10px 30px rgba(34, 34, 34, .06);
  --shadow-lg: 0 24px 60px rgba(34, 34, 34, .10);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --t: .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.03em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section--white { background: var(--bg); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head__left { max-width: 760px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 640px; }
.section-link {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 650;
  font-size: 15px;
  line-height: 1;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ee5a2c; box-shadow: 0 10px 24px rgba(250, 106, 60, .24); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-icon:hover { border-color: var(--ink); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip--accent { background: var(--accent-soft); border-color: transparent; color: #c94c22; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.badge--dark { background: var(--dark); color: #fff; }
.badge--soft { background: var(--surface); color: var(--ink); }
.badge--green { background: #e8f7ef; color: #1e7d51; }
.badge--gold { background: #fff4d8; color: #946200; }

/* ---------- Header ---------- */
.announce {
  background: var(--dark);
  color: #fff;
  font-size: 12.5px;
  line-height: 1;
  overflow: hidden;
}
.announce__track {
  display: flex;
  gap: 36px;
  padding: 10px 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.announce__track span { white-space: nowrap; opacity: .9; }
.announce__track span::before {
  content: "•";
  color: var(--accent-3);
  margin-right: 36px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  background: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar a:hover { color: var(--ink); }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__loc strong { color: var(--ink); font-weight: 650; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { width: 38px; height: 38px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background var(--t), color var(--t);
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a.is-active { background: var(--surface); color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 280px;
  min-width: 180px;
  height: 44px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
}
.header-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  border: 0;
  border-radius: var(--pill);
  height: 34px;
  padding: 0 14px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.header-search button:hover { background: #000; }

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--pill);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 550;
  position: relative;
}
.action-link:hover { background: var(--surface); color: var(--ink); }
.action-link svg { width: 19px; height: 19px; }
.action-count {
  position: absolute;
  top: 3px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 550;
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* category nav row */
.cat-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}
.cat-nav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  white-space: nowrap;
}
.cat-nav a {
  padding: 7px 13px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-soft);
}
.cat-nav a:hover { background: var(--surface); color: var(--ink); }
.cat-nav a.is-active { background: var(--dark); color: #fff; }

/* ---------- Cards / generic ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--soft { background: var(--surface); border-color: transparent; box-shadow: none; }
.card--dark { background: var(--dark); color: #fff; border-color: transparent; }
.card--accent { background: var(--accent-soft); border-color: transparent; }
.card-pad { padding: 24px; }
.card-hover { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 22px 20px;
}
.stat__num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: 13px; margin-top: 7px; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.input, .select { height: 48px; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 106, 60, .14);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-note { color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 18px;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform var(--t), background var(--t), color var(--t);
}
.faq__item[open] summary::after { content: "−"; background: var(--accent); color: #fff; }
.faq__body { padding: 0 0 18px; color: var(--ink-soft); max-width: 860px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 650;
}
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-contacts { display: grid; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.footer-contacts strong { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-bottom .age {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Utilities ---------- */
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.text-xs { font-size: 12px; line-height: 1.5; }
.text-muted { color: var(--muted); }
.opacity-60 { opacity: .6; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contacts { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-search { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-actions .action-link span { display: none; }
  .header-actions .btn { display: none; }
  .topbar__links { display: none; }
  .btn { width: 100%; }
  .row .btn { width: auto; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
