.subpage-main { padding-top: 86px; }
.subpage-hero { position: relative; overflow: hidden; padding: 105px 0 90px; background: linear-gradient(145deg, #edf7ff, #fffaf0); }
.subpage-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -130px; border-radius: 50%; background: rgba(255,255,255,.55); }
.subpage-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .7fr; align-items: center; gap: 70px; }
.subpage-kicker { margin: 0 0 16px; color: var(--violet); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.subpage-hero h1 { max-width: 820px; font-size: clamp(50px, 6vw, 82px); }
.subpage-hero h1 span { color: var(--violet); }
.subpage-hero p:not(.subpage-kicker) { max-width: 690px; margin: 24px 0 0; color: #514e62; font-size: 18px; line-height: 1.7; }
.subpage-hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.subpage-hero-art img { position: relative; z-index: 2; max-height: 390px; object-fit: contain; filter: drop-shadow(0 25px 22px rgba(40,53,30,.16)); }
.subpage-hero-art::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 44% 56% 49% 51%; background: var(--mint); transform: rotate(-8deg); }
.page-section { padding: 95px 0; background: white; }
.page-section.soft { background: var(--ivory); }
.page-section.sky { background: #eef8fd; }
.page-heading { max-width: 760px; margin-bottom: 45px; }
.page-heading.center { margin-inline: auto; text-align: center; }
.page-heading h2 { font-size: clamp(34px, 4vw, 54px); }
.page-heading p { margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { min-height: 240px; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 12px 35px rgba(31,26,69,.05); }
.info-card .card-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 16px; color: var(--violet); background: #eee7ff; font-size: 24px; }
.info-card:nth-child(2) .card-icon { color: var(--green); background: var(--mint); }
.info-card:nth-child(3) .card-icon { color: var(--blue); background: var(--sky); }
.info-card h3 { font-size: 24px; }
.info-card p { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.split-image { overflow: hidden; border-radius: 36px; background: var(--sky); }
.split-image img { width: 100%; min-height: 420px; object-fit: cover; }
.check-list { display: grid; gap: 15px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.check-list li::before { content: "✓"; flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #26a74d; background: var(--mint); font-weight: 900; }
.page-cta { padding: 65px 0; background: white; }
.page-cta-card { position: relative; overflow: hidden; padding: 58px; border-radius: 34px; color: white; background: linear-gradient(120deg, var(--violet-dark), #8b6ee5); }
.page-cta-card h2 { max-width: 720px; font-size: clamp(34px, 4vw, 54px); }
.page-cta-card p { max-width: 620px; color: rgba(255,255,255,.75); line-height: 1.7; }
.page-cta-card .button { margin-top: 10px; }
.world-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.world-card { display: grid; grid-template-columns: 42% 58%; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; }
.world-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.world-card div { padding: 35px; align-self: center; }
.world-card h3 { font-size: 27px; }
.world-card p { color: var(--muted); line-height: 1.65; }
.stage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: white; text-align: center; }
.stage-card img { width: 100%; height: 185px; object-fit: cover; }
.stage-card div { padding: 24px; }
.stage-card h3 { font-size: 22px; }
.stage-card strong { display: block; margin-top: 5px; color: var(--violet); }
.stage-card ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.5; }
.values-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.value-chip { padding: 25px 15px; border-radius: 22px; text-align: center; background: white; box-shadow: 0 10px 30px rgba(31,26,69,.05); }
.value-chip span { display: block; margin-bottom: 10px; font-size: 28px; }
.value-chip strong { font-size: 14px; }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.contact-details { display: grid; gap: 18px; }
.contact-detail { padding: 23px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.contact-detail small { display: block; color: var(--violet); font-weight: 800; text-transform: uppercase; }
.contact-detail strong, .contact-detail a { display: block; margin-top: 7px; }
.contact-form { padding: 36px; border-radius: 30px; background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfbfe; color: var(--navy); font: inherit; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-message { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message.success { color: #269e4c; font-weight: 700; }
.legal-hero { padding-bottom: 65px; }
.legal-hero .container { display: block; }
.legal-hero h1 { max-width: 950px; }
.legal-wrap { display: grid; grid-template-columns: 245px 1fr; align-items: start; gap: 70px; }
.legal-nav { position: sticky; top: 105px; display: grid; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.legal-nav a { padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.legal-nav a:hover { color: var(--violet); background: #f4efff; }
.legal-doc { max-width: 820px; }
.legal-notice { margin-bottom: 35px; padding: 20px 23px; border: 1px solid #f4d497; border-radius: 18px; background: #fff8e8; color: #6c5428; font-size: 13px; line-height: 1.6; }
.legal-doc section { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-doc section:last-child { border-bottom: 0; }
.legal-doc h2 { font-size: 26px; }
.legal-doc h3 { margin-top: 24px; font-size: 17px; }
.legal-doc p, .legal-doc li { color: #565366; font-size: 14px; line-height: 1.75; }
.legal-doc ul { padding-left: 20px; }
.placeholder { padding: 2px 5px; border-radius: 5px; color: #8e5200; background: #fff0cf; font-weight: 700; }
.back-home { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 24px; color: var(--violet); font-size: 14px; font-weight: 800; }
.subpage-footer .footer-grid { grid-template-columns: .8fr 1.8fr; padding-top: 5px; }

/* Final subpage QA: balanced headings and comfortable reading widths. */
.subpage-hero h1,.page-heading h2,.page-cta-card h2{text-wrap:balance}
.subpage-hero p,.page-heading p,.info-card p,.world-card p,.legal-doc p,.legal-doc li{text-wrap:pretty}
.page-heading{max-width:800px}
.split-section>div:last-child{max-width:620px}
.world-card p{font-size:15px}
.check-list li{font-size:15px}
.contact-detail small{font-size:12px;letter-spacing:.04em}
.contact-detail strong,.contact-detail a{font-size:15px;line-height:1.5}

@media (max-width: 1000px) {
  .subpage-hero .container, .split-section, .contact-layout { grid-template-columns: 1fr; }
  .subpage-hero-art { min-height: 300px; }
  .subpage-hero-art img { max-height: 320px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .world-grid { grid-template-columns: 1fr; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .legal-wrap { grid-template-columns: 1fr; gap: 35px; }
  .legal-nav { position: static; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .subpage-main { padding-top: 70px; }
  .subpage-hero { padding: 72px 0 55px; }
  .subpage-hero h1 { font-size: 46px; }
  .subpage-hero p:not(.subpage-kicker) { font-size: 16px; }
  .page-section { padding: 65px 0; }
  .info-grid, .stage-list, .values-row { grid-template-columns: 1fr; }
  .world-card { grid-template-columns: 1fr; }
  .world-card img { min-height: 220px; }
  .page-cta-card { padding: 40px 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .legal-nav { grid-template-columns: 1fr 1fr; }
  .subpage-footer .footer-grid { grid-template-columns: 1fr; }
  .subpage-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .subpage-hero .container { gap: 38px; }
  .subpage-hero-art { min-height: 250px; }
  .page-heading { margin-bottom: 36px; }
  .info-card { min-height: 0; padding: 27px 24px; }
  .info-card .card-icon { margin-bottom: 24px; }
  .split-section { gap: 40px; }
  .split-image img { min-height: 300px; }
  .contact-form { padding: 28px 20px; }
  .legal-doc h2 { font-size: 24px; }
  .legal-doc p, .legal-doc li { font-size: 15px; }
}

@media (max-width: 470px) {
  .subpage-hero { padding-top: 58px; }
  .subpage-hero-art::before { width: 250px; height: 250px; }
  .page-section { padding: 56px 0; }
  .legal-nav { grid-template-columns: 1fr; }
  .page-cta-card { padding: 34px 20px; }
}
