:root {
  font-family: system-ui, -apple-system, sans-serif;
  color-scheme: dark;
  color: #f7f4ef;
  background: #111213;
  --base: #111213;
  --panel: #1a1b1d;
  --line: #383735;
  --muted: #c5c0b8;
  --gold: #edbb78;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.1rem); }
h3 { font-size: 1.58rem; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(calc(100% - 7rem), 1250px); margin-inline: auto; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 5; background: var(--gold); color: #18130f; padding: .65rem 1rem; }
.skip:focus { top: 1rem; }
header, footer { background: #151517; }
header { border-bottom: 1px solid var(--line); }
.top, .bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.top { min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { display: block; width: 110px; height: auto; }
nav { display: flex; gap: clamp(1.2rem, 5vw, 3.5rem); color: var(--muted); }
nav a:hover, footer a:hover { color: var(--gold); }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--gold); padding: .6rem 1.2rem; background: var(--gold); color: #19130d; font-weight: 720; font-size: .9375rem; }
.button:hover { background: #ffd4a1; }
.button.secondary { color: #f7f4ef; background: #141414ba; border-color: #82715d; }
.button.secondary:hover { border-color: var(--gold); }
.hero { isolation: isolate; position: relative; display: grid; align-items: center; min-height: clamp(540px, 72vh, 710px); border-bottom: 1px solid var(--line); background: #141415; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; }
.hero::before { z-index: -2; left: 15%; background: url('assets/hero.webp') center 55% / cover no-repeat; }
.hero::after { z-index: -1; background: linear-gradient(90deg,#141415 7%,#141415f5 26%,#141415a0 45%,transparent 75%), linear-gradient(0deg,#141415 0%,transparent 24%); }
.hero-content { padding-block: 4.2rem; }
.label { margin-bottom: 1.1rem; color: var(--gold); font-weight: 650; font-size: .875rem; text-transform: uppercase; letter-spacing: .13em; }
h1 { font-size: clamp(3.2rem,6.5vw,6.4rem); font-weight: 770; }
h1 em { font-style: normal; color: var(--gold); }
.lead { max-width: 30rem; margin-top: 1.4rem; color: #e0dcd5; font-size: 1.075rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.45rem; }
.section { padding-block: clamp(3.3rem, 7vw, 6rem); }
.service-grid, .quote-layout, .process-grid, .fields { display: grid; gap: 1rem; }
.service-grid, .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-grid { margin-top: 1.7rem; }
.service { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.service img { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.service-body { padding: 1.45rem; display: flex; flex: 1; flex-direction: column; gap: .7rem; }
.service-body p, .process-grid p, .quote-intro { color: var(--muted); }
.service-body a { color: var(--gold); margin-top: auto; min-height: 44px; display: flex; align-items: end; font-weight: 670; }
.service-body a:hover { text-decoration: underline; }
.process { background: #18191a; border-block: 1px solid var(--line); }
.process-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.6rem; margin-top: 2rem; }
.process-grid > div { border-top: 1px solid #826849; padding-top: .9rem; }
.process-grid h3 { font-size: 1.35rem; margin-bottom: .65rem; }
.quote-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 2.5rem; }
.quote-intro { margin-top: 1rem; max-width: 27rem; }
form { background: var(--panel); border: 1px solid var(--line); padding: clamp(1rem,3vw,2rem); }
.fields { column-gap: .9rem; row-gap: 0; }
label { display: block; min-width: 0; margin-bottom: .8rem; font-size: .9375rem; }
input, select, textarea { display: block; width: 100%; min-height: 46px; margin-top: .35rem; padding: .55rem .7rem; border-radius: 0; border: 1px solid #625b51; background: #141415; color: inherit; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #a9a098; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,#edbb78 50%) right 16px center / 6px 6px no-repeat,linear-gradient(135deg,#edbb78 50%,transparent 50%) right 10px center / 6px 6px no-repeat,#141415; }
#result { color: var(--gold); margin-top: .8rem; }
#result:empty { margin: 0; }
footer { border-top: 1px solid var(--line); padding-block: .9rem; color: var(--muted); }
@media (max-width: 940px) { .wrap { width: calc(100% - 4rem); } }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 2rem); }
  .top { flex-wrap: wrap; padding-block: .45rem; gap: .3rem; }
  nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); }
  nav a { padding-block: .5rem; }
  .hero { min-height: 650px; align-items: start; }
  .hero-content { padding-block: 2.5rem 0; }
  .hero::before { inset: 40% 0 0; background-position: 64% center; }
  .hero::after { background: linear-gradient(180deg,#141415 0%,#141415 40%,#14141590 60%,transparent 79%,#141415 100%); }
  h1 { font-size: clamp(2.85rem, 8vw, 4rem); }
  .service-grid, .process-grid, .quote-layout { grid-template-columns: 1fr; }
  .bottom { flex-wrap: wrap; gap: .5rem; }
  .bottom small { order: 3; width: 100%; }
}
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

nav a[aria-current="page"] { color: var(--gold); }

.contacts-page { min-height: 100vh; display: flex; flex-direction: column; }
.contacts-page footer { margin-top: auto; }
.contacts-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.contact-panel { padding: clamp(1.3rem, 4vw, 2.75rem); background: var(--panel); border: 1px solid var(--line); border-top-color: var(--gold); }
.contact-panel h2 { font-size: clamp(1.75rem, 4vw, 2.85rem); }
.contact-panel p { margin-top: 1rem; color: var(--muted); }
.contact-panel .button { margin-top: 1.45rem; }
.contact-panel .contact-note { font-size: .9375rem; }
@media (max-width: 690px) {
  nav { gap: clamp(.75rem, 4vw, 1.5rem); }
  .contacts-layout { grid-template-columns: minmax(0,1fr); }
}
.contact-details { margin-top: 2.1rem; font-style: normal; }
.contact-details p { color: var(--muted); }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 670; white-space: nowrap; }
.contact-details a:hover { text-decoration: underline; }
.contact-details a + p { margin-top: .65rem; }
.contact-details a[href^="mailto:"] { font-size: clamp(1.1rem, 2.65vw, 1.65rem); }
