:root {
  --accent: #ff7a00;
  --green: #b7de48;
  --text: #202020;
  --muted: #555;
  --line: #d8d8d8;
  --shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
  color-scheme: light;
  font-family: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.site-header {
  position: relative;
  z-index: 5;
  min-height: 184px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: 100%;
  max-width: 980px;
  min-height: 184px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: 122px 62px;
  align-items: center;
}

.brand {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  display: block;
  width: 183px;
  height: auto;
}

.slogan {
  align-self: end;
  padding: 28px 0 6px;
}

.slogan img {
  display: block;
  width: 600px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 46px;
  padding: 0 8px 23px 0;
  font-size: 17px;
  letter-spacing: 0;
}

.main-nav a {
  color: #000;
  white-space: nowrap;
}

.main-nav a.active {
  color: var(--accent);
}

.hero {
  height: 585px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.page-main {
  min-height: 58vh;
}

.welcome {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 0;
  text-align: center;
}

.welcome h1,
.simple-page h1,
.references h1,
.contact h1 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

.welcome p {
  max-width: 840px;
  margin: 0 auto 28px;
  font-size: 16px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.signature {
  margin: 16px 0 30px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 34px;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  min-width: 180px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #a7d735;
  color: #fff;
}

.panel-pair {
  width: 100%;
  max-width: 970px;
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 0 20px;
}

.panel-pair img {
  width: 100%;
  height: auto;
  display: block;
}

.references {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 20px 70px;
  text-align: center;
}

.references .support-subtitle,
.references .intro {
  margin: 0 auto 46px;
  color: var(--muted);
  font-size: 16px;
}

.support-image {
  width: 100%;
  max-width: 789px;
  margin: 0 auto 74px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22);
}

.support-image img {
  display: block;
  width: 100%;
  height: auto;
}

.references h2 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 840px;
  margin: 40px auto 0;
}

.gallery-grid a,
.gallery-grid img {
  display: block;
}

.gallery-grid a {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 20px 28px;
}

.contact-intro {
  text-align: center;
  margin: 0 auto 78px;
  max-width: 960px;
}

.contact-intro p {
  margin: 0 auto 24px;
  font-size: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(290px, 493px) 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form h2 {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field span {
  display: block;
  margin-bottom: 36px;
  color: #000;
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #000;
  border-radius: 0;
  padding: 0 0 8px;
  background: transparent;
  color: #000;
  font: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.submit {
  min-width: 150px;
  min-height: 40px;
  margin-top: 6px;
  border-radius: 22px;
  background: #000;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

.contact-panel {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin-top: 260px;
  padding-bottom: 10px;
}

.contact-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.form-note {
  min-height: 24px;
  margin: 18px 0 0;
  color: #3f6f00;
  font-size: 14px;
}

.site-footer {
  min-height: 128px;
  margin-top: 28px;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  min-height: 128px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr 230px;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  text-align: center;
}

.footer-logo img {
  width: 123px;
  height: auto;
}

.footer-contact {
  font-size: 17px;
  line-height: 1.42;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 15px;
}

.simple-page {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 54px 20px 72px;
}

.simple-page h1 {
  text-align: center;
  margin-bottom: 34px;
}

.simple-page h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.simple-page h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 400;
}

.simple-page p,
.simple-page li {
  font-size: 16px;
}

.simple-page p {
  margin: 0 0 14px;
}

.simple-page ul {
  margin: 0 0 16px 22px;
  padding: 0;
}

.legal-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.text-link {
  color: #000;
  text-decoration: underline;
}

.small-button {
  min-width: 86px;
  min-height: 32px;
  border-radius: 18px;
  background: #000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
}

@media (max-width: 780px) {
  .site-header {
    min-height: 0;
  }

  .header-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    padding: 18px 20px 14px;
  }

  .brand {
    grid-row: auto;
  }

  .brand img {
    width: 150px;
  }

  .slogan {
    padding: 0;
    justify-self: center;
  }

  .slogan img {
    width: 520px;
    max-width: 76vw;
  }

  .main-nav {
    justify-self: center;
    gap: 28px;
    padding: 4px 0 0;
    font-size: 16px;
  }

  .hero {
    height: 52vw;
    min-height: 260px;
    max-height: 430px;
  }

  .welcome {
    padding-top: 38px;
  }

  .welcome p,
  .contact-intro p {
    font-size: 15px;
  }

  .welcome p {
    max-width: 320px;
  }

  .panel-pair {
    margin-top: 65px;
    gap: 18px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-panel {
    justify-self: center;
    width: 100%;
    max-width: 380px;
    margin-top: 0;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 20px;
  }
}

@media (max-width: 520px) {
  .main-nav {
    gap: 18px;
    font-size: 15px;
  }

  .welcome h1,
  .simple-page h1,
  .references h1,
  .contact h1,
  .references h2 {
    font-size: 30px;
  }

  .panel-pair {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    margin-bottom: 50px;
  }

}
