/* ============================================================
   Реклами Бојков — stylesheet
   ============================================================ */

/* ---- Inter, self-hosted (variable 400–900) --------------------
   Served from our own domain instead of Google Fonts: one fewer
   third-party connection on the critical path, and no render block.
   swap = text paints immediately in the fallback, then re-renders. */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 900;
  font-display:swap;
  src:url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 900;
  font-display:swap;
  src:url('../assets/fonts/inter-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;
}

/* ------------------------------------------------------------------
   THEME TOKENS

   LIGHT is the default. Dark is opt-in via the header toggle and
   remembered per visitor (localStorage "rb_theme").

   To flip the default back to dark, swap the two selectors below:
   put the dark values on :root and the light ones on
   :root[data-theme="light"], then update the two `currentTheme`
   defaults in js/main.js and the <meta name="theme-color"> values.

   Two things deliberately stay dark in BOTH themes:
     · the hero — it is a brand panel, and the glow only reads on dark
     · the lightbox — photo viewers are dark everywhere, for good reason
   ------------------------------------------------------------------ */
:root{
  /* surfaces */
  --bg:            #ffffff;
  --bg-alt:        #f5f8fc;
  --card:          #ffffff;
  --border:        #e2e8f0;
  --border-soft:   rgba(15,23,42,.08);
  --sunken:        #eef2f7;   /* behind images while they load */

  /* hero (theme-independent) */
  --navy:          #1a2845;
  --navy-deep:     #16223a;

  /* brand */
  --blue:          #3b82f6;
  --blue-600:      #2563eb;
  --blue-700:      #1d4ed8;

  /* text */
  --text:          #0f172a;
  --muted:         #52627a;
  /* WCAG AA at 13px needs 4.5:1 — slate-400 (#94a3b8) only reached 2.4:1 here */
  --muted-dim:     #5d6b81;
  --ink:           #4b5563;
  --strong:        #0f172a;
  --label:         #334155;

  /* links inside body copy — #3b82f6 fails contrast on white */
  --link:          #1d4ed8;
  --link-hover:    #1e3a8a;

  /* accents and decoration */
  --accent-soft:        rgba(37,99,235,.09);
  --accent-soft-border: rgba(37,99,235,.20);
  --about-accent:       #dbeafe;
  --hairline-hover:     rgba(37,99,235,.42);

  /* shadows */
  --shadow-photo:  0 24px 55px rgba(15,23,42,.18);
  --shadow-card:   0 14px 34px rgba(15,23,42,.10);
  --shadow-modal:  0 30px 70px rgba(15,23,42,.28);

  /* header — white in both themes */
  --header-bg:     rgba(255,255,255,1);
  --header-border: rgba(15,23,42,.10);
  --header-shadow: 0 2px 16px rgba(15,23,42,.10);
  --header-ink:    #4b5563;
  --header-ink-hi: #0f172a;

  /* map facade */
  --map-grad:      linear-gradient(150deg,#e8eef8 0%,#dbe6f5 55%,#e4ecf9 100%);
  --map-grid:      rgba(15,23,42,.07);

  /* misc components */
  --gallery-veil:  rgba(15,23,42,.22);
  --code-bg:       rgba(37,99,235,.10);
  --code-fg:       #1d4ed8;
  --table-head:    #f1f5f9;
  --overlay-soft:  rgba(15,23,42,.55);
  --alert-ok-bg:   rgba(37,99,235,.08);
  --alert-ok-bd:   rgba(37,99,235,.28);
  --alert-ok-fg:   #1e40af;
  --alert-err-bg:  rgba(220,38,38,.07);
  --alert-err-bd:  rgba(220,38,38,.28);
  --alert-err-fg:  #b91c1c;

  /* footer logo ships as white artwork; on light it flips to black */
  --footer-logo-filter: invert(1);

  --container:     1280px;
  --header-h:      83px;

  --radius:        12px;
  --radius-sm:     8px;
}

:root[data-theme="dark"]{
  --bg:            #0a111c;
  --bg-alt:        #0b131d;
  --card:          #0e1725;
  --border:        #1c2739;
  --border-soft:   rgba(255,255,255,.07);
  --sunken:        #0b1220;

  --text:          #f8fafc;
  --muted:         #94a3b8;
  /* same AA floor on dark; slate-500 (#64748b) only reached 3.8:1 on --card */
  --muted-dim:     #7688a1;
  --strong:        #cbd5e1;
  --label:         #cbd5e1;

  --link:          #3b82f6;
  --link-hover:    #93c5fd;

  --accent-soft:        rgba(37,99,235,.16);
  --accent-soft-border: rgba(59,130,246,.22);
  --about-accent:       #182b4d;
  --hairline-hover:     rgba(59,130,246,.45);

  --shadow-photo:  0 24px 60px rgba(0,0,0,.5);
  --shadow-card:   0 18px 44px rgba(0,0,0,.45);
  --shadow-modal:  0 30px 70px rgba(0,0,0,.6);

  --header-border: rgba(15,23,42,.08);

  --map-grad:      linear-gradient(150deg,#132038 0%,#0d1728 55%,#111c30 100%);
  --map-grid:      rgba(255,255,255,.05);

  --gallery-veil:  rgba(11,18,32,.35);
  --code-bg:       rgba(59,130,246,.12);
  --code-fg:       #bfdbfe;
  --table-head:    rgba(255,255,255,.03);
  --overlay-soft:  rgba(5,9,16,.72);
  --alert-ok-bg:   rgba(37,99,235,.14);
  --alert-ok-bd:   rgba(59,130,246,.4);
  --alert-ok-fg:   #bfdbfe;
  --alert-err-bg:  rgba(220,38,38,.13);
  --alert-err-bd:  rgba(248,113,113,.42);
  --alert-err-fg:  #fecaca;

  --footer-logo-filter: none;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h); }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:300;
  padding:12px 20px;
  background:var(--blue-600);
  color:#fff;
  font-weight:600;
  border-radius:0 0 var(--radius-sm) 0;
}
.skip-link:focus{ left:0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--header-bg);
  border-bottom:1px solid var(--header-border);
  transition:box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.scrolled{ box-shadow:var(--header-shadow); }

