@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/DMSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/DMSans-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/DMSans-Bold.ttf") format("truetype");
}

:root {
  --ink: #161616;
  --ink-soft: #4a4742;
  --paper: #f6f1e6;
  --paper-2: #fffcf6;
  --line: #d9d1c2;
  --accent: #0a7c92;
  --accent-2: #065f70;
  --accent-soft: #d5eef2;
  --shadow: 0 18px 40px rgba(22, 22, 22, 0.12);
  --radius: 14px;
  --header-h: 76px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

html { overflow-x: clip; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #1a1a1a;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.nav a[aria-current="page"]::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}
.nav a[aria-current="page"] { color: var(--accent-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }
.hero .btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.22);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 18, 0.78) 0%, rgba(10, 16, 18, 0.35) 55%, rgba(10, 16, 18, 0.15) 100%),
    linear-gradient(180deg, transparent 40%, rgba(10, 16, 18, 0.45) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 720px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d7eef2;
  margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero p.lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  max-width: 38rem;
  color: #f3f1ec;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
  font-size: 0.92rem;
  color: #e8e4dc;
}
.hero-meta strong { display: block; color: #fff; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Page hero (inner) */
.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero p { margin: 0; max-width: 42rem; color: var(--ink-soft); }

/* Sections */
section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.section-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 36rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.split p { color: var(--ink-soft); }
@media (min-width: 901px) {
  .split-rev img { order: 2; }
  .split-rev > div { order: 1; }
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.service-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.service-item p { margin: 0; color: var(--ink-soft); }
.service-item span { color: var(--accent-2); font-weight: 600; white-space: nowrap; }

/* Gallery — same crop, no masonry shift */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.masonry a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd8cc;
}
.masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 12, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 8px; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

/* Engagements */
.engage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.engage:first-of-type { border-top: 1px solid var(--line); }
.engage b {
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.engage h3 { margin: 0 0 6px; }
.engage p { margin: 0; color: var(--ink-soft); }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}
.news-card {
  display: grid;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card.featured img { height: 240px; }
.news-card div { padding: 18px 20px 22px; }
.news-card time { font-size: 0.8rem; color: var(--ink-soft); }
.news-card h3 { margin: 6px 0 8px; letter-spacing: -0.02em; }
.news-stack { display: grid; gap: 18px; }

/* Partners */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.partner {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  display: grid;
  gap: 16px;
  align-content: start;
}
.partner img { max-height: 72px; width: auto; object-fit: contain; }
.partner p { margin: 0; color: var(--ink-soft); }

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #1b1d1c;
  color: #f4f0e8;
  border-radius: 18px;
  padding: 28px;
}
.contact-card h2 { margin: 0 0 8px; }
.contact-card a { color: #9fe0ec; }
.contact-card p { color: #d7d2c8; }
.form {
  display: grid;
  gap: 14px;
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 46px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.hp { position: absolute; left: -9999px; }
.form-status {
  min-height: 1.4em;
  font-weight: 600;
}
.form-status.ok { color: #0d6b4c; }
.form-status.err { color: #9b1c1c; }

/* Footer */
.site-footer {
  background: #171918;
  color: #ece7dc;
  padding: 48px 0 24px;
  margin-top: 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 { margin: 0 0 10px; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b7b2a7; }
.site-footer a { color: #ece7dc; text-decoration: none; }
.site-footer a:hover { color: #9fe0ec; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2c2f2e;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #b7b2a7;
  font-size: 0.88rem;
}

.article { max-width: 760px; }
.article img.cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 8px 0 24px;
}
.article p { font-size: 1.05rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; min-height: 44px; }
  .nav a::after { display: none; }
  .nav .btn { width: 100%; margin-top: 8px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  section { padding: 48px 0; }
  .page-hero { padding: 36px 0 20px; }
  .split, .news-grid, .contact-grid, .partners, .foot-grid { grid-template-columns: 1fr; }
  .split { gap: 16px; }
  .split + .split { margin-top: 28px; }
  .split img { height: 240px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .service-item { grid-template-columns: 110px 1fr; gap: 14px; padding: 16px 0; }
  .service-item img { width: 110px; height: 80px; }
  .service-item span { display: none; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero { min-height: 72svh; align-items: end; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10, 16, 18, 0.25) 0%, rgba(10, 16, 18, 0.78) 100%);
  }
  .hero-inner { padding: 40px 0 32px; max-width: none; }
  .hero-actions .btn { flex: 1 1 160px; }
  .news-card img, .news-card.featured img { height: 180px; }
  .engage { grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 20px 0; }
  .engage b { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 0.95rem; }
  .hero { min-height: 68svh; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero p.lead { font-size: 0.98rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 12px 20px; }
  .masonry { gap: 8px; }
  .split img { height: 200px; }
  .service-item { grid-template-columns: 88px 1fr; }
  .service-item img { width: 88px; height: 68px; }
  .form input,
  .form textarea { font-size: 16px; }
  .contact-card { padding: 22px; }
  .article p { font-size: 1rem; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.reveal-zoom { transform: scale(0.92); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .reveal { opacity: 1; transform: none; transition: none; }
}
