/* ============================================================
   PCB·BOTS — portfolio site styles
   Dark, PCB-inspired theme. Green/cyan accents.
   Pixel font (Monocraft, Minecraft-style) for accents.
   ============================================================ */

@font-face {
  font-family: "Monocraft";
  src: url("assets/fonts/Monocraft.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Monocraft";
  src: url("assets/fonts/Monocraft-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #070b12;
  --bg2: #0a101a;
  --panel: #0d1520;
  --panel2: #101b29;
  --line: #17223a;
  --line-soft: rgba(140, 165, 200, 0.10);
  --text: #e8eef6;
  --muted: #93a1b5;
  --acc: #33e58c;
  --acc2: #35d0f0;
  --acc3: #8f7bf7;
  --dark-on-acc: #04140b;
  --grad: linear-gradient(92deg, var(--acc) 0%, var(--acc2) 100%);
  --radius: 16px;
  --header-h: 68px;
  --font-pixel: "Monocraft", "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background: glows + pad grid */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 85% -6%, rgba(53, 208, 240, 0.10), transparent 60%),
    radial-gradient(720px 520px at -12% 24%, rgba(51, 229, 140, 0.08), transparent 60%),
    radial-gradient(rgba(148, 170, 205, 0.055) 1px, transparent 1.6px);
  background-size: auto, auto, 26px 26px;
}

::selection { background: rgba(51, 229, 140, 0.35); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2a42; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #28395c; }

a { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- header ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--acc);
  flex: none;
}

.logo-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo-text em { color: var(--acc); font-style: normal; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav > a:not(.nav-cta) {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav > a:not(.nav-cta):hover { color: var(--text); }
.nav > a:not(.nav-cta).active { color: var(--acc); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(13, 21, 32, 0.7);
}

.lang-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 12.5px "Inter", sans-serif;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.lang-btn.active {
  background: var(--grad);
  color: var(--dark-on-acc);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: var(--dark-on-acc);
  box-shadow: 0 8px 26px rgba(51, 229, 140, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 10px 30px rgba(51, 229, 140, 0.32);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(13, 21, 32, 0.5);
}
.btn-ghost:hover {
  border-color: rgba(51, 229, 140, 0.55);
  color: var(--acc);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------------- hero ---------------- */

.hero { padding: 88px 0 56px; }

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(51, 229, 140, 0.35);
  border-radius: 999px;
  background: rgba(51, 229, 140, 0.08);
  color: #b9f4d4;
  font-size: 13px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  animation: ping 2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(51, 229, 140, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(51, 229, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(51, 229, 140, 0); }
}

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.3vw, 2.55rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  margin-top: 40px;
  max-width: 520px;
}

.stat {
  border-left: 2px solid rgba(51, 229, 140, 0.6);
  padding-left: 14px;
}
.stat .v {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat .l {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* hero PCB art */

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(51, 229, 140, 0.10));
}

.is-hidden { display: none !important; }

/* танцующий СФ — главная гифка героя */
.hero-gif {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(51, 229, 140, 0.4);
  background: linear-gradient(180deg, rgba(51, 229, 140, 0.08), rgba(53, 208, 240, 0.05)), var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 44px rgba(51, 229, 140, 0.14);
  transform: rotate(2deg);
  animation: float 3.5s ease-in-out infinite alternate;
}
.hero-gif img {
  display: block;
  width: 100%;
  border-radius: 16px;
  image-rendering: pixelated; /* апскейл в стиле пиксельного шрифта */
}
.hero-gif-cap {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding-top: 11px;
}
@keyframes float {
  from { transform: rotate(2deg) translateY(0); }
  to   { transform: rotate(2deg) translateY(-10px); }
}

.traces path { stroke: rgba(80, 180, 140, 0.28); }
.pads circle { stroke: rgba(51, 229, 140, 0.75); fill: #0a1420; }
.vias circle { stroke: rgba(53, 208, 240, 0.7); fill: #0a1420; }
.pins rect { fill: rgba(51, 229, 140, 0.45); }

.chip > rect:first-of-type {
  fill: #0c1826;
  stroke: var(--acc);
  stroke-width: 1.6;
}
.chip > rect:nth-of-type(2) { fill: none; }

.chip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  fill: var(--acc);
}
.chip-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  fill: rgba(147, 161, 181, 0.85);
}

.pulse {
  stroke: var(--acc2);
  stroke-dasharray: 14 220;
  animation: pulse 3.4s linear infinite;
}
.pulse.p2 { animation-delay: 1.1s; }
.pulse.p3 { animation-delay: 2.2s; }
@keyframes pulse {
  from { stroke-dashoffset: 234; }
  to   { stroke-dashoffset: 0; }
}

/* ---------------- marquee ---------------- */

.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.014);
}

.marquee-in {
  display: flex;
  width: max-content;
  animation: mq 34s linear infinite;
}
.marquee-in span {
  padding: 13px 0;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 161, 181, 0.75);
}
@keyframes mq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- sections ---------------- */

.section { padding: 96px 0; }

.section-head { max-width: 680px; margin-bottom: 52px; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  line-height: 1.4;
  letter-spacing: 0;
}

.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* ---------------- cards / services ---------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 229, 140, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(51, 229, 140, 0.10);
  color: var(--acc);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 17.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------- skills ---------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.skill-group h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.chip {
  padding: 7px 13px;
  border-radius: 10px;
  background: #0d1725;
  border: 1px solid #1b2942;
  font-size: 13.5px;
  color: #ccd6e4;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: rgba(51, 229, 140, 0.5); color: var(--text); }

/* ---------------- projects ---------------- */

.proj-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid rgba(51, 229, 140, 0.35);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(51, 229, 140, 0.05), transparent 45%), var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.proj-thumb {
  position: relative;
  background: linear-gradient(160deg, #0c1520, #0a111c);
  color: var(--acc);
  min-height: 200px;
}
.proj-thumb > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb-c { color: var(--acc2); }
.thumb-b { color: var(--acc3); }
.thumb-a { color: var(--acc); }

.thumb-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.thumb-center .bot-badge {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 28, 0.85);
  border: 1px solid rgba(51, 229, 140, 0.4);
  color: var(--acc);
  box-shadow: 0 0 34px rgba(51, 229, 140, 0.18);
}
.thumb-center svg { width: 44px; height: 44px; }

.proj-body { padding: 30px; }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(53, 208, 240, 0.12);
  border: 1px solid rgba(53, 208, 240, 0.4);
  color: #9fe2f5;
}

.proj-body h3 { font-size: 21px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.proj-body > p { color: var(--muted); font-size: 15px; max-width: 640px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #0b1420;
}

.link {
  display: inline-block;
  margin-top: 18px;
  color: var(--acc);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

.proj-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 229, 140, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.proj-card .proj-thumb { min-height: 0; aspect-ratio: 16 / 8.5; }

.proj-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #0b1420;
  transition: filter 0.25s;
}
.proj-card:hover .proj-img { filter: brightness(1.08); }
.proj-card .proj-body { padding: 20px 22px 24px; }
.proj-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.proj-card p { color: var(--muted); font-size: 14px; }

.proj-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 24px;
}

/* ---------------- process ---------------- */

.steps { max-width: 760px; }

.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(140, 165, 200, 0.16);
}
.step:last-child { border-bottom: 0; }

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--acc);
  width: 42px;
  flex: none;
  padding-top: 2px;
}

