:root {
  --ink: #1b1d20;
  --muted: #626a72;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #d9d4c9;
  --accent: #bd2d28;
  --accent-dark: #8f1d1a;
  --green: #2f6f5e;
  --gold: #c59432;
  --max: 980px;
  --soft: #f6f4ee;
  --shadow: 0 8px 22px rgba(27, 29, 32, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.sr-only,
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: min(260px, 58vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

main {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  line-height: 1.22;
  letter-spacing: 0;
}

p {
  margin-bottom: 12px;
}

.lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #40464d;
  font-size: 0.98rem;
}

.page-hero,
.page-title {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: center;
}

.page-hero > div {
  text-align: center;
}

.page-hero--compact,
.page-title--compact {
  padding: 14px 18px;
}

.page-hero--compact h1,
.page-title--compact h1 {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.page-title h1,
.page-hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--home {
  background:
    linear-gradient(90deg, rgba(246, 244, 238, 0.98), rgba(246, 244, 238, 0.9)),
    repeating-linear-gradient(45deg, rgba(189, 45, 40, 0.12) 0 1px, transparent 1px 12px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-dark);
}

.button--secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quick-contact,
address {
  display: grid;
  gap: 3px;
  font-style: normal;
}

.quick-contact {
  padding: 15px;
  color: #fff;
  background: var(--green);
  border-radius: 7px;
  font-size: 0.94rem;
  text-align: left;
}

.quick-contact a,
address a {
  width: fit-content;
  margin-top: 5px;
  font-weight: 700;
}

.panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.text-sections {
  display: grid;
  gap: 16px;
}

.text-block {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.text-block p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  text-align: left;
}

.text-block h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.text-block--accent {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.panel p:last-child,
.page-title p:last-child,
.quick-contact span:last-child {
  margin-bottom: 0;
}

.compact-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  text-align: left;
}

.compact-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.article-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.article-layout--single {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.article-copy {
  padding: 4px 0;
  font-size: 1rem;
}

.article-copy p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.why-block {
  max-width: 820px;
  margin: 22px auto 0;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.why-block h2 {
  margin-bottom: 14px;
}

.why-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.why-list p {
  margin: 0;
  color: var(--muted);
}

.why-list strong {
  display: block;
  color: var(--ink);
}

.contact-details {
  background: var(--ink);
  color: #fff;
  text-align: left;
}

.contact-details address span,
.contact-details address a {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  text-align: left;
}

.field {
  display: grid;
  gap: 5px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.94rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfaf7;
  border: 1px solid #d8d3c7;
  border-radius: 5px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(189, 45, 40, 0.2);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  text-align: left;
}

.message-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
}

.message-box {
  width: min(560px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  text-align: center;
}

.message-box img {
  width: min(280px, 80%);
  margin: 0 auto 24px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 14px;
    left: 14px;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .page-hero,
  .article-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .quick-contact {
    max-width: 360px;
  }

}

@media (max-width: 560px) {
  .site-header {
    padding-top: 14px;
  }

  main {
    padding-top: 18px;
  }

  .page-hero,
  .page-title,
  .panel {
    padding: 15px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .compact-cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }
}
