/* AMP Serwis – wersja 3, wariant 3 „Premium”
   Modern CSS: scroll-driven animations, popover menu, exclusive accordion, :user-invalid, :has(),
   @starting-style. Every effect is progressive: without support the page is complete and static. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.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 {
  /* brand */
  --ink: #0E1522;
  --ink-2: #172235;
  --ink-3: #22304A;
  --red: #E30613;
  --red-strong: #C4000E;
  --red-dark: #98000B;
  --red-light: #FF8A90;
  --wa: #1F7A4D;
  --white: #FFFFFF;

  /* surfaces and text */
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --line: #E2E7EE;
  --line-strong: #C9D1DC;
  --text: #1D2633;
  --muted: #566173;
  --on-dark: #C3CCD9;
  --on-dark-muted: #95A2B5;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 1.25rem;
  --max: 76rem;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --slant: 10deg;
  --header-h: 4.25rem;
  --shadow-1: 0 1px 2px rgb(14 21 34 / 0.05), 0 6px 16px -6px rgb(14 21 34 / 0.08);
  --shadow-2: 0 2px 6px rgb(14 21 34 / 0.06), 0 24px 48px -16px rgb(14 21 34 / 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  interpolate-size: allow-keywords;
}
@media (min-width: 48rem) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 2.9rem); letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--red-strong); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid var(--red-strong); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn .btn-arrow { transition: translate 0.3s var(--ease); }
.btn:hover .btn-arrow { translate: 0.25rem 0; }
.btn-sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-lg { min-height: 3.4rem; padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn-primary { background: var(--red-strong); color: var(--white); box-shadow: 0 10px 24px -12px rgb(196 0 14 / 0.75); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: 0 14px 28px -12px rgb(196 0 14 / 0.85); }
.btn-ghost { background: rgb(255 255 255 / 0.04); color: var(--white); border-color: rgb(255 255 255 / 0.28); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: var(--white); border-color: rgb(255 255 255 / 0.5); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #F1F3F6; color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #176240; color: var(--white); }

/* ---------- Scroll progress (scroll-driven animation) ---------- */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transform-origin: left;
    transform: scaleX(0);
    animation: grow-x linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Header: sticky glass bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.84);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgb(14 21 34 / 0.08);
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-lift linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
}
@keyframes header-lift { to { box-shadow: 0 10px 30px -18px rgb(14 21 34 / 0.45); background: rgb(255 255 255 / 0.94); } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 38px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgb(14 21 34 / 0.05); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 1.1rem; height: 1.1rem; color: var(--red-strong); }
.header-phone:hover { color: var(--red-strong); }
.header-cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  inset: calc(var(--header-h) + 0.5rem) 0.75rem auto;
  width: auto;
  max-height: calc(100dvh - var(--header-h) - 1.5rem);
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-2);
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}
.mobile-menu:not(:popover-open) { opacity: 0; transform: translateY(-0.5rem); }
@starting-style {
  .mobile-menu:popover-open { opacity: 0; transform: translateY(-0.5rem); }
}
.mobile-menu::backdrop { background: rgb(14 21 34 / 0.35); }
.mobile-menu ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu-actions { display: grid; gap: 0.6rem; }

