:root {
  --bg: #f7f1e7;
  --paper: #fffaf2;
  --ink: #1f2933;
  --muted: #6b5f53;
  --line: #ded1bd;
  --deep: #26364a;
  --deep-2: #1b2a3a;
  --gold: #a77a28;
  --gold-soft: #efe0bd;
  --white: #ffffff;
  --danger: #8a2d2d;
  --success: #2f6f4e;
  --shadow: 0 16px 40px rgba(37, 31, 24, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(167, 122, 40, 0.10), transparent 34rem),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 100%);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 209, 189, 0.75);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--deep-2);
}

.brand-line {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--deep-2);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gold-soft);
  color: #5e4210;
}

.nav-links a.nav-primary {
  background: var(--deep);
  color: var(--white);
  padding-inline: 16px;
}

.nav-links a.nav-primary:hover {
  background: var(--deep-2);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep);
  font-size: 0.88rem;
  cursor: pointer;
}

.hero {
  padding: 92px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.8);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--deep-2);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-top: 22px;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  color: #5e4210;
  margin: 12px 0 22px;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 30px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.96rem;
}

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

.btn-primary {
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(38, 54, 74, 0.20);
}

.btn-primary:hover {
  background: var(--deep-2);
}

.btn-secondary {
  color: var(--deep);
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.78);
}

.btn-secondary:hover {
  background: var(--gold-soft);
}

.hero-card {
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.monogram {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), #415a77);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.16);
}

.hero-card h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f1e5cf;
  color: #5e4210;
  font-size: 0.94rem;
}

.section {
  padding: 70px 0;
}

.section-tight {
  padding: 46px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
  font-size: 1.04rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(37, 31, 24, 0.06);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.panel {
  background: var(--deep);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}

.panel h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.panel p {
  color: rgba(255,255,255,0.78);
  margin: 0;
}

.panel-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 22px;
}

.panel-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.page-hero {
  padding: 70px 0 46px;
  border-bottom: 1px solid rgba(222, 209, 189, 0.7);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.side-card {
  position: sticky;
  top: 104px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(37, 31, 24, 0.06);
}

.side-card h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.side-card p,
.prose p,
.prose li {
  color: var(--muted);
}

.prose {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
}

.prose h2 {
  font-size: 1.75rem;
  margin: 30px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 22px;
}

.form-card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.form-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

label {
  font-weight: 700;
  color: var(--deep-2);
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  min-height: 46px;
  padding: 12px 13px;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(167, 122, 40, 0.18);
  border-color: var(--gold);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.checkbox-field input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin-top: 5px;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.alert {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.alert.show {
  display: block;
}

.alert.success {
  color: var(--success);
  background: rgba(47,111,78,0.10);
  border: 1px solid rgba(47,111,78,0.22);
}

.alert.error {
  color: var(--danger);
  background: rgba(138,45,45,0.10);
  border: 1px solid rgba(138,45,45,0.22);
}

.login-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.login-box .monogram {
  margin-left: auto;
  margin-right: auto;
}

.footer {
  margin-top: 70px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,250,242,0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer strong {
  color: var(--deep-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--deep-2);
}

@media (max-width: 900px) {
  .hero-grid,
  .panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .side-card {
    position: static;
  }

  .nav-links {
    position: fixed;
    inset: 76px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 58px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
