/* ============================================
   BEDNARZ ROBERT — Tech landing theme
   ============================================ */
:root {
  --bg: #060913;
  --bg-2: #0a0f1f;
  --panel: rgba(13, 19, 36, 0.72);
  --border: rgba(0, 229, 255, 0.14);
  --border-strong: rgba(0, 229, 255, 0.35);
  --text: #e8eefc;
  --muted: #8b97b8;
  --cyan: #00e5ff;
  --violet: #7c5cff;
  --green: #2bff9e;
  --gradient: linear-gradient(92deg, var(--cyan) 0%, var(--violet) 100%);
  --font: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
.mono { font-family: var(--mono); }
.accent { color: var(--cyan); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

#particle-canvas { position: fixed; inset: 0; z-index: -3; opacity: .55; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}
.bg-glow { position: fixed; z-index: -2; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.bg-glow--1 { width: 560px; height: 560px; top: -180px; right: -120px; background: rgba(124, 92, 255, 0.16); }
.bg-glow--2 { width: 480px; height: 480px; bottom: -160px; left: -140px; background: rgba(0, 229, 255, 0.10); }
.scanline {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.12) 3px 4px);
  opacity: .35;
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.nav__logo-mark { color: var(--cyan); font-size: 1.25rem; text-shadow: 0 0 12px rgba(0,229,255,.7); }
.nav__logo-text { font-size: 1.05rem; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { font-size: .92rem; color: var(--muted); transition: color .2s; position: relative; }
.nav__links > a:hover { color: var(--text); }
.nav__links > a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gradient); transition: width .25s;
}
.nav__links > a:hover::after { width: 100%; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .8rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
  background: rgba(0, 229, 255, 0.04);
}
.lang-switch__btn {
  background: none; border: none; color: var(--muted);
  font: inherit; cursor: pointer; padding: 2px 4px; transition: color .2s, text-shadow .2s;
}
.lang-switch__btn.is-active { color: var(--cyan); text-shadow: 0 0 10px rgba(0,229,255,.6); }
.lang-switch__sep { color: var(--border-strong); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; cursor: pointer;
}
.nav__burger span { width: 20px; height: 2px; background: var(--cyan); transition: transform .3s, opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .25s;
}
.btn--sm { padding: 9px 18px; font-size: .85rem; border-radius: 8px; }
.btn--primary { background: var(--gradient); color: #04101a; box-shadow: 0 0 24px rgba(0, 229, 255, 0.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 229, 255, 0.45); }
.btn--ghost { border-color: var(--border-strong); color: var(--cyan); background: rgba(0,229,255,.04); }
.btn--ghost:hover { background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 130px 0 80px;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 16px; font-size: .72rem; letter-spacing: 1px;
  color: var(--green); background: rgba(43, 255, 158, 0.05);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(43, 255, 158, 0.6);
  animation: pulse 1.8s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,255,158,.55); }
  70% { box-shadow: 0 0 0 10px rgba(43,255,158,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,255,158,0); }
}
.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__title span { display: block; }
.hero__subtitle { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.hero__meta-item .accent { margin-right: 6px; }

.terminal {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.08), inset 0 0 40px rgba(0, 229, 255, 0.03);
  backdrop-filter: blur(10px);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.04);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.terminal__dot:first-child { background: var(--cyan); }
.terminal__title { margin-left: auto; font-size: .72rem; color: var(--muted); }
.terminal__body {
  padding: 22px 20px; font-size: .82rem; line-height: 2;
  min-height: 260px; color: var(--muted); white-space: pre-wrap;
}
.terminal__body .t-cmd { color: var(--cyan); }
.terminal__body .t-ok { color: var(--green); }
.terminal__body .t-violet { color: var(--violet); }
.terminal__cursor {
  display: inline-block; width: 9px; height: 16px;
  background: var(--cyan); vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .65rem; letter-spacing: 3px; color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drop 1.8s infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.section { padding: 110px 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.025) 20%, rgba(124, 92, 255, 0.03) 80%, transparent);
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__tag { color: var(--cyan); font-size: .78rem; letter-spacing: 2px; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.5px; margin: 14px 0 16px; }
.section__subtitle { color: var(--muted); }

.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.07), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 46px rgba(0, 229, 255, 0.1);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  margin-bottom: 40px; transition: box-shadow .3s;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { box-shadow: 0 0 22px rgba(0, 229, 255, 0.35); }
.service-card__num { position: absolute; top: 24px; right: 24px; font-size: 1.05rem; color: rgba(139, 151, 184, 0.35); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; position: relative; }
.service-card p { font-size: .9rem; color: var(--muted); position: relative; }

.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__content p { color: var(--muted); margin-bottom: 18px; }
.about__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badge {
  font-size: .7rem; letter-spacing: 2px; color: var(--violet);
  border: 1px solid rgba(124, 92, 255, 0.4); border-radius: 6px;
  padding: 7px 14px; background: rgba(124, 92, 255, 0.07);
}
.data-panel {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 50px rgba(124, 92, 255, 0.09);
  backdrop-filter: blur(10px);
}
.data-panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; font-size: .72rem; letter-spacing: 1px;
  color: var(--cyan); border-bottom: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.05);
}
.data-panel__body { padding: 10px 22px; }
.data-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px dashed rgba(139, 151, 184, 0.18);
  font-size: .82rem;
}
.data-row:last-child { border-bottom: none; }
.data-row dt { color: var(--muted); white-space: nowrap; }
.data-row dd { color: var(--text); text-align: right; }
.data-panel__foot {
  padding: 14px 22px; font-size: .72rem; color: var(--violet);
  border-top: 1px solid var(--border); background: rgba(124, 92, 255, 0.05);
}
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.contact-card:not(.contact-card--static):hover {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: 0 16px 44px rgba(0, 229, 255, 0.12);
}
.contact-card__icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--cyan);
  background: rgba(0, 229, 255, 0.06); margin-bottom: 22px;
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card__label { font-size: .68rem; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; }
.contact-card__value { font-size: 1.02rem; font-weight: 600; word-break: break-word; }

.footer { border-top: 1px solid var(--border); background: rgba(4, 6, 13, 0.7); padding: 56px 0 28px; }
.footer__top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid var(--border);
}
.footer__brand .nav__logo-text { font-size: 1.15rem; font-weight: 700; }
.footer__tagline { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.footer__legal { font-size: .74rem; color: var(--muted); text-align: right; }
.footer__legal-grid { display: grid; grid-template-columns: auto auto; gap: 6px 28px; justify-content: end; }
.footer__legal-note { margin-top: 14px; color: var(--muted); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: .7rem; color: var(--muted);
}
.footer__sig { color: var(--cyan); }

.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* скрытие только когда JS точно работает */
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: 560px; }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 9, 19, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 6% 24px;
    transform: translateY(-130%); transition: transform .35s ease;
    z-index: 99;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__links > a::after { display: none; }
  .lang-switch { margin: 16px 0; justify-content: center; }
  .nav__cta { justify-content: center; }
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding-top: 110px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__legal { text-align: left; }
  .footer__legal-grid { justify-content: start; }
}





