:root {
  --frame: 1144px;
  --content: 572px;
  --green: #268a18;
  --green-dark: #0f7810;
  --green-soft: #68b45f;
  --hero-green: #164e20;
  --text: #50515d;
  --muted: #747683;
  --light-line: #dddddd;
  --title-rose: #9b807c;
  --orange: #f19a22;
  --icon-orange: #ff7d55;
  --footer-text: #9bd08e;
  --panel: #f4f4f4;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-shell {
  width: min(calc(100% - 80px), var(--frame));
  margin-right: auto;
  margin-left: auto;
}

.content-narrow {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  padding-top: 56px;
}

.brand {
  display: block;
  width: 235px;
  margin: 0 auto;
  color: #737783;
  text-align: center;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 185px;
  height: 66px;
  margin: 0 auto 1px;
}

.brand-stones {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 15px);
  grid-auto-rows: 15px;
  gap: 3px;
  transform: translateX(-50%);
}

.brand-stones span {
  background: #9b9b96;
  border-radius: 2px;
}

.brand-stones span:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.brand-stones span:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.brand-stones span:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
}

.brand-stones span:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.brand-stones span:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
}

.brand-stones span:nth-child(6) {
  grid-column: 1;
  grid-row: 3;
}

.brand-stones span:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
}

.brand-stones span:nth-child(8) {
  grid-column: 3;
  grid-row: 3;
}

.brand-stones span:nth-child(9) {
  grid-column: 4;
  grid-row: 3;
}

.brand-stones span:nth-child(10) {
  grid-column: 1;
  grid-row: 4;
}

.brand-stones span:nth-child(11) {
  grid-column: 2;
  grid-row: 4;
}

.brand-stones span:nth-child(12) {
  grid-column: 3;
  grid-row: 4;
}

.brand-stones span:nth-child(13) {
  grid-column: 4;
  grid-row: 4;
}

.brand-stones span:nth-child(14) {
  grid-column: 2;
  grid-row: 2;
}

.brand-line {
  position: absolute;
  left: 50%;
  height: 3px;
  background: #96978f;
  transform: translateX(-50%);
}

.brand-line-short {
  bottom: 17px;
  width: 86px;
}

.brand-line-short::before,
.brand-line-short::after {
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: #96978f;
  content: "";
}

.brand-line-short::before {
  left: -42px;
}

.brand-line-short::after {
  right: -42px;
}

.brand-line-long {
  bottom: 6px;
  width: 185px;
}

.brand-name {
  display: block;
  margin-top: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #aaa9a4;
  letter-spacing: .02em;
}

.header-rule {
  height: 1px;
  margin-top: 25px;
  background: var(--light-line);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  gap: 24px;
  font-size: 13px;
  color: #565965;
}

.main-nav a {
  transition: color .15s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-soft);
}

.home-hero {
  border-top: 10px solid var(--hero-green);
}

.home-hero img {
  width: 100%;
  height: 264px;
  object-fit: cover;
  object-position: center top;
}

.home-intro {
  text-align: center;
}

.home-intro h1 {
  margin: 13px 0 0;
  color: var(--title-rose);
  font-size: 34px;
  line-height: 1.12;
}