.step h3 { font-size: 16.5px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------------- pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(51, 229, 140, 0.4); }

.plan.hot {
  border-color: rgba(51, 229, 140, 0.55);
  background: linear-gradient(180deg, rgba(51, 229, 140, 0.07), transparent 42%), var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--dark-on-acc);
  font-size: 12px;
  font-weight: 700;
}

.plan h3 { font-size: 17px; letter-spacing: -0.01em; }

.price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

.plan-tag { color: var(--muted); font-size: 14px; min-height: 42px; }

.plan ul { list-style: none; margin: 20px 0 24px; flex: 1; }
.plan li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: #c6d0dd;
}
.plan li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--acc);
}

.pricing-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 26px;
  max-width: 720px;
}

/* ---------------- faq ---------------- */

.faq { max-width: 800px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc); }

.chev {
  color: var(--acc);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
  flex: none;
}
.faq-item[open] .chev { transform: rotate(45deg); }

.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------- memes ---------------- */

.memes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.meme-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.meme-card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  border-color: rgba(51, 229, 140, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.meme-card:nth-child(even):hover { transform: translateY(-4px) rotate(0.6deg); }
.meme-card img { display: block; width: 100%; }

/* ---------------- contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-grid > .contact-cards { grid-column: 1; grid-row: 1; }
.contact-grid > .contact-form { grid-column: 1; grid-row: 2; }

.contact-cards { display: grid; gap: 14px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.c-ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(51, 229, 140, 0.10);
  color: var(--acc);
}
.c-ic svg { width: 21px; height: 21px; }

.c-info { flex: 1; min-width: 0; }
.c-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
}
.c-val:hover { color: var(--acc); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0b1320;
  border: 1px solid #1c2a44;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(51, 229, 140, 0.6);
  box-shadow: 0 0 0 3px rgba(51, 229, 140, 0.12);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5d6b80; }

.form-actions {
  display: flex;
  gap: 10px;
}
.form-actions > * { flex: 1; }
.form-actions .btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.form-status {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(51, 229, 140, 0.10);
  border: 1px solid rgba(51, 229, 140, 0.4);
  color: #9df0c4;
}
.form-status.err {
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
}

.form-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ---------------- мемные вставки ---------------- */

.contact-meme {
  margin: 0;
  width: min(360px, 92%);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;      /* по середине правой колонки */
  justify-self: center;
}
.contact-meme img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}
/* «СВЯЗЬ» — мем с русской надписью, в EN-версии не показываем */
body.lang-en .contact-meme { display: none; }

