* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #faf6f2;
  color: #2e211d;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6c9be;
}

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

.logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 190px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  font-size: 15px;
  color: #2e211d;
}

.main-nav a:hover {
  color: #8f3e2f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid #8f3e2f;
  border-radius: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: #8f3e2f;
  color: #ffffff;
}

.btn-primary:hover {
  background: #733124;
  border-color: #733124;
}

.btn-secondary {
  background: transparent;
  color: #8f3e2f;
}

.btn-secondary:hover {
  background: #8f3e2f;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 680px;
  background-image: url('../img/hero/hero-clean.webp');
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid #e6c9be;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,246,242,0.96) 0%, rgba(250,246,242,0.88) 36%, rgba(250,246,242,0.34) 58%, rgba(250,246,242,0.00) 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: #8f3e2f;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.contact-form-wrap h2,
.benefit-card h2 {
  font-family: 'Playfair Display', serif;
  color: #2e211d;
}

.hero h1 {
  margin-bottom: 30px;
  font-size: clamp(52px, 5.7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: 18px;
  color: #2e211d;
}

.hero .lead {
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.benefits {
  background: #ffffff;
  border-bottom: 1px solid #e6c9be;
}

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

.benefit-card {
  position: relative;
  padding: 42px 34px 42px 70px;
  border-right: 1px solid #e6c9be;
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-icon {
  position: absolute;
  left: 28px;
  top: 46px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8f3e2f;
  border: 1px solid #8f3e2f;
  font-size: 17px;
  line-height: 1;
}

.benefit-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.benefit-card p {
  font-size: 15px;
  color: #4d3c36;
}

.contact-section {
  padding: 84px 0 62px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 500px 640px;
  gap: 40px;
  align-items: start;
  justify-content: start;
}

.contact-form-wrap h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.contact-form-wrap > p {
  max-width: 480px;
  margin-bottom: 32px;
  color: #4d3c36;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.form-group {
  display: grid;
  gap: 7px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8bfb6;
  border-radius: 0;
  background: #ffffff;
  padding: 15px 16px;
  color: #2e211d;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #8f3e2f;
}

textarea {
  resize: vertical;
}

.btn-full {
  width: 100%;
}

.contact-photo {
  width: 100%;
  max-width: 640px;
  height: 571px;
  justify-self: stretch;
  overflow: hidden;
  background: #e6c9be;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.gallery {
  padding: 0 0 78px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e6c9be;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 72px;
  padding: 64px 0;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 340px;
  color: #4d3c36;
}

.footer-column h3 {
  margin-bottom: 18px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 11px;
  color: #4d3c36;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: #8f3e2f;
}

.footer-bottom {
  background: #1d1512;
  color: #ffffff;
  text-align: center;
  padding: 15px 24px;
  font-size: 13px;
}

.alert {
  max-width: 520px;
  padding: 15px 16px;
  margin-bottom: 18px;
  border-radius: 0;
}

.success {
  background: #dff1df;
  color: #255225;
}

.error {
  background: #f5dddd;
  color: #772929;
}


.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #8f3e2f;
  flex: 0 0 18px;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: #e6c9be;
}


.gallery-link {
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-link img {
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.gallery-link:hover img {
  transform: scale(1.025);
  opacity: 0.92;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(29, 21, 18, 0.88);
}

.lightbox.is-active {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #ffffff;
  color: #1d1512;
}

.alert {
  font-size: 14px;
  line-height: 1.35;
}

.success {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .success {
    white-space: normal;
  }

  .lightbox {
    padding: 20px;
  }
}


.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  background: rgba(29, 21, 18, 0.35);
  color: #ffffff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.lightbox-nav:hover {
  background: #ffffff;
  color: #1d1512;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 56px;
    font-size: 40px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 36px, 1180px);
  }

  .site-logo {
    width: 165px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 650px;
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(250,246,242,0.97) 0%, rgba(250,246,242,0.92) 58%, rgba(250,246,242,0.42) 100%);
  }

  .hero-inner {
    min-height: 650px;
    padding: 54px 0;
  }

  .hero p,
  .hero .lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .contact-form-wrap h2 {
    white-space: normal;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-content: stretch;
  }

  .benefit-card {
    border-right: 0;
    border-bottom: 1px solid #e6c9be;
    padding: 34px 0 34px 54px;
  }

  .benefit-card:last-child {
    border-bottom: 0;
  }

  .benefit-icon {
    left: 0;
    top: 38px;
  }

  .contact-section {
    padding: 58px 0 42px;
  }


  .contact-photo {
    max-width: none;
    height: 420px;
    justify-self: stretch;
  }

  .gallery {
    padding-bottom: 58px;
  }

  .gallery-grid img {
    aspect-ratio: 1 / 1;
  }

  .footer-grid {
    gap: 34px;
    padding: 48px 0;
  }
}
