/* TartanovTech — personal brand card */
:root {
  --bg: #07080b;
  --bg-elev: #101218;
  --bg-card: rgba(16, 18, 24, 0.72);
  --line: rgba(212, 175, 87, 0.16);
  --line-strong: rgba(212, 175, 87, 0.38);
  --gold: #d4af57;
  --gold-soft: #e8d5a3;
  --gold-deep: #9a7b32;
  --text: #f2efe8;
  --muted: #9c9890;
  --danger-mark: #c4a056;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --header-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -40px;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.serif { font-family: var(--serif); font-weight: 400; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 87, 0.07), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(70, 90, 130, 0.14), transparent 50%),
    var(--bg);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.orb-a {
  width: 420px; height: 420px;
  right: -80px; top: 80px;
  background: rgba(212, 175, 87, 0.18);
}
.orb-b {
  width: 520px; height: 520px;
  left: -160px; top: 340px;
  background: rgba(46, 70, 110, 0.35);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark { color: var(--gold); }

.logo-word {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}
.logo-word span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-left: 0;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.02);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--gold);
  color: #141208;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-gold {
  background: linear-gradient(180deg, #e3c56f, var(--gold) 45%, var(--gold-deep));
  color: #161308;
  box-shadow: 0 8px 24px rgba(212, 175, 87, 0.18);
}
.btn-gold:hover { background: linear-gradient(180deg, #edd58a, #d4af57 50%, #8a6c28); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: 0.2s ease;
}
.menu-toggle span:nth-of-type(2) { top: 15px; }
.menu-toggle span:nth-of-type(3) { top: 23px; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
  top: 19px; transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
  top: 19px; transform: rotate(-45deg);
}

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-inner { max-width: 860px; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--text);
}
.hero-title .serif { display: block; }
.hero-tech {
  display: block;
  margin-top: 6px;
  font-family: var(--font);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.hero-lead {
  margin: 32px 0 14px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  max-width: 34ch;
}

.hero-text {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-meta li { position: relative; }
.hero-meta li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,0.05); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head .index {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-statement {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.about-copy p { margin: 0 0 16px; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  min-height: 230px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card-num {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -11px;
  left: 0;
  background: var(--bg);
  padding-right: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.steps h3 {
  margin: 8px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts-lead {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  color: var(--gold-soft);
}

.contact-card {
  display: flex;
  align-items: center;
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 26px;
  min-height: 120px;
  box-shadow: var(--shadow);
}
.contact-email {
  display: inline-block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
}
.contact-email:hover { color: var(--gold); }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}
.footer-brand span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.footer-copy { margin: 0; color: var(--muted); font-size: 13px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .about-grid,
  .cards,
  .contacts-grid,
  .steps { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(7, 8, 11, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; color: var(--text); }
  .menu-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .about-grid,
  .cards,
  .contacts-grid,
  .steps { grid-template-columns: 1fr; }
  .hero-lead { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
