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

:root {
  --bg: #0b0b0c;
  --bg-alt: #101012;
  --text: #ffffff;
  --muted: #cfcfcf;
  --divider: rgba(255, 255, 255, 0.08);
  --surface: rgba(12, 12, 14, 0.85);
  --container: min(1120px, calc(100% - 72px));
  --content: 650px;
  --section-space: clamp(84px, 11vw, 172px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

p {
  margin: 0 0 22px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
  background: var(--bg);
}

.section--divided {
  border-top: 1px solid var(--divider);
}

main > .section:nth-of-type(odd):not(.hero) {
  background: var(--bg-alt);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.5fr);
  gap: 62px;
  align-items: start;
}

.section-grid--solutions {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.4fr);
  gap: 72px;
}

.section-content {
  max-width: var(--content);
}

.section-content--solutions {
  max-width: none;
}

.section-intro .section-title {
  margin-bottom: 0;
}

.section-intro--solutions .section-text {
  margin-top: 26px;
  margin-bottom: 0;
  max-width: 410px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--divider);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.header__nav a:hover,
.header__nav a:focus-visible {
  color: var(--text);
}

.hero {
  min-height: 100svh;
  padding: clamp(144px, 17vh, 220px) 0 clamp(92px, 14vh, 152px);
  display: flex;
  align-items: stretch;
  border-top: none;
  background: var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(34px, 6vw, 96px);
}

.hero__logo-wrap {
  display: flex;
  align-items: center;
}

.hero__copy {
  max-width: var(--content);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo--hero {
  max-width: clamp(290px, 47vw, 640px);
}

.logo--header {
  opacity: 0;
  height: 40px;
}

.logo--footer {
  width: revert-layer;
  margin: 0;
  margin-bottom: 16px;
  height: 40px;
}

.hero__tagline {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.2rem, 2vw, 1.2rem);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: left;
}

.section-title {
  margin: 0 0 30px;
  font-size: clamp(1.22rem, 1.8vw, 1.84rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-text {
  max-width: var(--content);
  color: var(--muted);
}

.problem-cards {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: problem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.problem-card {
  counter-increment: problem;
  border: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 18px 20px;
  display: grid;
  gap: 12px;
  min-height: 142px;
}

.problem-card::before {
  content: counter(problem, decimal-leading-zero);
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.84);
}

.problem-card__text {
  margin: 0;
  color: var(--muted);
}

.solution-list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.solution-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--divider);
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  bottom: 8px;
  width: 1px;
  background: var(--divider);
}

.timeline-list li {
  position: relative;
  padding: 0 0 0 44px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--bg-alt);
}

.infra-grid {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.infra-grid li {
  border: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  padding: 14px 14px 16px;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  max-width: 1060px;
  margin-inline: auto;
}

.result-list li {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
}

.results-section {
  padding-block: clamp(118px, 14vw, 188px);
}

.results-wrap {
  display: grid;
  gap: clamp(52px, 6vw, 78px);
}

.results-title {
  margin: 0;
  text-align: center;
}

.policy-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.policy-list li {
  position: relative;
  padding-left: 18px;
}

.policy-list li::before {
  content: "—";
  position: absolute;
  top: 0;
  left: 0;
}

.step-list {
  margin: 0;
}

.step-title {
  margin: 0 0 7px;
  font-size: 1.03rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step-text {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  max-width: var(--content);
  display: grid;
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 132px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.submit-button {
  justify-self: start;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  padding: 11px 28px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.form-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.form-status {
  min-height: 1.2em;
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #e2baba;
}

.form-success {
  max-width: var(--content);
  padding: 8px 0;
}

.success-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 62px 0 38px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer__text {
  margin: 0 0 8px;
  color: var(--muted);
  max-width: 400px;
}

.footer__copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 20px;
  background: rgba(6, 6, 7, 0.74);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(700px, 100%);
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  border: 1px solid var(--divider);
  background: #151518;
  padding: 26px 28px 30px;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modal__title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.modal__close {
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 7px 13px;
}

.modal__text {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal__mail {
  margin: 2px 0 0;
  color: var(--text);
}

@media (max-width: 1024px) {
  :root {
    --container: min(1120px, calc(100% - 52px));
    --section-space: clamp(70px, 10vw, 126px);
  }

  .hero {
    min-height: 100svh;
    padding: clamp(120px, 16vh, 170px) 0 clamp(86px, 12vh, 120px);
  }

  .hero__inner {
    grid-template-columns: minmax(230px, 1fr) minmax(0, 1fr);
    gap: 36px;
  }

  .logo--hero {
    max-width: clamp(250px, 44vw, 460px);
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-grid--solutions {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.2fr);
    gap: 42px;
  }

  .solution-list li {
    font-size: 18px;
  }

  .problem-cards,
  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header__nav {
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1120px, calc(100% - 34px));
    --section-space: clamp(54px, 12vw, 92px);
  }

  .header__inner {
    min-height: 64px;
    align-items: flex-start;
    padding: 13px 0;
  }

  .header__nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header__nav a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: 100svh;
    padding: 112px 0 68px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__logo-wrap {
    justify-content: center;
  }

  .logo--hero {
    max-width: min(420px, 90vw);
  }

  .hero__tagline {
    font-size: clamp(1.04rem, 4.6vw, 1.4rem);
    line-height: 1.4;
    text-align: left;
  }

  .problem-cards,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .section-grid--solutions {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro--solutions .section-text {
    margin-top: 20px;
    max-width: 100%;
  }

  .solution-list {
    margin-bottom: 26px;
  }

  .solution-list li {
    padding: 11px 0;
    font-size: 17px;
    line-height: 1.45;
  }

  .results-section {
    padding-block: clamp(86px, 18vw, 122px);
  }

  .results-wrap {
    gap: 40px;
  }

  .result-list {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .result-list li {
    font-size: 19px;
    padding-left: 16px;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 1.13rem;
  }

  .timeline-list {
    gap: 18px;
  }

  .timeline-list li {
    padding-left: 34px;
  }

  .timeline-list::before {
    left: 8px;
  }

  .timeline-list li::before {
    left: 2px;
  }

  .step-title {
    font-size: 0.98rem;
  }

  .modal-overlay {
    padding: 56px 14px;
  }

  .modal {
    max-height: calc(100vh - 112px);
    padding: 22px 18px 24px;
  }
}
