@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: #FAFAF7;
  color: #1E1A17;
  line-height: 1.65;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.22; color: #1E1A17; }
h1 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
h3 { font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
p  { color: #3D3530; margin-bottom: 0.6rem; }
a  { color: #C8622A; text-decoration: none; }
a:hover { text-decoration: underline; }

main,
section {
  overflow-x: clip;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
  overflow-x: clip;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #E8DDD4;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
  overflow-x: clip;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 900;
  color: #C8622A;
  letter-spacing: -0.4px;
}

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

.wordmark a:hover {
  text-decoration: none;
}

.wordmark span { color: #1E1A17; }

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 0;
}

.ad-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #5C5048;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  line-height: 1.3;
}

.header-badge {
  font-size: 0.72rem;
  color: #7A6A60;
  text-align: right;
  line-height: 1.4;
  margin: 0;
}

.hero-section {
  background: linear-gradient(140deg, #FBF5EE 0%, #F4EAE0 100%);
  padding: 3rem 0 3.25rem;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  overflow-x: clip;
}

.hero-pill {
  display: inline-block;
  background: #C8622A;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: 0.22rem 0.72rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.hero-h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.hero-sub {
  font-size: 0.97rem;
  color: #4A3E38;
  line-height: 1.68;
  margin-bottom: 1.4rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.mini-cell {
  background: #fff;
  border: 1px solid #E8DDD4;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.mini-cell .ic { font-size: 1.4rem; display: block; margin-bottom: 0.22rem; }
.mini-cell .lb { font-size: 0.68rem; font-weight: 700; color: #1E1A17; line-height: 1.3; }

.expert-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #E8DDD4;
  border-left: 3px solid #C8622A;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.expert-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8622A, #E8934B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.expert-text h4 { font-size: 0.82rem; font-weight: 800; color: #1E1A17; margin-bottom: 0.1rem; }
.expert-text p  { font-size: 0.72rem; color: #7A6A60; margin: 0; line-height: 1.4; }

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.hero-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  line-height: 0;
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 240px;
  object-position: center top;
}

.form-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #E8DDD4;
  box-shadow: 0 5px 28px rgba(200,98,42,0.11);
  padding: 1.4rem;
  min-width: 0;
}

.form-card-title { font-size: 1.05rem; font-weight: 800; color: #1E1A17; margin-bottom: 0.2rem; }
.form-card-sub   { font-size: 0.78rem; color: #7A6A60; margin-bottom: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.form-group { margin-bottom: 0.75rem; min-width: 0; }
.form-group label { display: block; font-size: 0.76rem; font-weight: 700; color: #3D3530; margin-bottom: 0.28rem; }
.form-group input,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #D8CEC6;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1E1A17;
  background: #FAFAF7;
  outline: none;
  transition: border-color 0.18s;
}

.form-group input:focus,
.form-group select:focus { border-color: #C8622A; background: #fff; }

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not([value=""]) {
  border-color: #C0392B;
}

.consent-wrap { margin: 0.75rem 0; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: #5C5048;
  line-height: 1.45;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #C8622A;
  cursor: pointer;
}

.consent-label a { color: #C8622A; text-decoration: underline; }

.btn-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #C8622A;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.82rem 1.5rem;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.18s, transform 0.1s;
  text-align: center;
}

.btn-submit:hover  { background: #A84E1E; }
.btn-submit:active { transform: scale(0.985); }

.form-note {
  font-size: 0.65rem;
  color: #9A8880;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.4;
}

body.page-thanks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-thanks main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.thanks-section {
  flex: 1 1 auto;
  width: 100%;
  padding: 2rem 0;
  background: linear-gradient(140deg, #FBF5EE 0%, #F4EAE0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-section .container {
  width: 100%;
}

.thanks-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E8DDD4;
  border-radius: 14px;
  box-shadow: 0 5px 28px rgba(200,98,42,0.11);
  padding: 2rem 1.75rem;
  text-align: center;
}

.thanks-ico {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.thanks-title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-bottom: 0.65rem;
}

.thanks-body {
  font-size: 0.92rem;
  color: #5C5048;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.btn-home {
  display: inline-block;
  background: #C8622A;
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}

.btn-home:hover {
  background: #A84E1E;
  text-decoration: none;
}

.benefits-section { padding: 3.25rem 0; background: #fff; }

.section-header { text-align: center; margin-bottom: 2.25rem; }
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #C8622A;
  margin-bottom: 0.45rem;
}

.section-title { margin-bottom: 0.65rem; }
.section-lead  {
  font-size: 0.92rem;
  color: #5C5048;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.68;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  overflow-x: clip;
}

.benefit-card {
  background: #FAFAF7;
  border: 1px solid #E8DDD4;
  border-radius: 14px;
  padding: 1.4rem;
  min-width: 0;
}

.benefit-card .card-ic { font-size: 1.85rem; margin-bottom: 0.7rem; display: block; }
.benefit-card h3 { font-size: 0.97rem; margin-bottom: 0.45rem; }
.benefit-card p  { font-size: 0.84rem; color: #5C5048; line-height: 1.62; margin: 0; }

.process-section { padding: 3.25rem 0; background: #FBF5EE; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.25rem;
  overflow-x: clip;
}

.process-step { text-align: center; padding: 1.25rem 0.75rem; min-width: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #C8622A;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 auto 0.9rem;
}

.process-step h3 { font-size: 0.93rem; margin-bottom: 0.4rem; }
.process-step p  { font-size: 0.83rem; color: #5C5048; line-height: 1.58; margin: 0; }

.faq-section { padding: 3.25rem 0; background: #fff; }
.faq-list { max-width: 700px; margin: 0 auto; }

details.faq-item {
  border: 1px solid #E8DDD4;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  background: #FAFAF7;
}

details.faq-item summary {
  list-style: none;
  padding: 0.95rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E1A17;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { content: ""; }

details.faq-item summary:hover { background: #F5EAE0; }
details.faq-item summary .arr {
  font-size: 0.75rem;
  color: #C8622A;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details.faq-item[open] summary .arr { transform: rotate(180deg); }

.faq-ans {
  padding: 0.85rem 1.2rem 1rem;
  font-size: 0.85rem;
  color: #5C5048;
  line-height: 1.65;
  background: #fff;
  border-top: 1px solid #E8DDD4;
}

.site-footer {
  background: #2C2420;
  color: #C8B8AE;
  padding: 2.5rem 0 1.5rem;
  overflow-x: clip;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #3D3530;
}

.footer-brand h3   { font-size: 1.05rem; font-weight: 900; color: #E8834B; margin-bottom: 0.45rem; }
.footer-brand .footer-sub { font-size: 0.72rem; color: #9A8880; margin-bottom: 0.35rem; }
.footer-brand p    { font-size: 0.76rem; color: #9A8880; line-height: 1.55; margin: 0; }
.footer-contact h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: #C8B8AE;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.65rem;
}

.footer-contact p  { font-size: 0.76rem; color: #9A8880; margin-bottom: 0.28rem; line-height: 1.5; }

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.footer-links a { font-size: 0.75rem; color: #9A8880; }
.footer-links a:hover { color: #E8834B; }

.footer-disc { font-size: 0.7rem; color: #7A6A60; line-height: 1.55; margin-bottom: 0.9rem; }
.footer-copy { font-size: 0.7rem; color: #7A6A60; line-height: 1.5; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay:target {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 10px 44px rgba(0,0,0,0.2);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #E8DDD4;
  position: sticky;
  top: 0;
  background: #fff;
}

.modal-head h2 { font-size: 0.97rem; font-weight: 800; color: #1E1A17; }

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: #7A6A60;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}

.modal-close-btn:hover {
  background: #F5EAE0;
  color: #1E1A17;
  text-decoration: none;
}

.modal-body { padding: 1.4rem; font-size: 0.83rem; color: #3D3530; line-height: 1.7; }
.modal-body h3 { font-size: 0.87rem; font-weight: 700; color: #1E1A17; margin: 1rem 0 0.35rem; }
.modal-body p  { margin-bottom: 0.65rem; }

@media (max-width: 780px) {
  .hero-grid      { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-right     { order: -1; }
  .benefits-grid  { grid-template-columns: 1fr; }
  .process-steps  { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-row       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo ad"
      "badge badge";
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.35rem;
  }

  .wordmark {
    grid-area: logo;
    min-width: 0;
    word-break: break-word;
    font-size: 1rem;
  }

  .header-meta {
    display: contents;
  }

  .ad-label {
    grid-area: ad;
    justify-self: end;
  }

  .header-badge {
    grid-area: badge;
    text-align: left;
    font-size: 0.65rem;
    word-break: break-word;
  }

  .footer-brand,
  .footer-contact {
    word-break: break-all;
  }

  body.page-thanks .thanks-section {
    padding: 1.25rem 0;
  }

  body.page-thanks .thanks-card {
    padding: 1.5rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .form-card {
    padding: 1rem;
  }

  .hero-section {
    padding: 1.75rem 0 2rem;
  }

  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
}

@media (max-width: 440px) {
  .mini-grid { grid-template-columns: 1fr 1fr; }
}