.home-intro p {
  margin: 6px 0 0;
  color: var(--title-rose);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 39px;
  border: 1px solid var(--green-soft);
  background: #fff;
  color: var(--green-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.outline-button:active {
  transform: translateY(1px);
}

.home-intro .outline-button {
  margin-top: 48px;
}

.services-section {
  margin-top: 63px;
}

.section-title {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
}

.section-number {
  color: #dedede;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: .95;
}

.section-title h2 {
  margin: -2px 0 3px;
  color: #444752;
  font-size: 27px;
  line-height: 1.05;
}

.section-title p {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: 278px 278px;
  column-gap: 38px;
  row-gap: 20px;
  margin-top: 65px;
  align-items: start;
}

.feature-image {
  width: 278px;
  height: 184px;
  object-fit: cover;
}

.feature-image-wall {
  width: 279px;
  height: 208px;
}

.feature-image-fence {
  height: 190px;
  object-position: center top;
}

.feature-image-tall {
  height: 360px;
  object-fit: cover;
  object-position: center center;
}

.feature-copy {
  padding-top: 2px;
}

.feature-copy-right {
  padding-left: 0;
}

.feature-copy h3 {
  margin: 0 0 26px;
  color: #52535e;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.18;
}

.feature-copy p {
  margin: 0;
  color: #4c4e5a;
  font-size: 12.5px;
  line-height: 1.22;
}

.references-section {
  margin-top: 68px;
}

.references-section .section-title {
  margin-bottom: 45px;
}

.references-band {
  padding: 10px 0 64px;
  background: var(--panel);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(100%, 572px);
  margin: 0 auto;
}

.reference-grid img {
  width: 100%;
  height: 103px;
  object-fit: cover;
}

.reference-grid h3 {
  margin: 13px 0 17px;
  color: #4b4c57;
  font-size: 14px;
  line-height: 1.2;
}

.reference-grid p {
  min-height: 76px;
  margin: 0 0 20px;
  color: #4f505b;
  font-size: 12.5px;
  line-height: 1.22;
}

.reference-grid a {
  color: var(--green-soft);
  font-size: 12.5px;
}

.contact-card-section {
  margin-top: 50px;
  margin-bottom: 48px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 185px);
  gap: 12px;
}

.contact-card {
  height: 242px;
  padding: 39px 13px 20px;
  background: #ffffff;
  box-shadow: 0 4px 11px rgb(0 0 0 / 18%);
  text-align: center;
}

.contact-card svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  fill: none;
  stroke: var(--icon-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-card h3 {
  margin: 0 0 25px;
  color: #4c4d58;
  font-size: 17px;
  line-height: 1.2;
}

.contact-card p {
  min-height: 48px;
  margin: 0 0 10px;
  color: #6f7888;
  font-size: 12.5px;
  line-height: 1.18;
}

.contact-card a {
  color: var(--green-soft);
  font-size: 12px;
}

.contact-card:nth-child(2) a {
  color: #4d95ff;
  font-weight: 700;
}

.site-footer {
  background: var(--green);
}

.footer-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 41px 0 29px;
}

.footer-inner h2 {
  margin: 0 0 23px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.footer-inner p {
  margin: 0;
  color: var(--footer-text);
  font-size: 12.5px;
  line-height: 1.25;
}

.social-link {
  display: inline-block;
  margin-top: 23px;
  color: #0f7410;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-line {
  height: 1px;
  margin-top: 35px;
  background: rgb(255 255 255 / 16%);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 29px;
  color: var(--footer-text);
  font-size: 12px;
}

.footer-base {
  height: 12px;
  background: var(--green-dark);
}

.page-banner {
  height: 132px;
  background: var(--green);
}

.page-banner .content-narrow {
  display: flex;
  align-items: center;
  height: 100%;
}

.page-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.category-grid img {
  width: 100%;
  height: auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 186px);
  gap: 6px;
  width: 570px;
  margin: 51px auto 0;
}

.photo-grid img {
  width: 186px;
  height: 186px;
  object-fit: cover;
}

.gallery-footer {
  margin-top: 56px;
}

.form-section {
  width: min(100%, 554px);
  margin: 52px auto 0;
}

.contact-form h2 {
  margin: 0 0 18px;
  color: #555762;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-form label {
  display: block;
  margin: 0 0 5px;
  color: #4f5059;
  font-size: 12px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  background: #f5f5f5;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.contact-form input {
  height: 24px;
  margin-bottom: 9px;
}

.contact-form textarea {
  height: 48px;
  margin-bottom: 15px;
  resize: vertical;
}

.form-button {
  float: right;
  width: 166px;
  height: 36px;
  cursor: pointer;
}

.short-page-footer {
  margin-top: 83px;
}

.imprint-content {
  margin-top: 53px;
  margin-bottom: 63px;
}

.imprint-content h2 {
  margin: 0 0 14px;
  color: #555762;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.imprint-content p {
  margin: 0 0 27px;
  color: #4f5059;
  font-size: 12.5px;
  line-height: 1.3;
}

.imprint-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--frame));
  }

  .site-header {
    padding-top: 34px;
  }

  .brand {
    transform: scale(.82);
    transform-origin: center top;
    margin-bottom: -30px;
  }

  .main-nav {
    height: auto;
    flex-wrap: wrap;
    padding: 24px 0;
    gap: 16px 22px;
  }

  .home-hero img {
    height: 210px;
  }

  .home-intro h1 {
    font-size: 29px;
  }

  .home-intro p {
    font-size: 22px;
  }

  .section-title,
  .feature-grid,
  .reference-grid,
  .contact-card-grid,
  .category-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .content-narrow,
  .form-section,
  .photo-grid {
    width: min(calc(100% - 32px), var(--content));
  }

  .feature-grid {
    justify-items: center;
    row-gap: 26px;
  }

  .feature-image,
  .feature-image-wall,
  .feature-image-fence,
  .feature-image-tall {
    width: 100%;
    max-width: 360px;
    height: auto;
  }

  .feature-copy {
    width: min(100%, 360px);
  }

  .reference-grid img,
  .photo-grid img {
    width: 100%;
    height: auto;
  }

  .contact-card-grid {
    justify-items: center;
  }

  .contact-card {
    width: min(100%, 240px);
  }

  .page-banner h1 {
    font-size: 29px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-bottom: 10px;
  }
}
