/* ==========================================================================
   kontarinis.gr – site styles
   Mobile-first. Breakpoints: 600px (tablet), 960px (desktop), 1200px (wide)
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../../fonts/manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f2233;
  --ink-soft: #33485c;
  --muted: #5d6f80;
  --bg: #ffffff;
  --bg-alt: #f2f7fa;
  --bg-deep: #06263d;
  --line: #e1e9ef;
  --primary: #0a6fa8;
  --primary-dark: #075680;
  --primary-soft: #e3f2fa;
  --accent: #25c0d4;
  --success: #12805c;
  --danger: #b42318;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 51, .06), 0 2px 8px rgba(15, 34, 51, .05);
  --shadow: 0 2px 4px rgba(15, 34, 51, .04), 0 12px 32px rgba(15, 34, 51, .10);
  --shadow-lg: 0 24px 60px rgba(6, 38, 61, .22);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + .75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(10, 111, 168, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-soft); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header box */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
body.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 34, 51, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.12rem; letter-spacing: .08em; font-weight: 800; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px;
  display: none;
}
.site-nav.is-open { display: block; animation: navIn .22s ease-out; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav-list a[aria-current="page"] { color: var(--primary); }
.nav-sub { display: none; list-style: none; }
.nav-cta { width: 100%; margin-top: 24px; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; background: none; overflow: visible; animation: none !important; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a { font-size: .97rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
  .nav-list > li > a:hover { background: var(--bg-alt); color: var(--primary); }
  .nav-list > li > a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); }
  .has-sub > a::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
  }
  .nav-sub {
    display: block;
    position: absolute; top: calc(100% + 8px); left: 50%; min-width: 270px; margin: 0; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav-sub::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-sub a { padding: 9px 12px; border-radius: 10px; font-size: .95rem; }
  .nav-sub a:hover { background: var(--bg-alt); color: var(--primary); }
  .nav-cta { width: auto; margin: 0; min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--bg-deep); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 38, 61, .55) 0%, rgba(6, 38, 61, .72) 55%, rgba(6, 38, 61, .9) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: min(86svh, 760px); padding-block: 72px 120px; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .35em; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, .9); max-width: 56ch; margin-bottom: 1.8em; }
