:root {
  color-scheme: light;
  --red: #a90000;
  --red-hover: #860000;
  --ink: #161616;
  --muted: #595959;
  --line: #dedede;
  --white: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; border-top: 7px solid var(--red); }
main { width: min(1180px, calc(100% - 80px)); margin: auto; padding: 64px 0; display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(38px, 5vw, 80px); }
.identity { min-width: 0; }
.logo { display: block; width: 100%; height: auto; }
.introduction { min-width: 0; }
.foundation-name { margin: 0 0 19px; font-size: 18px; font-weight: 600; line-height: 1.5; }
h1 { margin: 0; font-size: clamp(31px, 3.4vw, 45px); line-height: 1.13; letter-spacing: -.045em; font-weight: 750; }
.values { max-width: 360px; margin: 23px 0 29px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact { display: grid; gap: 12px; }
.contact-link { min-height: 80px; padding: 15px 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 5px; color: inherit; text-decoration: none; }
.contact-link svg { width: 25px; height: 25px; flex: 0 0 25px; }
.contact-link > span { min-width: 0; }
.contact-label { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 2px; }
.contact-value { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.email { background: var(--red); border-color: var(--red); color: var(--white); }
.email:hover { background: var(--red-hover); border-color: var(--red-hover); }
.phone:hover { border-color: var(--ink); }
.phone .contact-label { color: var(--muted); }
.phone .contact-value { font-size: 21px; letter-spacing: .01em; }
.social { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: 14px; line-height: 1.6; }
.social > span { color: var(--muted); margin-right: auto; }
.social a { color: var(--ink); text-underline-offset: 4px; padding: 9px 0; }
.social a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1468c5; outline-offset: 4px; }
.form-shortcut { display: inline-block; margin-top: 17px; padding: 6px 0; color: var(--red); font-size: 15px; text-underline-offset: 4px; }
.form-section { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(38px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 48px; scroll-margin-top: 28px; }
.form-intro h2 { margin: 0 0 14px; font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
.form-intro p { max-width: 340px; margin: 0; color: var(--muted); line-height: 1.65; }
form { min-width: 0; }
.form-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #aaa; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.field textarea { display: block; min-height: 148px; resize: vertical; }
.send-button { min-height: 48px; padding: 12px 26px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.send-button:hover { background: var(--red-hover); border-color: var(--red-hover); }
.send-button:disabled { cursor: wait; opacity: .7; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid #277238; background: #f0f7f1; line-height: 1.6; }
.form-status[data-state="error"] { border-color: var(--red); background: #fff2f2; }
.thank-you { display: block; max-width: 630px; text-align: center; }
.thank-you .logo { width: 180px; margin: 0 auto 30px; }
.thank-you h1 { font-size: 36px; }
.thank-you p { line-height: 1.7; color: var(--muted); }
.thank-you a { color: var(--red); text-underline-offset: 4px; }
footer { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 23px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
footer p { margin: 0; }
.footer-divider { margin: 0 12px; color: #999; }
@media (min-width: 1500px) { main { padding: 90px 0; } }
@media (max-width: 860px) {
  main { width: min(550px, calc(100% - 48px)); grid-template-columns: 1fr; gap: 35px; padding: 32px 0 42px; }
  .logo { width: min(310px, 80%); margin: 0 auto; }
  .foundation-name { font-size: 16px; margin-bottom: 14px; }
  h1 { font-size: clamp(31px, 5.8vw, 44px); }
  .values { margin: 18px 0 25px; }
  .form-section { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .form-intro h2 { font-size: 28px; }
  footer { width: min(550px, calc(100% - 48px)); }
}
@media (max-width: 550px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .send-button { width: 100%; }
}
@media (max-width: 400px) {
  main { width: calc(100% - 36px); gap: 27px; }
  h1 { font-size: 29px; }
  .contact-link { padding: 14px; gap: 11px; }
  .contact-value { font-size: 14px; }
  .social { gap: 6px 20px; }
  .social > span { width: 100%; }
  footer { width: calc(100% - 36px); }
  .footer-divider { display: none; }
  footer p > span:last-child { display: block; }
}
