:root {
  --green: #02A794;
  --green-dark: #027e71;
  --ink: #14211a;
  --muted: #64706a;
  --line: #dde8df;
  --soft: #f2f7f3;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 33, 26, 0.12);
  --radius: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 232, 223, 0.85);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(2, 167, 148, 0.22);
}

.btn-secondary {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--line);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 46%, rgba(255, 255, 255, 0.18) 100%),
    url("../img/hero-circuit.png") right center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.hero-content {
  width: min(680px, 100%);
  padding: 72px 0 110px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.45rem);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #314038;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.trust-row {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(-34px);
  position: relative;
  z-index: 2;
}

.trust-item {
  background: var(--white);
  padding: 24px;
}

.trust-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--green-dark);
}

.section {
  padding: 86px 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
}

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

.card p {
  font-size: 1rem;
}

.policy-block {
  height: auto;
  margin-top: 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
}

.policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.policy-table th,
.policy-table td {
  padding: 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.policy-table th {
  color: var(--green-dark);
  background: var(--soft);
}

.policy-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 7px;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--green-dark);
  background: var(--soft);
  border-radius: var(--radius);
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 58px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 820px;
}

.page-hero .lead {
  margin-top: 18px;
  max-width: 900px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.service-row h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 11px;
  color: var(--green-dark);
  background: var(--soft);
  border: 1px solid rgba(2, 167, 148, 0.24);
  border-radius: var(--radius);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfdad2;
  border-radius: var(--radius);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  color: #d7e4da;
  background: #14211a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aab9ae;
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 40;
  width: min(920px, calc(100% - 36px));
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.cookie-options {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  font-weight: 700;
}

.cookie-option input {
  margin-top: 5px;
}

.cookie-option span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-manage {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 39;
  min-height: 40px;
  padding: 0 13px;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(20, 33, 26, 0.1);
  font-weight: 800;
  cursor: pointer;
}

.cookie-manage[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86)),
      url("../img/hero-circuit.png") center / cover no-repeat;
  }

  .trust-row,
  .grid-2,
  .grid-3,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-bottom {
    display: block;
  }

  .trust-row {
    transform: none;
    margin-top: 18px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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

  .hero-content,
  .section,
  .page-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .trust-item,
  .card {
    padding: 20px;
  }

  .cookie-banner {
    bottom: 12px;
    padding: 18px;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}
