:root {
  --bg: #f4f6f1;
  --bg-deep: #1d2a23;
  --text: #1e2421;
  --muted: #5f6e66;
  --brand: #295c45;
  --brand-2: #b18d4a;
  --white: #ffffff;
  --border: #d5ddd8;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(30, 40, 34, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, #f4f6f1 0%, #eef2ec 50%, #f8fbf7 100%);
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--brand);
  margin-bottom: 10px;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  line-height: 1.12;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

ul {
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--white);
}

.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 900px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #d9e0db;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #3f4f47;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #cfd9d3;
  border-radius: 10px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.form-msg {
  margin-top: 10px;
  color: var(--brand);
  font-weight: 600;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 8, 0.72);
  backdrop-filter: blur(5px);
}

.contact-modal__dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: min(76vh, 560px);
  overflow: auto;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 242, 0.98)),
    linear-gradient(135deg, #f9fbf5 0%, #edf2e5 100%);
  border: 1px solid rgba(41, 92, 69, 0.12);
  box-shadow: 0 24px 60px rgba(12, 18, 10, 0.24);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 34, 14, 0.08);
  color: #24301f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover {
  background: rgba(22, 34, 14, 0.14);
}

.contact-modal__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  /* padding: 22px; */
}

.contact-modal__form {
  background: #fff;
  border: 1px solid rgba(41, 92, 69, 0.1);
  border-radius: 18px;
  padding: 16px;
  box-shadow: none;
}

.contact-modal__title {
  margin: 0 0 18px;
  color: #142016;
  text-align: center;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.contact-modal__form .btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #244b39, #35684f);
}

.contact-modal__form label {
  margin-bottom: 10px;
  color: #223129;
  font-size: 0.9rem;
}

.contact-modal__form input,
.contact-modal__form textarea {
  margin-top: 8px;
  border-color: #d8e0da;
  background: #fbfcfa;
}

.contact-modal__form input:focus,
.contact-modal__form textarea:focus {
  outline: none;
  border-color: #7d8d3b;
  box-shadow: 0 0 0 3px rgba(125, 141, 59, 0.12);
}

@media (max-width: 980px) {
  .container {
    width: min(1120px, 94vw);
  }

  .section {
    padding: 56px 0;
  }

  .page-hero {
    padding: 52px 0 28px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 44px 0;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .contact-form {
    padding: 18px;
  }

  .contact-modal {
    padding: 14px;
  }

  .contact-modal__content {
    padding: 20px 14px 14px;
  }

  .contact-modal__form {
    padding: 16px;
  }
}
