/* ============================================================
   SAYRU — components.css  (chrome: topbar, header, mega, drawer, footer)
   ============================================================ */

/* ---------------- Topbar ---------------- */
.topbar {
  background: var(--navy-900);
  color: #9fb4cf;
  font-size: 13px;
  border-bottom: 1px solid rgba(91,216,248,.08);
  position: relative; z-index: 60;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar__contact, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #9fb4cf; transition: color .25s; white-space: nowrap; }
.topbar__item svg { color: var(--cyan); opacity: .9; }
.topbar__item:hover { color: #fff; }
.langsw { display: inline-flex; gap: 2px; background: rgba(255,255,255,.05); border-radius: 100px; padding: 3px; border: 1px solid rgba(91,216,248,.12); }
.langsw__b { background: none; border: 0; color: #9fb4cf; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 4px 11px; border-radius: 100px; transition: all .25s; }
.langsw__b:hover { color: #fff; }
.langsw__b.on { background: var(--cyan); color: var(--navy-deep); }
@media (max-width: 760px) { .topbar__item--hide { display: none; } .topbar__contact, .topbar__right { gap: 14px; } }

/* ---------------- Header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.hdr--scrolled { box-shadow: 0 6px 28px rgba(8,42,107,.08); border-color: var(--line); background: rgba(255,255,255,.94); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 22px; transition: height .35s var(--ease); }
.hdr--scrolled .hdr__in { height: 68px; }
.logo img { display: block; transition: height .35s var(--ease); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 500; font-size: 15.5px;
  color: var(--ink); padding: 10px 15px; border-radius: 10px;
  border: 0; background: none; position: relative; transition: color .25s;
}
.nav__link svg { transition: transform .3s var(--ease); opacity: .65; }
.nav__link.open svg { transform: rotate(180deg); }
.nav__link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link.on::after { transform: scaleX(1); }
.nav__link.on { color: var(--navy); }

.hdr__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 12px; }
.burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .hdr__cta { display: none; }
  .burger { display: flex; }
}

/* ---------------- Mega menu ---------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(8,42,107,.13);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: all .32s var(--ease);
}
.mega--on { opacity: 1; visibility: visible; transform: none; }
.mega__in { padding: 34px 32px 40px; }
.mega__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.mega__note { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.mega__all { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 15px; }
.mega__all:hover svg { transform: translateX(4px); } .mega__all svg { transition: transform .3s; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.megacard { display: flex; gap: 15px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); transition: all .3s var(--ease); }
.megacard:hover { border-color: var(--cyan); box-shadow: 0 12px 30px rgba(8,42,107,.1); transform: translateY(-3px); }
.megacard__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, rgba(24,197,244,.14), rgba(14,77,164,.1)); border: 1px solid var(--line); transition: all .3s; }
.megacard:hover .megacard__ic { color: #fff; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: var(--glow-soft); }
.megacard__body { display: flex; flex-direction: column; gap: 3px; }
.megacard__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); }
.megacard__area { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase; }
.megacard__tag { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
@media (max-width: 1024px) { .mega { display: none; } }

/* ---------------- Drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3,13,31,.5); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: var(--white); box-shadow: -20px 0 60px rgba(8,42,107,.2); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding: 20px 22px 28px; overflow-y: auto; }
.drawer--on { pointer-events: auto; }
.drawer--on .drawer__scrim { opacity: 1; }
.drawer--on .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__x { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--navy); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.drawer__nav > a { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); padding: 13px 10px; border-bottom: 1px solid var(--line); }
.drawer__group { padding: 8px 0 4px; border-bottom: 1px solid var(--line); }
.drawer__glabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 10px 6px; }
.drawer__sub { display: flex; align-items: center; gap: 11px; padding: 11px 10px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 10px; }
.drawer__sub svg { color: var(--blue); flex: none; }
.drawer__sub span { font-weight: 400; font-size: 12px; color: var(--ink-faint); margin-left: auto; font-family: var(--font-mono); }
.drawer__sub:hover { background: var(--bg-alt); }
.drawer__cta { margin-top: 22px; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer { position: relative; background: var(--navy-deep); color: #9fb4cf; overflow: hidden; padding-top: 76px; }
.footer__glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 900px; height: 320px; background: radial-gradient(ellipse at center, rgba(24,197,244,calc(.12 * var(--glow))), transparent 70%); pointer-events: none; }
.footer__in { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 54px; }
.footer__brand { max-width: 320px; }
.footer__tag { margin-top: 20px; font-size: 14.5px; line-height: 1.7; color: #8ba2c0; }
.footer__slogan { margin-top: 18px; font-size: 12px; letter-spacing: .1em; color: var(--cyan-soft); text-transform: uppercase; }
.footer__col h4 { color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a { display: block; color: #9fb4cf; font-size: 14.5px; padding: 6px 0; transition: color .25s, transform .25s; }
.footer__col a:hover { color: var(--cyan-soft); transform: translateX(3px); }
.footer__ic { display: flex !important; align-items: center; gap: 9px; }
.footer__ic svg { color: var(--cyan); flex: none; }
.footer__news p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; color: #8ba2c0; }
.footer__form { display: flex; flex-direction: column; gap: 10px; }
.footer__form input { background: rgba(255,255,255,.05); border: 1px solid rgba(91,216,248,.18); color: #fff; padding: 13px 15px; border-radius: 100px; font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color .25s; }
.footer__form input::placeholder { color: #6f86a4; }
.footer__form input:focus { border-color: var(--cyan); }
.footer__form .btn { justify-content: center; }
.footer__subok { display: flex; align-items: center; gap: 8px; color: var(--cyan-soft); font-size: 14px; font-weight: 600; padding: 8px 0; }
.footer__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 26px 0 34px; border-top: 1px solid rgba(91,216,248,.1); font-size: 13px; color: #6f86a4; flex-wrap: wrap; gap: 10px; }
.footer__dev { display: inline-flex; align-items: center; gap: 8px; color: #8ba2c0; padding: 7px 12px; border: 1px solid rgba(91,216,248,.14); border-radius: 999px; background: rgba(255,255,255,.035); transition: color .25s, border-color .25s, background .25s, transform .25s; }
.footer__dev span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6f86a4; }
.footer__dev b { color: #dcecff; font-weight: 700; }
.footer__dev i { font-style: normal; color: var(--cyan-soft); }
.footer__dev:hover { color: #fff; border-color: rgba(91,216,248,.42); background: rgba(91,216,248,.08); transform: translateY(-1px); }
.footer__tax { letter-spacing: .06em; }

@media (max-width: 1024px) { .footer__in { grid-template-columns: 1fr 1fr; gap: 34px; } .footer__brand, .footer__news { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__in { grid-template-columns: 1fr; } }

/* Scroll-to-top button */
.scrolltop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
  border: 1px solid rgba(91,216,248,.45);
  box-shadow: 0 10px 28px rgba(8,42,107,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .25s, transform .25s, visibility .25s, box-shadow .25s;
}
.scrolltop.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scrolltop:hover { box-shadow: 0 14px 34px rgba(24,197,244,.5); transform: translateY(-2px) scale(1.04); }
.scrolltop__ic { display: inline-flex; }
@media (max-width: 560px) { .scrolltop { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
