/* PLATIFY GLOBAL LIMITED — стили всех страниц. Сборки нет, файл правится как есть. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Нейтральные и синий — из фирменной палитры Platify */
  --ink: #050a16;
  --text: #1e1e33;
  --muted: #576175;
  --faint: #8a93a8;
  --line: #e4e9f2;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;

  --accent: #004bff;
  --accent-bright: #3565f3;
  --accent-tint: #f0f4ff;

  /* Тёмный блок контактов и подвал */
  --dark-text: #a3afc8;
  --dark-muted: #7a87a6;
  --dark-accent: #6b8df8;
  --dark-line: rgb(255 255 255 / 0.1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 18px;
  --header-h: 68px;

  color-scheme: light;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

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

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header__end {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Логотип Platify картинкой и «Global» текстом рядом. Строчные Geist в 17px
   совпадают по высоте со строчными надписи «platify» при логотипе в 38px. */
.brand {
  --logo-h: 38px;
  display: inline-block;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* Базовая линия «platify» — на 105 из 243 единиц рамки logo.svg выше её низа.
   Сдвиг сажает её на базовую линию строки, и «Global» встаёт с надписью в ряд. */
.brand img {
  display: inline;
  width: auto;
  height: var(--logo-h);
  vertical-align: calc(var(--logo-h) * -105 / 243);
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #1a2338;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: #b6c1d3;
  background: var(--bg-soft);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* Hero */

.hero {
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 7vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgb(53 101 243 / 0.16);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--faint);
}

.hero__lead {
  max-width: 35rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__visual {
  justify-self: end;
  width: min(100%, 500px);
}

.hero__visual img {
  width: 100%;
  height: auto;
}

/* Отрицательный отступ съедает часть свечения под сферой: подпись ближе к глобусу */
.hero__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  margin-top: -12px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__caption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(0 75 255 / 0.14);
}

.hero__caption span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt,
.label,
.stack__label,
.contact__key,
.footer__company dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Sections */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--soft {
  background: var(--bg-soft);
}

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

.label span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.label span::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section__head {
  max-width: 42rem;
}

.section__head > p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* About */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}

.split__body .lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.split__body .lead + p {
  margin-top: 20px;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.principles h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.principles p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 24px;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 40px;
}

.stack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--bg);
}

.step__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.step h3 {
  margin-top: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Contact */

.section--dark {
  background: var(--ink);
  color: var(--dark-text);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .label {
  color: var(--dark-muted);
}

.section--dark .label span {
  color: var(--dark-accent);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(40px, 6vw, 96px);
}

.contact__lead {
  max-width: 30rem;
  margin-top: 20px;
  font-size: 1.125rem;
}

.contact__list {
  border-top: 1px solid var(--dark-line);
}

.contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dark-line);
}

.contact__key {
  color: var(--dark-muted);
}

.contact__list a {
  color: #fff;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.contact__list a:hover {
  color: var(--dark-accent);
}

/* Footer */

.footer {
  padding-bottom: 40px;
  background: var(--ink);
  color: var(--dark-muted);
  font-size: 0.875rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-line);
}

.footer .brand span {
  color: var(--dark-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer__nav a {
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #fff;
}

/* Реквизиты компании: одинаковый блок на всех страницах с подвалом */
.footer__company {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px 40px;
  margin-top: 40px;
}

.footer__company dt {
  color: var(--dark-muted);
}

.footer__company dd {
  margin-top: 8px;
  color: var(--dark-text);
  line-height: 1.55;
}

.footer__company a {
  transition: color 0.2s;
}

.footer__company a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

/* Privacy Policy и 404 */

.doc {
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px);
}

.doc__inner {
  max-width: 46rem;
}

.doc h1,
.notfound h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc__meta {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.doc__intro {
  margin-top: 32px;
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.doc h2 + p,
.doc h2 + ul {
  margin-top: 14px;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 1.25em;
  list-style: disc;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--faint);
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc address {
  font-style: normal;
}

.notfound {
  padding-block: clamp(96px, 16vw, 200px);
}

.notfound p:not(.label) {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.notfound .btn {
  margin-top: 32px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero__grid,
  .split,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-self: center;
    width: min(100%, 420px);
  }

  .facts,
  .cards,
  .steps,
  .footer__company {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    row-gap: 40px;
  }
}

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

@media (max-width: 600px) {
  .cards,
  .steps,
  .principles,
  .footer__company {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
