/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

/* ===== Variables ===== */
:root {
  --primary: #0B2545;
  --primary-dark: #081a33;
  --accent: #4DA8DA;
  --accent-dark: #2f8bc0;
  --bg: #FFFFFF;
  --surface: #F4F7FB;
  --text: #1A2538;
  --muted: #6B7891;
  --line: #E4E9F0;
  --line-strong: #cfd6e2;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(11, 37, 69, 0.07);
  --shadow-lg: 0 18px 46px rgba(11, 37, 69, 0.12);
  --container: 1200px;
  --ff-head: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Base typography ===== */
body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.12; color: var(--primary); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { color: var(--muted); }
strong { color: var(--text); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.section { padding: 66px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #06263f; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--primary); padding: 0 6px; min-height: 44px; }
.btn-ghost .arw { transition: transform .2s ease; }
.btn-ghost:hover { color: var(--accent-dark); }
.btn-ghost:hover .arw { transform: translateX(4px); }

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

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

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--primary); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { font-family: var(--ff-head); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand-suffix { color: var(--accent-dark); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 13px; font-weight: 500; font-size: 0.95rem; color: var(--text); border-radius: var(--radius);
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--accent-dark); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang-btn { padding: 6px 11px; font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.lang-btn.is-active { background: var(--primary); color: #fff; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; }
.burger span { display: block; width: 23px; height: 2px; background: var(--primary); margin: 0 auto; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta { display: none; }

/* ===== Hero (H4 split-asymmetric) ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 88% 0%, rgba(77,168,218,0.10), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 30px; align-items: center; padding: 44px 0 52px; }
.hero-copy { max-width: 560px; }
.hero h1 { margin: 18px 0 18px; }
.hero-lead { font-size: 1.13rem; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: 330px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: #fff; border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow); border-left: 3px solid var(--accent);
}
.hero-badge b { font-family: var(--ff-head); font-size: 1.35rem; color: var(--primary); display: block; line-height: 1; }
.hero-badge span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== About ===== */
.about-grid { display: grid; gap: 34px; align-items: center; }
.about-media img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy p + p { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 26px; }
.fact { background: var(--bg); padding: 16px 18px; }
.fact dt { font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.fact dd { font-weight: 600; color: var(--text); margin-top: 3px; font-size: 0.98rem; }

/* ===== Services (S1 cards grid) ===== */
.services { background: var(--surface); }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(77,168,218,0.12); color: var(--accent-dark); margin-bottom: 18px;
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { color: var(--primary); margin-bottom: 8px; }
.svc-card p { font-size: 0.98rem; }

/* ===== Environment (gallery) ===== */
.environment { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dde3ec; }
.gallery-card img { width: 100%; height: 240px; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-art { width: 100%; height: 240px; transition: transform .45s ease; }
.gallery-card:hover .gallery-art { transform: scale(1.05); }
.gallery-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px; color: #fff; font-weight: 600; font-size: 0.96rem;
  background: linear-gradient(to top, rgba(8,26,51,0.82), rgba(8,26,51,0));
}

/* ===== Contact ===== */
.contact { background: var(--primary); color: #e7eef7; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact .eyebrow::before { background: var(--accent); }
.contact-grid { display: grid; gap: 34px; }
.contact-intro p { color: #aebfd4; font-size: 1.05rem; }
.contact-points { margin-top: 22px; }
.contact-points li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.12); color: #d5e0ee; font-size: 0.98rem; }
.contact-points svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.contact-points a:hover { color: #fff; text-decoration: underline; }

.form { background: #fff; color: var(--text); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .req { color: var(--accent-dark); }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,168,218,0.18); }
.field textarea { min-height: 108px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.consent label { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.consent a { color: var(--accent-dark); text-decoration: underline; }
.form .btn { width: 100%; }
.form-status { margin-top: 12px; font-size: 0.9rem; font-weight: 600; min-height: 1.1em; }
.form-status.ok { color: #1f7a44; }
.form-status.err { color: #c0392b; }

/* ===== Location ===== */
.location { background: var(--surface); }
.map-wrap { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); height: 360px; }
.map-art { display: block; width: 100%; height: 100%; }
.map-frame { display: block; width: 100%; height: 100%; border: 0; }
.map-pin-label {
  position: absolute; left: 18px; bottom: 18px;
  background: #fff; color: var(--text); font-weight: 600; font-size: 0.92rem;
  padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.map-cta {
  position: absolute; right: 18px; top: 18px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 0.88rem;
  padding: 9px 15px; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: background .2s ease, transform .2s ease;
}
.map-wrap:hover .map-cta { background: var(--accent); color: #06263f; transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: #b3bfd0; padding: 52px 0 26px; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { color: #8b97ab; font-size: 0.95rem; margin-top: 14px; max-width: 360px; }
.footer-col h4 { font-family: var(--ff-body); font-size: 0.77rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-col ul li { padding: 5px 0; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.legal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #8b97ab; }
.legal-row a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 22px 18px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .main-nav a:last-child { border-bottom: none; }
}

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr; }
  .legal-row { flex-wrap: nowrap; }
}

@media (min-width: 900px) {
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .section { padding: 88px 0; }
  .hero-grid { grid-template-columns: 1fr 1.18fr; gap: 44px; padding: 72px 0 84px; }
  .hero-media img { height: 500px; }
  .hero-media { margin-right: -44px; }
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 52px; }
  .about-media img { height: 430px; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; }
  .map-wrap { height: 420px; }
}

@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-card img { height: 250px; }
  .gallery-card .gallery-art { height: 250px; }
}
