:root {
  --blue: #1e9ef2;
  --blue-strong: #0a8de0;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #0b0b0c;
  --muted: #5d636b;
  --line: #e6e8eb;
  --card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.82);

  --font-display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --container: 1120px;
  --nav-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-alt: #121315;
  --text: #f2f3f5;
  --muted: #9aa0a8;
  --line: #24262a;
  --card: #141518;
  --nav-bg: rgba(11, 11, 12, 0.8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-alt: #121315;
    --text: #f2f3f5;
    --muted: #9aa0a8;
    --line: #24262a;
    --card: #141518;
    --nav-bg: rgba(11, 11, 12, 0.8);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.logo__b {
  color: var(--blue);
}
.logo--sm {
  font-size: 16px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang__btn {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang__btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: block;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-strong);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--blue);
}
.hero__title {
  font-size: clamp(34px, 6.4vw, 76px);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.hero__lead {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  margin-bottom: 44px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section--alt {
  background: var(--bg-alt);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
}
.section__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--blue);
}
.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--card);
  padding: 40px 32px 44px;
  transition: background-color 0.3s ease;
}
.card__mark {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 36px;
  transition: width 0.3s ease;
}
.card:hover .card__mark {
  width: 40px;
}
.card h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- About ---------- */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__lead {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps__n {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--blue);
  padding-top: 3px;
}
.steps h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}
.form {
  display: grid;
  gap: 22px;
}
.form__intro {
  color: var(--muted);
  margin-bottom: 6px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--blue);
}
.field input.is-invalid,
.field textarea.is-invalid {
  border-bottom-color: #e5484d;
}
.form .btn {
  justify-self: start;
  margin-top: 8px;
}
.form__error {
  color: #e5484d;
  font-size: 14px;
}
.form__note {
  font-size: 13px;
  color: var(--muted);
}

.info {
  display: grid;
  gap: 36px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--bg-alt);
}
.info h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.info__meta {
  margin: 16px 0 0;
  font-size: 14px;
}
.info__meta dt {
  color: var(--muted);
}
.info__meta dd {
  margin: 0 0 8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.info address {
  font-style: normal;
}
.link {
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.link:hover {
  border-bottom-color: var(--blue);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .logo {
  color: var(--text);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__body,
  .contact {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 64px;
  }
  .nav__links {
    display: none;
  }
  .logo {
    font-size: 18px;
  }
  .section {
    padding: 88px 0;
  }
  .section__head {
    margin-bottom: 44px;
  }
  .grid,
  .form__row {
    grid-template-columns: 1fr;
  }
  .info {
    padding: 32px 24px;
  }
}
