:root {
  --bg: #f3f8fd;
  --bg-soft: #e7f0fa;
  --text: #112a47;
  --muted: #51637e;
  --primary: #1488d8;
  --primary-dark: #0f6cae;
  --primary-light: #36a6ee;
  --card: #ffffff;
  --card-2: #f4f9fe;
  --border: #d8e4f2;
  --border-soft: #e7eff8;
  --radius: 0.9rem;
  --max-width: 1120px;
  --shadow: 0 20px 45px -24px rgba(20, 60, 110, 0.35);
  --glow: 0 0 0 1px rgba(20, 136, 216, 0.1),
    0 40px 90px -40px rgba(20, 136, 216, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -5%, rgba(54, 166, 238, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  line-height: 1.6;
}

::selection {
  background: rgba(20, 136, 216, 0.22);
  color: #0b2138;
}

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.hero {
  position: relative;
  padding-bottom: 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(54, 166, 238, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 92% 12%, rgba(20, 136, 216, 0.14) 0%, transparent 42%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

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

.brand-logo {
  height: 132px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.lang-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 0.45rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.hero-content {
  padding: 3.5rem 0 1rem;
  max-width: 72ch;
}

.kicker {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 20ch;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.08rem;
}

.partner-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #bcd9f3;
  background: rgba(20, 136, 216, 0.08);
  color: #1167a8;
  font-size: 0.86rem;
  font-weight: 600;
}

.actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.78rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}

.button.primary {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(20, 136, 216, 0.65);
}

.button.primary:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.button.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-features {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-features svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(20, 136, 216, 0.12);
  border-radius: 50%;
  padding: 3px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, rgba(54, 166, 238, 0.3), transparent 70%);
  filter: blur(38px);
  z-index: -1;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.76rem;
  margin: 0 0 0.55rem;
}

.section > .eyebrow,
.section > h2 {
  text-align: center;
}

.section > h2 {
  margin-bottom: 2.2rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 10px 30px -22px rgba(20, 60, 110, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 136, 216, 0.55);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 0.5rem;
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
  background: radial-gradient(circle at 30% 25%, rgba(20, 136, 216, 0.18), rgba(20, 136, 216, 0.04));
  border: 1px solid rgba(20, 136, 216, 0.25);
}

.card-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card a {
  display: block;
  margin-top: 0.55rem;
  color: var(--primary);
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

.refs-intro {
  color: var(--muted);
  max-width: 70ch;
}

.section > .refs-intro {
  text-align: center;
  margin: -1.4rem auto 2.2rem;
}

.alt {
  background: linear-gradient(180deg, #eef4fb 0%, #e6f0fa 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Process ---------- */
.process {
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  align-items: center;
}

.process-intro {
  color: var(--muted);
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}

.steps li {
  position: relative;
  padding-left: 3.1rem;
  color: var(--muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 136, 216, 0.12);
  border: 1px solid rgba(20, 136, 216, 0.4);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  color: var(--text);
}

.process-visual {
  margin: 0;
}

.process-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.6rem 2rem;
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.5rem 0 1.8rem;
  text-align: center;
}

.footer-links {
  margin-top: 0.5rem;
  display: inline-flex;
  gap: 0.9rem;
}

.footer-links a {
  color: #34516f;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.legal-company {
  margin-bottom: 1rem;
  color: var(--text);
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 540px;
  margin: 1.7rem auto 0;
  text-align: left;
  display: grid;
  gap: 0.95rem;
}

.contact-form[hidden] {
  display: none;
}

.contact-form .field {
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.72rem 0.85rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 136, 216, 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button[type="submit"] {
  justify-self: start;
}

.contact-form button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.form-status {
  margin: 0.2rem 0 0;
  min-height: 1.2em;
  font-weight: 600;
}

.form-status.ok {
  color: #15803d;
}

.form-status.error {
  color: #dc2626;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 560px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .brand-logo {
    height: 88px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.4rem;
  }

  .hero-grid {
    padding: 1.5rem 0 0.5rem;
  }

  .hero-content {
    padding: 2.5rem 0 1rem;
  }

  .section {
    padding: 3.2rem 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: 90%;
  }

  .nav {
    justify-content: center;
    text-align: center;
  }

  .brand,
  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .brand {
    order: 1;
  }

  .nav-links {
    order: 2;
    gap: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .lang-switch {
    order: 3;
  }

  .brand-logo {
    height: 72px;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
  }

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

  .card {
    padding: 1.3rem;
  }

  .contact-panel {
    padding: 1.8rem 1.2rem;
  }

  .contact-form button[type="submit"] {
    justify-self: stretch;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
