/* ČECHSTAV – stavebné práce
   Colors are role tokens: change a theme by changing only the values below.
   --dark        hero, page headers, dark bands, default buttons
   --dark-deep   spec strip, footer
   --accent      primary actions, CTA band, rules and markers
   --on-accent   text placed on --accent
   --accent-on-dark  accent-colored text placed on --dark / --dark-deep
   --accent-text accent shade that passes AA as small text on white */

:root {
  /* Theme: anthracite & copper
     RAL 7016 anthracite (windows, fences, roofs) carries 30 % of the page,
     warm off-white neutrals 60 %, copper 10 % for actions and accents. */
  --dark: #2F3539;
  --dark-deep: #22272A;
  --dark-hover: #3D4449;
  --accent: #E07B3C;
  --accent-hover: #E8925C;
  --on-accent: #22272A;
  --accent-on-dark: #E8894E;
  --accent-text: #A3501E;
  --paper: #FFFFFF;
  --bg-alt: #F3F2EF;
  --line: #DAD8D3;
  --field: #8A8F93;   /* input borders: 3.3:1 on white */
  --ink: #1F2326;
  --ink-2: #3A3F43;
  --muted: #5F656A;
  --link: #A3501E;
  --error: #B42318;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --w: 1200px;
  --gutter: 20px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 800; line-height: 0.92; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}
.is-dark :focus-visible,
.is-dark:focus-visible { outline-color: var(--accent-on-dark); }

.skip {
  position: absolute; left: 0; top: 0;
  padding: 10px 16px;
  background: var(--dark); color: var(--accent-on-dark);
  font-weight: 600;
  transform: translateY(-120%);
  z-index: 100;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--w), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-link { color: var(--link); text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--dark-deep) 55%, transparent); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.6rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  display: block;
}
.brand__bg { fill: var(--accent); }
.brand__house { stroke: var(--on-accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  appearance: none; border: 0; background: none;
  width: 48px; height: 48px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--dark); margin: 5px auto;
  transition: transform .2s, opacity .2s;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 3px solid var(--dark);
  background: var(--dark); color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--dark-hover); border-color: var(--dark-hover); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--dark); }
.btn--ghost:hover { background: color-mix(in srgb, var(--dark) 8%, transparent); border-color: var(--dark); }
.is-dark .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.85); }
.is-dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--paper); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .7; cursor: progress; }

