@view-transition { navigation: auto; }

:root {
  --blue: #0e7fbf;
  --blue-dark: #0a5c8c;
  --navy: #0b1a29;
  --navy-2: #122638;
  --signal: #4be39a;
  --ink: #15212d;
  --muted: #566474;
  --line: #dde3ea;
  --bg-alt: #f2f5f8;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  font-kerning: normal;
}
a { color: var(--blue-dark); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
h4 { font-size: 1rem; margin-top: 1.4em; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.narrow-text { max-width: 68ch; }
.sub { font-size: 1.1rem; }
.gap { margin-top: 56px; }

.demo { margin: 0; padding: 6px 16px; background: #fff4c2; color: #5a4a00; font-size: .85rem; text-align: center; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.logo { flex: none; }
.logo img { height: 22px; width: auto; }
.top-right { display: flex; align-items: center; gap: 16px; }
.top-lang { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--blue-dark); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }
.top-lang:hover { border-color: var(--blue-dark); }
.top-tel { font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; color: var(--ink); }
.nav { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; padding-block: 2px 8px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--blue-dark); }
section[id] { scroll-margin-top: 96px; }

.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); background: var(--signal); color: var(--navy); font-weight: 700; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); font-weight: 600; }

.hero { background: var(--navy); color: #fff; padding: 40px 0; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-img { border-radius: var(--radius); width: 100%; max-height: 360px; object-fit: cover; }
.eyebrow, .kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 12px; }
.eyebrow { color: var(--signal); }
.kicker { color: var(--blue-dark); }
.hero h1 { font-size: clamp(1.85rem, 5vw, 3rem); letter-spacing: -.015em; }
.lead { font-size: 1.1rem; max-width: 56ch; color: #d5dee8; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.facts { list-style: none; padding: 20px 0 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; border-top: 1px solid rgba(255,255,255,.16); font-size: .88rem; color: #b9c6d4; }
.facts strong { display: block; font-family: var(--mono); font-size: 1.15rem; color: #fff; font-weight: 600; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-2); color: #e4ebf2; }
.section-dark a { color: var(--signal); }

.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.news span { font-family: var(--mono); font-size: .85rem; color: var(--blue-dark); }
.news p { margin: 2px 0 0; }

.split { display: grid; gap: 24px; align-items: start; }
.split > img { border-radius: var(--radius); margin-inline: auto; }
.two { display: grid; gap: 28px; align-items: start; }
.split > *, .two > *, .grid > * { min-width: 0; }
.two figure img { border-radius: var(--radius); background: #fff; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--signal); }
.section:not(.section-dark) .ticks li::before { background: var(--blue); }

.scroll { overflow-x: auto; margin: 12px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .78rem; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 500; }
td { font-variant-numeric: tabular-nums; }
.wide { min-width: 720px; white-space: nowrap; }

details { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 16px; }
details[open] summary { margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); }
details figure { margin-top: 20px; }
.note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); }
.card > img { max-height: 170px; width: auto; margin-bottom: 12px; }
.card h3 { margin-top: 0; }
.card h3 span { font: 600 .68rem var(--mono); background: var(--navy); color: var(--signal); padding: 3px 7px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.card details { border: 0; padding: 0; margin-top: 8px; overflow-x: auto; }
.card td, .card th { padding: 6px 4px; font-size: .86rem; }

.uses { display: grid; gap: 12px; margin: 28px 0; }
.uses div { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; }
.uses strong { display: block; font-family: var(--mono); color: var(--blue-dark); }
.holder { margin-top: 36px; }
.holder h3 { margin-top: 0; }

.shots { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
.shots img, .api img { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.api { margin-top: 40px; }
.api h3 { margin-top: 0; }

.certs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.certs a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.certs img { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.contacts { margin-top: 12px; }
.contacts .card a { display: block; padding: 3px 0; color: var(--blue-dark); }
.card address { font-style: normal; color: var(--muted); margin-bottom: 10px; }
.card p { margin-top: 0; }
.card .tel { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.card .map { font-weight: 600; margin-top: 8px; }

.foot { background: var(--navy); color: #b9c6d4; padding: 32px 0; font-size: .9rem; }
.foot a { color: #fff; }
.foot p { margin: 0 0 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot-grid { display: grid; gap: 20px; }

@media (min-width: 700px) {
  .logo img { height: 32px; }
  .top-tel { font-size: 1rem; }
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: minmax(180px, 280px) 1fr; }
  .split-right { grid-template-columns: 1fr minmax(200px, 360px); }
  .two { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(3, minmax(0, 240px)); }
  .foot-grid { grid-template-columns: 3fr 1fr; }
}

/* Cookie consent: Metrika loads only after "yes". Both buttons look the same: refusing is as easy as accepting. */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 300px; margin: 0 auto; padding: 14px 12px 12px; display: flex; flex-wrap: wrap; gap: 12px 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 100%; margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.3; text-align: center; }
/* Like a macOS alert: question on top, two equal buttons below. Same size, so refusing stays as easy. */
.consent .btn { flex: 1 1 0; padding: 5px 8px; border: 1.5px solid var(--signal); font: inherit; font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.consent [data-consent="no"] { background: transparent; border-color: var(--muted); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
