:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a202c;
  --muted: #4a5568;
  --primary: #3182ce;
  --primary-dark: #0a1f41;
  --accent: #c41e3a;
  --brand-blue: #3182ce;
  --brand-red: #c41e3a;
  --nav-text: #0a1f41;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(10, 31, 65, 0.08);
  --max: 1170px;
  --header-height: 88px;
  --hero-grad-top: rgba(72, 128, 115, 0.92);
  --hero-grad-upper: rgba(108, 168, 152, 0.78);
  --hero-grad-mid: rgba(168, 210, 198, 0.62);
  --hero-grad-lower: rgba(220, 238, 232, 0.45);
  --hero-grad-bottom: rgba(248, 252, 250, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.site-header {
  background: #fff;
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.page-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}

.brand .logo {
  height: auto;
  width: auto;
  max-height: 81px;
}

.logo-home,
.logo-default {
  display: none;
}

.page-home .site-header:not(.is-scrolled) .logo-home {
  display: block;
}

.page-home .site-header.is-scrolled .logo-default,
.page-inner .logo-default {
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(49, 130, 206, 0.1);
  color: var(--brand-blue);
}

.site-nav .lang a {
  border: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--nav-text);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

main {
  flex: 1 0 auto;
}

.page-home main {
  padding-top: 0;
}

.hero {
  position: relative;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  min-height: clamp(520px, 78vh, 700px);
  display: flex;
  align-items: center;
  background-color: #b8d9ce;
  background-image:
    linear-gradient(
      to bottom,
      var(--hero-grad-top) 0%,
      var(--hero-grad-upper) 22%,
      var(--hero-grad-mid) 48%,
      var(--hero-grad-lower) 72%,
      var(--hero-grad-bottom) 100%
    ),
    url("../images/home-hero-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.services-section,
.partners-section,
.page-hero,
.legal {
  padding: 2.5rem 0 3rem;
}

.legal h1 {
  margin-bottom: 1.25rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--primary);
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal a {
  word-break: break-word;
}

.services-section h2,
.partners-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.service-card h3 {
  margin: 0.75rem 0 0.35rem;
}

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

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

.btn:hover {
  filter: brightness(1.05);
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.partner img {
  max-height: 48px;
  width: auto;
  opacity: 0.9;
}

.page-hero h1 {
  margin-top: 0.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.page-image {
  margin: 1.25rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  padding-left: 1.2rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

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

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-privacy {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.form-notice {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0 0;
}

.form-notice-error {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

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

.social-links {
  padding-left: 1.2rem;
}

.site-footer {
  flex-shrink: 0;
  background: var(--primary-dark);
  color: #dce4f2;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.copy {
  opacity: 0.75;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .brand .logo-home,
  .brand .logo-default {
    max-height: 64px;
  }

  .page-home .site-header.is-scrolled .logo-home {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem 0.75rem;
    box-shadow: var(--shadow);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }
}
