/* ═══════════════════════════════════════════════════════
   ЛАПА · INTERFORUM.SU
   Стиль: Советский технооптимизм · 1980
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Share+Tech+Mono&family=Oswald:wght@300;400;600;700&display=swap');

/* ── ПЕРЕМЕННЫЕ ── */
:root {
  --red:       #D92B2B;
  --red-dark:  #A01E1E;
  --red-glow:  rgba(217, 43, 43, 0.35);
  --cream:     #F0E8D0;
  --cream-dim: #C8BFA0;
  --dark:      #0D0C08;
  --dark-mid:  #181610;
  --dark-card: #131208;
  --gold:      #D4A017;
  --gold-dim:  #8A6A0A;
  --cyan:      #00E5C8;
  --cyan-dim:  rgba(0, 229, 200, 0.15);

  --font-head:  'Russo One', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
  --font-body:  'Oswald', sans-serif;

  --border: 1px solid rgba(240, 232, 208, 0.15);
  --border-red: 1px solid var(--red);
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240,232,208,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,232,208,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 200px; }
}

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,12,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-red);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header__logo-img { width: 40px; height: 40px; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1; }
.header__logo-ru {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--red);
  letter-spacing: 0.05em;
}
.header__logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cream-dim);
  letter-spacing: 0.15em;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.header__nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.header__nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Ticker */
.header__ticker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--red);
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid var(--red-dark);
  padding-left: 1rem;
}
.ticker-text {
  display: inline-block;
  animation: ticker 18s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.hero__diagram {
  width: min(700px, 60vw);
  opacity: 0.18;
  animation: heroRotate 40s linear infinite;
}
@keyframes heroRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  color: var(--red);
  -webkit-text-stroke: 2px var(--red);
  text-shadow: 0 0 60px var(--red-glow), 0 0 120px var(--red-glow);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero__subtitle strong { color: var(--cream); font-weight: 600; }

/* CTAs */
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 30px var(--red-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(240,232,208,0.4);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(240,232,208,0.05);
}
.btn--full { width: 100%; justify-content: center; }
.btn__arrow { font-size: 1rem; }

/* Stats */
.hero__stats {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: flex;
  gap: 0;
  border-top: var(--border);
  position: relative;
  z-index: 2;
}
.stat-block {
  flex: 1;
  padding: 1.5rem 2rem;
  border-right: var(--border);
  animation: fadeUp 1s ease 0.3s both;
}
.stat-block:last-child { border-right: none; }
.stat-block__num {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-block__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   MARQUEE BAND
══════════════════════════════════════════ */
.marquee-band {
  background: var(--red);
  padding: 0.7rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-band__inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-band__inner span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0 1.5rem;
  color: #fff;
}
.marquee-band__inner .sep {
  color: rgba(255,255,255,0.5);
  padding: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-header__code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.15em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  border-left: 2px solid var(--red);
  padding-left: 0.4rem;
  height: 60px;
  display: flex;
  align-items: center;
}
.section-header__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
}
.section-header--light .section-header__title { color: var(--cream); }
.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240,232,208,0.3), transparent);
}

/* ══════════════════════════════════════════
   DIRECTIONS
══════════════════════════════════════════ */
.directions {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}
.directions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(240,232,208,0.1);
}

