/* ===== Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font: inherit; cursor: pointer; border: none; background: none; }

input, textarea { font: inherit; color: inherit; }

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--primary);
}

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

/* ===== Variables ===== */
:root {
  --primary: #0B2545;
  --accent: #4DA8DA;
  --accent-deep: #2E83B8;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --text: #1A2538;
  --muted: #6B7891;
  --line: #E2E8F1;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, 0.12);
  --container: 1200px;
  --header-h: 72px;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

[hidden] { display: none !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #062033; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--primary); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--primary); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.brand-name span { color: var(--muted); font-weight: 500; font-size: 0.82em; }

.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-list a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-alt);
}
.lang-switch button {
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.burger {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(-130%);
  transition: transform .3s ease;
  z-index: 90;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { padding: 14px 20px 24px; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* ===== Hero (H4 split asymmetric) ===== */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 36px;
  padding-block: 56px 64px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  margin: 18px 0 20px;
}
.hero-copy h1 .hl { color: var(--accent-deep); }
.hero-copy .lead { font-size: 1.1rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-tags li {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-tags li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  right: -14px; bottom: -14px;
  width: 64%; height: 70%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

/* ===== About ===== */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p { color: var(--muted); margin-top: 16px; }
.about-copy p:first-of-type { color: var(--text); font-size: 1.08rem; }
.about-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.about-focus li {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== Services (S2 numbered list) ===== */
.services { background: var(--bg-alt); }
.service-list {
  display: grid;
  gap: 4px;
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
  transition: background-color .2s ease;
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 48px;
}
.service-body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.service-body p { color: var(--muted); font-size: 0.97rem; }

/* ===== Why ===== */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.why-features { display: grid; gap: 18px; margin-top: 28px; }
.why-feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.why-feature .ico {
  width: 44px; height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-deep);
}
.why-feature .ico svg { width: 22px; height: 22px; }
.why-feature h3 { font-size: 1.05rem; margin-bottom: 3px; }
.why-feature p { color: var(--muted); font-size: 0.93rem; }
.why-note { margin-top: 30px; color: var(--muted); font-size: 0.98rem; border-left: 3px solid var(--accent); padding-left: 18px; }

/* ===== Contact ===== */
.contact { background: var(--primary); color: #E8EEF6; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #8FCBEC; }
.contact .eyebrow::before { background: var(--accent); }
.contact-grid { display: grid; gap: 40px; }
.contact-map { margin-top: 40px; }
.contact-intro p { color: #AEBCD0; margin-top: 14px; }
.contact-meta { margin-top: 30px; display: grid; gap: 18px; }
.contact-meta .row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.contact-meta .ico {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  color: var(--accent);
}
.contact-meta .ico svg { width: 20px; height: 20px; }
.contact-meta .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8595AE; }
.contact-meta .v { color: #fff; font-weight: 500; }
.contact-meta a.v:hover { color: var(--accent); }

.contact-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color .2s ease, background-color .2s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 0.86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent-deep); }
.consent a { color: var(--accent-deep); text-decoration: underline; }
.contact-form .btn-primary { width: 100%; }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1d7a4d; }
.form-status.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: #06182C; color: #9FB0C6; padding-block: 52px 28px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.legal-list li { display: flex; justify-content: space-between; gap: 12px; }
.legal-list .k { color: #6E809A; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .container { padding-inline: 32px; }
  .hero-cta { flex-wrap: nowrap; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .service-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .service-item:nth-child(2) { border-top: 1px solid var(--line); }
}

@media (min-width: 900px) {
  .section { padding-block: 96px; }
  .main-nav { display: block; }
  .burger { display: none; }
  .mobile-nav { display: none; }
  .hero-grid { grid-template-columns: 0.86fr 1.14fr; gap: 56px; padding-block: 80px 96px; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .about-media { order: 2; }
  .why-grid { grid-template-columns: 0.92fr 1.08fr; gap: 64px; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; }
}

@media (min-width: 1200px) {
  .hero-copy h1 { font-size: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
