/* Премиальный Китай — сайт-визитка (0113). Токены и стилистики: тёмный hero + светлый editorial. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece7dc;
  --ink: #17181a;
  --ink-soft: #55565a;
  --night: #0f1011;
  --night-2: #17191b;
  --brass: #b3925f;
  --brass-soft: #d6bc94;
  --line-light: rgba(23, 24, 26, 0.14);
  --line-dark: rgba(244, 241, 234, 0.16);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  color: var(--paper);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.light {
  color: var(--ink);
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.logo-main {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.01em;
}

.logo-o { font-size: 0.62em; }

.logo-sub {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 9px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 28px; }

.nav a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav a:hover { opacity: 1; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover::after { transform: scaleX(1); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn-primary {
  background: var(--brass);
  color: #141516;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(179, 146, 95, 0.35);
}

.btn-ghost {
  border-color: currentColor;
  color: inherit;
  opacity: 0.85;
}

.btn-ghost:hover { opacity: 1; transform: translateY(-2px); }

.btn-small { padding: 10px 20px; font-size: 13px; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px var(--pad-x) 110px;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 72% 18%, rgba(179, 146, 95, 0.16), transparent 70%);
  pointer-events: none;
}

.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.overline-brass { color: var(--brass-soft); }

.hero-title {
  margin: 30px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.6vw, 6.8rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.line-in {
  display: block;
  transform: translateY(112%);
  animation: line-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.line:nth-child(2) .line-in { animation-delay: 0.14s; }
.line:nth-child(3) .line-in { animation-delay: 0.28s; }

@keyframes line-up { to { transform: none; } }

.hero-lead {
  max-width: 46ch;
  margin: 30px 0 0;
  color: rgba(244, 241, 234, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.route {
  position: absolute;
  right: var(--pad-x);
  bottom: 96px;
  width: min(44vw, 540px);
  opacity: 0.95;
}

.route-path {
  stroke: rgba(214, 188, 148, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0.5 9;
}

.route-end { fill: var(--brass-soft); }

.route-dot {
  fill: var(--brass);
  offset-path: path("M560 160 C 420 40, 190 15, 40 60");
  offset-rotate: 0deg;
  animation: route-move 7s linear infinite;
}

@keyframes route-move {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.route-label {
  fill: rgba(244, 241, 234, 0.55);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-foot {
  position: absolute;
  left: var(--pad-x);
  bottom: 30px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(244, 241, 234, 0.7), transparent);
  transform-origin: top;
  animation: scroll-drop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-drop {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- бегущая строка ---------- */

.marquee {
  background: var(--night);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  gap: 56px;
  padding-right: 56px;
}

.marquee-group span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  white-space: nowrap;
}

.marquee-group span::after {
  content: "·";
  margin-left: 56px;
  color: var(--brass);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */

.section { padding: clamp(84px, 10vw, 144px) var(--pad-x); }

.dark {
  background: var(--night);
  color: var(--paper);
}

.dark .overline { color: rgba(244, 241, 234, 0.5); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.section-head h2,
.contact-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

/* появление при скролле */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- о компании ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.manifesto {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.55;
}

.about-side p {
  margin: 0;
  color: var(--ink-soft);
}

.pullquote {
  margin: 34px 0 0;
  padding-left: 26px;
  border-left: 1px solid var(--brass);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- ценности ---------- */

.values { background: var(--paper-2); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.value { border-top: 1px solid var(--line-light); padding-top: 30px; }

.value .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brass);
}

.value h3 {
  margin: 16px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
}

.value p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- фокус ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.focus-card {
  padding: 42px 34px 46px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(165deg, rgba(244, 241, 234, 0.045), transparent 60%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease;
}

.focus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 188, 148, 0.55);
}

.focus-card svg {
  width: 58px;
  height: 58px;
  color: var(--brass-soft);
  margin-bottom: 30px;
}

.focus-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
}

.focus-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.66);
}

/* ---------- процесс ---------- */

.steps {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-light);
}

.step {
  display: grid;
  grid-template-columns: 57px 1fr;
  gap: clamp(22px, 3vw, 40px);
  padding: 30px 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass);
  position: relative;
  z-index: 1;
}

.step h3 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
}

.step p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
}

/* ---------- кейсы ---------- */

.cases { background: var(--paper-2); }

.case {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(38px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-light);
}

.case-body .overline { color: var(--brass); }

.case-body h3 {
  margin: 16px 0 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.case-line {
  margin: 0 0 16px;
  max-width: 56ch;
  color: var(--ink-soft);
}

.case-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.case-result {
  padding: clamp(28px, 3vw, 40px);
  background: var(--night);
  color: var(--paper);
}

.case-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}

.case-metric {
  margin: 16px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  color: var(--brass-soft);
}

.case-metric-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.66);
}

/* ---------- контакт ---------- */

.contact { display: flex; flex-direction: column; justify-content: space-between; }

.contact-inner { max-width: 760px; }

.contact-inner h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }

.contact-lead {
  max-width: 52ch;
  margin: 26px 0 0;
  color: rgba(244, 241, 234, 0.7);
}

.contact .hero-actions { margin-top: 40px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  margin-top: clamp(70px, 9vw, 120px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(244, 241, 234, 0.5);
}

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .route { position: static; width: min(78vw, 460px); margin: 44px 0 0; opacity: 0.7; }
  .hero { padding-bottom: 84px; }
}

@media (max-width: 560px) {
  .site-header .btn { display: none; }
  .hero-title { font-size: 2.3rem; line-height: 1.1; }
  .route { width: 100%; }
  .step { grid-template-columns: 44px 1fr; }
  .step-num { width: 44px; height: 44px; }
  .steps::before { left: 22px; }
}

/* ---------- уважение к prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line-in { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .route-dot { display: none; }
}