.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo img{ height:40px; width:auto; }

.nav-desktop{ display:flex; align-items:center; gap:34px; }
.nav-desktop a{
  position:relative;
  font-size:15px;
  font-weight:400;
  color:var(--header-ink);
  padding:6px 0;
  transition:color .2s ease;
}
.nav-desktop a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:100%; height:2px;
  background:var(--blue-600);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .25s ease;
}
.nav-desktop a:hover{ color:var(--header-ink-hi); }
.nav-desktop a:hover::after{ transform:scaleX(1); transform-origin:left; }

/* theme toggle */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px; height:38px;
  padding:0;
  background:none;
  border:1px solid var(--header-border);
  border-radius:999px;
  color:var(--header-ink);
  cursor:pointer;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover{
  color:var(--header-ink-hi);
  border-color:var(--header-ink);
  background:rgba(15,23,42,.04);
}
.theme-toggle:focus-visible{ outline:2px solid var(--blue-600); outline-offset:2px; }
.theme-toggle svg{ width:18px; height:18px; }

/* show the icon for the theme you'd switch TO:
   light page → moon (click for dark), dark page → sun (click for light) */
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
:root[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
:root[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

.header-actions{ display:flex; align-items:center; gap:14px; }

/* hamburger */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px; height:44px;
  padding:0;
  background:none;
  border:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px; width:24px;
  margin-inline:auto;
  background:var(--header-ink-hi);
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none;
  flex-direction:column;
  background:var(--header-bg);
  border-top:1px solid var(--header-border);
  padding:8px 24px 20px;
}
.nav-mobile a{
  padding:13px 0;
  font-size:16px;
  color:var(--header-ink);
  border-bottom:1px solid var(--header-border);
}
.nav-mobile a:last-child{ border-bottom:0; }
.nav-mobile.open{ display:flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:var(--navy);
  isolation:isolate;
}

/* diamond cross-hatch */
.hero-pattern{
  position:absolute;
  inset:0;
  z-index:-2;
  background-color:var(--navy);
  background-image:
    repeating-linear-gradient( 45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient( 45deg, rgba(0,0,0,.10) 1px 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.10) 1px 2px, transparent 2px 22px);
}
/* vignette — subtle: the lattice must stay visible edge to edge */
.hero-pattern::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 85% 65% at 50% 46%,
              rgba(40,62,110,.28) 0%,
              rgba(26,40,69,0) 58%,
              rgba(10,17,28,.42) 100%);
}

