:root {
  --bg: #f8fbfb;
  --ink: #162321;
  --muted: #637774;
  --line: #dbe9e6;
  --panel: #ffffff;
  --soft: #eef7f5;
  --teal: #0b8f83;
  --teal-dark: #076f67;
  --blue: #356da8;
  --warm: #c7843f;
  --shadow: 0 16px 42px rgba(28, 73, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #ffffff;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  opacity: 0.9;
}

.legal-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.language-switch a {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.language-switch a.active {
  background: #ffffff;
  color: #10201d;
  opacity: 1;
}

.hero {
  position: relative;
  min-height: clamp(420px, 40vh, 500px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 86px clamp(22px, 6vw, 76px) 42px;
  color: #ffffff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 16, 15, 0.9) 0%, rgba(5, 16, 15, 0.72) 38%, rgba(5, 16, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 16, 15, 0.28), rgba(5, 16, 15, 0.08));
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 0.98;
}

.hero-copy {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.2vw, 19px);
}

.hero-copy p {
  margin: 0 0 4px;
  color: #ffffff;
  font-weight: 700;
}

.hero-copy span {
  display: block;
}

.hero-copy a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-copy a:hover {
  border-bottom-color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: #10201d;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 42px);
}

.intro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
}

.intro-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  line-height: 1.18;
}

.intro-list span {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(19, 84, 78, 0.07);
  color: var(--ink);
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.services {
  max-width: none;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.services .section-heading,
.services .service-grid {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.service-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
}

.icon {
  display: inline-grid;
  min-width: 48px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: rgba(11, 143, 131, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.service-card h3,
.platform-row h3 {
  margin: 24px 0 12px;
  font-size: 23px;
}

.service-card p {
  font-size: 16px;
}

.card-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.contact {
  display: flex;
  justify-content: flex-end;
}

.contact a {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.contact-panel p {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, auto) minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  justify-self: center;
  min-width: 280px;
}

.site-footer > span:first-child {
  justify-self: start;
}

.site-footer > span:last-child {
  justify-self: end;
}

.footer-links a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.legal-body {
  background: #ffffff;
}

.legal-header {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, auto) minmax(180px, 1fr);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.legal-header .brand {
  justify-self: start;
}

.legal-header > .nav:not(.legal-language-nav) {
  justify-self: center;
}

.legal-language-nav {
  justify-self: end;
}

.legal-header .brand-mark {
  border-color: var(--line);
  background: var(--soft);
  color: var(--teal-dark);
}

.legal-header .language-switch {
  border-color: var(--line);
  background: var(--soft);
}

.legal-header .language-switch a.active {
  background: var(--teal-dark);
  color: #ffffff;
}

.legal-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 132px clamp(20px, 5vw, 42px) 76px;
}

.legal-title {
  margin-bottom: 34px;
}

.legal-title-content {
  display: none;
}

.legal-title-content.active {
  display: block;
}

.legal-title h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.legal-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(199, 132, 63, 0.35);
  border-radius: 8px;
  background: rgba(199, 132, 63, 0.08);
  color: #7c4d1f;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.legal-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.legal-tab.active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #ffffff;
}

.legal-content {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.legal-content.active {
  display: block;
}

.legal-content h2 {
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.placeholder {
  display: inline-block;
  border: 1px dashed rgba(199, 132, 63, 0.55);
  border-radius: 6px;
  background: rgba(199, 132, 63, 0.08);
  color: #7c4d1f;
  padding: 1px 6px;
}

.legal-back {
  display: inline-flex;
  margin-top: 26px;
}

.consulting-body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
}

.consulting-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px clamp(20px, 5vw, 42px) 72px;
}

.consulting-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.consulting-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.consulting-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.consulting-summary {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.consulting-summary span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.consulting-summary strong {
  font-size: 17px;
  line-height: 1.45;
}

.consulting-form {
  display: grid;
  gap: 20px;
}

.security-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(199, 132, 63, 0.35);
  border-radius: 8px;
  background: rgba(199, 132, 63, 0.08);
  color: #7c4d1f;
  padding: 14px 16px;
}

.security-note strong {
  flex: 0 0 auto;
  font-size: 14px;
}

.security-note span {
  color: #7c4d1f;
  font-size: 14px;
}

.question-section {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.question-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.question-heading span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.question-heading h2,
.consent-section h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.consulting-form label,
.choice-group legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.consulting-form input[type="text"],
.consulting-form input[type="email"],
.consulting-form select,
.consulting-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
}

.consulting-form textarea {
  resize: vertical;
}

.consulting-form input:focus,
.consulting-form select:focus,
.consulting-form textarea:focus {
  outline: 2px solid rgba(11, 143, 131, 0.22);
  border-color: var(--teal-dark);
}

.wide-field {
  display: block;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.choice-group label,
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--muted);
  font-weight: 700;
  padding: 12px;
}

.choice-group input,
.consent-check input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--teal-dark);
  flex: 0 0 auto;
}

.consent-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.consent-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(14, 92, 82, 0.22);
  border-radius: 8px;
  background: rgba(14, 92, 82, 0.08);
  color: var(--teal-dark);
  font-weight: 800;
}

.form-status.error {
  border-color: rgba(165, 58, 45, 0.28);
  background: rgba(165, 58, 45, 0.08);
  color: #8f2f25;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--teal-dark);
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: 620px;
    padding-top: 112px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 16, 15, 0.92), rgba(5, 16, 15, 0.55));
  }

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

  .intro-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro-list span {
    min-height: 58px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header {
    display: flex;
    flex-wrap: wrap;
  }

  .legal-header > .nav:not(.legal-language-nav),
  .legal-language-nav {
    justify-self: start;
  }

  .consulting-main {
    padding-top: 148px;
  }

  .consulting-hero,
  .form-grid,
  .choice-group {
    grid-template-columns: 1fr;
  }

  .consulting-summary {
    align-self: stretch;
  }
}