.site-header .btn { padding: 10px 16px; font-size: 1.15rem; }
.header-cta__short { display: none; }
@media (max-width: 420px) {
  .header-cta__long { display: none; }
  .header-cta__short { display: inline; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 8px var(--gutter) 16px;
    border-bottom: 3px solid var(--dark);
  }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--bg-alt); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--bg-alt); color: inherit; box-shadow: inset 6px 0 0 var(--accent); padding-left: 16px; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header .btn { padding: 10px 12px; margin-left: auto; }
  .site-header__bar { gap: 12px; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--paper);
  overflow: hidden;
}
.hero {
  --brick-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240'%3E%3Cdefs%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 -.12'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23fff'%3E%3Crect y='0' width='720' height='4'/%3E%3Crect x='0' y='0' width='4' height='60'/%3E%3Crect x='180' y='0' width='4' height='60'/%3E%3Crect x='360' y='0' width='4' height='60'/%3E%3Crect x='540' y='0' width='4' height='60'/%3E%3Crect y='60' width='720' height='4'/%3E%3Crect x='90' y='60' width='4' height='60'/%3E%3Crect x='270' y='60' width='4' height='60'/%3E%3Crect x='450' y='60' width='4' height='60'/%3E%3Crect x='630' y='60' width='4' height='60'/%3E%3Crect y='120' width='720' height='4'/%3E%3Crect x='0' y='120' width='4' height='60'/%3E%3Crect x='180' y='120' width='4' height='60'/%3E%3Crect x='360' y='120' width='4' height='60'/%3E%3Crect x='540' y='120' width='4' height='60'/%3E%3Crect y='180' width='720' height='4'/%3E%3Crect x='90' y='180' width='4' height='60'/%3E%3Crect x='270' y='180' width='4' height='60'/%3E%3Crect x='450' y='180' width='4' height='60'/%3E%3Crect x='630' y='180' width='4' height='60'/%3E%3Crect x='4' y='4' width='176' height='56' fill-opacity='0.12'/%3E%3Crect x='184' y='4' width='176' height='56' fill-opacity='0.08'/%3E%3Crect x='364' y='4' width='176' height='56' fill-opacity='0.16'/%3E%3Crect x='544' y='4' width='176' height='56' fill-opacity='0.26'/%3E%3Crect x='634' y='64' width='86' height='56' fill-opacity='0.04'/%3E%3Crect x='0' y='64' width='90' height='56' fill-opacity='0.04'/%3E%3Crect x='94' y='64' width='176' height='56' fill-opacity='0.04'/%3E%3Crect x='274' y='64' width='176' height='56' fill-opacity='0.32'/%3E%3Crect x='454' y='64' width='176' height='56' fill-opacity='0.2'/%3E%3Crect x='634' y='64' width='86' height='56' fill-opacity='0.04'/%3E%3Crect x='0' y='64' width='90' height='56' fill-opacity='0.04'/%3E%3Crect x='4' y='124' width='176' height='56' fill-opacity='0.12'/%3E%3Crect x='184' y='124' width='176' height='56' fill-opacity='0.2'/%3E%3Crect x='364' y='124' width='176' height='56' fill-opacity='0.04'/%3E%3Crect x='544' y='124' width='176' height='56' fill-opacity='0.2'/%3E%3Crect x='634' y='184' width='86' height='56' fill-opacity='0.08'/%3E%3Crect x='0' y='184' width='90' height='56' fill-opacity='0.08'/%3E%3Crect x='94' y='184' width='176' height='56' fill-opacity='0.04'/%3E%3Crect x='274' y='184' width='176' height='56' fill-opacity='0.04'/%3E%3Crect x='454' y='184' width='176' height='56' fill-opacity='0.16'/%3E%3Crect x='634' y='184' width='86' height='56' fill-opacity='0.16'/%3E%3Crect x='0' y='184' width='90' height='56' fill-opacity='0.16'/%3E%3Crect x='4' y='58' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='184' y='58' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='364' y='58' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='544' y='58' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='634' y='118' width='86' height='2' fill-opacity='.45'/%3E%3Crect x='0' y='118' width='90' height='2' fill-opacity='.45'/%3E%3Crect x='94' y='118' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='274' y='118' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='454' y='118' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='634' y='118' width='86' height='2' fill-opacity='.45'/%3E%3Crect x='0' y='118' width='90' height='2' fill-opacity='.45'/%3E%3Crect x='4' y='178' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='184' y='178' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='364' y='178' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='544' y='178' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='634' y='238' width='86' height='2' fill-opacity='.45'/%3E%3Crect x='0' y='238' width='90' height='2' fill-opacity='.45'/%3E%3Crect x='94' y='238' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='274' y='238' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='454' y='238' width='176' height='2' fill-opacity='.45'/%3E%3Crect x='634' y='238' width='86' height='2' fill-opacity='.45'/%3E%3Crect x='0' y='238' width='90' height='2' fill-opacity='.45'/%3E%3C/g%3E%3Crect width='720' height='240' fill='%23fff' filter='url(%23n)'/%3E%3C/svg%3E");
  --brick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240'%3E%3Cg fill='%23fff'%3E%3Crect x='4' y='4' width='176' height='1.5'/%3E%3Crect x='4' y='4' width='1.5' height='56'/%3E%3Crect x='184' y='4' width='176' height='1.5'/%3E%3Crect x='184' y='4' width='1.5' height='56'/%3E%3Crect x='364' y='4' width='176' height='1.5'/%3E%3Crect x='364' y='4' width='1.5' height='56'/%3E%3Crect x='544' y='4' width='176' height='1.5'/%3E%3Crect x='544' y='4' width='1.5' height='56'/%3E%3Crect x='634' y='64' width='86' height='1.5'/%3E%3Crect x='0' y='64' width='90' height='1.5'/%3E%3Crect x='634' y='64' width='1.5' height='56'/%3E%3Crect x='94' y='64' width='176' height='1.5'/%3E%3Crect x='94' y='64' width='1.5' height='56'/%3E%3Crect x='274' y='64' width='176' height='1.5'/%3E%3Crect x='274' y='64' width='1.5' height='56'/%3E%3Crect x='454' y='64' width='176' height='1.5'/%3E%3Crect x='454' y='64' width='1.5' height='56'/%3E%3Crect x='634' y='64' width='86' height='1.5'/%3E%3Crect x='0' y='64' width='90' height='1.5'/%3E%3Crect x='634' y='64' width='1.5' height='56'/%3E%3Crect x='4' y='124' width='176' height='1.5'/%3E%3Crect x='4' y='124' width='1.5' height='56'/%3E%3Crect x='184' y='124' width='176' height='1.5'/%3E%3Crect x='184' y='124' width='1.5' height='56'/%3E%3Crect x='364' y='124' width='176' height='1.5'/%3E%3Crect x='364' y='124' width='1.5' height='56'/%3E%3Crect x='544' y='124' width='176' height='1.5'/%3E%3Crect x='544' y='124' width='1.5' height='56'/%3E%3Crect x='634' y='184' width='86' height='1.5'/%3E%3Crect x='0' y='184' width='90' height='1.5'/%3E%3Crect x='634' y='184' width='1.5' height='56'/%3E%3Crect x='94' y='184' width='176' height='1.5'/%3E%3Crect x='94' y='184' width='1.5' height='56'/%3E%3Crect x='274' y='184' width='176' height='1.5'/%3E%3Crect x='274' y='184' width='1.5' height='56'/%3E%3Crect x='454' y='184' width='176' height='1.5'/%3E%3Crect x='454' y='184' width='1.5' height='56'/%3E%3Crect x='634' y='184' width='86' height='1.5'/%3E%3Crect x='0' y='184' width='90' height='1.5'/%3E%3Crect x='634' y='184' width='1.5' height='56'/%3E%3C/g%3E%3C/svg%3E");
}
/* very subtle large-format brick wall: darker mortar, tone variation, fine grain (::before)
   and a faint bevel highlight on each brick (::after) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: 720px 240px; mask-size: 720px 240px;
}
.hero::before {
  background: color-mix(in srgb, var(--dark) 76%, #000);
  -webkit-mask-image: var(--brick-dark); mask-image: var(--brick-dark);
  opacity: .6;
}
.hero::after {
  background: color-mix(in srgb, var(--dark) 82%, #fff);
  -webkit-mask-image: var(--brick-light); mask-image: var(--brick-light);
  opacity: .22;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 600px;
}
.hero__text {
  padding: 72px 0 64px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px;
}
.hero__kicker {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.35rem;
  line-height: 1.2;
  color: var(--accent-on-dark);
}
.hero__lede {
  font-size: 1.25rem;
  max-width: 40ch;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo {
  position: relative;
  overflow: hidden;
  margin-right: calc(-1 * (100vw - min(var(--w), 100vw - 2 * var(--gutter))) / 2);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 48px 0 40px; }
  .hero__photo {
    margin-inline: calc(-1 * var(--gutter));
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }
  .hero__photo img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 50% 40%; }
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: var(--dark);
  color: var(--paper);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.page-hero__lede {
  font-size: 1.25rem;
  max-width: 60ch;
  margin-top: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

/* Chips: jump links, gallery filters */

