/* ============================================
   [BRAND] Landing — styles
   Эстетика: editorial minimalism + technical accent
   ============================================ */

:root {
  /* Палитра — кремовый фон, глубокий чёрный, янтарный акцент */
  --bg: #f4f1ea;
  --bg-deep: #ebe6da;
  --ink: #1a1814;
  --ink-soft: #4a463e;
  --ink-faded: #8a857a;
  --line: #d8d2c2;
  --accent: #c4622d;     /* охристо-янтарный, как у керамики */
  --accent-soft: #e8a07a;
  --paper: #fffdf7;
  --dark: #1a1814;
  --dark-2: #25221c;

  /* Типографика */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Размеры */
  --container: 1240px;
  --gutter: 32px;

  /* Радиусы и тени */
  --radius: 4px;
  --radius-lg: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow--light { color: var(--accent-soft); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.section__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 32px;
}

.section__head {
  margin-bottom: 64px;
  max-width: 880px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__mark { color: var(--accent); }
.logo__name { color: var(--ink); }
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link--cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 100px;
  transition: background .2s;
}
.nav__link--cta:hover { background: var(--accent); color: var(--paper); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--full { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero__decoration {
  position: absolute;
  top: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  color: var(--line);
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 70%);
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  margin-bottom: 32px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 1100px;
  margin-bottom: 36px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero__lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 48px;
  font-weight: 400;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 96px;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.meta-item__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
}
.meta-item__num sup {
  font-size: 0.5em;
  color: var(--accent);
  vertical-align: super;
}
.meta-item__label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-faded);
  max-width: 200px;
}

/* ============================================
   SECTIONS — generic
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

/* ============================================
   PROBLEM
   ============================================ */
.section--problem {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--paper);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.problem-card__num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 72;
}
.problem-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ============================================
   SOLUTION / SYNERGY
   ============================================ */
.synergy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.synergy__half {
  padding: 56px 48px;
}
.synergy__half--left { border-right: 1px dashed var(--line); }
.synergy__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  margin-bottom: 24px;
}
.synergy__title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.synergy__desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.55;
}
.synergy__list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.synergy__list li:last-child { border-bottom: 1px solid var(--line); }
.synergy__list .num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 2px;
}

.synergy__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  position: relative;
}
.connector__line {
  flex: 1;
  width: 1px;
  background: var(--line);
}
.connector__plus {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  margin: 16px 0;
}

/* ============================================
   LOOP / CYCLE
   ============================================ */
.section--loop {
  background: var(--dark);
  color: var(--paper);
}
.section--loop .section__title { color: var(--paper); }
.section--loop .section__title em { color: var(--accent-soft); }
.section--loop .section__lead { color: rgba(255, 253, 247, 0.7); }
.section--loop .eyebrow { color: var(--accent-soft); }

.loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-items: start;
}
.loop__step {
  background: var(--dark-2);
  border: 1px solid rgba(255, 253, 247, 0.1);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  min-height: 200px;
}
.loop__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.loop__step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--paper);
  font-variation-settings: "opsz" 72;
}
.loop__step p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 253, 247, 0.7);
  margin: 0;
}
.loop__arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-soft);
  align-self: center;
  padding: 0 4px;
}
.loop__step--final {
  grid-column: 5 / 6;
  grid-row: 1 / 2;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--dark-2), rgba(196, 98, 45, 0.15));
}
.loop__arrow--back {
  grid-column: 4 / 5;
  font-size: 32px;
}

/* ============================================
   CASES
   ============================================ */
.section--cases {
  background: var(--bg);
}
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(26, 24, 20, 0.15);
}
.case-card__head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.case-card__industry {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-card__name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.case-card__results {
  display: grid;
  gap: 28px;
}
.result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
}
.result__before, .result__after {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faded);
  grid-column: 1;
}
.result__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  grid-column: 2;
  font-variation-settings: "opsz" 72;
}
.result__value--was {
  color: var(--ink-faded);
  text-decoration: line-through;
  text-decoration-color: var(--accent-soft);
  font-weight: 400;
}
.result__caption {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 9;
}

/* ============================================
   INDUSTRIES
   ============================================ */
.section--industries {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.industries li {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  padding: 14px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  transition: all .25s;
}
.industries li:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.industries__caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faded);
  margin: 0;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process__step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.process__step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.process__step:hover::before { transform: scaleX(1); }
.process__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.process__step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.process__step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.section--contact {
  background: var(--dark);
  color: var(--paper);
  padding: 120px 0;
}
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.contact__lead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 253, 247, 0.75);
  margin: 0 0 40px;
  max-width: 480px;
}
.contact__perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__perks li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-soft);
  padding-left: 24px;
  position: relative;
}
.contact__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.form {
  background: var(--dark-2);
  border: 1px solid rgba(255, 253, 247, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.form__row { margin-bottom: 20px; }
.form__label-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 253, 247, 0.2);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--paper);
  outline: none;
  transition: border-color .2s;
}
.form__input::placeholder { color: rgba(255, 253, 247, 0.3); }
.form__input:focus { border-bottom-color: var(--accent); }

.form .btn--primary {
  background: var(--accent);
  color: var(--paper);
  margin-top: 16px;
}
.form .btn--primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.form__legal {
  font-size: 12px;
  color: rgba(255, 253, 247, 0.4);
  margin: 16px 0 0;
  text-align: center;
}
.form__legal a { color: var(--accent-soft); text-decoration: underline; }

.form__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.form__status--ok {
  background: rgba(196, 98, 45, 0.15);
  color: var(--accent-soft);
  border: 1px solid rgba(196, 98, 45, 0.3);
}
.form__status--err {
  background: rgba(255, 100, 100, 0.1);
  color: #ff8a8a;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 253, 247, 0.7);
  padding: 64px 0 48px;
  border-top: 1px solid rgba(255, 253, 247, 0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.logo--footer { color: var(--paper); font-size: 18px; }
.logo--footer .logo__name { color: var(--paper); }
.footer__tagline {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 280px;
}
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__contacts a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 253, 247, 0.7);
  transition: color .2s;
}
.footer__contacts a:hover { color: var(--accent-soft); }
.footer__legal {
  font-size: 12px;
  line-height: 1.6;
}
.footer__legal p { margin: 0 0 6px; }
.footer__legal a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-soft);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .problem-grid { grid-template-columns: 1fr; }
  .synergy { grid-template-columns: 1fr; }
  .synergy__half--left { border-right: none; border-bottom: 1px dashed var(--line); }
  .synergy__connector { flex-direction: row; width: 100%; height: 80px; padding: 0 24px; }
  .connector__line { width: auto; height: 1px; flex: 1; }
  .connector__plus { margin: 0 16px; }
  .loop {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .loop__step--final { grid-column: 1; grid-row: auto; }
  .loop__arrow { transform: rotate(90deg); }
  .loop__arrow--back { display: none; }
  .cases { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { gap: 16px; }
  .nav__link:not(.nav__link--cta) { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 80px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .meta-item__num { font-size: 36px; }
  .synergy__half { padding: 36px 28px; }
  .case-card { padding: 32px 24px; }
  .process__step { padding: 36px 28px; }
  .form { padding: 28px 24px; }
  .industries li { font-size: 18px; padding: 10px 18px; }
}
