:root {
  --color-primary: #8b1e1e;
  --color-primary-dark: #681414;
  --color-background: #ffffff;
  --color-surface: #faf9f8;
  --color-text: #222222;
  --color-muted: #555555;
  --color-line: #dedbd8;
  --shadow-card: 0 4px 18px rgba(45, 33, 28, 0.08);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

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

a {
  color: var(--color-primary);
  text-underline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.3rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  color: var(--color-primary);
  font-size: clamp(1.45rem, 5vw, 2rem);
  text-align: center;
  text-transform: uppercase;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.section {
  padding-block: 58px;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.title-rule {
  width: 38px;
  height: 2px;
  background: var(--color-primary);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: grid;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-line {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
}

.site-nav {
  position: absolute;
  top: 76px;
  right: 20px;
  left: 20px;
  display: none;
  padding: 14px;
  border: 1px solid var(--color-line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.site-nav a {
  padding: 10px 12px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.hero {
  display: grid;
  background: #ffffff;
}

.hero-image {
  min-height: 260px;
  background: url("../assets/images/head - 1024x768.png") center / cover no-repeat;
}

.hero-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: 44px 54px;
  text-align: center;
}

.hero-lead {
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.hero-description {
  display: grid;
  font-weight: 500;
  text-shadow: 0px 0px 3px rgb(255, 255, 255);
  max-width: 620px;
  gap: 10px;
  color: var(--color-primary);
}

.hero-description p {
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  width: min(100%, 360px);
  gap: 10px;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 3px;
  padding: 11px 24px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.button-primary {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--color-primary);
  background: #ffffff;
  color: var(--color-primary);
}

.mobile-call-text {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.desktop-call-text {
  display: none;
}

.employees,
.quick-contact {
  background: var(--color-surface);
}

.employee-grid {
  display: grid;
  gap: 22px;
}

.employee-card,
.contact-card,
.map,
.contact-image {
  border: 1px solid var(--color-line);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.employee-main {
  display: grid;
}

.employee-card img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  object-position: center 0%;
}

.employee-content {
  display: grid;
  gap: 10px;
  padding: 22px 22px 14px;
}

.employee-content p:last-child {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.employee-contact {
  display: grid;
  gap: 8px;
  padding: 8px 22px 22px;
}

.employee-contact a {
  font-size: 0.9rem;
  text-decoration: none;
}

.employee-contact span {
  display: inline-block;
  width: 22px;
}

.contact-grid {
  display: grid;
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 28px;
  font-style: normal;
}

.contact-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
}

.contact-row p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-row a {
  color: var(--color-text);
  text-decoration: none;
}

.contact-icon {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.map {
  min-height: 330px;
  overflow: hidden;
}

.contact-image {
  min-height: 330px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: right;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.contact-form,
.form-fields {
  display: grid;
  gap: 12px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 160px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(139, 30, 30, 0.24);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.submit-button {
  justify-self: center;
  margin-top: 4px;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note,
.form-status {
  color: var(--color-muted);
  font-size: 0.82rem;
  text-align: center;
}

.form-status {
  min-height: 1.4em;
  color: var(--color-primary);
  font-weight: 600;
}

.site-footer {
  padding-block: 46px 28px;
  background: var(--color-primary);
  color: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 18px;
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-column {
  display: grid;
  gap: 18px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

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

@media (min-width: 700px) {
  .section {
    padding-block: 72px;
  }

  .form-fields {
    grid-template-columns: repeat(3, 1fr);
  }

  .employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(250px, 0.72fr) 1.28fr;
  }

  .contact-image {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .copyright {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-image {
    grid-column: auto;
  }

  .header-inner {
    min-height: 88px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav .nav-call {
    margin-left: 8px;
    border-radius: 3px;
    padding: 10px 24px;
    background: var(--color-primary);
    color: #ffffff;
  }

  .hero {
    position: relative;
    min-height: 620px;
    align-items: center;
    overflow: hidden;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    min-height: 100%;
    background-position: center;
  }

  .hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 6%, rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 0.18) 72%);
    content: "";
  }

  .hero-content {
    position: relative;
    z-index: 1;
    justify-items: start;
    padding-block: 76px;
    text-align: left;
  }

  .hero-lead {
    font-size: 1.35rem;
  }

  .hero-actions {
    width: auto;
    grid-template-columns: repeat(2, auto);
    gap: 18px;
  }

  .mobile-call-text {
    display: none;
  }

  .desktop-call-text {
    display: inline;
  }

  .employee-main {
    grid-template-columns: 44% 56%;
  }

  .employee-card img {
    height: 100%;
    aspect-ratio: auto;
    object-position: center;
  }

  .employee-content {
    padding: 26px 24px 18px;
  }

  .employee-contact {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 24px 24px;
    border-top: 1px solid var(--color-line);
  }
}