.dir-card {
  background: var(--dark-card);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dir-card:hover {
  transform: translateY(-4px);
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.dir-card__corner {
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translate(2px, 2px);
}
.dir-card--it  .dir-card__corner { border-color: var(--cyan); }
.dir-card--bio .dir-card__corner { border-color: var(--gold); }
.dir-card--ai  .dir-card__corner { border-color: var(--red); }

.dir-card__icon {
  width: 60px; height: 60px;
  margin-bottom: 1rem;
}
.dir-card__icon img { width: 100%; height: 100%; }

.dir-card__num {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.07;
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: var(--cream);
}

.dir-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.dir-card--it  .dir-card__title { color: var(--cyan); }
.dir-card--bio .dir-card__title { color: var(--gold); }
.dir-card--ai  .dir-card__title { color: var(--red); }

.dir-card__text {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.dir-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dir-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(240,232,208,0.2);
  color: var(--cream-dim);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services {
  padding: 6rem 0;
  background: var(--dark-mid);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.services__bg-text {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  font-family: var(--font-head);
  font-size: clamp(6rem, 15vw, 16rem);
  color: rgba(240,232,208,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: var(--border);
  position: relative;
  transition: background 0.2s;
}
.svc-row:first-child { border-top: var(--border); }
.svc-row:hover { background: rgba(217,43,43,0.04); }
.svc-row:hover .svc-row__num { color: var(--red); }

.svc-row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.svc-row__title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.svc-row__desc {
  font-size: 0.9rem;
  color: var(--cream-dim);
  max-width: 600px;
}

.svc-row__icon {
  display: flex;
  justify-content: flex-end;
}
.svc-row__icon img {
  width: 48px; height: 48px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.svc-row:hover .svc-row__icon img { opacity: 1; }

/* ══════════════════════════════════════════
   EXPERTISE
══════════════════════════════════════════ */
.expertise {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.expertise__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.expertise__diagram {
  display: flex;
  justify-content: center;
}
.expertise__wheel {
  width: min(400px, 100%);
  animation: slowSpin 20s linear infinite;
  filter: drop-shadow(0 0 40px rgba(0, 229, 200, 0.2));
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.expertise__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.3rem 1rem;
  align-items: center;
}
.exp-item__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(240,232,208,0.1);
  position: relative;
  overflow: hidden;
}
.exp-item__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  width: var(--pct);
  animation: barGrow 1.5s ease both;
}
@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--pct); }
}

.exp-item__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}
.exp-item__val {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--red);
  text-align: right;
}

.expertise__quote {
  border-left: 3px solid var(--red);
  padding: 1.5rem 2rem;
  background: rgba(217,43,43,0.05);
  position: relative;
}
.expertise__quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--red);
  opacity: 0.2;
  position: absolute;
  top: -1rem; left: 1rem;
  line-height: 1;
}
blockquote {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--cream-dim);
  font-style: italic;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  padding: 6rem 0;
  background: var(--dark-mid);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.contact__bg-gfx {
  position: absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 500px;
  pointer-events: none;
  opacity: 0.08;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__intro {
  font-size: 1.1rem;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-detail__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.contact-detail__value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--cream);
  transition: color 0.2s;
}
.contact-detail__value:hover { color: var(--red); }
.contact-detail__value--active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,200,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,229,200,0); }
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.form-input {
  background: rgba(240,232,208,0.05);
  border: 1px solid rgba(240,232,208,0.15);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.form-input:focus {
  border-color: var(--red);
  background: rgba(217,43,43,0.05);
}
.form-input::placeholder { color: rgba(240,232,208,0.25); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--dark-mid); color: var(--cream); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  border-top: var(--border-red);
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
}
.footer__logo-img { width: 28px; height: 28px; }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(240,232,208,0.3);
  letter-spacing: 0.08em;
  flex: 1;
  text-align: center;
}
.footer__email a { color: var(--red); }
.footer__email a:hover { text-decoration: underline; }

/* Signal bars */
.footer__signal {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.signal-bar {
  width: 4px;
  background: var(--red);
  border-radius: 1px;
}
.signal-bar:nth-child(1) { height: 8px;  animation: signalPulse 1.5s 0.0s ease-in-out infinite; }
.signal-bar:nth-child(2) { height: 13px; animation: signalPulse 1.5s 0.2s ease-in-out infinite; }
.signal-bar:nth-child(3) { height: 18px; animation: signalPulse 1.5s 0.4s ease-in-out infinite; }
.signal-bar:nth-child(4) { height: 24px; animation: signalPulse 1.5s 0.6s ease-in-out infinite; }
.signal-bar:nth-child(5) { height: 30px; animation: signalPulse 1.5s 0.8s ease-in-out infinite; }
@keyframes signalPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .header__ticker { display: none; }
  .header__nav { gap: 1rem; }

  .hero__stats { flex-direction: column; gap: 0; }
  .stat-block { border-right: none; border-bottom: var(--border); }

  .expertise__layout { grid-template-columns: 1fr; }
  .expertise__diagram { display: none; }

  .contact__layout { grid-template-columns: 1fr; }

  .svc-row { grid-template-columns: 60px 1fr; }
  .svc-row__icon { display: none; }
}

@media (max-width: 600px) {
  .header__nav { display: none; }
  .dir-card { padding: 1.75rem; }
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