@media (min-width: 48rem) {
  .brand img { height: 44px; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 62rem) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (min-width: 75rem) {
  .header-phone { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 60% at 85% 15%, rgb(64 96 150 / 0.35) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(227 6 19 / 0.14) 0%, transparent 70%),
    var(--ink);
  border-bottom: 3px solid var(--red);
  color: var(--on-dark);
}
.hero::before {
  /* fine engineering grid, fading towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 80%);
}
.hero-grid { display: grid; gap: 2.25rem; padding-block: 2rem 3rem; }
.hero-copy { order: 2; }
.hero-visual { order: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: #DCE3EC;
  font-size: 0.85rem;
  font-weight: 500;
}
.pill-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
.pill-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h1-accent {
  display: block;
  background: linear-gradient(90deg, #FFFFFF 0%, #AFC0D8 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 37rem; margin-bottom: 2rem; color: var(--on-dark); font-size: 1.125rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero :focus-visible { outline-color: var(--red-light); }

.hero-trust {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  list-style: none;
}
.hero-trust li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; line-height: 1.35; }
.hero-trust svg {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.6rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.05);
  color: var(--red-light);
}
.hero-trust b { display: block; color: var(--white); font-size: 0.97rem; font-weight: 600; }
.hero-trust span { color: var(--on-dark-muted); }

/* Diagonal photo blades */
.blades { display: flex; gap: 0.6rem; height: 15rem; padding-inline: 1.5rem; }
.blade {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: skewX(calc(-1 * var(--slant)));
  transition: flex-grow 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.blade.is-active { flex-grow: 4.5; }
.blade img {
  position: absolute;
  inset: 0 -30%;
  width: 160%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: skewX(var(--slant)) scale(1.08);
  filter: saturate(0.7) brightness(0.7);
  transition: filter 0.7s, transform 1.4s var(--ease);
}
.blade.is-active img { filter: none; transform: skewX(var(--slant)) scale(1); }
.blade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(10 15 25 / 0.88) 0%, rgb(10 15 25 / 0) 55%);
}
.blade-caption {
  position: absolute;
  left: 1.1rem;
  right: 0.75rem;
  bottom: 0.95rem;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  transform: skewX(var(--slant));
}
.blade-no { color: var(--red-light); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.blade-title {
  max-width: 17rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.blade.is-active .blade-title { opacity: 1; transform: none; transition-delay: 0.35s; }
.blade:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }

.blades-bar { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-inline: 1.5rem; }
.blades-bar[hidden] { display: none; }
.blades-progress { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 0.14); }
.blades-progress span { display: block; width: 100%; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.blades-progress span.is-running { animation: grow-x var(--blade-time, 5s) linear forwards; }
.slide-pause {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  cursor: pointer;
}
.slide-pause svg { width: 1rem; height: 1rem; }
.slide-pause .i-play, .slide-pause[aria-pressed="true"] .i-pause { display: none; }
.slide-pause[aria-pressed="true"] .i-play { display: block; }

@media (min-width: 48rem) {
  .hero-trust { grid-template-columns: repeat(3, 1fr); }
  .blades { height: 22rem; }
}
@media (min-width: 62rem) {
  .hero { min-height: min(46rem, calc(100svh - var(--header-h))); display: grid; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-block: 4.5rem 5rem; }
  .hero-copy, .hero-visual { order: 0; }
  .blades { height: 33rem; gap: 0.85rem; padding-inline: 2.5rem 1rem; }
  .blade.is-active { flex-grow: 5; }
  .blade-title { font-size: 1.15rem; }
  .blades-bar { padding-inline: 2.5rem 1rem; }
}
@media (max-width: 39.99rem) {
  .blades { gap: 0.4rem; padding-inline: 0.9rem; height: 13rem; }
  .blade-title { font-size: 0.9rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 2.8rem + 4.5vw, 7rem); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-intro { margin: 0; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--red-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span {
  padding: 0.1rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Check lists */
.checks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.3rem 0 0.3rem 1.75rem; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgb(196 0 14 / 0.1);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.82rem;
  width: 0.42rem;
  height: 0.24rem;
  border-left: 2px solid var(--red-strong);
  border-bottom: 2px solid var(--red-strong);
  transform: rotate(-45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--red-strong);
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { width: 1.1rem; height: 1.1rem; transition: translate 0.3s var(--ease); }
.text-link:hover svg { translate: 0.25rem 0; }

/* Spotlight that follows the cursor (position set by JS on devices with a mouse) */
.spot { position: relative; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(227 6 19 / 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* ---------- Services: bento ---------- */
.bento { display: grid; gap: 1rem; }
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.bento-card > :not(.bento-bg) { position: relative; z-index: 2; }
.bento-card p { color: var(--muted); }
.bento-card h3 { font-size: 1.35rem; }
.bento-tag {
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bento-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-strong), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 20px -10px rgb(196 0 14 / 0.7);
}
.bento-icon svg { width: 1.5rem; height: 1.5rem; }

.bento-main { min-height: 32rem; justify-content: flex-end; border: 0; background: var(--ink); color: var(--on-dark); }
.bento-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(14 21 34 / 0.1) 0%, rgb(14 21 34 / 0.55) 40%, rgb(14 21 34 / 0.96) 100%);
}
.bento-main.spot::before { z-index: 1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.1), transparent 45%); }
.bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 1.2s var(--ease);
}
.bento-main:hover .bento-bg { transform: scale(1.04); }
.bento-main h3 { max-width: 30rem; color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.bento-main .bento-tag { background: rgb(255 255 255 / 0.14); color: var(--white) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bento-main .checks li { color: var(--white); }
.bento-main .checks li::before { background: rgb(255 255 255 / 0.14); }
.bento-main .checks li::after { border-color: var(--red-light); }
.bento-main .text-link { color: var(--white); }
.bento-main :focus-visible { outline-color: var(--red-light); }
.bento-cols { display: grid; gap: 0 2rem; }

.bento-cta {
  gap: 1rem;
  border: 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    linear-gradient(120deg, var(--red-strong), #8A000A);
  color: var(--white);
}
.bento-cta p { margin: 0; color: rgb(255 255 255 / 0.88); }
.bento-cta .bento-cta-title { color: var(--white); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.bento-cta .btn { align-self: flex-start; }
.bento-cta :focus-visible { outline-color: var(--white); }

@media (min-width: 40rem) {
  .bento-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-main, .bento-cta { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .bento-main { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 36rem; }
  .bento-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .bento-cta p:not(.bento-cta-title) { max-width: 34rem; }
  .bento-cta .btn { align-self: center; flex: none; }
}

/* ---------- Devices ---------- */
.devices { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.device {
  padding: 0 0 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: translate 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.device:hover { translate: 0 -6px; box-shadow: var(--shadow-2); }
.device-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.device-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.device:hover .device-photo img { transform: scale(1.07); }
.device-photo-drawing {
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem 2.5rem;
  background: linear-gradient(#E3E8EE 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, #E3E8EE 1px, transparent 1px) 0 0 / 14px 14px, var(--surface-2);
}
.device-no {
  position: relative;
  z-index: 2;
  display: block;
  width: max-content;
  margin: -1.6rem 1.25rem 0.6rem auto;
  padding: 0.2rem 0.7rem;
  background: var(--red-strong);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transform: skewX(calc(-1 * var(--slant)));
}
.device h3 { padding-inline: 1.4rem; font-size: 1.12rem; margin-bottom: 0.4rem; }
.device p { margin: 0; padding-inline: 1.4rem; color: var(--muted); font-size: 0.97rem; }

@media (min-width: 40rem) { .devices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .devices { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: 2.5rem; }
.why-head .section-intro { margin-bottom: 2rem; }
.why-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.why-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), translate 0.4s var(--ease);
}
.why-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); translate: 0.25rem 0; }
.why-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}
.why-icon svg { width: 1.5rem; height: 1.5rem; }
.why-item h3 { margin-bottom: 0.35rem; }
.why-item p { margin: 0; color: var(--muted); }

@media (min-width: 62rem) {
  .why-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; }
  .why-head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

/* ---------- Process timeline (the red line fills while scrolling) ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  translate: -1px 0;
  background: var(--line-strong);
}
.timeline::after { background: var(--red); transform-origin: top; }
.timeline li { position: relative; z-index: 1; padding: 0.15rem 0 0 4.5rem; }
.step-no {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--surface-2);
}
.timeline li:last-child .step-no { background: var(--red-strong); border-color: var(--red-strong); color: var(--white); }
.timeline h3 { margin-bottom: 0.35rem; }
.timeline p { margin: 0; color: var(--muted); }

@media (min-width: 62rem) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .timeline::before, .timeline::after {
    left: 1.5rem;
    right: calc((100% - 3 * 1.5rem) / 4 - 1.5rem);
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 2px;
    translate: 0 -1px;
  }
  .timeline::after { transform-origin: left; }
  .timeline li { padding: 4.5rem 1rem 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 62rem) {
    .timeline::after { animation-name: grow-x; }
  }
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3.5rem; align-items: center; }
.about-copy > p:not(.eyebrow) { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (min-width: 30rem) { .facts div { grid-template-columns: 11rem 1fr; gap: 1rem; } }

.about-fig { position: relative; margin: 0 0 2rem; padding: 0 1.25rem 0 0; }
.about-fig::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 0;
  bottom: -1.25rem;
  left: 2.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.photo-cut { position: relative; overflow: hidden; border-radius: var(--r-lg); clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); }
.photo-cut img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 62rem) { .about-fig { max-width: 30rem; justify-self: end; } }
.photo-badge {
  position: absolute;
  left: 0;
  bottom: -1.75rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.95rem 1.3rem;
  border-radius: var(--r);
  background: rgb(14 21 34 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 0.9rem;
  box-shadow: var(--shadow-2);
}
.photo-badge b { color: var(--white); font-size: 1.05rem; }
@media (min-width: 62rem) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }

/* ---------- Films and realisations: dark section with slanted edges ---------- */
.section-dark {
  position: relative;
  background:
    radial-gradient(50% 40% at 90% 10%, rgb(64 96 150 / 0.25), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--red-light); }
.section-dark .section-intro { color: var(--on-dark); }
.section-dark :focus-visible { outline-color: var(--red-light); }
.section-slant {
  padding-block: clamp(6rem, 5rem + 4vw, 9rem);
  clip-path: polygon(0 3.5rem, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
  margin-block: -3.5rem;
}
#o-firmie { padding-bottom: calc(clamp(4rem, 2.8rem + 4.5vw, 7rem) + 3.5rem); }
#faq { padding-top: calc(clamp(4rem, 2.8rem + 4.5vw, 7rem) + 3.5rem); }

.sub-title { margin: 0 0 1.1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.videos { display: grid; gap: 1.5rem; margin: 0 0 3.5rem; padding: 0; list-style: none; }
.video-card { display: flex; flex-direction: column; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r);
  background: #0A0F18;
  box-shadow: 0 20px 44px -18px rgb(0 0 0 / 0.6);
}
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-frame video { object-fit: contain; }
.video-frame-tall {
  width: min(100%, 19rem);
  aspect-ratio: 9 / 16;
  max-height: 34rem;
  border-radius: 26px;
  box-shadow: 0 20px 44px -18px rgb(0 0 0 / 0.6), 0 0 0 6px #070B12, 0 0 0 7px rgb(255 255 255 / 0.14);
}
.video-title { margin: 0.85rem 0 0.15rem; color: var(--white); font-weight: 600; }
.video-meta { margin: 0; color: var(--on-dark-muted); font-size: 0.9rem; }
.yt-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px dashed rgb(255 255 255 / 0.22);
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0));
  color: var(--on-dark);
  font-weight: 500;
  text-align: center;
}
.yt-placeholder svg { width: 3.25rem; height: auto; color: var(--red-strong); }
.yt-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000 center / cover no-repeat; cursor: pointer; }
.yt-play svg { width: 4.25rem; height: auto; margin: auto; color: var(--red-strong); filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5)); transition: transform 0.3s var(--ease); }
.yt-play:hover svg { transform: scale(1.08); color: #FF0000; }

@media (min-width: 40rem) and (max-width: 61.99rem) {
  .videos { grid-template-columns: repeat(2, 1fr); }
  .video-card:first-child { grid-row: span 2; }
}
@media (min-width: 62rem) {
  .videos { grid-template-columns: 17rem minmax(0, 1fr); gap: 1.5rem 2.25rem; }
  .video-card:first-child { grid-row: span 2; }
  .video-card:not(:first-child) { display: grid; grid-template-columns: 56% 1fr; grid-template-rows: 1fr 1fr; gap: 0 1.75rem; align-content: center; }
  .video-card:not(:first-child) .video-frame { grid-row: 1 / span 2; }
  .video-card:not(:first-child) .video-title { align-self: end; margin: 0 0 0.25rem; font-size: 1.15rem; }
  .video-card:not(:first-child) .video-meta { align-self: start; }
}

/* Vertical films (YouTube Shorts): 2, 3 and 5 per row */
.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.short-card { display: flex; flex-direction: column; min-width: 0; }
.video-frame-short {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  box-shadow: 0 20px 44px -18px rgb(0 0 0 / 0.6), 0 0 0 4px #070B12, 0 0 0 5px rgb(255 255 255 / 0.14);
}
.short-card .video-title { font-size: 0.98rem; line-height: 1.35; }
.yt-placeholder a { color: var(--white); text-align: center; }
.channel-link { margin: 0 0 3.5rem; }
@media (min-width: 40rem) { .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }
@media (min-width: 62rem) { .shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Bento gallery: 8 tiles fill 2, 3 and 4 columns exactly (12 cells each) */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 9rem;
  grid-auto-flow: dense;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { min-height: 0; }
.gallery a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(8 12 20 / 0.82) 0%, rgb(8 12 20 / 0) 55%);
  transition: opacity 0.35s;
}
.gallery a:hover img { transform: scale(1.06); }
.tile-caption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.75rem;
  z-index: 1;
  padding-left: 0.6rem;
  border-left: 3px solid var(--red);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(8) { grid-column: span 2; }
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 10rem; }
  .gallery li:nth-child(4) { grid-column: span 2; }
  .gallery li:nth-child(8) { grid-column: span 1; }
}
@media (min-width: 62rem) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; gap: 0.75rem; }
  .gallery li:nth-child(4) { grid-column: span 1; }
  .gallery li:nth-child(5) { grid-column: span 2; }
}
@media (hover: hover) and (min-width: 62rem) {
  .tile-caption { opacity: 0; transform: translateY(0.4rem); transition: opacity 0.3s, transform 0.3s var(--ease); }
  .gallery a::after { opacity: 0; }
  .gallery a:hover .tile-caption, .gallery a:focus-visible .tile-caption { opacity: 1; transform: none; }
  .gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
}

