:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --brand: #e61e25;
  --brand-dark: #bd0015;
  --brand-soft: #fef2f2;
  --brand-line: #fecaca;
  --emerald: #059669;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, .mark, .num, .result strong, .card strong, .profile strong {
  font-family: "Cabinet Grotesk", sans-serif;
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.brand { color: var(--brand); }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.mark {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mark-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
nav { display: flex; gap: 28px; align-items: center; }
nav a { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}
.header-cta:hover { background: #e2e8f0; }

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  width: fit-content;
  max-width: 100%;
}
.avatar { position: relative; flex-shrink: 0; }
.avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--brand-dark);
}
.verified {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
}
.verified .material-symbols-outlined { font-size: 13px; }
.profile-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile strong { font-size: 17px; font-weight: 800; }
.chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.profile-role { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
.profile-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
}
.profile-meta .material-symbols-outlined { font-size: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-size: 12px; font-weight: 600; }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
form {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230, 30, 37, 0.35);
}
.btn:hover { background: var(--brand-dark); }
.status { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; font-weight: 500; }
.status.ok { color: var(--emerald); }
.status.err { color: #dc2626; }

footer {
  color: #cbd5e1;
  padding: 68px 0 40px;
  margin-top: 60px;
  background: linear-gradient(#132a4a, #101c2e 50%, #0d131d);
  border-top: 1px solid rgba(75, 115, 175, 0.2);
}
.foot { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
footer h2 { color: #fff; margin-bottom: 14px; }
.footer-lead { color: #94a3b8; }
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
}
.person strong { display: block; color: #fff; font-size: 16px; font-weight: 700; font-family: inherit; }
.person span { color: #94a3b8; font-size: 13px; font-weight: 400; }
.phone-link { color: #fff; font-size: 22px; font-weight: 800; }
.mail-link { color: #f87171; font-size: 14px; font-weight: 600; }
.messengers { display: flex; gap: 10px; margin-top: 4px; }
.msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.msg .material-symbols-outlined { font-size: 16px; }
.msg-tg { background: rgba(2, 132, 199, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.msg-max { background: rgba(109, 40, 217, 0.18); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.35); }
.tiny { font-size: 13px; color: #64748b; line-height: 1.5; }

@media (max-width: 900px) {
  .bar { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .foot { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; gap: 14px 20px; }
}
