/* ───────────── Tokens (colors sampled from the REKLAMAN logo) ───────────── */
:root {
  --red: #E3131C;          /* logo red, darkened 1 step for AA on white */
  --red-bright: #EE1C25;
  --blue: #0B4F7E;         /* logo blue */
  --navy: #061630;
  --navy-2: #0A1F42;
  --ink: #0C1A2E;
  --body: #3A4A5E;
  --muted: #5B6B80;
  --line: #DCE3EC;
  --mist: #EEF3F8;         /* pale tint, like the engraving reference */
  --white: #FFFFFF;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 18px 50px -20px rgba(6, 22, 48, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-header: 40;
  --z-float: 50;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red-bright); }
.eyebrow__num { color: var(--red-bright); font-weight: 900; font-size: 1.25em; letter-spacing: .04em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 54ch; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 700 15px/1 var(--font); letter-spacing: .02em;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #B90F16; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ───────────── Top bar ───────────── */
.topbar { background: var(--navy); color: rgba(255,255,255,.88); font-size: 14px; font-weight: 500; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; }
.topbar__contacts { display: flex; gap: 28px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 16px; height: 16px; fill: none; stroke: var(--red-bright); stroke-width: 2; }
.topbar__cta { font-weight: 700; color: #fff !important; border-bottom: 2px solid var(--red-bright); padding-bottom: 6px !important; }

/* ───────────── Header ───────────── */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(6,22,48,.35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 14px; }
.burger { display: none; }

/* ───────────── Hero ───────────── */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,22,48,.94) 0%, rgba(6,22,48,.78) 45%, rgba(6,22,48,.35) 100%),
    linear-gradient(0deg, rgba(6,22,48,.6) 0%, rgba(6,22,48,0) 40%);
}
.hero__content { position: relative; padding-top: 96px; padding-bottom: 120px; }
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(34px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.02em;
  overflow-wrap: break-word;
  max-width: 14ch; margin-bottom: 26px;
}
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: rgba(255,255,255,.86); max-width: 50ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 88px; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(6,22,48,.4);
  display: grid; place-items: center; cursor: pointer; color: #fff;
}
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }

/* ───────────── Stats ───────────── */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 0;
}
.stat { padding: 30px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 900; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stat:first-child strong { color: var(--red); }
.stat span { display: block; margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.stat--text strong { font-size: clamp(28px, 3vw, 40px); }

/* ───────────── Sections ───────────── */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section__head--center { display: block; text-align: center; }
.section__head--center .lead { margin: 18px auto 0; }

/* About */
.about { padding-top: clamp(96px, 11vw, 150px); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about h2 { margin-bottom: 22px; }
.about .lead { margin-bottom: 40px; }
.pillars li { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars__no { font-weight: 800; color: var(--red); font-size: 15px; padding-top: 2px; min-width: 26px; }
.pillars h3 { margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: 16px; }
.about__art { margin: 0; background: var(--mist); border-radius: var(--radius); padding: 28px; }
.engrave { width: 100%; height: auto; }
.engrave .thick, .engrave .thin, .engrave .rays { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; }
.engrave .thick { stroke-width: 3.2; }
.engrave .thin { stroke-width: 2; }
.engrave .rays { stroke: var(--red-bright); stroke-width: 2.4; }
.engrave pattern line { stroke: var(--blue); stroke-width: 1.4; }
.engrave .fill-hatch { fill: url(#hatch); stroke: none; }
.engrave .fill-hatch-d { fill: url(#hatch-d); stroke: none; }
.engrave .sign { fill: var(--navy); stroke: var(--blue); stroke-width: 3.2; }
.engrave .sign__text { font: 800 34px var(--font); letter-spacing: .14em; fill: #fff; }

/* Services */
.services { background: var(--mist); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: svc; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
/* Red arc accent — a nod to the curved accent in the reference site */
.card__media::after {
  content: ""; position: absolute; left: -38%; top: -10%; width: 70%; height: 120%;
  border: 10px solid var(--red-bright); border-left-color: transparent; border-bottom-color: transparent; border-top-color: transparent;
  border-radius: 50%; opacity: .9; pointer-events: none;
}
.card__body { padding: 26px 28px 30px; }
.card__no { display: block; font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .1em; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* Works */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 260px; gap: 16px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(6,22,48,.88), rgba(6,22,48,0));
  color: #fff; font-weight: 700; font-size: 15px;
}
.gallery__item figcaption::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red-bright); margin-right: 10px; vertical-align: middle; }

/* Partners */
.partners { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.partners::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(11,79,126,.55), rgba(11,79,126,0)); pointer-events: none;
}
.partners h2 { color: #fff; margin-top: 4px; }
.partners .lead { color: rgba(255,255,255,.78); }
.partners__grid {
  position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14);
}
.partners__grid li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 112px; padding: 18px;
  border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  font-weight: 700; font-size: 18px; letter-spacing: .01em; color: rgba(255,255,255,.92);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.partners__grid li:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--navy); }
.why__item { padding: 36px 28px 36px 0; }
.why__item + .why__item { padding-left: 28px; border-left: 1px solid var(--line); }
.why__item svg { width: 44px; height: 44px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 22px; }
.why__item h3 { margin-bottom: 10px; font-size: 19px; }
.why__item p { color: var(--muted); font-size: 16px; }
.why__summary {
  margin-top: 56px; padding: 32px 36px; background: var(--mist); border-left: 5px solid var(--red);
  font-size: clamp(18px, 2vw, 23px); font-weight: 600; color: var(--ink); line-height: 1.5; border-radius: 0 var(--radius) var(--radius) 0;
}

/* Tagline */
.tagline { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 140%); color: #fff; }
.tagline__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 88px; padding-bottom: 88px; flex-wrap: wrap; }
.tagline__text { font-weight: 900; font-size: clamp(32px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.015em; text-transform: uppercase; color: #fff; }
.tagline__text span { color: var(--red-bright); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.contact h2 { margin-bottom: 18px; }
.contact__list { margin-top: 40px; display: grid; gap: 22px; }
.contact__list li { display: flex; align-items: center; gap: 18px; }
.contact__list small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 700; color: var(--ink); font-size: 18px; }
.contact__list a:hover { color: var(--red); }
.contact__phone { font-size: clamp(24px, 2.6vw, 30px) !important; font-weight: 800 !important; }
.ci { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.ci--red { background: var(--red); }
.ci--red svg { stroke: #fff; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.form__title { grid-column: 1 / -1; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field--full, .form .btn, .form__hint { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 16px var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid #C5D0DD; border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,79,126,.18); }
.field.has-error input { border-color: var(--red); }
.field__error { font-size: 14px; font-weight: 600; color: var(--red); min-height: 0; }
.field__error:empty { display: none; }
.form__hint { font-size: 14px; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: #04101F; color: rgba(255,255,255,.72); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer__logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.footer__logo img { width: 190px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer nav a, .footer__grid > div:last-child a { display: block; padding: 6px 0; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 104px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* WhatsApp float */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-float); display: flex; align-items: center; gap: 10px; }
.wa__label {
  background: #1FA855; color: #fff; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: var(--radius); position: relative;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.4);
}
.wa__label::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: #1FA855; }
.wa__btn { width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .2s var(--ease); }
.wa:hover .wa__btn { transform: scale(1.06); }
.wa__btn svg { width: 32px; height: 32px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: 12px 10px; font-size: 14px; }
  .brand img { width: 170px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .burger {
    display: grid; gap: 5px; place-content: center; width: 48px; height: 48px;
    background: none; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
  .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); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(6,22,48,.4);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .header__inner { min-height: 72px; }
  .section__head { grid-template-columns: 1fr; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .topbar__contacts { gap: 16px; }
  .brand img { width: 150px; }
  .hero { min-height: 640px; }
  .hero__content { padding-top: 72px; padding-bottom: 110px; }
  .hero__actions .btn { width: 100%; }
  .stats { margin-top: -48px; }
  .stat { padding: 22px 20px; }
  .cards { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding: 28px 0; border-left: 0; }
  .why__item + .why__item { border-top: 1px solid var(--line); }
  .why__summary { padding: 24px 22px; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid li { min-height: 88px; font-size: 15px; padding: 14px 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item--tall { grid-column: 1 / -1; grid-row: span 2; }
  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .tagline__inner { padding-top: 64px; padding-bottom: 64px; }
  .tagline__inner .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .wa__label { display: none; }
  .wa { right: 16px; bottom: 16px; }
}

@media (max-width: 400px) {
  .topbar__cta { display: none !important; }
  .eyebrow { letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