.guarantee {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 780px;
  margin-top: 30px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.guarantee img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
  transform: rotate(-2deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.guarantee p { color: #c6d0dd; font-size: 17px; line-height: 1.55; font-weight: 500; }

.smart-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 36px 0 0;
}
.smart-cat img {
  height: 150px;
  width: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  transform: rotate(2deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.smart-cat figcaption { color: #c6d0dd; font-size: 17px; font-weight: 500; }

/* ---------------- боты: живой диалог ---------------- */

.bot-demo {
  max-width: 720px;
  margin: 36px auto 0;
  background: #0a0f18;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.demo-head svg { width: 18px; height: 18px; color: var(--acc); flex: none; }

.demo-body { padding: 18px 20px 8px; }

.demo-body p {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.demo-you { color: var(--muted); }
.demo-you::before { content: "> "; color: var(--acc); font-weight: 600; }
.demo-bot { color: var(--text); }
.demo-bot::before { content: "JARVIS: "; color: var(--acc2); font-weight: 600; }

.demo-cap {
  padding: 0 20px 16px;
  color: rgba(147, 161, 181, 0.6);
  font-size: 12px;
}

.bots-cta { display: inline-block; margin-top: 26px; font-size: 15.5px; }

/* ---------------- about: готическая зона ---------------- */

#about {
  position: relative;
  background:
    radial-gradient(1100px 480px at 72% 0%, rgba(217, 212, 199, 0.05), transparent 65%),
    linear-gradient(180deg, #050609, #07080c);
  border-top: 1px solid #15161c;
  border-bottom: 1px solid #15161c;
  overflow: hidden;
}
/* зерно плёнки */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.05;
  pointer-events: none;
}

#about .section-head h2 {
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.02em;
  color: #d9d4c7;
}
#about .eyebrow { color: #8a8474; }

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 52px;
  align-items: center;
}

.about-portrait {
  position: relative;
  margin: 0;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(217, 212, 199, 0.22);
  border-radius: 2px;
  pointer-events: none;
}
.about-portrait img {
  display: block;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #23232a;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65);
}
/* виньетка поверх портрета */
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.about-text p {
  color: #b9b4a6;
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-text .drop::first-letter {
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: #d9d4c7;
}

.about-facts { list-style: none; margin: 10px 0 4px; }
.about-facts li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: #a8a396;
  font-size: 15.5px;
}
.about-facts li::before {
  content: "✕";
  position: absolute;
  left: 2px;
  top: 6px;
  color: #8a2b2b;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.now-playing {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 7px 15px;
  border: 1px solid rgba(217, 212, 199, 0.22);
  border-radius: 999px;
  color: #8f8a7e;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.now-playing::before {
  content: "♪";
  color: #8a2b2b;
  margin-right: 9px;
  font-size: 14px;
}

@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 400px; margin: 0 auto; }
}

/* поляроид «а это я» */
.about-polaroid {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 52%;
  margin: 0;
  background: #e7e2d5;
  padding: 8px 8px 6px;
  border-radius: 3px;
  transform: rotate(-7deg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}
.about-polaroid img { display: block; width: 100%; border-radius: 2px; }
.about-polaroid figcaption {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 20px;
  color: #2e2c26;
  text-align: center;
  padding: 5px 0 2px;
}

/* мечта: BMW E39 выезжает из темноты */
.about-dream {
  margin: 52px auto 0;
  max-width: 660px;
}
.dream-scene {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #15161c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.dream-car {
  display: block;
  width: 100%;
  opacity: 0;
}
.about-dream.drive .dream-car {
  will-change: transform, filter, opacity;
  animation: e39-in 6.5s cubic-bezier(0.2, 0.6, 0.25, 1) forwards;
}
/* выезжает СВЕРХУ ВНИЗ: из темноты и дали — прямо в кадр на зрителя */
@keyframes e39-in {
  0%   { opacity: 0; transform: translateY(-58%) scale(0.84); filter: blur(14px) brightness(0.2); }
  35%  { opacity: 0.9; filter: blur(6px) brightness(0.6); }
  70%  { filter: blur(1.5px) brightness(0.9); }
  100% { opacity: 1; transform: none; filter: blur(0) brightness(1); }
}
.dream-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* плотная тьма сверху — оттуда машина спускается в кадр */
    linear-gradient(180deg, rgba(5, 6, 9, 0.97) 0%, rgba(5, 6, 9, 0.5) 26%, transparent 54%),
    linear-gradient(0deg, rgba(5, 6, 9, 0.8), transparent 40%),
    radial-gradient(130% 110% at 50% 50%, transparent 62%, rgba(5, 6, 9, 0.7));
}

/* ---------------- footer ---------------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-made { color: rgba(147, 161, 181, 0.65); }

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 16px);
  background: #0d1725;
  border: 1px solid rgba(51, 229, 140, 0.5);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 400px; }
  .hero { padding-top: 48px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .proj-featured { grid-template-columns: 1fr; }
  .proj-featured .proj-thumb { min-height: 190px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > .contact-cards,
  .contact-grid > .contact-form { grid-column: auto; grid-row: auto; }
  .contact-meme {
    grid-column: auto;
    grid-row: auto;
    order: 3;
    margin: 12px auto 0;
  }
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 14, 22, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }

  .nav > a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(140, 165, 200, 0.07);
  }
  .nav > a.nav-cta { margin-top: 16px; border-bottom: 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .hero-stats { gap: 14px 18px; }
  .proj-body { padding: 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .lang-btn { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .marquee-in, .dot, .hero-gif { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* honeypot от спам-ботов (визуально скрыт, но не display:none) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}