:root {
  --bg-1: #f6f4ef;
  --bg-2: #ece7de;
  --card: rgba(255, 255, 255, 0.82);
  --text: #2f2b27;
  --muted: #6d665f;
  --accent: #8b6b4a;
  --accent-dark: #5e4630;
  --border: rgba(139, 107, 74, 0.14);
  --shadow: 0 20px 60px rgba(34, 29, 24, 0.10);
  --radius: 24px;
  --danger: #b42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffffff 0%, transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body.modal-open {
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.background-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
}

.shape-1 {
  top: -100px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(139, 107, 74, 0.10);
}

.shape-2 {
  right: -100px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  background: rgba(94, 70, 48, 0.08);
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 42px 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(94, 70, 48, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(94, 70, 48, 0.24);
  filter: brightness(1.05);
  color:#000;
}

.cta-button:focus-visible {
  outline: 3px solid rgba(139, 107, 74, 0.22);
  outline-offset: 3px;
}

.cta-button:active {
  transform: translateY(0);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--accent-dark);
  font-weight: 700;
}

.message {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
}

.divider {
  width: 72px;
  height: 3px;
  margin: 28px auto 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(30, 23, 18, 0.54);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 30px 24px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f3eee8;
  color: var(--accent-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal h2 {
  margin: 0 0 8px;
  padding-right: 52px;
  color: var(--accent-dark);
  font-size: 1.8rem;
}

.modal-intro {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.form-group label span {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d8cec3;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 107, 74, 0.10);
}

.form-note {
  margin: 6px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  min-width: 220px;
  border: none;
  border-radius: 16px;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(94, 70, 48, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(94, 70, 48, 0.22);
  filter: brightness(1.05);
  color:#000;
}

.submit-button:focus-visible {
  outline: 3px solid rgba(139, 107, 74, 0.22);
  outline-offset: 3px;
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-alert-success {
  background: rgba(6, 118, 71, 0.08);
  color: var(--success);
  border: 1px solid rgba(6, 118, 71, 0.18);
}

.form-alert-error {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.18);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 20px 14px;
  }

  .card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .logo {
    max-width: 220px;
    margin-bottom: 20px;
  }

  .cta-button {
    width: 100%;
    padding: 14px 20px;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }

  .message,
  .description {
    font-size: 0.98rem;
  }

  .footer {
    margin-top: 18px;
    font-size: 0.86rem;
  }

  .modal {
    padding: 24px 16px 18px;
    border-radius: 20px;
  }

  .modal h2 {
    font-size: 1.45rem;
  }
}