:root {
  --ink: #111820;
  --muted: #5e6875;
  --soft: #f3f6f8;
  --paper: #ffffff;
  --line: #dce3ea;
  --dark: #0c1117;
  --dark-2: #141b24;
  --white: #f7fafc;
  --green: #00b67a;
  --green-dark: #00865d;
  --amber: #b7791f;
  --shadow: 0 18px 42px rgba(15, 24, 35, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--green);
  color: #06130f;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 23, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span span {
  color: var(--green);
}

.brand__sign {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 182, 122, 0.58);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.8rem;
  background: rgba(0, 182, 122, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: rgba(247, 250, 252, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
}

.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button span {
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-button span::before {
  top: -7px;
}

.menu-button span::after {
  top: 7px;
}

.menu-button[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(90deg);
}

.menu-button[aria-expanded="true"] span::after {
  opacity: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  color: #06130f;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(0, 182, 122, 0.24);
}

.button--primary:hover {
  background: #09cb89;
}

.button--dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.button--ghost {
  color: var(--green);
  background: transparent;
  border-color: rgba(0, 182, 122, 0.54);
}

.button--wide {
  width: 100%;
}

.button:focus-visible,
.menu-button:focus-visible,
.modal__close:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 182, 122, 0.34);
  outline-offset: 2px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 136px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 17, 23, 0.99) 0%, rgba(12, 17, 23, 0.9) 44%, rgba(12, 17, 23, 0.52) 74%, rgba(12, 17, 23, 0.86) 100%),
    url("img/hub-hero.png") right center / min(54vw, 740px) auto no-repeat,
    var(--dark);
  padding: 86px 0 74px;
}

.hero__inner {
  max-width: var(--max);
}

.kicker,
.section__label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.hero__text {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(247, 250, 252, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.metrics {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics__grid div {
  min-height: 118px;
  padding: 24px;
  background: var(--paper);
}

.metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

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

.section--dark {
  color: var(--white);
  background: var(--dark-2);
}

.section__head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section__head h2,
.contact-layout h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section__head p:not(.section__label),
.contact-layout p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--dark .section__head p:not(.section__label) {
  color: rgba(247, 250, 252, 0.72);
}

.service-grid,
.model-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.model-card,
.product-card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(15, 24, 35, 0.03);
}

.service-card {
  padding: 24px;
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(0, 182, 122, 0.12);
  font-weight: 800;
}

.service-card h3,
.model-card h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.service-card p,
.model-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  min-height: 98px;
  padding: 22px 22px 22px 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.timeline li::before {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #06130f;
  font-weight: 800;
  counter-increment: step;
  content: counter(step);
}

.timeline strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.timeline span {
  color: var(--muted);
}

.model-grid {
  grid-template-columns: repeat(3, 1fr);
}

.model-card {
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.model-card p {
  color: rgba(247, 250, 252, 0.72);
}

.model-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.model-card li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(247, 250, 252, 0.84);
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 28px;
  background: #eef2f5;
}

.product-card div {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.product-card strong {
  display: block;
  margin: auto 0 18px;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--green-dark);
}

.contact-list span {
  color: var(--muted);
}

.form-panel {
  padding: 28px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
}

.form label > span:first-child {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
}

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

.form input::placeholder,
.form textarea::placeholder {
  color: #7a8592;
}

.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.checkbox a {
  color: var(--green-dark);
  font-weight: 800;
}

.screen-reader-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notice,
.form-status {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.notice {
  margin-bottom: 18px;
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.notice--success,
.form-status--success {
  color: #07583e;
  background: rgba(0, 182, 122, 0.13);
}

.notice--error,
.form-status--error {
  color: #8b2525;
  background: rgba(196, 65, 65, 0.13);
}

.form-status {
  display: none;
}

.form-status.is-visible {
  display: block;
}

.footer {
  background: var(--dark);
  color: rgba(247, 250, 252, 0.7);
  padding: 34px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 17, 23, 0.74);
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  width: min(100%, 520px);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.modal__top h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.legal-page {
  background: var(--soft);
}

.legal {
  padding: 76px 0;
}

.legal__card {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 36px;
  box-shadow: var(--shadow);
}

.legal h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.legal h2 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

@media (max-width: 1060px) {
  .service-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-grid,
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(12, 17, 23, 0.98), rgba(12, 17, 23, 0.82)),
      url("img/hub-hero.png") right bottom / min(80vw, 650px) auto no-repeat,
      var(--dark);
  }
}

@media (max-width: 860px) {
  .header__inner {
    min-height: 68px;
  }

  .menu-button {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(12, 17, 23, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-120%);
    transition: transform 0.2s ease;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav .button {
    margin-top: 14px;
  }

  .hero {
    min-height: calc(100svh - 118px);
    padding: 68px 0 52px;
    background:
      linear-gradient(180deg, rgba(12, 17, 23, 0.98) 0%, rgba(12, 17, 23, 0.92) 52%, rgba(12, 17, 23, 0.74) 100%),
      url("img/hub-hero.png") center bottom / min(94vw, 540px) auto no-repeat,
      var(--dark);
  }

  .hero__inner {
    padding-bottom: min(35vw, 210px);
  }

  .process,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 62px 0;
  }

  .service-grid,
  .product-grid,
  .model-grid,
  .metrics__grid {
    grid-template-columns: 1fr;
  }

  .metrics__grid div {
    min-height: auto;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .timeline li {
    padding-right: 18px;
  }

  .form-panel,
  .legal__card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