/* soft blue glow behind the wordmark */
.hero-glow{
  position:absolute;
  z-index:-1;
  top:46%;
  left:50%;
  width:min(860px,88vw);
  height:220px;
  transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center,
              rgba(59,130,246,.13) 0%,
              rgba(59,130,246,.05) 45%,
              rgba(59,130,246,0) 72%);
  filter:blur(18px);
  pointer-events:none;
}

.hero-inner{
  max-width:808px;          /* 760px content + 2 × 24px gutter */
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-block:80px;
}

.hero-rule{
  width:100%;
  height:1px;
  background:rgba(255,255,255,.85);
}

.hero-title{
  margin:30px 0 0;
  font-size:clamp(2.05rem,5.42vw,4.55rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:.055em;
  white-space:nowrap;
  color:#fff;
  text-shadow:
     0 0 14px rgba(191,219,254,.5),
     0 0 34px rgba(59,130,246,.42),
     0 0 66px rgba(37,99,235,.28);
}

.hero-subtitle{
  margin:16px 0 30px;
  font-size:clamp(.66rem,1.55vw,1.375rem);
  font-weight:700;
  letter-spacing:.085em;
  white-space:nowrap;
  color:#fff;
  text-shadow:0 0 16px rgba(59,130,246,.3);
}

.btn-hero{
  margin-top:50px;
  display:inline-block;
  padding:16px 54px;
  background:var(--blue-600);
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:.09em;
  border-radius:2px;
  box-shadow:0 8px 30px rgba(37,99,235,.35);
  transition:background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-hero:hover{
  background:var(--blue-700);
  transform:translateY(-2px);
  box-shadow:0 12px 38px rgba(37,99,235,.5);
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section{ padding-block:96px; }

.section-head{ text-align:center; margin-bottom:56px; }

.eyebrow{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--blue);
  text-transform:uppercase;
}

.section-title{
  margin:0;
  font-size:clamp(1.9rem,4vw,3rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--text);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{ background:var(--bg); }

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  align-items:center;
}

.about-media{ position:relative; padding:26px; }

.about-accent-top{
  position:absolute;
  top:0; left:0;
  width:120px; height:88px;
  background:var(--about-accent);
  border-radius:14px;
}
.about-accent-bottom{
  position:absolute;
  right:34px; bottom:0;
  width:118px; height:104px;
  border:2px solid var(--blue-600);
  border-radius:14px;
}

.about-photo{
  position:relative;
  z-index:1;
  border-radius:6px;
  overflow:hidden;
  box-shadow:var(--shadow-photo);
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }

.about-title{ margin-bottom:22px; }

.lead{
  margin:0 0 30px;
  font-size:17px;
  line-height:1.72;
  color:var(--muted);
}
.lead strong{ color:var(--text); font-weight:700; }

.feature-list{ list-style:none; margin:0; padding:0; display:grid; gap:24px; }
.feature-list li{ display:flex; gap:14px; align-items:flex-start; }

.feature-list .check{
  flex:0 0 auto;
  width:22px; height:22px;
  margin-top:2px;
  color:var(--blue);
}
.feature-list h3{
  margin:0 0 5px;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.feature-list p{
  margin:0;
  font-size:14.5px;
  line-height:1.62;
  color:var(--muted);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products{ background:var(--bg-alt); }

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.product-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  border-color:var(--hairline-hover);
  box-shadow:var(--shadow-card);
}

.product-img{ aspect-ratio:286/186; overflow:hidden; background:var(--sunken); }
.product-img img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.product-card:hover .product-img img{ transform:scale(1.06); }

.product-body{ padding:22px 22px 26px; }
.product-body h3{
  margin:0 0 10px;
  font-size:17px;
  font-weight:700;
  color:var(--text);
}
.product-body p{
  margin:0;
  font-size:14.5px;
  line-height:1.65;
  color:var(--muted);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process{ background:var(--bg); }

.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.process-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:34px 26px 32px;
  text-align:center;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.process-card:hover{
  transform:translateY(-6px);
  border-color:var(--hairline-hover);
  box-shadow:var(--shadow-card);
}

.process-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px; height:56px;
  margin-bottom:20px;
  background:var(--blue-600);
  border-radius:14px;
  color:#fff;
  box-shadow:0 8px 22px rgba(37,99,235,.35);
}
.process-icon svg{ width:26px; height:26px; }

.process-card h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.process-card p{
  margin:0;
  font-size:14px;
  line-height:1.65;
  color:var(--muted);
}

/* stats */
.stats{
  margin-top:96px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  text-align:center;
}
.stat-num{
  display:block;
  font-size:clamp(2.2rem,4.4vw,3.25rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.02em;
  color:var(--text);
}
.stat-label{
  display:block;
  margin-top:6px;
  font-size:15px;
  color:var(--muted);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio{ background:var(--bg); }

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.gallery-item{
  position:relative;
  display:block;
  padding:0;
  margin:0;
  border:0;
  background:var(--sunken);
  border-radius:var(--radius-sm);
  overflow:hidden;
  aspect-ratio:3/2;
  cursor:zoom-in;
}
.gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--gallery-veil);
  opacity:0;
  transition:opacity .35s ease;
}
.gallery-item:hover img{ transform:scale(1.07); }
.gallery-item:hover::after{ opacity:1; }
.gallery-item:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ background:var(--bg-alt); }

.faq-list{
  max-width:880px;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.faq-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:border-color .25s ease;
}
.faq-item[open]{ border-color:var(--hairline-hover); }
.faq-item:hover{ border-color:var(--accent-soft-border); }

.faq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 24px;
  cursor:pointer;
  list-style:none;
  font-size:16.5px;
  font-weight:600;
  line-height:1.45;
  color:var(--text);
}
/* hide the native disclosure marker in every engine */
.faq-q::-webkit-details-marker{ display:none; }
.faq-q::marker{ content:""; }

.faq-q:focus-visible{ outline:2px solid var(--blue); outline-offset:-2px; }

.faq-chevron{
  flex:0 0 auto;
  width:20px; height:20px;
  color:var(--blue);
  transition:transform .28s ease;
}
.faq-item[open] .faq-chevron{ transform:rotate(180deg); }

.faq-a{
  padding:0 24px 22px;
  font-size:15px;
  line-height:1.72;
  color:var(--muted);
}
.faq-a p{ margin:0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ background:var(--bg-alt); }

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:76px;
  max-width:1120px;
  margin-inline:auto;
}

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field{ margin-bottom:22px; }
.field-row .field{ margin-bottom:0; }

