* {
  box-sizing: border-box;
}

:root {
  --night: #1b2238;
  --ink: #24283a;
  --muted: #687085;
  --paper: #faf7f0;
  --shell: #f0e7d8;
  --blue: #b8c7dc;
  --blue-deep: #526f91;
  --coral: #e38972;
  --coral-dark: #bf5f4d;
  --line: rgba(27, 34, 56, 0.16);
  --white: #fffdf8;
  --shadow: 0 26px 70px rgba(27, 34, 56, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(184, 199, 220, 0.7), transparent 28%),
    linear-gradient(180deg, var(--paper), var(--shell));
  color: var(--ink);
  line-height: 1.6;
}

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

.site-frame {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.header {
  padding: 26px 0;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 1.18rem;
}

.navigation,
.footer nav,
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.navigation a:hover,
.footer a:hover,
.contact-panel a:hover,
.legal-card a:hover,
.thanks-card a:hover {
  color: var(--coral-dark);
}

main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 310px;
  gap: 18px;
  min-height: 580px;
}

.hero-label,
.hero-content,
.contact-panel,
.opening-note,
.library-section,
.value-section,
.steps-section,
.delivery-box,
.faq-section,
.request-section,
.disclaimer,
.legal-card,
.thanks-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-label {
  background: var(--night);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.hero-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 253, 248, 0.74);
  font-weight: 800;
}

.hero-content {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(184, 199, 220, 0.68)),
    var(--white);
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overline {
  margin: 0 0 12px;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 900;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.55rem, 5.8vw, 5.25rem);
  line-height: 0.96;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 8px;
}

.hero-text,
.opening-note p,
.value-grid p,
.delivery-box p,
.faq-list p,
.request-copy p,
.legal-card p,
.thanks-card p {
  color: var(--muted);
}

.button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--night);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.button.dark {
  background: var(--night);
  color: var(--white);
}

.button.dark:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.button.light {
  background: rgba(255, 253, 248, 0.62);
  color: var(--night);
}

.contact-panel {
  background: var(--blue);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-title {
  color: var(--night);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.opening-note,
.delivery-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
  padding: 34px;
}

.library-section,
.value-section,
.steps-section,
.faq-section,
.request-section,
.disclaimer,
.legal-card,
.thanks-card {
  background: var(--white);
  padding: 34px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.library-board {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.guide-card {
  background: #f6efe3;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card.middle {
  background: var(--night);
  color: var(--white);
  transform: translateY(-12px);
}

.guide-card.middle p,
.guide-card.middle .guide-code {
  color: rgba(255, 253, 248, 0.72);
}

.guide-code {
  color: var(--blue-deep);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
}

.guide-card strong {
  color: var(--coral-dark);
  font-size: 1.55rem;
}

.guide-card.middle strong {
  color: var(--coral);
}

.value-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
}

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

.value-grid div,
.faq-list article,
.step,
.thanks-grid div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8f2e9;
  padding: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step span {
  color: var(--coral-dark);
  font-weight: 900;
  display: block;
  margin-bottom: 12px;
}

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

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.request-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.request-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f2e9;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(227, 137, 114, 0.25);
  border-color: var(--coral);
}

textarea {
  resize: vertical;
}

.disclaimer {
  background: var(--night);
  color: var(--white);
}

.disclaimer p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.82);
  font-weight: 800;
}

.footer {
  padding: 34px 0 44px;
  color: var(--muted);
}

.footer p {
  margin: 6px 0 0;
}

.legal-main,
.thanks-main {
  padding: 38px 0;
}

.legal-card,
.thanks-card {
  width: min(860px, 100%);
  margin: 0 auto;
}

.legal-card h1,
.thanks-card h1 {
  max-width: 12ch;
}

.legal-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  font-size: 1.22rem;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.thanks-grid strong,
.thanks-grid span {
  display: block;
}

.thanks-grid span {
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 980px) {
  .hero,
  .opening-note,
  .delivery-box,
  .value-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero-label {
    min-height: 120px;
    align-items: center;
  }

  .hero-label span {
    writing-mode: initial;
    transform: none;
  }

  .library-board,
  .steps {
    grid-template-columns: 1fr;
  }

  .guide-card.middle {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-frame {
    width: min(100% - 24px, 1180px);
  }

  .header,
  .footer {
    flex-direction: column;
  }

  .value-grid,
  .faq-list,
  .thanks-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .library-section,
  .value-section,
  .steps-section,
  .delivery-box,
  .faq-section,
  .request-section,
  .opening-note,
  .legal-card,
  .thanks-card {
    padding: 24px;
  }

  h1 {
    max-width: none;
  }
}
