:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #f7f9fa;
  --border: #e5e7eb;
  --accent: #3f86a3;
  --radius: 16px;
  --maxw: 1080px;

  --hero-image: url("../images/hero-optimized.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

:focus-visible {
  outline: 3px solid rgba(63, 134, 163, 0.65);
  outline-offset: 2px;
}

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

section {
  padding: 56px 0;
  scroll-margin-top: 84px;
}

section.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  letter-spacing: -0.35px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: rgba(63, 134, 163, 0.85);
  margin-top: 10px;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 74ch;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 3000;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1220;
  color: #fff;
}

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

/* Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(10, 12, 18, 0.85), rgba(10, 12, 18, 0.65));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(1.25) drop-shadow(0 1px 6px rgba(255, 255, 255, 0.35));
}

.brand span {
  font-weight: 650;
  letter-spacing: 0.2px;
  font-size: 19px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav a {
  opacity: 0.92;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  min-width: 62px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 13px;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.lang-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 1px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn.primary {
  border-color: rgba(63, 134, 163, 0.35);
  background: rgba(63, 134, 163, 0.95);
}

.btn.primary:hover {
  background: rgba(63, 134, 163, 1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

/* Hero */

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.5) 0%, rgba(10, 12, 18, 0.25) 45%, rgba(10, 12, 18, 0.55) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  padding: 80px 24px;
  width: 100%;
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.7px;
  max-width: 16ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  white-space: pre-line;
}

.hero p {
  margin: 18px 0 26px;
  max-width: 52ch;
  line-height: 1.6;
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  margin-bottom: 14px;
}

/* Shared cards */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: stretch;
}

.card,
.step,
.contact-box {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.card,
.step {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.11);
  border-color: rgba(63, 134, 163, 0.26);
}

.card {
  grid-column: span 6;
  height: 100%;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: rgba(31, 41, 55, 0.92);
}

.card p {
  margin: 0;
  color: rgba(107, 114, 128, 0.95);
  line-height: 1.55;
}

/* Services */

section#services .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: rgba(63, 134, 163, 0.65);
}

section#services .card h3,
section#services .card p {
  padding-left: 10px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.step {
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.step b {
  display: block;
  margin-bottom: 6px;
}

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

/* About */

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

.list li {
  margin: 8px 0;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}

.contact-box {
  border-radius: var(--radius);
  max-width: 720px;
  padding: 26px 26px 24px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(63, 134, 163, 0.95), rgba(63, 134, 163, 0.35));
}

.box-title {
  margin: 0 0 16px;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 16px;
  margin-top: 0;
  color: var(--muted);
}

.contact-grid div:nth-child(odd) {
  color: rgba(31, 41, 55, 0.92);
  font-weight: 650;
}

.contact-grid a {
  color: rgba(31, 41, 55, 0.92);
}

.contact-grid a:hover {
  color: rgba(63, 134, 163, 1);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  background: rgba(63, 134, 163, 1);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.1);
}

/* Footer */

footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: #0b1220;
  color: #fff;
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  opacity: 0.95;
}

.mobile-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mobile-menu-title {
  font-weight: 700;
}

.menu-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-tip {
  margin-top: 14px;
  opacity: 0.9;
  font-size: 13px;
}

.mobile-menu-tip-title {
  margin-top: 10px;
}

.mobile-menu-tip-value {
  margin-top: 8px;
}

.mobile-menu-tip-value a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Responsive */

@media (max-width: 860px) {
  header {
    background: rgba(10, 12, 18, 0.55);
  }

  nav ul {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  section {
    padding: 48px 0;
  }

  .card {
    grid-column: span 12;
    min-height: 0;
    padding: 18px;
  }

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

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

  .contact-box {
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 96px 1fr;
  }
}