.field label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:500;
  color:var(--label);
}

.field input,
.field textarea{
  width:100%;
  padding:13px 15px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  color:var(--text);
  font-family:inherit;
  font-size:15px;
  line-height:1.5;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ resize:vertical; min-height:150px; }

.field input::placeholder,
.field textarea::placeholder{ color:var(--muted-dim); }

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--blue-600);
  box-shadow:0 0 0 3px rgba(37,99,235,.22);
}

.field input:user-invalid,
.field textarea:user-invalid{ border-color:#dc2626; }

.btn-submit{
  width:100%;
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 24px;
  background:var(--blue-600);
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:15.5px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 8px 26px rgba(37,99,235,.32);
  transition:background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-submit svg{ width:18px; height:18px; }
.btn-submit:hover{
  background:var(--blue-700);
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(37,99,235,.45);
}
.btn-submit:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.form-status{
  margin:14px 0 0;
  min-height:20px;
  font-size:14px;
  color:var(--blue);
}
.form-status.error{ color:#f87171; }

/* honeypot — kept out of sight and out of the tab order, never display:none
   (bots skip hidden fields, which would defeat the trap) */
.hp{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

/* server-rendered banner for visitors without JS */
.form-alert{
  margin:0 0 22px;
  padding:13px 16px;
  border-radius:var(--radius-sm);
  font-size:14.5px;
  line-height:1.55;
}
.form-alert.is-ok{
  background:var(--alert-ok-bg);
  border:1px solid var(--alert-ok-bd);
  color:var(--alert-ok-fg);
}
.form-alert.is-err{
  background:var(--alert-err-bg);
  border:1px solid var(--alert-err-bd);
  color:var(--alert-err-fg);
}

/* info column */
.contact-info{ display:flex; flex-direction:column; gap:26px; }

.info-row{
  display:flex;
  align-items:center;
  gap:20px;
  transition:transform .2s ease;
}
.info-row:hover{ transform:translateX(3px); }

.info-icon{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px; height:48px;
  border-radius:12px;
  background:var(--accent-soft);
  border:1px solid var(--accent-soft-border);
  color:var(--blue);
}
.info-icon svg{ width:21px; height:21px; }

.info-text{
  font-size:15.5px;
  font-weight:600;
  color:var(--text);
}

.map{
  margin-top:6px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--sunken);
}
.map iframe{
  display:block;
  width:100%;
  height:190px;
  border:0;
  filter:grayscale(.05);
}

/* click-to-load placeholder shown until the visitor asks for the map */
.map-facade{
  position:relative;
  display:block;
  width:100%;
  height:190px;
  padding:0;
  border:0;
  background:var(--map-grad);
  cursor:pointer;
  overflow:hidden;
}
.map-facade-grid{
  position:absolute;
  inset:0;
  background-image:
    repeating-linear-gradient(0deg,  var(--map-grid) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--map-grid) 0 1px, transparent 1px 34px);
}
.map-facade-grid::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg, transparent 44%, rgba(59,130,246,.22) 47%, rgba(59,130,246,.22) 49%, transparent 52%),
    radial-gradient(circle at 50% 46%, rgba(59,130,246,.2) 0%, transparent 62%);
}
.map-facade-body{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  height:100%;
  color:var(--text);
}
.map-facade-body svg{ width:28px; height:28px; color:var(--blue); }
.map-facade-title{ font-size:15px; font-weight:700; }
.map-facade-cta{
  font-size:13px;
  color:var(--muted);
  border-bottom:1px dashed rgba(148,163,184,.5);
  padding-bottom:1px;
}
.map-facade:hover .map-facade-cta{ color:var(--text); border-bottom-color:var(--blue); }
.map-facade:focus-visible{ outline:2px solid var(--blue); outline-offset:-3px; }

