/* --- GLOBAL / BASE ------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --qc-bg: #0b0f17;
  --qc-bg-2: #0e1420;
  --qc-fg: #e8f2ff;
  --qc-dim:#93a4bf;
  --qc-accent:#56f0ff;       /* неоновая мята */
  --qc-accent-2:#7f5bff;     /* фиолетовый спектр */
  --qc-line:#1a2639;
  --qc-glow: 0 0 24px rgba(86,240,255,.25);

  --radius-lg: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 20px 50px rgba(0,0,0,.45);

  --header-h: 66px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 10% -20%, rgba(127,91,255,.08), transparent 55%),
    radial-gradient(900px 600px at 110% 20%, rgba(86,240,255,.08), transparent 50%),
    linear-gradient(180deg, var(--qc-bg), var(--qc-bg-2));
  color: var(--qc-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ display:block; max-width:100%; height:auto; }
a{ color: var(--qc-fg); text-decoration: none; }
a:hover{ color: var(--qc-accent); text-shadow: var(--qc-glow); }
.container{ width:min(1160px, 92vw); margin-inline:auto; }

/* --- ACCESSIBILITY ------------------------------------------------------- */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip: rect(0 0 0 0); white-space: nowrap; border:0;
}

/* --- HEADER (fixed) ------------------------------------------------------ */
.qc-header{
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  background: color-mix(in srgb, var(--qc-bg), transparent 15%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.qc-header.is-scrolled{ height: 56px; background: rgba(11,15,23,.7); }

.qc-header__inner{
  height:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  width:min(1200px, 94vw); margin:0 auto;
}

.qc-logo{
  display:flex; align-items:center; gap:.6rem;
  font-weight:700; letter-spacing:.2px;
}
.qc-logo span{ filter: drop-shadow(0 0 6px rgba(86,240,255,.6)); }

.qc-nav{ display:flex; align-items:center; gap:18px; }
.qc-menu{
  list-style:none; display:flex; gap:22px; margin:0; padding:0;
}
.qc-menu a{
  display:inline-block; padding:.5rem .75rem; border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.qc-menu a:hover{
  background: rgba(127,91,255,.15);
  color: var(--qc-accent);
  transform: translateY(-2px);
  box-shadow: var(--qc-glow);
}
.qc-menu a.is-active{ background: rgba(255,255,255,.06); }

/* Burger */
.qc-burger{ display:none; background:none; border:0; padding:10px; cursor:pointer; }
.qc-burger__bar{ display:block; width:24px; height:2px; background:var(--qc-fg); margin:5px 0; border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.qc-burger[aria-expanded="true"] .qc-burger__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.qc-burger[aria-expanded="true"] .qc-burger__bar:nth-child(2){ opacity:0; }
.qc-burger[aria-expanded="true"] .qc-burger__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* --- MAIN SPACING -------------------------------------------------------- */
main{ padding-top: calc(var(--header-h) + 24px); }

/* --- FOOTER -------------------------------------------------------------- */
.qc-footer{
  margin-top: 80px; padding: 40px 0 80px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-top:1px solid rgba(255,255,255,.06);
  position: relative;
}
.qc-footer__grid{
  display:grid; gap:28px;
  grid-template-columns: 1.2fr .8fr 1fr;
}
.qc-footer__links{ list-style:none; padding:0; margin:0; }
.qc-footer__links li{ margin: 8px 0; }
.qc-copy{ text-align:center; color: var(--qc-dim); margin-top: 22px; font-size:.95rem; }
.qc-to-top{
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.18); background: rgba(127,91,255,.22);
  color:#fff; cursor:pointer; opacity:0; pointer-events:none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow: var(--shadow-1);
}
.qc-to-top.is-visible{ opacity:1; pointer-events:auto; }
.qc-to-top:hover{ transform: translateY(-3px); background: rgba(127,91,255,.34); }

/* --- REVEAL ANIMATION (для IntersectionObserver) ------------------------ */
.reveal{ opacity:0; transform: translateY(14px) scale(.98); }
.reveal.is-visible{ opacity:1; transform: none; transition: opacity .6s cubic-bezier(.22,.9,.25,1), transform .6s cubic-bezier(.22,.9,.25,1); }

/* --- RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 992px){
  .qc-burger{ display:block; }
  .qc-menu{
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(11,15,23,.92); backdrop-filter: blur(10px);
    flex-direction: column; gap:0;
    padding: 12px 16px; transform: translateY(-10px); opacity:0; pointer-events:none;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .qc-menu li{ width:100%; }
  .qc-menu a{ display:block; width:100%; border-radius:10px; }
  .qc-menu.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .qc-footer__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 576px){
  :root{ --header-h: 58px; }
}
