/* Layout concept: a supplier's catalogue sheet. Dark port-at-night hero on a blueprint grid,
   then paper-white catalogue rows coded like a parts list, closing on a navy quote desk. */
:root {
  --night: #081a33;      /* hero, footer */
  --navy: #0e2d5c;       /* brand navy from the letterhead */
  --steel: #5d7290;      /* secondary text, rules on dark */
  --paper: #eef1f5;      /* cool page ground */
  --sheet: #fbfcfe;      /* raised surfaces */
  --ink: #0f1c2e;        /* body text */
  --brass: #c9912f;      /* valve-brass accent, used sparingly */
  --line: #d5dce6;
  --line-dark: rgba(170, 190, 220, .16);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.mono {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid {
  background: rgba(8, 26, 51, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; }
.brand-name span { font-family: var(--f-display); font-weight: 400; font-size: .68rem; letter-spacing: .14em; color: #b9c7dc; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #d9e2ef; text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brass); transition: right .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.nav .lang {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em;
  border: 1px solid rgba(217, 226, 239, .4); border-radius: 999px; padding: 5px 12px;
}
.nav .lang::after { display: none; }
.nav .lang:hover { border-color: var(--brass); }
.nav .cta-mini {
  background: var(--brass); color: var(--night); font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.nav .cta-mini::after { display: none; }
.nav .cta-mini:hover { color: var(--night); background: #ddb05a; }

.menu-btn {
  display: none; background: none; border: 1px solid rgba(217, 226, 239, .4); color: #fff;
  border-radius: 8px; width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform .25s var(--ease), background .25s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night);
  color: #fff;
  padding-top: 76px;
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after { /* harbour glow */
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(46, 103, 184, .45), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px; align-items: center;
  padding-block: 88px 96px;
}
.hero .eyebrow { color: var(--brass); display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #8fb3e6; }
.hero h1 { hyphens: auto; -webkit-hyphens: auto; }
html[lang="bg"] .hero h1 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
.hero .lead { margin-top: 26px; max-width: 34em; color: #c3cfe0; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: #ddb05a; }
.btn-ghost { border: 1px solid rgba(217, 226, 239, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* the plate: ship photo mounted like a drawing sheet */
.plate { position: relative; justify-self: end; width: 100%; max-width: 460px; margin-bottom: 26px !important; }
.plate-frame {
  position: relative; background: var(--sheet); padding: 12px; border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
  transform: rotate(1.2deg);
}
.plate-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.plate-caption {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--steel); padding: 10px 2px 0; font-size: .7rem;
}
.plate .reg { position: absolute; width: 22px; height: 22px; border-color: var(--brass); border-style: solid; }
.plate .reg.tl { top: -14px; left: -14px; border-width: 2px 0 0 2px; }
.plate .reg.br { bottom: -14px; right: -14px; border-width: 0 2px 2px 0; }
.plate-tag {
  position: absolute; left: -28px; bottom: -26px;
  background: var(--navy); color: #fff; border: 1px solid var(--line-dark);
  padding: 14px 18px; border-radius: 6px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
}
.plate-tag .mono { color: #9fb4d4; font-size: .66rem; display: block; }
.plate-tag b { font-family: var(--f-display); font-weight: 500; font-size: .95rem; }

/* product ticker */
.ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-dark);
  overflow: hidden; white-space: nowrap; color: #9fb4d4;
  padding-block: 18px;
}
.ticker-track { display: inline-flex; gap: 48px; animation: tick 48s linear infinite; padding-left: 48px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* load sequence */
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; }
.rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; }
@keyframes rise { from { opacity: .001; transform: translateY(22px); } }

/* ---------- Sections ---------- */
.section { padding-block: 110px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .mono { color: var(--steel); display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.015em; color: var(--navy);
}
.section-head p { color: #46576e; max-width: 34em; }

/* facts band */
.facts { background: var(--sheet); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 30px 26px; border-left: 1px solid var(--line); min-width: 0; }
.fact:last-child { border-right: 1px solid var(--line); }
.fact .mono { color: var(--steel); font-size: .68rem; display: block; margin-bottom: 8px; }
.fact b { font-weight: 600; color: var(--navy); font-size: 1.02rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about-grid .big {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35; color: var(--navy); letter-spacing: -.01em;
}
.about-grid .body { display: grid; gap: 18px; color: #3b4b61; align-content: start; }

/* catalogue rows */
.catalogue { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr) 56px;
  gap: 28px; align-items: center;
  padding: 34px 20px; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  transition: color .35s var(--ease);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row:hover { color: #fff; }
.row .code { font-family: var(--f-mono); font-size: .8rem; color: var(--brass); letter-spacing: .08em; }
.row h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -.01em; }
.row .desc { color: #46576e; transition: color .35s; }
.row:hover .desc { color: #c3cfe0; }
.row .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.row .chips span {
  font-family: var(--f-mono); font-size: .72rem; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; transition: border-color .35s;
}
.row:hover .chips span { border-color: rgba(255, 255, 255, .25); }
.row .glyph { width: 56px; height: 56px; color: var(--navy); transition: color .35s, transform .45s var(--ease); }
.row:hover .glyph { color: var(--brass); transform: rotate(-8deg); }

/* process */
.process { background: var(--sheet); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.step { padding: 0 28px 0 0; position: relative; min-width: 0; }
.step .dot {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sheet);
  border: 1.5px solid var(--navy); color: var(--navy);
  font-family: var(--f-mono); font-size: .85rem; font-weight: 500;
  position: relative; z-index: 1; margin-bottom: 26px;
  transition: background .3s, color .3s;
}
.step:hover .dot { background: var(--navy); color: #fff; }
.step::before { content: ""; position: absolute; top: 23px; left: 46px; right: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; color: var(--navy); margin-bottom: 10px; }
.step p { color: #46576e; font-size: .98rem; }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector {
  padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0;
  transition: background .3s;
}
.sector:hover { background: var(--sheet); }
.sector b { font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.sector .mono { color: var(--steel); font-size: .68rem; }

/* contact desk */
.desk { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.desk::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(170, 190, 220, .18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 35%, #000 90%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 90%);
}
.desk-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; padding-block: 110px; }
.desk .mono { color: var(--brass); display: block; margin-bottom: 18px; }
.desk h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: -.02em; }
.desk .intro { color: #c3cfe0; margin-top: 22px; max-width: 30em; }
.lines { display: grid; gap: 14px; align-content: start; }
.line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 22px 24px; border: 1px solid var(--line-dark); border-radius: 10px;
  background: rgba(255, 255, 255, .03); transition: border-color .3s, background .3s;
}
.line:hover { border-color: rgba(201, 145, 47, .6); background: rgba(255, 255, 255, .06); }
.line .mono { color: #9fb4d4; font-size: .66rem; margin: 0 0 6px; }
.line a, .line address { font-style: normal; font-size: 1.12rem; font-weight: 500; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.line a:hover { color: #ffd88f; }
.copy {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  background: none; color: #c3cfe0; border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 7px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: #fff; border-color: #c3cfe0; }
.map-link { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #c3cfe0; text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.map-link:hover { color: #fff; }

/* footer */
.site-footer { background: var(--night); color: #8ea2c0; font-size: .9rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 60px 40px; }
.foot .brand-name b { color: #fff; }
.foot h4 { margin: 0 0 14px; font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6f84a3; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .slogan { margin-top: 18px; max-width: 26em; }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }

/* placeholder copy awaiting customer confirmation: visible only with ?review */
.review .tbc { background: #fff2a8; color: #3a2f00; box-shadow: 0 0 0 2px #fff2a8; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .desk-grid, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 64px; padding-block: 64px 72px; }
  .plate { justify-self: center; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .step:nth-child(2)::before { display: none; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 70px minmax(0, 1fr) 48px; }
  .row .desc-col { grid-column: 2 / 4; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter-r) 22px var(--gutter-l);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open .site-header { background: var(--night); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .lang, .nav .cta-mini { margin-top: 14px; text-align: center; border-bottom: 0; }
  .nav .lang { border: 1px solid rgba(217, 226, 239, .4); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 76px; }
  .brand-name span { font-size: .58rem; }
  .facts .wrap { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .fact { border-left: 0; border-right: 0 !important; padding-inline: var(--gutter-l) var(--gutter-r); }
  .steps, .sectors { grid-template-columns: minmax(0, 1fr); }
  .step::before { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 44px; padding: 28px 4px; gap: 14px 18px; }
  .row .code { grid-column: 1 / -1; }
  .row .desc-col { grid-column: 1 / -1; }
  .row .glyph { width: 44px; height: 44px; }
  .plate-tag { left: -6px; bottom: -26px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .desk-grid { padding-block: 76px; }
  .line { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* explicit placement for stacked catalogue rows */
@media (max-width: 980px) {
  .row .code { grid-row: 1; grid-column: 1; }
  .row h3 { grid-row: 1; grid-column: 2; }
  .row .glyph { grid-row: 1; grid-column: 3; }
  .row .desc-col { grid-row: 2; }
}
@media (max-width: 600px) {
  .row .code { grid-row: 1; grid-column: 1 / -1; }
  .row h3 { grid-row: 2; grid-column: 1; }
  .row .glyph { grid-row: 2; grid-column: 2; }
  .row .desc-col { grid-row: 3; grid-column: 1 / -1; }
}

.plate { margin: 0; }
.section.flush-top { padding-top: 0; }
