:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #1d221e;
  --muted: #5f665b;
  --brand: #54564e;
  --brand-dark: #3f413b;
  --line: #d6d8d2;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(29, 34, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", "Calibri", sans-serif;
  background: radial-gradient(circle at top right, #eceee8 0%, var(--bg) 45%, #eef0ea 100%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 220px;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.2rem;
}

.main-nav a:hover {
  color: var(--brand);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  font-family: "Trebuchet MS", "Segoe UI", "Calibri", sans-serif;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.9rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-grid > div {
  animation: rise-in 500ms ease-out both;
}

.hero-card {
  animation: rise-in 650ms ease-out both;
}

.card {
  animation: rise-in 520ms ease-out both;
}

.card:nth-child(2) {
  animation-delay: 90ms;
}

.card:nth-child(3) {
  animation-delay: 180ms;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f1ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.section {
  padding: 2.7rem 0;
}

.section-alt {
  background: #ecefe8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.contact-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.legal-page .lead {
  margin-bottom: 2rem;
}

.legal-block {
  margin-bottom: 1.6rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.legal-content p {
  margin: 0 0 0.9rem;
}

.legal-raw-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1f2ee;
  padding: 1.2rem 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 40px;
    max-width: 190px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    gap: 0.7rem;
  }

  .hero {
    padding-top: 2.7rem;
  }
}