.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  line-height: 1.2;
  padding: 8px 14px;
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}
.chip:hover { background: color-mix(in srgb, var(--dark) 8%, transparent); }
.chip[aria-pressed="true"] { background: var(--dark); color: var(--paper); }
.is-dark .chip { border-color: rgba(255, 255, 255, 0.7); color: var(--paper); }
.is-dark .chip:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--paper); }
.chip__count { margin-left: 6px; opacity: .7; }

/* ---------- Spec strip ---------- */

.specs {
  background: var(--dark-deep);
  color: var(--paper);
}
.specs__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.specs__list li {
  padding: 28px 24px 28px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 24px;
}
.specs__list li:first-child { border-left: 0; padding-left: 0; }
.specs__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.9rem;
  color: var(--accent-on-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.specs__label { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

@media (max-width: 900px) {
  .specs__list { grid-template-columns: 1fr 1fr; }
  .specs__list li { border-left: 0; padding-left: 0; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.18); }
  .specs__list li:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 480px) {
  .specs__list { grid-template-columns: 1fr; }
  .specs__list li:nth-child(2) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section--concrete { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--paper); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section__head p { font-size: 1.15rem; max-width: 52ch; }
.section--dark .section__head p { color: rgba(255,255,255,.85); }
.section__foot { margin-top: 28px; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* Services list */

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.services li {
  border-top: 6px solid var(--accent);
  padding-top: 18px;
}
.services h3 { margin-bottom: 10px; }
.services p { color: var(--muted); }
.services a { text-decoration: none; display: block; }
.services a:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Service detail (sluzby page) */

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: clamp(2rem, 4vw, 3rem); }
.service-detail__meta {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem;
  color: var(--muted);
}
.service-detail__photo { margin-top: 24px; }
.service-detail__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail__body > p:first-child { font-size: 1.15rem; }
.service-detail ul { list-style: none; margin: 16px 0 28px; }
.service-detail li,
.dash li {
  padding: 8px 0 8px 22px;
  position: relative;
}
.service-detail li::before,
.dash li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 12px; height: 4px;
  background: var(--accent);
}

/* zig-zag: from the 2nd service on, every other whole section sits on the right,
   with its heading + photo on the outer (right) side */
.service-detail:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.service-detail:nth-of-type(even) > :first-child { order: 2; }
@media (min-width: 1001px) {
  .service-detail { width: 78%; }
  .service-detail:nth-of-type(even) { margin-left: auto; }
}
/* mirrored sections: everything aligns to the right edge */
@media (min-width: 801px) {
  .service-detail:nth-of-type(even) { text-align: right; }
  .service-detail:nth-of-type(even) li { padding: 8px 22px 8px 0; }
  .service-detail:nth-of-type(even) li::before { left: auto; right: 0; }
  .service-detail:nth-of-type(even) .service-detail__body > p:first-child { margin-left: auto; }
}

@media (max-width: 800px) {
  .service-detail,
  .service-detail:nth-of-type(even) { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .service-detail:nth-of-type(even) > :first-child { order: 0; }
  .service-detail__photo { margin-top: 18px; }
}

/* Feature (photo + text) */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: center;
}
.feature + .feature { margin-top: 88px; }
.feature--flip .feature__photo { order: 2; }
.feature__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature__photo--tall img { aspect-ratio: 3 / 4; }
.feature h2 { margin-bottom: 18px; }
.feature p { font-size: 1.1rem; }
.feature__facts {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.section--dark .feature__facts { border-color: rgba(255,255,255,.18); }
.feature__facts li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.section--dark .feature__facts li { border-color: rgba(255,255,255,.18); }
.feature__facts b {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
  line-height: 1.3;
}
.feature__facts span { color: var(--muted); }
.section--dark .feature__facts span { color: rgba(255,255,255,.75); }
.feature .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature + .feature { margin-top: 64px; }
  .feature--flip .feature__photo { order: 0; }
  .feature__facts li { grid-template-columns: 1fr; gap: 2px; }
  .feature__photo--tall img { aspect-ratio: 4 / 3; }
}

/* Process steps (a real sequence, so numbered) */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800; font-size: 2.4rem;
  line-height: 1;
  padding: 8px 14px 6px;
  margin-bottom: 14px;
}
.steps h3 {
  border-top: 3px dashed var(--dark);
  padding-top: 14px;
  margin-bottom: 8px;
}
.steps p { color: var(--muted); }
.tag {
  display: inline-block;
  padding: 3px 8px 2px;
  background: var(--dark);
  color: var(--accent-on-dark);
  font-size: 0.7em;
  letter-spacing: 0.02em;
  vertical-align: 0.12em;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
}

