:root {
  --forest: #1C3322;
  --sage: #728C6E;
  --sage-light: #8F9E82;
  --ochre: #C99E55;
  --sand: #E8D5B5;
  --cream: #FAF9F6;
  --accent: #A24832;
  --accent-dark: #8a3a28;
  --ink: #171a14;
  --ink-soft: #3b4036;
  --line: #6d7062;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--forest);
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 40px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 940px;
  background: var(--cream);
  border-radius: 10px;
  padding: clamp(20px, 3.2vw, 36px) clamp(18px, 4.5vw, 72px) clamp(20px, 3vw, 30px);
  box-shadow: 0 30px 70px rgba(10, 24, 14, 0.45), 0 2px 6px rgba(10, 24, 14, 0.25);
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
}

/* Hero */
.hero { text-align: center; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: left;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.logo:hover { opacity: .75; }
.logo__icon { width: 36px; height: auto; }

h1 {
  clear: both;
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 4.6vw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  animation: rise 0.7s 0.1s cubic-bezier(.2,.7,.2,1) both;
}

.hero__sub {
  max-width: 600px;
  margin: 0 auto 22px;
  color: var(--ink);
  font-size: 0.95rem;
  animation: rise 0.7s 0.18s cubic-bezier(.2,.7,.2,1) both;
}

/* Package cards */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}

.card {
  position: relative;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(23, 26, 20, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.card:nth-child(1) { animation-delay: .26s; }
.card:nth-child(2) { animation-delay: .34s; }
.card:nth-child(3) { animation-delay: .42s; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(23, 26, 20, 0.16);
}

.card--featured {
  background: #e4e2cf;
  border-color: var(--sage);
  box-shadow: 0 8px 22px rgba(28, 51, 34, 0.22);
  margin-top: -6px;
  margin-bottom: -6px;
}
.card--featured:hover { transform: translateY(-6px); }

.card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__price {
  margin: 4px 0 6px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card__tag {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card ul {
  margin: 0;
  padding-left: 1.1em;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.9;
  display: inline-block;
}
.card li::marker { color: var(--accent); }

/* Contact */
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(228, 226, 207, 0.4);
  padding: 20px clamp(14px, 3vw, 22px) 18px;
  animation: rise 0.7s 0.5s cubic-bezier(.2,.7,.2,1) both;
}

.contact h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact h2 a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
}
.contact h2 a:hover { color: var(--accent); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 10px;
}

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a9a99c;
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 62px;
}
.form input::placeholder,
.form textarea::placeholder { color: #6b6e63; }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(162, 72, 50, 0.22);
}
.form .invalid { border-color: #b3261e; }

.btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(162, 72, 50, 0.35);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}
.form__status.error { color: #b3261e; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Tablet / mobile */
@media (max-width: 760px) {
  .page { align-items: flex-start; }
  .logo { float: none; display: flex; justify-content: center; margin-bottom: 14px; }
  .packages { grid-template-columns: 1fr; gap: 18px; }
  .card--featured { margin: 0; }
  .form { grid-template-columns: 1fr; }
  .form textarea { grid-column: auto; }
  .btn { padding: 13px 16px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .page { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
