/* ==========================================================================
   Luchi.bg – site styles
   Visual language carried over from the old site: dark header, orange accent,
   navy headings mixing light + bold weights, dot patterns, cyan circles.
   ========================================================================== */

:root {
  --ink: #16181b;
  --ink-2: #1f2226;
  --navy: #242e47;
  --text: #3a4152;
  --muted: #6b7280;
  --line: #e4e6ea;
  --paper: #f5f4f1;
  --white: #fff;
  --orange: #ea681b;
  --orange-600: #cf5510;
  --orange-100: #fdeee4;
  --cyan: #3fd0d4;
  --cyan-100: #e4fafa;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px -20px rgba(22, 24, 27, .35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* keep the neutral Cyrillic glyphs instead of the cursive-like Bulgarian forms */
  font-feature-settings: "locl" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }

.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-facebook, .icon-youtube { stroke-width: 1.6; }

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.split-title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; }
.split-title strong { font-weight: 700; }
.split-title.small { font-size: 22px; }
.split-title.light { color: #fff; }
.section-lead { color: var(--muted); max-width: 560px; font-size: 15px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .split-title { margin-bottom: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500;
  color: var(--navy); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--orange); border-color: currentColor; }
.link-arrow.light { color: #fff; }
.link-arrow.light:hover { color: #fff; border-color: #fff; }

.arrow-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; transition: all .25s var(--ease);
}
.arrow-btn:hover { background: var(--orange); border-color: var(--orange); }
.arrow-btn.prev .icon { transform: rotate(180deg); }
.arrow-btn.dark { border-color: var(--navy); color: var(--navy); }
.arrow-btn.dark:hover { background: var(--navy); color: #fff; }
.arrow-btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.arrow-btn.light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- decorative ---------- */
.dots { position: absolute; pointer-events: none; background-image: radial-gradient(currentColor 2px, transparent 2.5px); background-size: 18px 18px; }
.dots-hero { color: rgba(234, 104, 27, .55); width: 260px; height: 200px; right: 4%; top: 16%; -webkit-mask: radial-gradient(circle at 70% 30%, #000 30%, transparent 72%); mask: radial-gradient(circle at 70% 30%, #000 30%, transparent 72%); }
.dots-hero-home { color: rgba(234, 104, 27, .8); width: 340px; height: 260px; right: 2%; top: 10px; z-index: 2; -webkit-mask: radial-gradient(circle at 80% 20%, #000 20%, transparent 70%); mask: radial-gradient(circle at 80% 20%, #000 20%, transparent 70%); }
.dots-cyan { color: var(--cyan); width: 150px; height: 96px; background-size: 20px 20px; position: relative; flex: none; }
.dots-cta { color: rgba(234, 104, 27, .35); width: 300px; height: 220px; left: -40px; bottom: -40px; }
.half-circle { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--cyan); background: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--orange); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: 168px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 12px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88); position: relative; transition: color .2s; white-space: nowrap;
}
.header-cta { white-space: nowrap; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 24px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav > ul > li > a:hover, .main-nav a.is-active { color: var(--orange); }
.main-nav > ul > li > a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.mega {
  position: absolute; top: 100%; left: 50%; width: min(760px, 90vw); transform: translate(-50%, 10px);
  background: #fff; color: var(--navy); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
  padding: 26px; opacity: 0; visibility: hidden; transition: all .25s var(--ease); border-top: 3px solid var(--orange);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 24px; }
.mega-grid a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.mega-grid a:hover { background: var(--orange-100); color: var(--orange-600); }
.mega-grid .bullet { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange-100); color: var(--orange); transition: background .2s, color .2s; }
.mega-grid .bullet .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.mega-grid a:hover .bullet { background: var(--orange); color: #fff; }
.mega-all { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 10px 0; font-weight: 700; color: var(--orange); border-top: 1px solid var(--line); width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang {
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; width: 38px; height: 38px;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; transition: all .2s;
}
.lang:hover { border-color: var(--orange); color: var(--orange); }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-phone .icon { color: var(--orange); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; left: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; left: 10px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--ink); color: #fff; overflow-y: auto;
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px;
  opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { font-family: var(--font-head); font-size: 24px; font-weight: 300; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-nav a.is-active { color: var(--orange); font-weight: 600; }
.drawer-products { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-products a { font-size: 13px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 30px; color: rgba(255, 255, 255, .8); }
.drawer-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.lang-full { text-align: center; color: rgba(255, 255, 255, .7); padding: 8px; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   Home – hero
   ========================================================================== */
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 820px); background: var(--ink); color: #fff; display: flex; overflow: hidden; }
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(22, 24, 27, .92) 0%, rgba(22, 24, 27, .7) 42%, rgba(22, 24, 27, .15) 100%), linear-gradient(0deg, rgba(22, 24, 27, .7), transparent 40%); }
.vertical-label {
  position: absolute; left: 34px; top: 50%; z-index: 2; transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 14px;
}
.vertical-label::after { content: ""; width: 70px; height: 1px; background: var(--orange); }
.hero-inner { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(60px, 10vh, 120px); padding-bottom: 40px; }
.hero-copy { max-width: 700px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; font-weight: 300; display: block; }
.hero-text { font-size: clamp(16px, 1.4vw, 18px); color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 36px; }
.hero-nav { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 32px; margin-top: 56px; }
.hero-captions { position: relative; min-height: 64px; }
.hero-caption { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); pointer-events: none; }
.hero-caption.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-caption .num { font-family: var(--font-head); font-size: 12px; letter-spacing: .2em; color: var(--orange); }
.hero-caption .label { font-family: var(--font-head); font-size: 20px; display: inline-flex; gap: 8px; align-items: center; }
.hero-caption:hover .label { color: var(--orange); }
.hero-arrows { display: flex; gap: 10px; }
.hero-progress { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, .15); }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.hero-progress span.run { animation: progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

/* EU strip */
.eu-strip { background: #fff; border-bottom: 1px solid var(--line); }
.eu-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.eu-inner img { width: 280px; border-radius: 4px; }
.eu-inner h2 { font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.eu-inner p { margin: 0; color: var(--muted); font-size: 14px; }

/* statement + stats */
.statement { padding-bottom: 40px; }
.statement-inner { display: flex; gap: 48px; align-items: center; }
.statement-text { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; color: var(--navy); line-height: 1.35; margin: 0; max-width: 900px; }
.statement-text strong { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; display: flex; align-items: baseline; gap: 14px; }
.stat strong { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--orange); line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; max-width: 160px; line-height: 1.4; }

/* solutions scroller */
.solutions { background: var(--paper); position: relative; overflow: hidden; }
.solutions::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--cyan-100); right: -140px; bottom: -200px; z-index: 0; }
.solutions > * { position: relative; z-index: 1; }
.scroller-arrows { display: flex; gap: 10px; }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 10px;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* category card */
.cat-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); color: #fff; isolation: isolate; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 24, 27, .05) 30%, rgba(22, 24, 27, .85)); transition: background .4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(234, 104, 27, .1) 20%, rgba(22, 24, 27, .9)); }
.cat-card-num { position: absolute; z-index: 1; top: 18px; left: 20px; font-family: var(--font-head); font-size: 26px; font-weight: 300; color: var(--orange); }
.cat-card-body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.cat-card-title { font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.25; }
.cat-card-more { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.cat-card:hover .cat-card-more, .cat-card:focus-visible .cat-card-more { opacity: 1; transform: none; }

/* about split */
.about-split-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 0 60px 0; }
.about-img-main { border-radius: var(--radius-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 86%; position: relative; z-index: 1; }
.about-img-small { position: absolute; z-index: 2; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 8px solid #fff; box-shadow: var(--shadow); }
.circle-cyan { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--cyan); left: -50px; top: -50px; }
.about-copy .split-title { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.3; margin-bottom: 20px; }
.about-copy p { color: var(--muted); margin-bottom: 28px; }

/* projects (orange block) */
.projects-block { position: relative; background: var(--orange); color: #fff; padding: clamp(64px, 8vw, 110px) 0; overflow: hidden; }
.projects-wave { position: absolute; left: -80px; top: -60px; width: 420px; height: 300px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 26px rgba(255, 255, 255, .06), 0 0 0 52px rgba(255, 255, 255, .04); }
.projects-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.projects-heading { color: #fff; font-size: 15px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 36px; opacity: .9; }
.projects-heading strong { font-weight: 700; }
.projects-copy { display: grid; }
.project-slide { grid-area: 2 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .5s var(--ease); }
.project-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.projects-heading { grid-area: 1 / 1; }
.projects-all { grid-area: 3 / 1; margin-top: 48px; font-family: var(--font-head); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.projects-all:hover { text-decoration: underline; }
.project-num { font-family: var(--font-head); font-size: 20px; opacity: .85; }
.project-slide h3 { color: #fff; font-size: clamp(28px, 3.6vw, 48px); font-weight: 400; margin: 14px 0 18px; }
.project-slide p { color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 480px; }
.projects-media { position: relative; aspect-ratio: 4 / 4.2; }
.project-image { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.project-image.is-active { opacity: 1; }
.project-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.projects-arrows { position: absolute; left: -26px; bottom: 40px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }

/* news cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card time, .post-featured time { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.post-card h3 { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* CTA band */
.cta-band { position: relative; background: var(--ink-2); color: #fff; padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; }
.cta-copy p { color: rgba(255, 255, 255, .72); max-width: 520px; margin-bottom: 30px; }
.cta-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cta-team li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; border-left: 2px solid var(--orange); padding-left: 16px; }
.cta-team .role { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.cta-team a { color: rgba(255, 255, 255, .7); word-break: break-word; }
.cta-team a:hover { color: var(--orange); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero.has-image { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 9vw, 130px); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 24, 27, .9), rgba(22, 24, 27, .35)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 62px); font-weight: 300; max-width: 900px; margin-bottom: 18px; }
.page-hero h1 strong { font-weight: 700; }
.page-hero-lead { color: rgba(255, 255, 255, .78); font-size: clamp(16px, 1.4vw, 18px); max-width: 640px; margin: 0; }
.page-hero .dots { z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--orange); }

/* category */
.intro-card-wrap { position: relative; z-index: 3; margin-top: -54px; }
.intro-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; max-width: 1000px;
}
.intro-card p { font-family: var(--font-head); font-size: clamp(18px, 2vw, 24px); color: var(--navy); margin: 0; line-height: 1.4; }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.type-card { padding: 34px 32px; background: var(--paper); border-right: 1px solid var(--line); }
.type-card:last-child { border-right: 0; }
.type-shape { display: block; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(90deg, #9aa0a8 50%, transparent 50%); margin-bottom: 22px; }
.type-card small { color: var(--muted); font-size: 12px; }
.type-card h3 { font-size: 21px; margin: 4px 0 14px; }
.type-card p { font-size: 14px; color: var(--muted); margin: 0; }

.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.album-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.album-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; }
.album-card-img { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.album-grid.compact .album-card-img { aspect-ratio: 4 / 3; }
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.album-card:hover img { transform: scale(1.05); opacity: .85; }
.album-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: linear-gradient(0deg, rgba(22, 24, 27, .88), rgba(22, 24, 27, 0)); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.album-card-title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.album-grid.compact .album-card-title { font-size: 14px; }
.album-card-meta { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .75); white-space: nowrap; }

.gallery { columns: 3 280px; column-gap: 16px; margin-top: 32px; }
.gallery-item { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--paper); }
.gallery-item img { width: 100%; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.other-cats { background: var(--paper); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 40px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); transition: all .2s; }
.chip:hover, .chip.is-primary { background: var(--orange); color: #fff; border-color: var(--orange); }

/* product grid page */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-grid .cat-card { aspect-ratio: 4 / 4.4; }
.cat-grid .cat-card.is-wide { grid-column: span 2; aspect-ratio: auto; }

/* certificates (references page) */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-item { margin: 0; aspect-ratio: 210 / 297; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 10px; transition: transform .35s var(--ease), box-shadow .35s; }
.cert-item img { width: 100%; height: 100%; object-fit: contain; }
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-item:hover img { transform: none; }
.certificates { background: var(--paper); }
.section-projects { padding-top: clamp(48px, 7vw, 90px); }

/* news list */
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); margin-bottom: 40px; }
.post-featured-img { min-height: 340px; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.post-featured h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; margin: 0; }
.post-featured h2 a:hover { color: var(--orange); }
.post-featured p { color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 56px; flex-wrap: wrap; }
.pager-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-nums a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 600; }
.pager-nums a:hover { border-color: var(--orange); color: var(--orange); }
.pager-nums a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager-step { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--navy); }
.pager-step:not(.next) .icon { transform: rotate(180deg); }
.pager-step:hover { color: var(--orange); }

/* post */
.post-hero { position: relative; background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 90px) 0 clamp(120px, 14vw, 180px); overflow: hidden; }
.post-hero .container { position: relative; z-index: 2; }
.post-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); font-weight: 600; }
.post-date { display: inline-flex; gap: 8px; align-items: center; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.post-cover { margin-top: clamp(-150px, -12vw, -90px); position: relative; z-index: 3; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-body { padding-top: 48px; }
.post-share { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding-top: 24px; padding-bottom: 72px; border-top: 1px solid var(--line); margin-top: 40px; }
.share-fb { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--navy); }
.share-fb:hover { color: var(--orange); }

/* prose */
.prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; font-weight: 600; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; font-weight: 600; }
.prose a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; cursor: zoom-in; width: 100%; }
.prose img + img, .prose img + br + img { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul.bullets { list-style: none; padding: 18px 22px; margin: 1.4em 0; background: var(--paper); border-left: 3px solid var(--orange); border-radius: var(--radius); }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.prose ul.bullets li:last-child { margin-bottom: 0; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); font-family: var(--font-head); font-size: 20px; color: var(--navy); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }

/* about page */
.about-page { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.feature-box { background: var(--paper); border-radius: var(--radius-lg); padding: 30px; display: flex; gap: 20px; align-items: flex-start; }
.feature-box p { margin: 0; font-family: var(--font-head); color: var(--navy); font-size: 18px; line-height: 1.45; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--navy); }
.check-list .icon { color: var(--orange); }
.check-list a:hover { color: var(--orange); }
.team-section { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.team-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--orange); font-size: 14px; }
.team-card .role, .team-list .role { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.team-card a { display: inline-flex; gap: 8px; align-items: center; color: var(--text); white-space: nowrap; }
.team-card a:hover { color: var(--orange); }
.team-card .icon { color: var(--orange); }

/* catalog */
.catalog-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.catalog-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }

/* contacts */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.office-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.office-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.office-card p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 15px; }
.office-card .icon { color: var(--orange); margin-top: 4px; }
.office-card a:hover { color: var(--orange); }
.contact-form-section { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.team-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.team-list li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.team-list a:hover { color: var(--orange); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-card h2 { font-size: 26px; font-weight: 700; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfbfa; color: var(--navy); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-100); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--orange-600); text-decoration: underline; }
.form-card .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.alert.ok { background: #e8f7ee; color: #146c3a; }
.alert.err { background: #fdecea; color: #a12a1c; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 14.5px; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.4fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer h3 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-office { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.footer-office strong { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-eu { display: inline-flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, .7); }
.footer-credit { color: rgba(255, 255, 255, .5); transition: color .2s; }
.footer-credit:hover { color: var(--orange); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 13, 15, .96); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: 14px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: rotate(180deg); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: rgba(255, 255, 255, .6); font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1600px) {
  .vertical-label { display: none; }
  .header-phone span { display: none; }
  .header-actions { gap: 14px; }
}
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .main-nav > ul > li > a { padding: 0 9px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .main-nav, .header-cta, .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: block; }
  .scroller { grid-auto-columns: minmax(240px, 40%); }
  .about-split-inner, .projects-inner, .cta-inner, .about-page, .contact-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .album-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .eu-inner { grid-template-columns: 1fr; gap: 14px; }
  .projects-arrows { left: 16px; bottom: 16px; flex-direction: row; }
  .vertical-label { display: none; }
}
@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .brand img { width: 132px; }
  .hero { min-height: 640px; }
  .hero-nav { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding-top: 20px; }
  .statement-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .scroller { grid-auto-columns: 78%; }
  .post-grid, .cat-grid, .album-grid { grid-template-columns: 1fr; }
  .cat-grid .cat-card.is-wide { grid-column: auto; aspect-ratio: 4 / 4.4; }
  .intro-card { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .type-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta-team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer ul.cols-2 { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .eu-inner img { width: 220px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