/* Gallery */

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery li { margin: 0; }
.gallery a {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery--full { display: block; columns: 3; column-gap: 16px; }
.gallery--full li { break-inside: avoid; margin-bottom: 20px; }
.gallery--full li[hidden] { display: none; }
.gallery--full img { aspect-ratio: auto; }
.gallery a:hover img { outline: 4px solid var(--accent); outline-offset: -4px; }
.gallery figcaption {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  padding: 8px 0 0;
  color: var(--muted);
}
.gallery figure { margin: 0; }
.filters { margin: 0 0 32px; }
html:not(.js) .filters { display: none; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery--full { columns: 2; column-gap: 12px; }
  .gallery--full li { margin-bottom: 14px; }
}
@media (max-width: 480px) {
  .gallery--full { columns: 1; }
}

/* Lightbox */

.lightbox {
  border: 0; padding: 0;
  background: color-mix(in srgb, var(--dark-deep) 96%, transparent);
  max-width: none; max-height: none;
  width: 100vw; height: 100dvh;
}
.lightbox::backdrop { background: color-mix(in srgb, var(--dark-deep) 94%, transparent); }
.lightbox__inner {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 84dvh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  margin: 0;
}
.lb-count { display: block; color: rgba(255,255,255,.6); font-size: 1rem; margin-top: 2px; }
.lightbox button {
  position: absolute;
  appearance: none; border: 0;
  background: var(--accent); color: var(--on-accent);
  width: 52px; height: 52px;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox button svg { width: 26px; height: 26px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: var(--accent-hover); }
.lightbox button:focus-visible { outline: 3px solid var(--paper); }

@media (max-width: 700px) {
  .lightbox img { max-height: 70dvh; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__caption { bottom: 84px; padding-inline: 16px; }
}

/* ---------- Contact blocks ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}
.block {
  padding: 32px;
  background: var(--paper);
  border: 2px solid var(--dark);
  display: flex; flex-direction: column;
}
.block h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin-bottom: 14px; }
:where(.block) p, :where(.block) li { color: var(--ink-2); }
.block ul { list-style: none; }
.block li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--bg-alt);
}
.block li:last-child { border-bottom: 0; }
.block li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 12px; height: 4px;
  background: var(--accent);
}
.block a:where(:not(.btn, .phone-big)) { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
.block--phone {
  grid-column: span 7;
  align-self: stretch;
  background: var(--accent);
  border-color: var(--accent);
  justify-content: space-between;
  gap: 24px;
  min-height: 320px;
}
.block--phone p { color: var(--on-accent); font-weight: 500; }
.block--phone .phone-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--on-accent);
  display: block;
  width: fit-content;
  margin-bottom: 6px;
}
.block--phone .phone-big:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.block--phone__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.block--phone h2 { color: var(--on-accent); }
.block--phone .btn--ghost { color: var(--on-accent); border-color: var(--on-accent); }
.block--phone .btn--ghost:hover { background: color-mix(in srgb, var(--on-accent) 10%, transparent); }
.block--visit { grid-column: span 5; align-self: stretch; }
.block--form { grid-column: span 8; }
.contact-side { grid-column: span 4; display: grid; gap: 20px; }
.block__foot {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
}

@media (min-width: 901px) {
  .contact-side { position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid > * { grid-column: auto; }
  .block { padding: 26px 22px; }
  .block--phone { min-height: 0; }
}

/* Company details (key/value rows) */

.company { margin: 0; border-top: 1px solid var(--line); }
.company > div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.company dt { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.company dd { margin: 0; color: var(--ink-2); }
.block .company > div:last-child { border-bottom: 0; }

/* ---------- Form ---------- */

.block--form { border: 0; padding: clamp(22px, 3vw, 32px); }
.block--form h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: 6px; }
.block--form > [data-form-wrap] > p { color: var(--muted); font-size: 0.95rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field--full,
.form-status,
.form__actions { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.field { min-width: 0; }
.label {
  display: block;
  margin: 0 0 5px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink);
}
.opt { font-weight: 400; color: var(--muted); }

.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: #80868B; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }

/* dropdown */
.select { position: relative; }
.select::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.select .input { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.select .input:invalid { color: #80868B; }
.select option { color: var(--ink); }

.field-error {
  display: none;
  margin: 4px 0 0;
  color: var(--error);
  font-weight: 500;
  font-size: 0.8125rem;
}
.has-error .input { border-color: var(--error); }
.has-error .field-error { display: block; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.form__actions .btn { padding: 10px 22px; font-size: 1.15rem; }
.form__note { margin: 0; color: var(--muted); font-size: 0.8125rem; max-width: 40ch; }
.form__note a { color: var(--link); }
@media (max-width: 600px) { .form__actions .btn { width: 100%; } }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status {
  margin: 0;
  border-left: 3px solid var(--error);
  padding: 10px 14px;
  background: #FDF1F0;
  font-size: 0.9rem;
}
.form-status a { color: var(--ink); }

.form-success { align-items: flex-start; }
.form-success h2 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-success__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: var(--accent); color: var(--on-accent);
}
.form-success__mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success .btn { margin-top: 18px; padding: 10px 22px; font-size: 1.15rem; }

/* ---------- Closing CTA ---------- */

.cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 80px 0;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 12px;
}
.cta p { font-size: 1.15rem; max-width: 48ch; font-weight: 500; }
.cta .btn { margin-top: 24px; }
.cta__phones { display: grid; justify-items: start; }
.cta__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}
.cta__phone:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.cta__note {
  margin: 12px 0 0;
  font-weight: 500; font-size: 1.05rem;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .cta { padding: 56px 0; }
  .cta__grid { grid-template-columns: 1fr; }
  .cta__phone { font-size: clamp(1.6rem, 12vw, 4rem); }
  .block--phone .phone-big { font-size: clamp(1.6rem, 12vw, 6.5rem); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,.8);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: start;
}
.site-footer .brand { color: var(--paper); }
.site-footer h2 { font-size: 1.15rem; color: var(--accent-on-dark); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer__about { max-width: 40ch; margin-top: 16px; }
.site-footer .company { border-top: 0; }
.site-footer .company > div:first-child { padding-top: 0; }
.site-footer .company > div { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); padding: 6px 0; border-color: rgba(255,255,255,.12); }
.site-footer .company dt { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: rgba(255,255,255,.55); }
.site-footer .company dd { color: rgba(255,255,255,.85); }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: rgba(255,255,255,.55);
}

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Prose (privacy) ---------- */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}
.toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 6px 0; border-bottom: 1px solid var(--bg-alt); }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: none; }
.toc a { color: var(--ink); text-decoration: none; padding-left: 0; }
.toc a::before { content: counter(toc) ". "; font-family: var(--font-display); font-weight: 700; color: var(--accent-text); }
.toc a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose { max-width: 66ch; font-size: 1.1rem; }
.prose section + section { margin-top: 8px; }
.prose h2 { margin: 40px 0 16px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.prose section:first-child h2 { margin-top: 0; }
.prose ul { list-style: none; margin: 0 0 1em; }
.prose li { padding: 6px 0 6px 22px; position: relative; }
.prose li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 12px; height: 4px;
  background: var(--accent);
}
.prose a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .company { margin-bottom: 1em; }
.note {
  border-left: 6px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg-alt);
  margin: 28px 0;
}