/* Lightbox (dialog, fades in with @starting-style) */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; opacity: 1; transition: opacity 0.25s; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: rgb(6 9 15 / 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; max-width: min(100%, 82rem); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100dvh - 7rem); margin-inline: auto; border-radius: var(--r); object-fit: contain; touch-action: pan-y; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.25rem 0; color: #DCE3EC; font-size: 0.95rem; }
.lightbox-count { color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lb-btn:hover { background: rgb(255 255 255 / 0.2); }
.lb-btn svg { width: 1.3rem; height: 1.3rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-prev svg { rotate: 180deg; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-close { top: 1rem; right: 1rem; }
.lightbox :focus-visible { outline-color: var(--red-light); }
@media (max-width: 47.99rem) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- FAQ: exclusive accordion with smooth height ---------- */
.faq-grid { display: grid; gap: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0.8rem no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s, border-color 0.2s;
}
.faq summary:hover::after { border-color: var(--ink); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--surface-2); }
.faq-body { padding: 0 3.5rem 1.4rem 0; color: var(--muted); }
.faq-body p { margin: 0; }
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (min-width: 62rem) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.form h3 { margin: 0; font-size: 1.35rem; }
.form-row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .chips legend { color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #FBFCFD;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
textarea { min-height: 8rem; resize: vertical; }
::placeholder { color: #7B8697; }
input:hover, textarea:hover { border-color: #9AA6B6; }
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgb(196 0 14 / 0.16);
}
input:user-invalid, textarea:user-invalid { border-color: #B00010; background: #FFF8F8; }
.field-error { display: none; color: #B00010; font-size: 0.88rem; font-weight: 500; }
.field:has(:user-invalid) .field-error { display: block; }

/* Service chips: radio buttons styled as tags */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 0.6rem; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--red-strong); outline-offset: 2px; }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.form-note { flex: 1 1 16rem; margin: 0; color: var(--muted); font-size: 0.92rem; }
.form-note a { font-weight: 600; }
.form-status { margin: 0; padding: 0.85rem 1rem; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-weight: 500; }
.form-status:empty { display: none; }

.contact-side { display: grid; gap: 1.25rem; }
.contact-card {
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgb(64 96 150 / 0.35), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.contact-card h3 { color: var(--white); }
.contact-actions { display: grid; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-actions a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, translate 0.3s var(--ease);
}
.contact-actions a:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); translate: 0.2rem 0; color: var(--white); }
.ca-icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--red-strong); }
.ca-icon svg { width: 1.25rem; height: 1.25rem; }
.ca-wa { background: var(--wa); }
.contact-actions small { display: block; color: var(--on-dark-muted); font-size: 0.8rem; }
.contact-actions b { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dl { margin: 0; font-size: 0.95rem; }
.contact-card dl div { padding-block: 0.6rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.contact-card dt { color: var(--on-dark-muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-card dd { margin: 0.1rem 0 0; color: var(--white); }
.contact-card a { color: var(--white); text-decoration-color: var(--red-light); }
.contact-card :focus-visible { outline-color: var(--red-light); }

.map { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.map svg { width: min(100% - 2rem, 18rem); height: auto; margin: 1.25rem auto; }
.map figcaption { padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.map b { display: block; color: var(--ink); }

@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 2rem; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 0 1.5rem; background: var(--ink); color: var(--on-dark); font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--red-light); }
.site-footer :focus-visible { outline-color: var(--red-light); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.footer-cta-title { max-width: 34rem; margin: 0; color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-cta .btn-primary { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2.5rem; }
.site-footer p { margin: 0 0 0.75rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--white); }
.footer-logo img { width: auto; height: 44px; }
.footer-title { margin-bottom: 0.85rem; color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer .registry { color: var(--on-dark-muted); font-size: 0.88rem; }
.footer-nav { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: var(--on-dark-muted);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.credit a { font-weight: 600; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr; } }

/* ---------- Phones: bottom action bar ---------- */
.action-bar { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgb(14 21 34 / 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    transition: translate 0.35s var(--ease);
  }
  .action-bar.is-hidden { translate: 0 110%; }
  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.2rem;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.07);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
  }
  .action-bar svg { width: 1.25rem; height: 1.25rem; }
  .action-bar .action-main { background: var(--red-strong); }
  .action-bar :focus-visible { outline-color: var(--red-light); }
}

/* ---------- Scroll-driven reveals (CSS only; static where unsupported) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(2.25rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .scroll-progress { display: none; }
}
