/* ============================================================
   PyroLabs — styles
   Industrial / maker aesthetic: dark, sharp, single accent.
   ============================================================ */

:root {
  --bg:        #0d0d0d;
  --bg-alt:    #111111;
  --panel:     #151515;
  --panel-2:   #191919;
  --border:    #262626;
  --border-2:  #333333;
  --text:      #f2f2f2;
  --text-dim:  #a8a8a8;
  --text-mute: #999999;
  --accent:    #ff4a1c;
  --accent-dim:#c5340f;
  --accent-glow: rgba(255, 74, 28, 0.18);

  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "Fira Code", ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ---------------------------------------------------------- type */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 12px; }

.accent { color: var(--accent); }
.tick { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }

/* ---------------------------------------------------------- wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wm-logo { height: 30px; width: auto; }
.wm-text { display: inline-flex; }
.wm-pyro { color: var(--text); }
.wm-labs { color: var(--accent); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  background: none;
  color: var(--text);
}
.btn-sm { padding: 9px 16px; font-size: 0.76rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}
.btn-accent:hover {
  color: #fff;
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 24px var(--accent-glow);
}
.btn-ghost {
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  transition: color 0.15s var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent); transition: width 0.2s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

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

/* language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 9px;
  background: none;
  color: var(--text-mute);
  border: none;
  border-right: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--accent); color: var(--bg); }

/* mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--border); }
.mobile-nav a {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-dim);
  padding: 16px 24px; border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--accent); background: var(--panel); }
.mobile-nav.open { display: flex; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; padding: 88px 0 80px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: var(--maxw); }
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  max-width: 960px;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-pitch { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 620px; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats {
  max-width: 860px;
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stats li { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ---------------------------------------------------------- section base */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------------------------------------------------------- services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--panel);
  padding: 32px 28px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { background: var(--panel-2); }
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.service-card:hover::before, .service-card.open::before { width: 100%; }

.svc-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
.svc-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-tag { color: var(--text-dim); font-size: 0.95rem; flex-grow: 1; }

.svc-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0;
}
.svc-toggle .chev { transition: transform 0.2s var(--ease); }
.service-card.open .svc-toggle .chev { transform: rotate(90deg); }

.svc-detail {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s var(--ease), margin 0.32s var(--ease);
}
.service-card.open .svc-detail { max-height: 600px; margin-top: 22px; }
.svc-detail-inner { border-top: 1px solid var(--border); padding-top: 20px; }
.svc-desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }
.svc-uc-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 10px; }
.svc-uc { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.svc-uc li { font-size: 0.9rem; color: var(--text); padding-left: 18px; position: relative; }
.svc-uc li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.svc-cta { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); border: 1px solid var(--border-2); padding: 9px 16px; border-radius: var(--radius); display: inline-block; transition: all 0.15s var(--ease); }
.svc-cta:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------------------------------------------------------- gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.gallery-filters button {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 9px 16px; background: var(--panel); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s var(--ease);
}
.gallery-filters button:hover { color: var(--text); border-color: var(--border-2); }
.gallery-filters button.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.gallery-item:hover { border-color: var(--border-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-ph {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-mute); text-align: center; padding: 20px;
}
.gallery-ph svg { width: 34px; height: 34px; opacity: 0.5; }
.gallery-ph span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; }
.gallery-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(13,13,13,0.85); border: 1px solid var(--border);
  padding: 4px 8px; border-radius: var(--radius);
}
.gallery-item.hide { display: none; }

/* ---------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.step { background: var(--panel); padding: 36px 28px; position: relative; }
.step-no { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.4rem; margin: 14px 0 10px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------------------------------------------------------- about */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.about-body { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 28px; }
.about-points { display: flex; flex-direction: column; gap: 12px; }
.about-points li { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); }
.about-mark {
  border: 1px solid var(--border); background: var(--panel);
  padding: 56px 32px; text-align: center; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative;
}
.about-mark-logo { width: 96px; height: auto; margin-bottom: 6px; }
.about-mark .wm-pyro, .about-mark .wm-labs { font-size: 2.4rem; font-weight: 700; letter-spacing: 0.05em; }
.about-mark-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-mute); }

/* ---------------------------------------------------------- contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.contact-direct { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 28px; }
.contact-or { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 18px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--border); background: var(--panel);
  border-radius: var(--radius); transition: all 0.15s var(--ease);
}
.contact-links a:hover { border-color: var(--accent); }
.cl-label { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
.cl-val { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); }
.contact-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-mute); }

/* form */
.contact-form { background: var(--panel); border: 1px solid var(--border); padding: 32px; border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--font-display); font-size: 0.98rem;
  transition: border-color 0.15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff4a1c' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-file { padding: 11px 18px; }
.file-name { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-mute); }
.form-success {
  margin-top: 18px; padding: 14px 16px; border: 1px solid var(--accent);
  background: var(--accent-glow); color: var(--text); font-size: 0.9rem; border-radius: var(--radius);
}

