/* ============================================================
 * TechCreation.ru — Fluent Premium
 * ----------------------------------------------------------
 *  Прохладный серый фон + белые карточки + синий + оранжевый.
 *  Референс: outlook.live.com (Microsoft Fluent).
 *  Шрифт: IBM Plex Sans (намеренно не Inter).
 *  Дизайн ничего не давит, выглядит дорого.
 * ============================================================ */

/* ============ TOKENS · LIGHT (default) ============ */
:root {
  /* surfaces */
  --bg:        #f5f6f8;
  --sur:       #ffffff;
  --sur-2:     #fafbfc;
  --sur-3:     #eef0f3;

  /* text */
  --t1:        #1a1d23;
  --t2:        #5c6470;
  --t3:        #9ba3af;

  /* borders */
  --brd:       #e5e7eb;
  --brd-2:     #d1d5db;

  /* accents */
  --primary:        #2563eb;
  --primary-h:      #1d4ed8;
  --primary-soft:   #dbeafe;
  --accent:         #ea580c;
  --accent-h:       #c2410c;
  --accent-soft:    #ffedd5;
  --ok:             #059669;

  /* shadows · Fluent elevation */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 2px 6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 8px 24px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.10);
  --shadow-key: 0 1px 0 rgba(255, 255, 255, 0.5) inset;

  /* type */
  --ff-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms;

  /* layout */
  --container: 1200px;
  --container-narrow: 880px;
  --hdr-h: 64px;
}

/* ============ TOKENS · DARK ============ */
[data-theme="dark"] {
  --bg:        #0f172a;
  --sur:       #1e293b;
  --sur-2:     #172033;
  --sur-3:     #243248;

  --t1:        #f1f5f9;
  --t2:        #94a3b8;
  --t3:        #64748b;

  --brd:       #334155;
  --brd-2:     #475569;

  --primary:        #60a5fa;
  --primary-h:      #93c5fd;
  --primary-soft:   #1e3a8a;
  --accent:         #fb923c;
  --accent-h:       #fdba74;
  --accent-soft:    #7c2d12;
  --ok:             #34d399;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 8px 24px rgba(96, 165, 250, 0.18), 0 0 0 1px rgba(96, 165, 250, 0.14);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

html, body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background-color 0.4s var(--ease-2), color 0.4s var(--ease-2);
}

::selection {
  background: var(--primary-soft);
  color: var(--t1);
}

/* ============ LAYOUT ============ */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--container-narrow); }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ============ TYPE ============ */
.kicker {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

h1, h2, h3 {
  font-family: var(--ff-sans);
  color: var(--t1);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h1 .accent {
  color: var(--accent);
}
h2 {
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.022em;
  line-height: 1.15;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p { line-height: 1.7; color: var(--t2); }
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--t2);
  line-height: 1.65;
  max-width: 60ch;
  font-weight: 400;
}
.muted { color: var(--t2); }
.fine { font-size: 13px; color: var(--t3); line-height: 1.6; }

/* ============ INTRO SPLASH (CSS-only, 1.6 s) ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease-2) 1.0s, visibility 0s linear 1.6s;
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* scanning line — moves bottom→top once */
.intro-scan {
  position: absolute;
  inset: auto 0 0 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
  animation: scanUp 1.0s var(--ease-2) forwards;
}
@keyframes scanUp {
  0%   { bottom: 0; opacity: 1; }
  85%  { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}

/* bars assemble */
.intro-mark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.intro-bar {
  width: 18px;
  height: 0;
  border-radius: 3px;
  background: var(--primary);
  animation: barGrow 0.5s var(--ease) forwards;
}
.intro-bar:nth-child(1) { animation-delay: 0.30s; --target: 40px; }
.intro-bar:nth-child(2) { animation-delay: 0.45s; --target: 60px; }
.intro-bar:nth-child(3) { animation-delay: 0.60s; --target: 80px; background: var(--accent); }
@keyframes barGrow {
  to { height: var(--target); }
}

.intro-word {
  font-family: var(--ff-sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(6px);
  animation: wordIn 0.5s var(--ease) 1.1s forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* ============ HEADER ============ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--hdr-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
          backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--brd);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.hdr-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.hdr-logo .mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.hdr-logo .mark span {
  width: 5px;
  background: var(--primary);
  border-radius: 1px;
}
.hdr-logo .mark span:nth-child(1) { height: 10px; }
.hdr-logo .mark span:nth-child(2) { height: 16px; }
.hdr-logo .mark span:nth-child(3) { height: 22px; background: var(--accent); }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hdr-link {
  font-size: 14px;
  color: var(--t2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--t-base) var(--ease-2), background var(--t-base) var(--ease-2);
}
.hdr-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  background: var(--sur);
  transition: all var(--t-base) var(--ease-2);
}
.icon-btn:hover,
.lang-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.icon-btn svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .hdr-nav { display: none; }
}

/* ============ SECTIONS ============ */
section { padding: 96px 0; }
section.hero { padding: 64px 0 96px; }
section.alt { background: var(--sur-2); }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  section.hero { padding: 32px 0 56px; }
}

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ HERO ============ */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 52ch; font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* hero status panel (right side) */
.hero-panel {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.hero-panel h3 {
  font-size: 12px;
  font-family: var(--ff-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-bottom: 20px;
}
.hero-panel .status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--brd);
  font-size: 14px;
}
.hero-panel .status-row:first-of-type { border-top: 0; padding-top: 0; }
.hero-panel .status-row .label { color: var(--t2); }
.hero-panel .status-row .value {
  color: var(--t1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-panel .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
.hero-panel .dot.amber { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all var(--t-base) var(--ease-2);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}
.btn-primary:hover {
  background: var(--primary-h);
  border-color: var(--primary-h);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--sur);
  color: var(--t1);
  border-color: var(--brd);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.18);
}
.btn-accent:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
  transform: translateY(-1px);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 14px; height: 14px; }