.map-note{
  margin:0;
  font-size:13.5px;
  color:var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--bg-alt);
  border-top:1px solid var(--border);
  padding-block:34px;
}

/* one row: logo · legal links · copyright · credit */
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px 22px;
  flex-wrap:wrap;
}

.footer-logo img{
  height:22px;
  width:auto;
  filter:var(--footer-logo-filter);
}

.footer-nav{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-nav a{
  font-size:13.5px;
  color:var(--muted);
  transition:color .2s ease;
}
.footer-nav a:hover{ color:var(--text); }

.footer-copy{
  margin:0;
  font-size:13.5px;
  color:var(--muted);
}

.footer-credit{
  margin:0;
  font-size:13px;
  color:var(--muted-dim);
}
.footer-credit a{
  color:var(--muted);
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
.footer-credit a:hover{
  color:var(--link);
  border-bottom-color:currentColor;
}

/* keep the four groups from splitting mid-phrase as the row wraps */
.footer-copy,
.footer-credit{ white-space:nowrap; }

@media (max-width:1180px){
  .footer-row{ justify-content:center; text-align:center; }
}
@media (max-width:640px){
  .footer-copy,
  .footer-credit{ white-space:normal; }
  .footer-nav{ justify-content:center; gap:18px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:rgba(5,9,16,.94);
  backdrop-filter:blur(4px);
  animation:lbIn .22s ease;
}
.lightbox[hidden]{ display:none; }

@keyframes lbIn{ from{opacity:0} to{opacity:1} }

.lb-img{
  max-width:min(1100px,92vw);
  max-height:86vh;
  width:auto;
  border-radius:var(--radius-sm);
  box-shadow:0 30px 80px rgba(0,0,0,.7);
}

.lb-close,.lb-prev,.lb-next{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  cursor:pointer;
  border-radius:999px;
  transition:background .2s ease;
}
.lb-close:hover,.lb-prev:hover,.lb-next:hover{ background:rgba(255,255,255,.2); }

.lb-close{ top:24px; right:28px; width:44px; height:44px; font-size:28px; line-height:1; }
.lb-prev,.lb-next{ top:50%; transform:translateY(-50%); width:52px; height:52px; font-size:32px; line-height:1; }
.lb-prev{ left:26px; }
.lb-next{ right:26px; }

/* ============================================================
   LEGAL PAGE (privacy policy)
   ============================================================ */
.legal{ background:var(--bg); }

.legal-wrap{
  max-width:820px;
  margin-inline:auto;
}
.legal-wrap .eyebrow{ text-align:left; }

.legal-title{ margin-bottom:10px; text-align:left; }

.legal-updated{
  margin:0 0 34px;
  font-size:14px;
  color:var(--muted-dim);
}

.legal-intro{
  margin:0 0 40px;
  padding:20px 24px;
  background:var(--card);
  border:1px solid var(--border);
  border-left:3px solid var(--blue-600);
  border-radius:var(--radius-sm);
  font-size:15.5px;
  line-height:1.72;
  color:var(--muted);
}
.legal-intro strong{ color:var(--text); }

.legal-wrap h2{
  margin:38px 0 14px;
  font-size:20px;
  font-weight:700;
  color:var(--text);
}

.legal-wrap p{
  margin:0 0 16px;
  font-size:15.5px;
  line-height:1.75;
  color:var(--muted);
}
.legal-wrap strong{ color:var(--strong); }

.legal-wrap a{
  color:var(--link);
  text-decoration:underline;
  text-underline-offset:2px;
}
.legal-wrap a:hover{ color:var(--link-hover); }

.legal-wrap ul{
  margin:0 0 18px;
  padding-left:22px;
  display:grid;
  gap:9px;
}
.legal-wrap li{
  font-size:15.5px;
  line-height:1.7;
  color:var(--muted);
}
.legal-wrap li::marker{ color:var(--blue); }

.legal-wrap code{
  padding:2px 6px;
  background:var(--code-bg);
  border-radius:4px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13.5px;
  color:var(--code-fg);
}

.legal-table-wrap{
  margin:0 0 20px;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
}
.legal-table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  font-size:14.5px;
}
.legal-table th,
.legal-table td{
  padding:12px 16px;
  text-align:left;
  border-bottom:1px solid var(--border);
}
.legal-table th{
  background:var(--table-head);
  font-weight:600;
  color:var(--text);
}
.legal-table td{ color:var(--muted); }
.legal-table tr:last-child td,
.legal-table tr:last-child th{ border-bottom:0; }

/* key/value variant: row headers in the first column */
.legal-table tbody th{
  width:34%;
  white-space:nowrap;
  vertical-align:top;
}

.legal-back{
  margin-top:44px;
  padding-top:26px;
  border-top:1px solid var(--border);
}

/* ============================================================
   404
   ============================================================ */
.error-page{ background:var(--bg); }

.error-wrap{
  max-width:640px;
  margin-inline:auto;
  text-align:center;
  padding-block:40px;
}

.error-code{
  margin:0 0 6px;
  font-size:clamp(4.5rem,14vw,8rem);
  font-weight:800;
  line-height:1;
  letter-spacing:-.04em;
  color:transparent;
  background:linear-gradient(180deg,var(--blue) 0%,rgba(37,99,235,.15) 100%);
  -webkit-background-clip:text;
  background-clip:text;
}

.error-text{
  margin:14px 0 30px;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}

.error-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.error-btn{ width:auto; padding-inline:34px; }
.error-alt{
  font-size:15px;
  color:var(--link);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.error-alt:hover{ border-bottom-color:currentColor; }

.error-nav{
  display:flex;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
  margin-top:38px;
  padding-top:26px;
  border-top:1px solid var(--border);
}
.error-nav a{
  font-size:14.5px;
  color:var(--muted);
  transition:color .2s ease;
}
.error-nav a:hover{ color:var(--text); }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
/* centred modal, over a dimmed page */
.cookie-banner{
  position:fixed;
  inset:0;
  z-index:250;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:var(--overlay-soft);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:0;
  transition:opacity .3s ease;
}
.cookie-banner.is-visible{ opacity:1; }
.cookie-banner[hidden]{ display:none; }

/* The dialog receives focus when it opens so the focus trap has an anchor and
   screen readers announce it. It is not an interactive control, so it must not
   paint a ring — that is what made a border appear around a button on load.
   The buttons inside keep their own :focus-visible outlines. */
.cookie-banner:focus{ outline:none; }

.cookie-card{
  width:min(480px,100%);
  padding:32px 32px 28px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-modal);
  text-align:center;
  transform:translateY(16px) scale(.97);
  transition:transform .32s cubic-bezier(.22,.61,.36,1);
}
.cookie-banner.is-visible .cookie-card{ transform:none; }

.cookie-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px; height:52px;
  margin-bottom:16px;
  border-radius:14px;
  background:var(--accent-soft);
  border:1px solid var(--accent-soft-border);
  color:var(--blue);
}
.cookie-icon svg{ width:24px; height:24px; }

.cookie-title{
  margin:0 0 10px;
  font-size:19px;
  font-weight:700;
  color:var(--text);
}

.cookie-text{
  margin:0 0 22px;
  font-size:14.5px;
  line-height:1.68;
  color:var(--muted);
}
.cookie-text a{
  color:var(--link);
  text-decoration:underline;
  text-underline-offset:2px;
}
.cookie-text a:hover{ color:var(--link-hover); }

.cookie-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.cookie-btn{
  font-family:inherit;
  cursor:pointer;
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.cookie-accept{
  width:100%;
  padding:13px 24px;
  border-radius:999px;
  background:var(--blue-600);
  color:#fff;
  font-size:15.5px;
  font-weight:600;
}
.cookie-accept:hover{ background:var(--blue-700); }
.cookie-accept:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

/* Styled as text rather than a second button, by choice — the accept action
   is the visually louder of the two.
   What keeps this the right side of a dark pattern is not equal loudness but
   that declining stays easy: the underline keeps it obviously clickable, the
   padding gives it a real tap target, and --muted measures 6.20:1 on the light
   card and 7.01:1 on the dark one.
   It is deliberately NOT --muted-dim, which the old "leave the site" link used:
   that is 2.56:1 in light mode, i.e. below the 4.5:1 WCAG AA floor. Fading this
   back toward that value fails contrast before it even reaches the consent
   argument. */
.cookie-decline{
  padding:10px 14px;
  background:none;
  font-size:14px;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
}
.cookie-decline:hover{ color:var(--text); }
.cookie-decline:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; border-radius:6px; }

@media (max-width:520px){
  .cookie-banner{ padding:16px; }
  .cookie-card{ padding:26px 22px 24px; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible{ opacity:1; transform:none; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px){
  .product-grid,
  .process-grid{ grid-template-columns:repeat(2,1fr); }
  .about-grid{ gap:48px; }
  .contact-grid{ gap:52px; }
}

@media (max-width:900px){
  :root{ --header-h:72px; }

  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }

  .section{ padding-block:72px; }

  .about-grid{ grid-template-columns:1fr; gap:44px; }
  .about-media{ max-width:520px; margin-inline:auto; }

  .contact-grid{ grid-template-columns:1fr; gap:48px; }

  .gallery-grid{ gap:14px; }

  .footer-nav{ justify-content:center; gap:20px; }
}

@media (max-width:640px){
  .container{ padding-inline:18px; }

  .section{ padding-block:60px; }
  .section-head{ margin-bottom:40px; }

  .hero-inner{ padding-block:60px; }
  .hero-title{ margin-top:26px; }
  .btn-hero{ margin-top:44px; padding:16px 30px; font-size:13px; }

  .product-grid,
  .process-grid{ grid-template-columns:1fr; }

  .stats{ margin-top:64px; grid-template-columns:1fr; gap:34px; }

  .gallery-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }

  .field-row{ grid-template-columns:1fr; gap:0; }
  .field-row .field{ margin-bottom:22px; }

  .lightbox{ padding:16px; }
  .lb-prev,.lb-next{ width:42px; height:42px; font-size:26px; }
  .lb-prev{ left:10px; } .lb-next{ right:10px; }
  .lb-close{ top:14px; right:14px; }
}

/* Below ~420px the single-line hero strapline no longer fits the column,
   so let it wrap instead of being clipped by the hero's overflow:hidden. */
@media (max-width:420px){
  .hero-title{ font-size:7.9vw; }
  .hero-subtitle{
    white-space:normal;
    font-size:12px;
    line-height:1.5;
    letter-spacing:.06em;
  }
}
