@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #ed765f;
  --accent-hover: #ff917b;
  --accent-text: #c2412b; /* акцент для текста на светлом фоне — контраст ≥ 4.5 */
  --ink: #0b1519;
  --ink-2: #13232a;
  --text: #1b2428;
  --muted: #5d6a70;
  --line: #e3e7e9;
  --surface: #f4f6f7;
  --bg: #ffffff;
  --on-dark: #eef3f5;
  --on-dark-muted: #a9b9bf;
  --danger: #c62828;
  --success: #2e7d5b;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: inherit; }
::selection { background: rgba(230, 92, 67, .25); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--light { color: #ff8d77; }

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--small { --btn-h: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { color: var(--on-dark); border-color: rgba(238, 243, 245, .35); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn[disabled] { cursor: progress; opacity: .8; }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-sending .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  color: var(--on-dark);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-solid {
  background: rgba(11, 21, 25, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    var(--accent);
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--on-dark); }

@media (max-width: 640px) {
  :root { --header-h: 112px; }
  .site-header__inner { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; padding-bottom: 4px; }
  .logo { font-size: 17px; gap: 8px; }
  .site-header .btn { padding-inline: 14px; font-size: 14px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 28px; }
  .site-nav a { font-size: 14px; }
  .page { --header-h: 68px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 920px);
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 9vw, 112px);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  animation: hero-in 1.6s var(--ease) both;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 21, 25, .55) 0%, rgba(11, 21, 25, .25) 35%, rgba(11, 21, 25, .9) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11, 21, 25, .6) 0%, rgba(11, 21, 25, 0) 70%);
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

.hero__content { position: relative; z-index: 1; animation: rise .9s var(--ease) both; }
@keyframes rise {
  from { transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__title {
  max-width: 14ch;
  margin-top: 20px;
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--on-dark-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 11vw, 136px) 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.services__intro { max-width: 440px; color: var(--muted); }
@media (max-width: 760px) {
  .services__head { display: block; }
  .services__intro { margin-top: 24px; }
}
.section__title {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
@media (max-width: 960px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    background: var(--bg);
    border-color: var(--line);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(11, 21, 25, .35);
  }
  .card:hover .card__icon { color: var(--ink); background: var(--accent); }
}
.card__link { align-self: start; margin-top: auto; padding-top: 20px; min-height: 44px; color: var(--accent-text); font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.card__icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(230, 92, 67, .1);
  color: var(--accent-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.card__title {
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
}
.card__text {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 12px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: var(--on-dark);
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact__inner { grid-template-columns: minmax(0, 1fr); }
}
.contact__lead {
  max-width: 440px;
  margin-top: 20px;
  color: var(--on-dark-muted);
}
.contact__list {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.contact__list dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact__list dd { margin-top: 6px; }
.contact__email {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.contact__email:hover { background-size: 100% 2px; }

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6);
}
#lead-form, .form-done { scroll-margin-top: 16px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field > label {
  font-size: 14px;
  font-weight: 600;
}
.field__optional {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  /* 16px+ — иначе iOS Safari зумит страницу при фокусе на поле. */
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input[type="text"]:hover,
.field select:hover,
.field textarea:hover { border-color: #c9d0d3; }
.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 92, 67, .15);
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; }

.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error {
  font-size: 14px;
  color: var(--danger);
}

.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.field--check label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.field--check label a { color: var(--accent-text); }
.field--check .field__error { grid-column: 2; }
.field--check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status:empty { display: none; }
.form__status {
  font-size: 15px;
  line-height: 1.5;
}
.form__status--error { color: var(--danger); }
.form__status a { color: inherit; }

.form-done {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  color: var(--text);
}
.form-done:focus { outline: none; }
.form-done__icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 50%;
  background: rgba(46, 125, 91, .12);
  color: var(--success);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-done h3 { font-size: 24px; letter-spacing: -.02em; }
.form-done p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* ---------- Simple text pages (privacy, 404) ---------- */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page .site-header { position: sticky; background: var(--ink); }
.page main { flex: 1; }
.prose {
  max-width: 760px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.prose h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.prose h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-text); }
.prose .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  min-height: 60svh;
}
.not-found__code {
  font-size: clamp(80px, 16vw, 160px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--accent);
}
