/* ============================================================
   BEREZIN GROUP — summit white parent-brand one-pager
   Palette from brand board: Summit White #F8F9FA · Evergreen
   Blue #0B2D4A · Mountain Blue #2563EB · Slate #4A556B ·
   Charcoal #1A1A1A · Topo #6B7280
   Type: Montserrat (extended feel via tracking) + Inter
   ============================================================ */

:root {
  --summit: #f6f8fa;
  --paper: #ffffff;
  --evergreen: #0b2d4a;
  --evergreen-2: #113a5e;
  --mountain: #2563eb;
  --slate: #4a556b;
  --charcoal: #16202b;
  --topo: #6b7280;
  --line: #dde4ec;
  --line-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Montserrat", "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 4.5vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--summit);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--mountain); text-decoration: none; }
:focus-visible { outline: 2px solid var(--mountain); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--evergreen);
  line-height: 1.12;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: 0.01em; }
h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.01em; }
h3 { font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
p { margin: 0 0 1em; color: var(--slate); }

.mono { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; font-size: 11.5px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 8vw, 108px) 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--mountain);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--mountain); }
.lede { max-width: 640px; font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 6px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--evergreen); color: #fff; box-shadow: 0 8px 22px rgba(11, 45, 74, 0.28); }
.btn-solid:hover { background: var(--evergreen-2); }
.btn-line { color: var(--evergreen); box-shadow: inset 0 0 0 2px var(--evergreen); }
.btn-line:hover { color: var(--mountain); box-shadow: inset 0 0 0 2px var(--mountain); }
.btn-big { font-size: 15px; padding: 16px 32px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
  background: rgba(246, 248, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.22em; color: var(--charcoal);
}
.brand img { display: block; }
.brand em { font-style: normal; font-weight: 600; color: var(--slate); letter-spacing: 0.3em; }
.head-nav { display: flex; gap: 28px; }
.head-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate);
}
.head-nav a:hover { color: var(--mountain); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-img {
  display: block; width: 100%;
  height: min(80vh, 740px); object-fit: cover; object-position: 62% 22%;
}
.hero-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(90px, 12vw, 150px) var(--pad) clamp(26px, 4vw, 48px);
  background: linear-gradient(180deg, transparent, rgba(8, 20, 33, 0.55) 45%, rgba(8, 20, 33, 0.82));
}
.hero-panel h1 { color: #fff; max-width: 560px; text-shadow: 0 2px 24px rgba(8, 20, 33, 0.55); }
.hero-panel p { color: rgba(255, 255, 255, 0.85); max-width: 560px; font-size: 17.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-actions .btn-line { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.hero-actions .btn-line:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
/* mobile-only brand lockup in the hero sky (desktop image has it baked in) */
.hero-mark { display: none; }

/* ---------- credo strip ---------- */
.credo {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 15px var(--pad);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.3em;
  flex-wrap: wrap;
}
.credo .tick { color: var(--mountain); font-size: 9px; letter-spacing: 0; }

/* ---------- pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mountain);
  border-radius: 10px;
  padding: 26px 24px 20px;
  box-shadow: 0 14px 34px rgba(11, 45, 74, 0.07);
}
.pillar p { font-size: 15px; margin: 0; }

/* ---------- ridgeline + dark section ---------- */
.ridge { background: var(--summit); line-height: 0; }
.ridge svg { width: 100%; height: clamp(48px, 8vw, 110px); display: block; }

.section.dark {
  background:
    radial-gradient(1000px 480px at 82% 108%, rgba(37, 99, 235, 0.20), transparent 62%),
    linear-gradient(180deg, #0a2540 0%, #0a2540 4%, var(--evergreen) 55%, #09243d 100%);
  position: relative; overflow: hidden;
}
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: #7fb2f5; }
.section.dark .eyebrow::before { background: var(--mountain); }
/* topographic contour field — marching-squares terrain, full coverage */
.topo {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.17;
  background-image: url("assets/topo.svg");
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(180deg, transparent, black 140px);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 140px);
}
.section.dark .wrap { position: relative; }

.sector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(127, 178, 245, 0.22);
  border: 1px solid rgba(127, 178, 245, 0.28);
  border-radius: 12px; overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(4, 16, 28, 0.45);
}
.sector { background: rgba(9, 30, 50, 0.92); padding: 24px 22px 16px; transition: background .15s ease; }
.sector:hover { background: rgba(23, 52, 86, 0.95); }
.sector-wide {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(9, 30, 50, 0.92) 55%);
}
.sector-wide p { max-width: 720px; }
.sector h3 {
  color: #fff; font-size: 17px;
  display: flex; align-items: baseline; gap: 9px;
}
.sector h3::before { content: "▲"; font-size: 8px; color: var(--mountain); flex: none; transform: translateY(-2px); }
.sector:hover h3::before { color: #7fb2f5; }
.sector p { color: #9fb9d6; font-size: 14px; margin: 0; }

.area {
  margin: 30px 0 0; color: #7fb2f5; text-align: center;
}

/* ---------- companies ---------- */
.companies { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: clamp(28px, 4vw, 44px); }
.company {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px;
  color: inherit;
  box-shadow: 0 14px 34px rgba(11, 45, 74, 0.07);
  transition: border-color .15s ease, transform .15s ease;
}
a.company:hover { border-color: var(--mountain); transform: translateY(-3px); }
.co-ic {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--evergreen); color: #ffd166;
  border-radius: 10px;
}
.co-ic.cool { color: #7cc7ff; }
.co-ic svg { width: 22px; height: 22px; }
.company p { font-size: 14.5px; margin: 0 0 10px; }
.co-link { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mountain); }
.co-link.muted { color: var(--topo); }

/* ---------- contact ---------- */
.contact { background: var(--charcoal); padding: clamp(56px, 7vw, 88px) 0; }
.contact h2 { color: #fff; }
.contact p { color: #b9c2ce; max-width: 480px; }
.contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-card .btn-solid { background: var(--mountain); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4); }
.contact-card .btn-solid:hover { background: #3574f5; }
.contact-note { color: var(--topo); margin: 0; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 36px var(--pad) 40px; text-align: center;
}
.site-foot img { margin-bottom: 10px; mix-blend-mode: multiply; }
.site-foot p { font-size: 13px; color: var(--topo); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .head-nav { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .companies { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 20px; }
  /* mobile: image-then-panel flow — the bottom-anchored overlay clips the
     headline on short screens (SE-class). The gradient bridges the image's
     bottom edge into a solid panel, so copy can never collide with the image. */
  .hero { background: #0a1521; }
  .hero-img { height: min(46vh, 440px); object-position: center 62%; }
  .hero-panel {
    position: static;
    margin-top: -190px;
    padding: 200px var(--pad) 34px;
    background: linear-gradient(180deg, transparent, rgba(10, 21, 33, 0.55) 90px, #0a1521 190px);
  }
  .hero-mark {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: clamp(34px, 8vw, 72px); left: 0; right: 0;
    pointer-events: none;
  }
  .hero-mark img {
    width: 70px; height: auto; margin-bottom: 10px;
    filter: drop-shadow(0 1px 12px rgba(255, 255, 255, 0.45));
  }
  .hm-name {
    font-family: var(--font-display); font-weight: 800; font-size: 23px;
    letter-spacing: 0.34em; text-indent: 0.34em;
    color: #1b2a38; line-height: 1.1;
  }
  .hm-sub {
    font-family: var(--font-display); font-weight: 600; font-size: 10.5px;
    letter-spacing: 0.58em; text-indent: 0.58em;
    color: #3d4f63; margin-top: 3px;
    display: flex; align-items: center; gap: 10px;
  }
  .hm-sub::before, .hm-sub::after { content: ""; width: 26px; height: 1px; background: #3d4f63; }
  .hm-sub::after { margin-left: -0.58em; }
}
@media (max-width: 560px) {
  .sector-grid { grid-template-columns: 1fr; }
  .credo { gap: 14px; font-size: 10.5px; }
  .site-head { padding: 10px 14px; }
  .brand { gap: 8px; font-size: 13.5px; letter-spacing: 0.14em; }
  .brand img { width: 28px; height: auto; }
  .brand em { letter-spacing: 0.18em; }
  .site-head .btn-solid { font-size: 11.5px; padding: 10px 14px; box-shadow: 0 4px 12px rgba(11, 45, 74, 0.24); }
}