.hero .eyebrow { color: #8fe6f1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 36px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: #8fe6f1; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--bg); }

@media (min-width: 960px) {
  .hero::before { background: linear-gradient(90deg, rgba(6, 38, 61, .9) 0%, rgba(6, 38, 61, .72) 42%, rgba(6, 38, 61, .2) 100%); }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 3; margin-top: clamp(-70px, -6vw, -40px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: #fff; padding: clamp(18px, 3vw, 30px); }
.stat-value { display: block; font-size: var(--step-3); font-weight: 800; line-height: 1.05; color: var(--primary); letter-spacing: -.02em; }
.stat-label { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); font-weight: 600; line-height: 1.4; }
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Split (text + image) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse > :first-child { order: 2; }
}
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-badge {
  position: absolute; left: clamp(-12px, -1.5vw, 0px); bottom: -20px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.media-badge strong { font-size: 1.9rem; line-height: 1; color: var(--primary); }
.media-badge span { font-size: .85rem; line-height: 1.3; color: var(--muted); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary);
}
.checklist .tick .icon { width: 16px; height: 16px; stroke-width: 3; }

.person-card { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person-card .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.person-card strong { display: block; }
.person-card span { font-size: .92rem; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.6vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.card-icon .icon { width: 26px; height: 26px; }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s; }
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card:has(.stretched:hover) { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
a.card:hover .card-link .icon, .card:has(.stretched:hover) .card-link .icon { transform: translateX(3px); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Project category cards */
.project-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  color: #fff; text-decoration: none; background: var(--bg-deep); aspect-ratio: 4 / 3; isolation: isolate;
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 38, 61, 0) 35%, rgba(6, 38, 61, .88) 100%); }
.project-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.project-card h3 { color: #fff; margin: 0 0 2px; font-size: var(--step-1); }
.project-card span { font-size: .9rem; color: rgba(255, 255, 255, .82); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.project-card:hover { color: #fff; }
.project-card:hover img { transform: scale(1.06); }
@media (min-width: 960px) {
}
@media (min-width: 640px) and (max-width: 959px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (min-width: 960px) {
  /* 7 categories → rows of 2 / 3 / 2 */
  .projects-grid { grid-template-columns: repeat(6, 1fr); }
  .projects-grid > * { grid-column: span 2; }
  .projects-grid > :nth-child(-n+2), .projects-grid > :nth-last-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
}

/* ---------- Chips / areas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li, .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink-soft);
}
.chips .icon { width: 16px; height: 16px; color: var(--primary); }

/* ---------- Steps / features ---------- */
.features { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.feature { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.feature::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 10px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a6fa8 0%, #06263d 100%); color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 192, 212, .45), rgba(37, 192, 212, 0) 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .25em; font-size: var(--step-2); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(135deg, #075680 0%, #06263d 100%); }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero-media img { object-fit: cover; }
.page-hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 38, 61, .92) 0%, rgba(6, 38, 61, .7) 60%, rgba(6, 38, 61, .45) 100%); }
.page-hero-inner { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.page-hero h1 { color: #fff; font-size: var(--step-4); margin-bottom: .3em; max-width: 20ch; }
.page-hero .lead { color: rgba(255, 255, 255, .88); max-width: 62ch; margin: 0; }
.page-hero .hero-wave { height: clamp(28px, 4vw, 60px); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; font-weight: 600; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); }
.breadcrumbs li + li::before { content: "›"; opacity: .6; }
.breadcrumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Tabs (project categories) ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; margin: 0 calc(var(--gutter) * -1) 20px; padding-inline: var(--gutter); list-style: none; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.tabs li { flex: none; scroll-snap-align: start; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .93rem; white-space: nowrap;
}
.tabs a:hover { border-color: var(--primary); color: var(--primary); }
.tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabs .count { font-size: .78rem; padding: 1px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.tabs a[aria-current="page"] .count { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: clamp(8px, 1.4vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.05); }
.gallery .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(6, 38, 61, 0), rgba(6, 38, 61, .85));
  color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (max-width: 599px) { .gallery .cap { font-size: .78rem; padding: 22px 10px 8px; } }
.gallery a::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2233' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 18, 30, .96); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 18, 30, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .2s ease-out; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: .95rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-caption { padding: 14px 16px 22px; text-align: center; font-weight: 600; min-height: 3.2em; color: rgba(255, 255, 255, .9); }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } .lb-stage { padding-bottom: 64px; } }

/* ---------- Services page ---------- */
.quicknav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.quicknav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; }
.quicknav a:hover { border-color: var(--primary); color: var(--primary); }
.quicknav .icon { width: 18px; height: 18px; color: var(--primary); }
.service-block + .service-block { margin-top: clamp(56px, 8vw, 96px); }
.service-block h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 14px; }
.service-block h2 .card-icon { width: 46px; height: 46px; }
.bullets { list-style: none; padding: 0; margin: 1em 0 1.4em; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 28px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--primary-soft); }
.bullets.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 24px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Product list (chemicals) ---------- */
.product-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.product-list li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 700; }
.product-list .card-icon { width: 44px; height: 44px; flex: none; }
.product-list .card-icon .icon { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-item .card-icon { width: 46px; height: 46px; flex: none; }
.info-item .card-icon .icon { width: 22px; height: 22px; }
.info-item small { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.info-item a, .info-item address { font-style: normal; font-weight: 700; font-size: 1.06rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.info-item a:hover { color: var(--primary); }

.form-card { padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfdbe4; border-radius: 12px; background: #fff;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 111, 168, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 600; }
.alert-success { background: #e7f6ef; color: var(--success); }
.alert-error { background: #fdecea; color: var(--danger); }

.map-frame { width: 100%; border: 0; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; min-height: 320px; background: var(--bg-alt); box-shadow: var(--shadow-sm); }
@media (min-width: 960px) { .map-frame { aspect-ratio: 16 / 10; } }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, .78); font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; padding-block: clamp(48px, 7vw, 80px) 40px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: rgba(255, 255, 255, .6); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* ---------- Mobile call button ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; height: 54px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-lg);
}
.call-fab:hover { color: #fff; background: var(--primary-dark); }
.call-fab .icon { width: 20px; height: 20px; }
@media (min-width: 960px) { .call-fab { display: none; } }
@media (max-width: 959px) { .site-footer { padding-bottom: 80px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--primary-soft); -webkit-text-stroke: 2px var(--primary); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
