@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg: #f8f3eb;
  --ink: #23161a;
  --muted: #735d64;
  --wine: #7b2138;
  --wine-dark: #551425;
  --sand: #e8d8bf;
  --card: #fffaf4;
  --ring: #d3a86a;
  --success: #175f46;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, #eedec7 0%, transparent 30%),
    radial-gradient(circle at 10% 70%, #e7d2c0 0%, transparent 35%),
    linear-gradient(150deg, #f9f3ec 0%, #f5ece0 55%, #f2e6d8 100%);
  min-height: 100vh;
  line-height: 1.5;
}

.site-header,
main,
.site-footer {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0 0.6rem;
}

.logo {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wine-dark);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

nav a {
  text-decoration: none;
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(123, 33, 56, 0.2);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero,
.panel,
.card,
.content-block,
.ad-slot {
  animation: rise 0.45s ease both;
}

.hero {
  margin-top: 1rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(123, 33, 56, 0.95) 0%, rgba(88, 22, 38, 0.96) 55%, rgba(161, 72, 55, 0.92) 100%);
  color: #fdf7ef;
  box-shadow: 0 22px 46px rgba(70, 18, 28, 0.26);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  opacity: 0.86;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  margin: 0.45rem 0 0.6rem;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

main {
  padding-bottom: 2.5rem;
}

.lede {
  margin-top: 0;
  max-width: 54ch;
}

.button-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn,
button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  background: #f6d7ac;
  color: #3a1a22;
}

.btn:hover {
  background: #ffdfb0;
}

.btn-alt {
  background: transparent;
  color: #fff7ea;
  border: 1px solid rgba(255, 247, 234, 0.7);
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  margin-top: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card,
.panel,
.content-block,
.ad-slot {
  background: var(--card);
  border: 1px solid rgba(83, 23, 35, 0.12);
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(71, 20, 31, 0.09);
  padding: 1.1rem;
}

.text-link {
  color: var(--wine-dark);
  font-weight: 600;
}

.ad-slot {
  margin-top: 1.1rem;
}

.ad-slot p {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ad-box {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(123, 33, 56, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 238, 224, 0.5), rgba(249, 241, 231, 0.9));
  color: var(--wine-dark);
}

.content-block {
  margin-top: 1.1rem;
}

.search-block {
  margin-top: 1.1rem;
}

.search-form {
  margin-top: 0.4rem;
}

.search-label {
  display: inline-block;
  margin-bottom: 0.45rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.search-row input[type='search'] {
  flex: 1 1 280px;
}

.cards .card.is-hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

.calc-layout {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(250px, 0.9fr);
  gap: 1rem;
}

.panel h2 {
  margin-bottom: 0.3rem;
}

.form-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-span-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  color: #4e323a;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(83, 23, 35, 0.28);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  margin-top: 0.75rem;
  padding: 0.66rem 0.95rem;
  background: var(--wine);
  color: #fff;
}

button:hover {
  background: #631c31;
}

.results {
  margin-top: 0.9rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8ed, #fffef9);
  border: 1px solid rgba(83, 23, 35, 0.13);
}

.results h3 {
  margin-bottom: 0.5rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.33rem 0;
  border-bottom: 1px dashed rgba(83, 23, 35, 0.12);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row span:last-child {
  font-weight: 600;
}

.notice {
  font-size: 0.88rem;
  color: var(--muted);
}

.success {
  color: var(--success);
}

.site-footer {
  margin-top: 1.2rem;
  padding: 1rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.93rem;
}

.site-footer a {
  color: var(--wine-dark);
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.link-btn {
  border: 0;
  padding: 0;
  margin-top: 0;
  background: none;
  color: var(--wine-dark);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.link-btn:hover {
  background: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100vw - 1.2rem));
  z-index: 40;
  border: 1px solid rgba(83, 23, 35, 0.2);
  border-radius: 16px;
  background: #fff8ee;
  box-shadow: 0 16px 36px rgba(71, 20, 31, 0.2);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  padding: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  justify-content: space-between;
  align-items: center;
}

.cookie-inner p {
  margin: 0;
  max-width: 70ch;
  color: #3c252c;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-small {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  margin-top: 0;
  font-weight: 600;
  border: 1px solid rgba(83, 23, 35, 0.2);
  background: #fff;
  color: #3a1a22;
}

.btn-small.primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.btn-small:hover {
  background: #f4ecdf;
}

.btn-small.primary:hover {
  background: #631c31;
}

.policy-main {
  padding-bottom: 3.4rem;
}

.policy-block + .policy-block {
  margin-top: 0.9rem;
}

.policy-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.policy-list li + li {
  margin-top: 0.35rem;
}

.form-note {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 0.8rem;
  }
}

@media (max-width: 520px) {
  .hero,
  .panel,
  .card,
  .content-block,
  .ad-slot {
    border-radius: 14px;
  }

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

  .btn,
  button {
    width: 100%;
    text-align: center;
  }

  .search-row .btn-small {
    width: auto;
  }

  .footer-links .link-btn {
    width: auto;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