/* ============ PRODUCT CARDS ============ */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 880px) { .cards-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease-2), transform 0.3s var(--ease-2), border-color 0.3s var(--ease-2);
}
.card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--brd));
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: 6px;
}
.card-tag.accent {
  color: var(--accent-h);
  background: var(--accent-soft);
}
[data-theme="dark"] .card-tag.accent { color: var(--accent); }

.card-status {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--t3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 24%, transparent);
}
.card-status.pending::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.card h3 { margin-bottom: 6px; font-size: 22px; }
.card .subtitle { font-size: 14px; color: var(--t2); margin-bottom: 20px; }
.card p { font-size: 15px; color: var(--t2); margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid var(--brd);
  border-radius: 6px;
  color: var(--t2);
  background: var(--sur-2);
}

/* ============ METHOD (3 columns) ============ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 880px) { .method-grid { grid-template-columns: 1fr; } }

.method-card {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease-2), transform 0.3s var(--ease-2);
}
.method-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.method-card .num {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.method-card h3 { margin-bottom: 8px; font-size: 18px; }
.method-card p { font-size: 14.5px; color: var(--t2); margin: 0; }

/* ============ TEAM ============ */
.team-solo {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.person-card {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease-2), transform 0.3s var(--ease-2);
}
.person-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}
.avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.person-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.person-role {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-1);
}
.contact-card h3 {
  font-size: 14px;
  font-family: var(--ff-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-bottom: 24px;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  padding: 14px 24px;
  background: var(--primary-soft);
  border-radius: 10px;
  transition: all var(--t-base) var(--ease-2);
  margin-bottom: 32px;
}
.contact-mail:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}
.contact-mail svg { width: 20px; height: 20px; }

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 540px) { .contact-meta { grid-template-columns: 1fr; } }
.contact-meta dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-bottom: 6px;
}
.contact-meta dd {
  font-size: 14.5px;
  color: var(--t1);
  line-height: 1.55;
}
.contact-meta dd a { color: var(--t1); transition: color 0.2s ease; }
.contact-meta dd a:hover { color: var(--primary); }

/* legal column */
.legal-card {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.legal-card h3 {
  font-size: 14px;
  font-family: var(--ff-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-bottom: 18px;
}
.legal-card dl dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--t3);
  margin-top: 16px;
}
.legal-card dl dt:first-child { margin-top: 0; }
.legal-card dl dd { font-size: 14px; color: var(--t1); margin-top: 4px; }

/* ============ NOTICE ============ */
.notice {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--brd));
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--t1);
}
[data-theme="dark"] .notice {
  background: color-mix(in srgb, var(--accent) 12%, var(--sur));
  color: var(--t1);
}
.notice strong { color: var(--t1); font-weight: 600; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--brd);
  padding: 32px 0 40px;
  background: var(--sur-2);
}
footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-size: 13px; color: var(--t3); margin: 0; }
footer nav { display: flex; gap: 20px; }
footer nav a { font-size: 13px; color: var(--t2); transition: color 0.2s ease; }
footer nav a:hover { color: var(--primary); }
footer .footer-fine {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--brd);
}
footer .footer-fine p {
  font-size: 12px;
  color: var(--t3);
  max-width: 760px;
  line-height: 1.55;
}

/* ============ A11Y ============ */
:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--primary-soft);
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
