:root {
  --ink: #0c1016;
  --surface: #141a24;
  --surface-2: #1c2433;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef1f6;
  --muted: #9aa6b5;
  --accent: #5eb3c8;
  --accent-deep: #3d8fa3;
  --teal: #c45d4a;
  --teal-deep: #9a4638;
  --sans: "Figtree", "Avenir Next", system-ui, sans-serif;
  --display: "Syne", "Avenir Next", system-ui, sans-serif;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: #9fd4e2; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
.shell { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.mast {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.95rem 0;
}
.logo {
  text-decoration: none; color: var(--text);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.92rem;
}
.nav a:hover, .nav a.is-on { color: var(--text); }
.nav a.btn-accent { color: #061018; font-weight: 700; }
.nav a.btn-accent:hover { color: #fff; }
.menu-btn {
  display: none; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.menu-btn span { display: block; width: 1.05rem; height: 2px; margin: 5px auto; background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.78rem 1.25rem; border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: 0.93rem; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #061018; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
a.btn-accent { color: #061018; }
a.btn-accent:hover { color: #fff; }
.btn-line { background: transparent; border-color: rgba(255,255,255,.28); color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.84rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

.hero {
  position: relative; min-height: min(88vh, 42rem);
  display: grid; align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,18,16,.35) 0%, rgba(14,18,16,.82) 70%, var(--ink) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
}
.hero-copy {
  position: relative; z-index: 1;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem);
  max-width: 40rem;
}
.hero-kicker {
  margin: 0 0 0.75rem; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em {
  display: block; font-style: normal; color: var(--accent);
  font-size: 0.72em; font-weight: 700;
}
.hero-lead { color: var(--muted); max-width: 38ch; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }

.page-intro {
  padding: clamp(2.8rem, 8vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(61,139,122,.18), transparent 55%),
    var(--ink);
}
.page-intro .hero-kicker { margin-bottom: 0.5rem; }
.page-intro p { color: var(--muted); max-width: 42rem; margin-bottom: 0; }

.section { padding: 4rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); }

.split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.split p { color: var(--muted); }

.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.service {
  padding: 1.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.service .n {
  font-family: var(--display); font-size: 1.6rem; color: var(--accent);
  margin-bottom: 0.35rem;
}
.service p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.why {
  padding: 1.3rem 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.why h3 { color: var(--text); }
.why p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.work-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-card .body { padding: 1rem 1.1rem 1.2rem; }
.work-card small {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.work-card h3 { margin: 0; font-size: 1.1rem; }

.cta-band {
  padding: 2.2rem 1.6rem;
  background: linear-gradient(120deg, #141a24 0%, #9a4638 55%, #5eb3c8 160%);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
}
.cta-band p { margin: 0; max-width: 34rem; color: #eef3f8; }
.cta-band strong { display: block; font-size: 1.35rem; margin-bottom: 0.25rem; font-family: var(--display); }

.contact-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 1.5rem; align-items: start;
}
.addr-box {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.addr-box p { color: var(--muted); }
.addr-box a { color: var(--accent); }

.contact-form {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-form h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.contact-form > .lead {
  color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block; font-size: 0.84rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.35rem;
}
.field label .req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-note {
  margin: 0.35rem 0 1rem; font-size: 0.82rem; color: var(--muted);
}
.form-note a { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.form-status {
  display: none; margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--line); font-size: 0.92rem;
}
.form-status.is-on { display: block; }
.form-status.is-ok {
  background: rgba(94, 179, 200, 0.12);
  border-color: rgba(94, 179, 200, 0.45);
  color: var(--text);
}
.form-status.is-err {
  background: rgba(196, 93, 74, 0.12);
  border-color: rgba(196, 93, 74, 0.45);
  color: #f0c4bc;
}
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.doc {
  width: min(100% - 2rem, 44rem);
  margin: 2rem auto 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.doc .stamp {
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.doc p, .doc li { color: var(--muted); }

.foot {
  margin-top: 2rem;
  padding: 2.8rem 0 1.3rem;
  background: #080b10;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot a { color: #d5dbe6; text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot h3 { color: var(--text); font-size: 1rem; margin: 0 0 0.75rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 1.8rem;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0.35em 0; }
.foot-legal {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; line-height: 1.55;
}
.foot-fine {
  margin-top: 0.9rem; font-size: 0.76rem; color: #6f7a8a;
}

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 34rem; margin-inline: auto;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); padding: 1.1rem; display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.cookie.is-on { display: block; }
.cookie p { margin: 0 0 0.85rem; font-size: 0.9rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 980px) {
  .split, .service-grid, .why-grid, .work-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 1rem; flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .split, .service-grid, .why-grid, .work-grid, .contact-grid, .foot-grid, .form-row { grid-template-columns: 1fr; }
}
