/* =========================================================
   feramount.ru — personal site
   dark technical style, turquoise accent
   ========================================================= */

:root {
  --bg: #070b0d;
  --bg-2: #0a1013;
  --panel: #0d1418;
  --panel-2: #111a1f;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9f0f3;
  --muted: #93a5ae;
  --muted-2: #6f828b;
  --accent: #3ee0c8;
  --accent-2: #7af5e2;
  --accent-dim: rgba(62, 224, 200, 0.12);
  --accent-line: rgba(62, 224, 200, 0.32);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
pre { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(62, 224, 200, 0.25); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: #04110f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.header.is-scrolled {
  background: rgba(7, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(145deg, rgba(62, 224, 200, 0.16), rgba(62, 224, 200, 0.02));
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.18s;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: #04110f;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.nav .nav-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(62, 224, 200, 0.7);
  color: #04110f;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  font-size: clamp(1.9rem, 4.25vw, 3.05rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 620;
  margin-bottom: 16px;
}
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.13rem); color: var(--muted); max-width: 60ch; }
.section-sub { color: var(--muted); max-width: 66ch; font-size: 1.02rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04110f;
  box-shadow: 0 10px 30px -14px rgba(62, 224, 200, 0.8);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-dim); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

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

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 76px); }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 78% 8%, rgba(62, 224, 200, 0.14), transparent 62%),
    radial-gradient(520px 380px at 8% 32%, rgba(62, 224, 200, 0.06), transparent 65%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 78%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-copy, .hero-visual, .window, .term { min-width: 0; }
.hero-grid > *, .cards > *, .own > *, .steps > *, .security-grid > *,
.stack-grid > *, .about-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.02em; }
.hero-facts span { font-size: 12.5px; color: var(--muted-2); }

/* terminal window */

.hero-visual { position: relative; }
.window {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f171b, #0a1013);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a363c; display: block; }
.window-dots i:first-child { background: #3a2b2b; }
.window-dots i:nth-child(2) { background: #3a362b; }
.window-dots i:nth-child(3) { background: #23413b; }
.window-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.term {
  margin: 0;
  padding: 20px 20px 26px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
}
.term code { font-family: inherit; }
.t-prompt { color: var(--accent); user-select: none; }
.t-cmd { color: #dbe7ea; }
.t-out { color: #9fb2ba; }
.t-ok { color: var(--accent); }
.t-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.profile-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -18px 0 0 22px;
  padding: 11px 16px 11px 11px;
  width: max-content;
  max-width: calc(100% - 22px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 17, 20, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.95);
}
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(62, 224, 200, 0.22), rgba(62, 224, 200, 0.05));
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { position: relative; z-index: 0; }
.profile-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.profile-text strong { font-size: 13.5px; font-weight: 600; }
.profile-text span { font-size: 11.5px; color: var(--muted-2); }

/* ---------- strip ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 26px 22px 26px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat span { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; }
.stat + .stat { padding-left: 26px; }

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

.section { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: 84px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 52px); }

.subhead {
  margin: clamp(40px, 5vw, 58px) 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.subhead::after { content: ""; height: 1px; flex: 1; background: var(--line); }

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px 120px at 12% 0%, rgba(62, 224, 200, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(62, 224, 200, 0.06);
  color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }

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

.own { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transition: border-color 0.22s, transform 0.22s;
}
.project:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.project-lg { padding: 30px 30px 26px; }
.project-lg::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.project-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.project-year { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.project h3 { font-size: 1.32rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.project-role { color: var(--accent); font-size: 13px; margin-bottom: 12px !important; }
.project p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.project .chips { margin: 18px 0 22px; }
.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  width: max-content;
  transition: color 0.18s, border-color 0.18s;
}
.project-link svg { width: 13px; height: 13px; transition: transform 0.18s; }
.project-link:hover { color: var(--accent); border-color: var(--accent-line); }
.project-link:hover svg { transform: translate(2px, -2px); }

.cards-projects { grid-template-columns: repeat(2, 1fr); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #a9bac2;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- security ---------- */

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.security-copy .btn { margin-top: 26px; }
.security-list { display: grid; gap: 2px; }
.security-list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s, background 0.2s;
}
.security-list li:hover { border-color: var(--accent-line); background: rgba(62, 224, 200, 0.04); }
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  margin-top: 2px;
}
.security-list strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.security-list p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.step {
  position: relative;
  padding: 28px 22px 8px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step + .step { padding-left: 22px; }
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 40px;
}
.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 12px rgba(62, 224, 200, 0.55);
}
.step + .step::before { left: 22px; }
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.58; }

/* ---------- stack ---------- */

.stack-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 70px); }
.stack-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.stack-group h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.stack-group .chips li { padding: 6px 11px; font-size: 12px; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.about-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1619, #0a1013);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-photo {
  margin: -6px 0 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a1013;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  filter: saturate(0.95);
}
.avatar-lg { width: 76px; height: 76px; font-size: 20px; border-radius: 18px; }
.about-name { font-weight: 600; font-size: 1.05rem; margin: 18px 0 4px; }
.about-role { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 22px; }
.about-facts { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.about-facts li { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.about-facts span { color: var(--muted-2); }
.about-facts strong { font-weight: 500; text-align: right; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-copy h2 { margin-bottom: 18px; }
.principles { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.principles li { font-size: 14px; color: var(--muted); }
.principles strong { color: var(--text); font-weight: 600; }

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

.contact { border-top: 1px solid var(--line); background: radial-gradient(600px 380px at 15% 0%, rgba(62, 224, 200, 0.07), transparent 65%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact-links { display: grid; gap: 4px; margin-top: 30px; }
.contact-links li {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  flex: none;
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-links div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact-links span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--mono); }
.contact-links a, .contact-links p { font-size: 15px; color: var(--text); }
.contact-links a:hover { color: var(--accent); }
.contact-note { margin-top: 18px; font-size: 12.5px; color: var(--muted-2); line-height: 1.55; }

.form {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1619, #0a1013);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.01em; }
.field em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2393a5ae' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6d75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(62, 224, 200, 0.05);
  box-shadow: 0 0 0 3px rgba(62, 224, 200, 0.08);
}
.field select option { background: #0d1418; color: var(--text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; margin: 4px 0 18px; }
.consent input { margin: 3px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.consent a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.consent a:hover { color: var(--accent); }
.form-status { min-height: 20px; font-size: 13.5px; margin-top: 12px; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: var(--danger); }
.form-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.5; }

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

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 32px; }
.footer-brand p { color: var(--muted-2); font-size: 13.5px; margin-top: 16px; max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; align-content: start; }
.footer-nav a { font-size: 13.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-contacts { display: grid; gap: 9px; align-content: start; }
.footer-contacts a { font-size: 13.5px; color: var(--muted); }
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .security-grid, .stack-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; }
  .step { border-right: 0; border-top: 1px solid var(--line); padding: 22px 22px 22px 0; }
  .step + .step { padding-left: 22px; }
  .step::before, .step + .step::before { top: -4px; left: 0; }
  .step-num { margin-bottom: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(8, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; margin-top: 10px; text-align: center; }
  .burger { display: block; }
  .brand-text strong { font-size: 14px; }

  .strip-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; padding: 18px 0; }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat b { font-size: 1.45rem; }

  .cards, .own, .cards-projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-facts { gap: 18px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .project-lg { padding: 24px 22px 22px; }
  .project-lg::before { left: 22px; right: 22px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .profile-badge { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