/* ---------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 18px; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.lang-switch-footer { width: fit-content; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 28px; }
.footer-bottom span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); }

/* ---------------------------------------------------------- picker modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--panel); border: 1px solid var(--border-2);
  border-top: 3px solid var(--accent);
  max-width: 540px; width: 100%; padding: 40px; border-radius: var(--radius);
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.22s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--text-mute); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color 0.15s; }
.modal-close:hover { color: var(--accent); }
.modal-panel h3 { font-size: 1.6rem; margin-bottom: 6px; }

.picker-body { margin-top: 28px; }
.picker-q { font-size: 1.15rem; font-weight: 500; margin-bottom: 18px; }
.picker-options { display: flex; flex-direction: column; gap: 10px; }
.picker-options button {
  text-align: left; font-family: var(--font-display); font-size: 0.98rem;
  padding: 15px 18px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius); cursor: pointer;
  transition: all 0.15s var(--ease); display: flex; align-items: center; gap: 12px;
}
.picker-options button:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.picker-options button .opt-no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); }
.picker-progress { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 18px; }
.picker-nav { display: flex; justify-content: space-between; margin-top: 24px; }

.picker-result { text-align: center; }
.picker-result .pr-intro { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
.picker-result .pr-icon { width: 52px; height: 52px; color: var(--accent); margin: 18px auto; }
.picker-result h4 { font-size: 1.5rem; margin-bottom: 8px; }
.picker-result .pr-tag { color: var(--text-dim); margin-bottom: 28px; }
.picker-result .picker-nav { justify-content: center; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .services-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .services-grid, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .modal-panel { padding: 28px 22px; }
  .contact-form { padding: 24px 20px; }
}

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

/* Polish and accessible interaction states */
:root { color-scheme: dark; }
[hidden] { display: none !important; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 20px; top: 12px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--bg); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.lang-switch button { min-height: 38px; min-width: 36px; }
.menu-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.section-head { margin-bottom: 36px; }
.section-head h2, .about-copy h2 { text-wrap: balance; }
.services-grid { align-items: stretch; background: transparent; border: none; gap: 16px; }
.service-card { border: 1px solid var(--border); min-height: 250px; }
.svc-toggle { min-height: 44px; align-self: flex-start; }
.svc-detail { visibility: hidden; }
.service-card.open .svc-detail { visibility: visible; max-height: none; }
.service-card:focus-within { border-color: var(--border-2); }
.gallery-open { display: block; width: 100%; height: 100%; background: none; border: 0; cursor: zoom-in; overflow: hidden; }
.gallery-open img { transition: transform .3s var(--ease); }
.gallery-open:hover img { transform: scale(1.035); }
.gallery-item:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery-cad img, .gallery-pcb img { object-fit: contain; }
.gallery-tag { pointer-events: none; color: var(--text); background: rgba(13,13,13,.92); }
.gallery-empty { grid-column: 1 / -1; padding: 40px; border: 1px solid var(--border); color: var(--text-dim); max-width: 680px; }
.contact-links a { flex-wrap: wrap; }
.cl-val { overflow-wrap: anywhere; }
.form-note { color: var(--text-dim); font-size: .9rem; margin: 4px 0 20px; }
.modal { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; margin: 0; background: transparent; color: var(--text); }
.modal::backdrop { background: transparent; }
.modal-close { min-width: 44px; min-height: 44px; top: 8px; right: 8px; }
.lightbox { width: min(1100px, 94vw); max-width: 94vw; max-height: 92dvh; padding: 48px 20px 20px; border: 1px solid var(--border-2); background: var(--bg); color: var(--text); margin: auto; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 72dvh; object-fit: contain; }
.lightbox p { font-family: var(--font-mono); color: var(--text-dim); font-size: .8rem; margin-top: 16px; text-align: center; }
@media (min-width: 1101px) { .mobile-nav.open { display: none; } }
@media (min-width: 561px) and (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .step { padding: 28px 20px; } }
@media (max-width: 560px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .wordmark { font-size: 1.12rem; gap: 7px; }
  .wm-logo { height: 26px; }
  .lang-switch button { padding: 6px 7px; min-width: 32px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .hero-stats { gap: 12px; flex-direction: column; margin-top: 32px; padding-top: 22px; }
  .service-card { min-height: auto; padding: 26px 24px; }
  .gallery-filters { gap: 8px; margin-bottom: 24px; }
  .gallery-filters button { padding: 10px 12px; min-height: 44px; }
  .contact-form { min-width: 0; }
  .field input, .field select, .field textarea { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .header-inner { padding-inline: 12px; } .header-actions { gap: 3px; } .lang-switch button { min-width: 28px; padding-inline: 5px; } }

/* Project request details */
.project-details { border: 0; border-top: 1px solid var(--border-2); margin: 8px 0 20px; padding: 20px 0 0; min-width: 0; }
.project-details legend { padding-right: 14px; font-family: var(--font-mono); font-size: .8rem; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.field-help { font-size: .85rem; color: var(--text-dim); margin: 8px 0 0; }
.project-details > .field-help { margin: 0 0 20px; }
.field-pair { display: grid; grid-template-columns: .65fr 1.35fr; gap: 16px; }
.field-pair > .field { min-width: 0; }
.field select { padding-right: 36px; }
.request-actions { display: grid; gap: 12px; }
.project-details .field:last-child { margin-bottom: 0; }
@media (max-width: 420px) { .field-pair { grid-template-columns: 1fr; gap: 0; } }

/* Animate intrinsic service-detail height, without clipping longer translations. */
.svc-detail { display: grid; grid-template-rows: 0fr; max-height: none; transition: grid-template-rows .3s var(--ease), margin .3s var(--ease), visibility .3s; }
.svc-detail-inner { min-height: 0; overflow: hidden; padding-top: 0; border-top: 0; transition: padding .3s var(--ease); }
.service-card.open .svc-detail { grid-template-rows: 1fr; }
.service-card.open .svc-detail-inner { padding-top: 20px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: no-preference) {
  .section-entered { animation: sectionEnter .55s var(--ease) both; }
  @keyframes sectionEnter { from { opacity: .2; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .service-card { transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
  .service-card:hover { border-color: var(--border-2); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
}
