:root {
  color-scheme: light;
  --ink: #181413;
  --paper: #fff8eb;
  --cream: #fff0d3;
  --red: #b70e1b;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
:focus-visible { outline: 3px solid #cf6324; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); background: white; color: black; padding: 10px; z-index: 4; }
.skip:focus { transform: none; }
.topbar, .hero, .contact { background: var(--ink); color: var(--cream); }
.topbar { border-bottom: 1px solid #4a3d39; }
.masthead, .masthead nav, .brand, .actions { display: flex; align-items: center; gap: 18px; }
.masthead { min-height: 94px; justify-content: space-between; }
.brand { gap: 11px; text-decoration: none; font-weight: 900; font-size: 1rem; line-height: 1.15; }
.brand img { flex: none; }
.brand small { display: block; font-size: .875rem; }
.nav-item { text-decoration: none; font-weight: 650; }
.nav-item:hover { text-decoration: underline; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #a99481; border-radius: 5px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.menu-bars { width: 23px; height: 17px; border-block: 2px solid currentColor; display: grid; align-items: center; }
.menu-bars::before { content: ''; display: block; height: 2px; background: currentColor; }
.masthead .mobile-menu nav { position: absolute; z-index: 3; top: calc(100% + 8px); right: 0; width: min(260px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border: 1px solid #a99481; border-radius: 5px; padding: 5px; }
.mobile-menu nav a { padding: 12px; border-radius: 3px; font-weight: 700; text-decoration: none; }
.mobile-menu nav a:hover { background: #3c2d2b; }
@media (max-width: 900px) {
  .masthead .desktop-nav { display: none; }
  .mobile-menu { display: block; }
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 17px; border: 1px solid transparent; border-radius: 5px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; }
.primary { color: #fffaf2; background: var(--red); }
.primary:hover { background: #970d17; }
.outline, .header-call { color: var(--cream); background: transparent; border-color: #a99481; }
.outline:hover, .header-call:hover { background: #3c2d2b; }
.hero { padding: 54px 0 60px; border-bottom: 7px solid var(--red); }
.hero-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
h1, h2 { font-family: Impact, 'Arial Black', system-ui, sans-serif; font-weight: 950; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); text-transform: uppercase; line-height: .94; }
h1 span { color: #ff675d; }
.intro { font-size: 1.125rem; max-width: 32rem; margin: 22px 0; }
.actions { flex-wrap: wrap; gap: 10px; }
.hero-photo { margin: 0; position: relative; border: 1px solid #78645a; border-radius: 8px; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.hero-photo figcaption { position: absolute; bottom: 7px; right: 8px; padding: 2px 6px; color: white; background: #181413e8; font-size: .8125rem; border-radius: 2px; }
h2 { font-size: clamp(2.35rem, 5vw, 4rem); margin-bottom: 24px; }
.services { padding-block: 62px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-grid article { display: flex; flex-direction: column; align-items: flex-start; background: #fffdf8; border: 1px solid #d7c8b9; border-top: 4px solid var(--red); border-radius: 5px; padding: 19px; }
.service-grid h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-grid a { color: #9f0c16; font-weight: 760; margin-top: auto; text-underline-offset: .17em; }
.work { padding-block: 48px 58px; background: #f4e6d0; border-top: 1px solid #d7c8b9; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project h3 { font-size: 1.25rem; margin-bottom: 12px; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.comparison figure { position: relative; margin: 0; border-radius: 5px; overflow: hidden; background: #ded0bf; }
.comparison img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 57%; }
.comparison figcaption { position: absolute; bottom: 8px; left: 8px; padding: 3px 9px; color: #fffaf2; background: var(--ink); border-radius: 3px; font-size: .875rem; font-weight: 800; }
.comparison figure:last-child figcaption { background: var(--red); }
.contact { padding: 56px 0; border-top: 7px solid var(--red); }
.contact-grid { align-items: start; gap: clamp(24px, 6vw, 72px); }
.contact h2 { margin-bottom: 16px; }
form { color: var(--ink); background: var(--paper); padding: 24px; border-radius: 6px; }
label { display: block; font-weight: 750; margin-bottom: 5px; }
input, select, textarea { display: block; width: 100%; padding: 10px; background: white; color: var(--ink); border: 1px solid #8d796e; border-radius: 4px; font: inherit; margin-bottom: 13px; min-height: 44px; }
textarea { resize: vertical; }
form > button { width: 100%; }
.hint { margin: 10px 0 0; }
.footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 22px; font-weight: 750; }
.mobile-actions { display: none; }
@media (max-width: 950px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 34px 0; }
  .hero-photo img { aspect-ratio: 1.6; }
  .services, .contact, .work { padding-block: 38px; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .masthead { min-height: 76px; }
  .brand img { width: 58px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 2; bottom: 0; left: 0; width: 100%; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid #6b554b; }
}
