:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #1e211e;
  --muted: #50554d;
  --line: #d8d9d0;
  --accent: #eb502e;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #bf391a; outline-offset: 4px; }
.wrap { width: min(100% - 96px, 1320px); margin-inline: auto; }
.header { background: #222521; color: #fffdf6; border-bottom: 1px solid #3c423a; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 98px;
}
.header :focus-visible, .footer :focus-visible { outline-color: #ff7656; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 10px; border-radius: 5px; }
.brand strong { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.brand strong span { color: #ff7656; }
.brand small {
  display: block;
  margin-top: 7px;
  color: #e1e4da;
  font: 600 12px/1.25 'Cascadia Mono', Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-mark { flex: none; width: 72px; height: 72px; object-fit: contain; }
.header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #2b302a;
  border: 1px solid #414940;
  border-radius: 9px;
}
.header nav a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding-inline: clamp(12px, 1.65vw, 24px);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.header nav a:hover { background: #3b443a; color: #fff; }
.text-link:hover { color: #ae2d14; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 17px; min-height: 45px; border: 1px solid currentColor; border-radius: 3px; font-weight: 700; cursor: pointer; }
.header-cta {
  justify-self: end;
  justify-content: center;
  border-color: #ff7656;
  border-radius: 7px;
  background: #ff7656;
  color: #211a15;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta:hover { background: #ff987f; border-color: #ff987f; }
.primary { background: var(--accent); color: #171916; border-color: var(--accent); }
.primary:hover { background: #ff6b49; border-color: #ff6b49; }

.hero { display: grid; grid-template-columns: .89fr 1.11fr; gap: clamp(24px, 4.3vw, 74px); align-items: center; padding-block: clamp(40px, 6vw, 91px); }
h1, h2, h3 { letter-spacing: -.055em; }
h1 { margin: 0 0 22px; font-size: clamp(52px, 6.5vw, 104px); line-height: .96; font-weight: 900; }
h1 span { color: #bd3317; }
.intro { max-width: 40ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; padding: 10px 0; }
.hero-art { border: 1px solid var(--line); background: #ede9e1; border-radius: 4px; overflow: hidden; }
.hero-art img { width: 100%; aspect-ratio: 1.47; object-fit: cover; object-position: 65% 52%; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 13px; background: var(--paper); border-top: 1px solid var(--line); font: 12px/1.3 'Courier New', monospace; color: var(--muted); }

.section { padding-block: clamp(47px, 6vw, 88px); }
#servicii { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 36px; margin-bottom: 28px; }
h2 { font-size: clamp(37px, 5vw, 70px); line-height: 1; }
.section-heading p { max-width: 34ch; color: var(--muted); line-height: 1.5; }
.services, .gallery, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services { border: 1px solid var(--line); border-radius: 4px; }
.services article { padding: clamp(22px, 3vw, 38px); }
.services article + article { border-left: 1px solid var(--line); }
h3 { font-size: clamp(22px, 2.6vw, 31px); line-height: 1.1; }
.services p, .steps p { margin-top: 10px; max-width: 35ch; line-height: 1.5; color: var(--muted); }
.examples { background: #efeee7; border-block: 1px solid var(--line); }
.gallery { gap: 18px; }
.gallery figure { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery-image { aspect-ratio: 1.12; background: #e7e2d8 url('assets/gallery.webp') no-repeat; background-size: 300% 100%; }
.gear { background-position: left; }
.enclosure { background-position: center; }
.clips { background-position: right; }
.gallery figcaption { font-weight: 700; padding: 15px; }
.steps { gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: process; }
.steps li { counter-increment: process; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(process); display: block; color: #bd3317; font: 700 14px/1 'Courier New', monospace; margin-bottom: 19px; }

.quote { color: var(--paper); background: #222721; }
.quote-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); padding-block: clamp(46px, 7vw, 95px); }
.quote h2 { margin: 13px 0 19px; }
.quote p { color: #cbd1c7; line-height: 1.5; max-width: 46ch; }
form, label { display: grid; gap: 9px; }
form { gap: 16px; }
form button { justify-self: start; }
label { font-size: 14px; font-weight: 700; }
.field-caption > span { color: #cbd1c7; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, textarea { width: 100%; padding: 12px; color: var(--paper); border: 1px solid #687266; border-radius: 3px; background: #313830; }
input::placeholder, textarea::placeholder { color: #b5beb1; }
textarea { resize: vertical; }
.draft-note, output { font-size: 13px; }
output:empty { display: none; }
.footer {
  background: #1b1e1b;
  color: #fffdf6;
  border-top: 1px solid #414940;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 24px;
}
.footer .brand-mark { width: 60px; height: 60px; }
.footer .brand strong { font-size: 32px; }
.footer-top {
  justify-content: center;
  padding: 10px 14px;
  border-color: #636c60;
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
}
.footer-top:hover { border-color: #ff7656; color: #ff957c; background: #2b302a; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-art figcaption { flex-wrap: wrap; }
}

@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; }
  .header nav a { flex: 1; padding-inline: 4px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .brand { gap: 7px; }
  .brand strong { font-size: 30px; }
  .brand small { margin-top: 5px; font-size: 10px; letter-spacing: .08em; }
  .brand-mark { width: 54px; height: 54px; }
  .header-cta { padding-inline: 12px; }
  .footer-inner { column-gap: 12px; padding-block: 16px; }
  .footer .brand-mark { width: 48px; height: 48px; }
  .footer .brand strong { font-size: 28px; }
  .hero, .quote-inner { grid-template-columns: 1fr; }
  h1 { font-size: clamp(48px, 12vw, 72px); }
  .hero-actions { gap: 14px; }
  .section-heading { display: grid; }
  .services, .gallery, .steps { grid-template-columns: 1fr; }
  .services article + article { border-left: 0; border-top: 1px solid var(--line); }
  .gallery-image { aspect-ratio: 1.24; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
