:root {
  --page: #fffaf2;
  --paper: #ffffff;
  --ink: #31433d;
  --muted: #697780;
  --line: #e4ddd1;
  --brand: #6f8f6b;
  --brand-2: #8c3450;
  --brand-soft: #edf3e9;
  --brand-wash: #f8f3e9;
  --accent: #c58a3d;
  --hero-tint: rgba(255, 250, 242, 0.9);
  --header-bg: rgba(255, 250, 242, 0.94);
  --shadow: 0 18px 44px rgba(78, 91, 88, 0.13);
}

body.theme-market {
  --page: #fff8f1;
  --ink: #364b56;
  --muted: #667783;
  --line: #eadfd3;
  --brand: #c86f49;
  --brand-2: #3f83a4;
  --brand-soft: #f8e7dc;
  --brand-wash: #fff1e7;
  --accent: #b88a42;
  --hero-tint: rgba(255, 248, 241, 0.9);
  --header-bg: rgba(255, 248, 241, 0.94);
}

body.theme-modern {
  --page: #fbf7ef;
  --ink: #314b49;
  --muted: #657875;
  --line: #e6ddcf;
  --brand: #4f8f88;
  --brand-2: #b06a55;
  --brand-soft: #e7f1ef;
  --brand-wash: #f7f1e7;
  --accent: #bd955b;
  --hero-tint: rgba(251, 247, 239, 0.92);
  --header-bg: rgba(251, 247, 239, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--page) 0%, #ffffff 48%, var(--page) 100%);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--line);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 1rem;
}

.brand small {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-cta {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--hero-tint) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.12) 38%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) 360px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-block: clamp(4.5rem, 10vw, 7rem) 2rem;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: 4.9rem;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 790px;
}

h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.26;
}

.hero-lead,
.lead-text,
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.22rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.trust-note,
.hero-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: 16px;
}

.trust-note {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-weight: 700;
}

.hero-panel {
  padding: 1.45rem;
  backdrop-filter: blur(12px);
}

.hero-panel h2 {
  font-size: 2.08rem;
}

.hero-panel .section-label {
  color: var(--accent);
}

.hero-panel p {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
}

.mini-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-white {
  background: #ffffff;
}

.prestige-band {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.prestige-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.prestige-item {
  min-height: 118px;
  display: grid;
  align-content: center;
  padding: 1.25rem;
  background: #ffffff;
}

.prestige-item strong,
.prestige-item span {
  display: block;
}

.prestige-item strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.prestige-item span {
  color: var(--muted);
  margin-top: 0.25rem;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid,
.entry-grid,
.step-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.entry-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.entry-card,
.step-card,
.contact-card,
.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(78, 91, 88, 0.07);
}

.card,
.entry-card,
.step-card {
  padding: 1.35rem;
}

.entry-card {
  min-height: 100%;
}

.entry-card .marker,
.step-card .marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.card p,
.entry-card p,
.step-card p {
  color: var(--muted);
}

.soft-band {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.68), rgba(255,255,255,0)),
    var(--brand-soft);
}

.editorial-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.42)),
    var(--brand-wash);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(78, 91, 88, 0.1);
}

.editorial-copy {
  align-self: center;
}

.editorial-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.atelier-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atelier-list li {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.atelier-list strong,
.atelier-list span {
  display: block;
}

.atelier-list strong {
  color: var(--ink);
}

.atelier-list span {
  color: var(--muted);
  margin-top: 0.2rem;
}

.signature-note {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-card,
.form-card {
  padding: 1.3rem;
}

.contact-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
}

.contact-card p,
.form-hint {
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

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

label {
  color: var(--ink);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fffdf9;
  color: var(--ink);
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 700;
}

.form-message[hidden] {
  display: none;
}

details {
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(197, 138, 61, 0.55);
  outline-offset: 3px;
}

.site-footer {
  padding-block: 2rem;
  background: #fffdf9;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-inner strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 16px 1.25rem;
    background: var(--page);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 50px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.8rem;
    justify-content: center;
    border-bottom: 0 !important;
  }

  .hero-inner,
  .split,
  .contact-layout,
  .editorial-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .hero-panel {
    max-width: 520px;
  }

  .card-grid,
  .step-grid,
  .prestige-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1.14rem;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    inset: 68px 0 auto 0;
  }

  .brand small {
    max-width: 210px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.9) 64%, rgba(255, 250, 242, 0.55) 100%);
  }

  .hero-image img {
    object-position: 62% center;
  }

  .hero-inner {
    padding-block: 3.8rem 1.6rem;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-panel h2 {
    font-size: 1.75rem;
  }

  .hero-actions,
  .form-actions,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .entry-grid,
  .card-grid,
  .step-grid,
  .form-grid,
  .prestige-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand small {
    max-width: 160px;
  }

  .hero-panel,
  .card,
  .entry-card,
  .step-card,
  .contact-card,
  .form-card {
    border-radius: 14px;
    padding: 1rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }
}
