.note { font-size: 13px; line-height: 1.8; color: var(--color-text-muted); }
.contact { padding-block: var(--section-py) calc(var(--section-py) + 16px); background: var(--color-white); }
.contact__panel { position: relative; padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 80px); border-radius: 40px; background: radial-gradient(ellipse at 100% 0%, rgba(0, 210, 255, .16), transparent 45%), linear-gradient(160deg, #1b4e85, var(--color-bg-dark) 65%); color: var(--color-white); overflow: hidden; }
.contact__panel::before { content: ""; position: absolute; right: -12%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 140px rgba(255, 255, 255, .015); pointer-events: none; }
.contact__direct { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact__direct p { margin-bottom: 12px; font-size: 13px; font-weight: 700; color: #9fb6d1; }
.contact__direct a { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--color-white); }
.contact__direct svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .1); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .2s, color .2s; }
.contact__direct b { font-size: 16px; letter-spacing: .01em; }
.contact__direct small { font-size: 13px; color: #9fb6d1; }
.contact__direct a:hover svg { background: var(--color-white); color: var(--color-brand); }
.contact__direct a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact__copy h2 { font-size: clamp(40px, calc(40px + 12 * (100vw - 1440px) / 1120), 52px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.contact__copy > p { margin-top: 20px; font-size: 16px; color: #c3d4e8; }
.contact__next { counter-reset: next; display: grid; gap: 14px; margin-top: 36px; }
.contact__next li { counter-increment: next; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; font-size: 14px; color: #9fb6d1; }
.contact__next li::before { content: counter(next); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-family: var(--font-heading); font-weight: 700; color: var(--color-white); }
.contact__next b { font-size: 16px; color: var(--color-white); }
.contact__hint { margin-top: 28px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 14px; color: #c3d4e8; }
.form { color: var(--color-dark); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.req { padding: 1px 8px; border-radius: 6px; background: var(--color-coral-light); color: #d6403f; font-size: 11px; font-weight: 800; }
.opt { font-size: 12px; font-weight: 600; color: var(--color-text-subtle); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-bg-light); font-size: 16px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast); }
.field ::placeholder { color: #a8b1bd; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field select { appearance: none; padding-right: 44px; background: var(--color-bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232163a0' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-brand); background-color: var(--color-white); box-shadow: 0 0 0 4px var(--color-brand-light); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--color-coral); background-color: #fff6f6; box-shadow: 0 0 0 4px var(--color-coral-light); }
.field__error { margin-top: 6px; font-size: 13px; font-weight: 700; color: #d6403f; }
.choices, .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label, .radios label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--color-border); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast); }
.choices input, .radios input { margin: 0; accent-color: var(--color-brand); }
.choices label:has(input:checked), .radios label:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-light); color: var(--color-brand); }
.form__error { margin-top: 12px; font-size: 14px; font-weight: 700; color: #d6403f; }
.form__done { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--color-brand-light); font-size: 14px; color: var(--color-brand-hover); }
.form__done b { display: block; }
@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .contact__copy h2 { font-size: 26px; }
  .contact { padding-block: 48px 64px; }
  .contact .container { padding-inline: 12px; }
  .contact__panel { padding: 36px 18px 18px; border-radius: 28px; }
  .form { padding: 24px 18px; border-radius: 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}
.form__privacy { margin: 4px 0 16px; font-size: 13px; color: var(--color-text-muted); }
.form__privacy a { color: var(--color-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.modal__body .plans { margin-bottom: 4px; }
.modal__body .plan { box-shadow: none; border: 1px solid var(--color-border); }
.contact__start { align-self: center; padding: 40px; border-radius: 28px; background: var(--color-white); color: var(--color-dark); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.contact__start-title { font-size: 22px; font-weight: 800; }
.contact__start-list { display: grid; gap: 10px; margin: 18px 0 28px; }
.contact__start-list li { display: flex; gap: 10px; font-size: 15px; color: var(--color-text-muted); }
.contact__start-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.is-modal-open { overflow: hidden; }
.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px; background: var(--color-white); color: var(--color-dark); box-shadow: 0 40px 100px -20px rgba(12, 35, 64, .45); overflow: auto; }
.modal--wide { width: min(1120px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(12, 35, 64, .55); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 20px; padding: 20px 28px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.modal__title { font-size: 18px; font-weight: 800; }
.modal__steps { display: flex; gap: 6px; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--color-text-subtle); }
.modal__steps li { padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-bg-alt); }
.modal__steps li.is-current { background: var(--color-brand); color: var(--color-white); }
.modal__close { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' stroke='%23111827' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.modal__close:hover { background-color: var(--color-border); }
.modal:not(.modal--wide) .modal__close { margin-left: 0; }
.modal--wide .modal__close { margin-left: auto; }
.modal .form, .modal__body { padding: 28px; }
.modal__body .estimate__scroll { box-shadow: none; border: 1px solid var(--color-border); }
.field__note { margin-top: 6px; font-size: 12.5px; color: var(--color-text-muted); }
.choices--stack { flex-direction: column; align-items: stretch; }
.choices--stack label { border-radius: 12px; }
.form__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.form__lead { margin-bottom: 16px; font-size: 15px; }
.form__confirm { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--color-border); margin-bottom: 20px; }
.form__confirm dt, .form__confirm dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.form__confirm dt { font-weight: 700; color: var(--color-text-muted); }
.form__confirm dd { white-space: pre-line; word-break: break-all; }
.form__step--done { padding: 24px 0 8px; text-align: center; }
.form__step--done .form__actions { justify-content: center; margin-top: 24px; }
.form__done-title { margin-bottom: 8px; font-size: 22px; font-weight: 800; color: var(--color-dark); }
@media (max-width: 640px) {
  .modal, .modal--wide { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal__head { padding: 14px 16px; gap: 10px; }
  .modal__steps { font-size: 11px; }
  .modal__steps li { padding: 3px 8px; }
  .modal .form, .modal__body { padding: 20px 16px 32px; }
  .form__confirm { grid-template-columns: 1fr; }
  .form__confirm dt { padding-bottom: 0; border-bottom: 0; }
  .form__actions .btn { flex: 1; }
  .contact__start { padding: 24px 20px; }
}
.contact__inline { display: none; }
@media (min-width: 1025px) {
  .contact__start { display: none; }
  .contact__inline { display: block; padding: 36px; border-radius: 28px; background: var(--color-white); color: var(--color-dark); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
  .contact__inline-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
  .contact__inline .form__step[data-step="input"] [data-modal-close], .contact__inline .form__step--done .form__actions { display: none; }
}
.modal .form__actions { position: sticky; bottom: 0; z-index: 1; margin: 8px -28px -28px; padding: 14px 28px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--color-border); backdrop-filter: blur(8px); }
@media (max-width: 640px) {
  .modal .form__actions { margin: 8px -16px -32px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}
.field ::placeholder { color: #8a94a3; }
.form__carry { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: var(--color-brand-light); font-size: 13.5px; font-weight: 700; color: var(--color-brand); }
.form__lead:focus, .form__done-title:focus { outline: none; }
@media (max-width: 1024px) {
  .contact__grid { display: flex; flex-direction: column; gap: 24px; }
  .contact__copy { display: contents; }
  .contact__copy h2 { order: 1; }
  .contact__copy > p:first-of-type { order: 2; }
  .contact__start { order: 3; }
  .contact__next { order: 4; }
  .contact__hint { order: 5; }
  .contact__direct { order: 6; }
}
.form__done-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: rgba(34, 197, 94, .12); color: #16a34a; }
.form__done-check { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form__done-check circle { stroke-dasharray: 82; stroke-dashoffset: 82; }
.form__done-check path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.form__step--done:not([hidden]) .form__done-icon { animation: doneIcon .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.form__step--done:not([hidden]) .form__done-check circle { animation: drawStroke .55s .15s var(--ease-out) forwards; }
.form__step--done:not([hidden]) .form__done-check path { animation: drawStroke .35s .6s var(--ease-out) forwards; }
@media (prefers-reduced-motion: reduce) {
  .form__done-check circle, .form__done-check path { stroke-dashoffset: 0; }
}
.agree { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-brand); }
.agree a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.agree .req { margin-left: 8px; }
.agree input.is-invalid { outline: 2px solid var(--color-coral); outline-offset: 2px; }
.form__carry-link { margin-left: 4px; color: var(--color-brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.modal { scrollbar-color: auto; scrollbar-width: auto; }
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.modal::-webkit-scrollbar-track { margin-block: 24px; background: transparent; }
.modal::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: rgba(33, 99, 160, .35) padding-box; }
.modal::-webkit-scrollbar-thumb:hover { background-color: rgba(33, 99, 160, .55); }
.check__text, .faq summary, .case-card__timeline span, .case-card__timeline b, .choices label, .agree { word-break: auto-phrase; }
.modal__steps li { color: var(--color-text-muted); }
.modal__steps li.is-current { color: var(--color-white); }
@media (max-width: 1024px) {
  .contact__start { align-self: flex-start; width: min(100%, 480px); }
}
@media (max-width: 640px) {
  #consult .form__step--done:not([hidden]) { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 120px); }
  #consult .form__step--done .form__actions { margin-top: auto; }
}
.form__step--done .note { margin-top: 12px; }
@media (max-width: 640px) {
  #consult .form__step[data-step="input"] [data-modal-close] { display: none; }
}
.agree > span { display: inline; }
.agree .req { white-space: nowrap; }
@media (max-width: 640px) {
  .agree { align-items: flex-start; font-size: 13.5px; }
  .agree input { margin-top: 3px; }
}
@media (max-width: 640px) {
  .agree { align-items: center; }
  .agree input { margin-top: 0; }
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes doneIcon { from { transform: scale(.5); opacity: 0; } }
[data-done-doc] { margin: 18px 0 0; }
.modal__steps, .contact__next, .contact__start-list { list-style: none; padding-left: 0; }
.contact__copy h2 { margin: 0; }
.contact__copy > p { margin-bottom: 0; }
@media (max-width: 640px) { .modal__head .modal__title { white-space: nowrap; font-size: 16px; } }
.modal__close { border: 0; padding: 0; }
.contact__direct a, .contact__direct a:hover { text-decoration: none; }
@media (max-width: 1024px) { .contact__copy > p:first-of-type { margin-top: -8px; } }
