:root {
  --navy-950: #061226;
  --navy-900: #071a36;
  --navy-800: #0b254c;
  --blue-600: #1769e0;
  --blue-500: #2b7bf0;
  --blue-100: #eaf3ff;
  --ink: #111b2b;
  --muted: #657186;
  --line: #dce3ec;
  --paper: #f6f8fb;
  --white: #ffffff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  color: #fff;
  background: #000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.78;
}

.header-call {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  display: flex;
  min-height: 790px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/blue-hero.jpg") center bottom / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(4, 15, 34, 0.52) 0%, rgba(4, 15, 34, 0.1) 55%, rgba(4, 15, 34, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 15, 34, 0.5), transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 136px 22px 190px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow.light {
  color: #89baff;
}

.hero h1,
.section h2,
.statement h2,
.consult h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.28;
}

.hero h1 {
  max-width: 440px;
  font-size: clamp(34px, 9.5vw, 49px);
  font-weight: 400;
}

.hero h1 span {
  font-weight: 800;
}

.hero-copy {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin-top: 36px;
  border: 0;
  border-radius: 6px;
  padding: 18px 18px 18px 20px;
  color: var(--white);
  background: var(--blue-600);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 74, 190, 0.28);
}

.primary-cta svg,
.concern-card svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.microcopy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
}

.microcopy svg {
  width: 15px;
  fill: none;
  stroke: #8dbdff;
  stroke-width: 1.8;
}

.section {
  padding: 76px 20px;
}

.section-head {
  margin-bottom: 38px;
}

.section h2,
.consult h2 {
  font-size: clamp(30px, 8vw, 42px);
}

.section-head > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.quick-check {
  position: relative;
  background: var(--paper);
}

.concern-list {
  display: grid;
  gap: 10px;
}

.concern-card {
  display: grid;
  grid-template-columns: 38px 1fr 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 19px 16px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  box-shadow: 0 8px 30px rgba(16, 37, 70, 0.04);
  transition: border-color 0.2s, transform 0.2s;
}

.concern-card:active {
  transform: scale(0.985);
}

.concern-number {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
}

.concern-text strong,
.concern-text small {
  display: block;
}

.concern-text strong {
  font-size: 15px;
}

.concern-text small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.concern-card svg {
  color: #9ba6b6;
}

.statement {
  padding: 88px 22px;
  color: #fff;
  background: var(--navy-950);
}

.statement-inner {
  max-width: 760px;
  margin: auto;
}

.statement-inner > p:first-child {
  margin: 0 0 14px;
  color: #87b8fa;
  font-size: 14px;
}

.statement h2 {
  font-size: clamp(28px, 7.6vw, 43px);
  font-weight: 400;
}

.statement h2 span {
  font-weight: 800;
}

.statement-line {
  width: 100%;
  height: 1px;
  margin: 45px 0;
  background: rgba(255, 255, 255, 0.16);
}

.statement-line i {
  display: block;
  width: 26%;
  height: 1px;
  background: var(--blue-500);
}

.statement-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 14px;
  line-height: 1.9;
}

.principles {
  background: #fff;
}

.principle-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 29px 24px 30px;
  background: #fff;
}

.principle-card.blue {
  border-color: var(--navy-800);
  color: #fff;
  background: var(--navy-800);
}

.principle-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-600);
  background: var(--blue-100);
}

.principle-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.principle-card > p {
  margin: 28px 0 9px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.principle-card.blue > p {
  color: #83b7ff;
}

.principle-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.principle-card > span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.principle-card.blue > span {
  color: rgba(255, 255, 255, 0.63);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 11px;
  min-height: 101px;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 39px;
  bottom: 8px;
  left: 17px;
  width: 1px;
  background: var(--line);
  content: "";
}

.process-list li > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #b7c4d5;
  border-radius: 50%;
  color: var(--blue-600);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.process-list strong {
  font-size: 17px;
}

.process-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.consult {
  padding: 82px 20px 92px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(34, 114, 230, 0.27), transparent 28%),
    var(--navy-950);
}

.consult-intro > p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.59);
  font-size: 13px;
}

.consult-action-card {
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.consult-action-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57dc9a;
  box-shadow: 0 0 0 5px rgba(87, 220, 154, 0.12);
}

.consult-action-card strong {
  font-size: 14px;
}

.consult-action-card p {
  margin: 15px 0 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.consult-action-card > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 16px 17px;
  color: #fff;
  background: var(--blue-600);
  font-size: 14px;
  font-weight: 800;
}

.consult-action-card svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.consult-form {
  display: grid;
  gap: 19px;
  margin-top: 42px;
}

.consult-form label > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 12px;
  font-weight: 700;
}

.consult-form input,
.consult-form select {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: 0;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  appearance: none;
}

.consult-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.consult-form input:focus,
.consult-form select:focus {
  border-color: #6da8fb;
  box-shadow: 0 0 0 3px rgba(48, 126, 236, 0.16);
}

.consult-form select {
  color: rgba(255, 255, 255, 0.75);
  background-image: linear-gradient(45deg, transparent 50%, #8ea0b8 50%), linear-gradient(135deg, #8ea0b8 50%, transparent 50%);
  background-position: calc(100% - 19px) 23px, calc(100% - 14px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.consult-form option {
  color: var(--ink);
}

.consult-form .agreement {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consult-form .agreement input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue-500);
}

.consult-form .agreement span {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.form-submit {
  height: 58px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue-600);
  font-weight: 800;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 18px;
  margin: -8px 0 0;
  color: #93bcf5;
  font-size: 11px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.diagnosis-modal[hidden] {
  display: none;
}

.diagnosis-modal {
  position: fixed;
  z-index: 75;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.diagnosis-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 11, 26, 0.62);
  backdrop-filter: blur(5px);
  animation: fade-in 0.22s ease both;
}

.diagnosis-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 3px minmax(220px, 1fr) auto;
  width: 100%;
  height: min(74dvh, 620px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #f5f8fc;
  box-shadow: 0 -24px 80px rgba(0, 12, 35, 0.25);
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.78, 0.25, 1) both;
}

.diagnosis-panel:focus {
  outline: 0;
}

.diagnosis-panel::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d4dce8;
  content: "";
  transform: translateX(-50%);
}

.diagnosis-head {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 24px 18px 16px;
  background: #fff;
}

.bot-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2e82f2, #135dc7);
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.2);
}

.bot-avatar svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.diagnosis-head strong,
.diagnosis-head span {
  display: block;
}

.diagnosis-head strong {
  font-size: 14px;
}

.diagnosis-head span {
  margin-top: 4px;
  color: #78869a;
  font-size: 10px;
}

.diagnosis-head span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #46ca86;
}

.diagnosis-head > button {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid #dce3ed;
  border-radius: 50%;
  place-items: center;
  color: #69778a;
  background: #fff;
  font-size: 22px;
}

.diagnosis-progress {
  background: #e6ebf3;
}

.diagnosis-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue-600);
  transition: width 0.3s ease;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px 17px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.chat-bubble {
  width: fit-content;
  max-width: 84%;
  border-radius: 5px 16px 16px 16px;
  padding: 12px 14px;
  color: #26364e;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  box-shadow: 0 5px 18px rgba(13, 39, 75, 0.06);
  animation: chat-in 0.22s ease both;
}

.chat-bubble.user {
  align-self: flex-end;
  border-radius: 16px 5px 16px 16px;
  color: #fff;
  background: var(--blue-600);
}

.chat-bubble.result {
  border: 1px solid #c9dcf8;
  color: #153b71;
  background: #eef6ff;
}

.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 15px;
}

.chat-bubble.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a1b3;
  animation: typing-dot 0.75s infinite alternate;
}

.chat-bubble.typing i:nth-child(2) { animation-delay: 0.12s; }
.chat-bubble.typing i:nth-child(3) { animation-delay: 0.24s; }

.chat-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 14px calc(14px + var(--safe-bottom));
  border-top: 1px solid #e0e6ef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.chat-options button {
  min-height: 45px;
  border: 1px solid #ccd6e4;
  border-radius: 8px;
  padding: 9px;
  color: #32445e;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.chat-options button:active {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: #eff6ff;
}

.chat-options .chat-consult-button {
  grid-column: 1 / -1;
  border-color: var(--blue-600);
  color: #fff;
  background: var(--blue-600);
}

.chat-input-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 64px;
  gap: 7px;
}

.chat-input-form input {
  min-width: 0;
  height: 47px;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  outline: 0;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.chat-input-form input::placeholder {
  color: #9aa6b6;
}

.chat-input-form input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.chat-input-form button {
  border-color: var(--blue-600);
  color: #fff;
  background: var(--blue-600);
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes typing-dot {
  to { opacity: 0.3; transform: translateY(-2px); }
}

.inquiry-modal[hidden] {
  display: none;
}

.inquiry-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 11, 26, 0.68);
  backdrop-filter: blur(5px);
  animation: fade-in 0.22s ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92dvh, 880px);
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  padding: 25px 20px calc(28px + var(--safe-bottom));
  color: var(--ink);
  background: #f7f9fc;
  box-shadow: 0 -24px 80px rgba(0, 12, 35, 0.24);
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.78, 0.25, 1) both;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-panel::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d6dde8;
  content: "";
  transform: translateX(-50%);
}

.modal-panel:focus {
  outline: 0;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}

.modal-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
}

.modal-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bd08c;
  box-shadow: 0 0 0 4px rgba(75, 208, 140, 0.12);
}

.modal-head h2 {
  margin: 10px 0 0;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: #5c687a;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.submission-toast {
  position: sticky;
  z-index: 3;
  top: -16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  margin: -8px 0 20px;
  border: 1px solid #bdd4f7;
  border-radius: 9px;
  padding: 13px 14px;
  color: #174b91;
  background: #edf5ff;
  box-shadow: 0 8px 24px rgba(8, 42, 91, 0.08);
}

.submission-toast[hidden] {
  display: none;
}

.toast-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  background: var(--blue-600);
}

.toast-icon::after {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  content: "✓";
}

.submission-toast strong,
.submission-toast p {
  display: block;
  margin: 0;
}

.submission-toast strong {
  font-size: 13px;
}

.submission-toast p {
  margin-top: 3px;
  color: #5e7190;
  font-size: 10px;
  line-height: 1.5;
}

.submission-toast.loading .toast-icon::after {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: toast-spin 0.7s linear infinite;
}

.submission-toast.warning {
  border-color: #f5d79d;
  color: #8f5c08;
  background: #fff8e8;
}

.submission-toast.warning .toast-icon {
  background: #d68b12;
}

.submission-toast.warning .toast-icon::after,
.submission-toast.error .toast-icon::after {
  content: "!";
}

.submission-toast.error {
  border-color: #f3c5c1;
  color: #a53a32;
  background: #fff1f0;
}

.submission-toast.error .toast-icon {
  background: #d94b41;
}

@keyframes toast-spin {
  to { transform: rotate(360deg); }
}

.inquiry-modal .consult-form {
  gap: 16px;
  margin-top: 0;
}

.inquiry-modal .consult-form label > span:first-child,
.privacy-field > strong {
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.inquiry-modal em {
  color: #f04438;
  font-size: 9px;
  font-style: normal;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
}

.inquiry-modal .consult-form input,
.inquiry-modal .consult-form select {
  height: 50px;
  border-color: #d7dee9;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 10px rgba(9, 30, 66, 0.025);
}

.inquiry-modal .consult-form input::placeholder {
  color: #abb4c2;
}

.inquiry-modal .consult-form input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.privacy-field > strong {
  display: block;
}

.privacy-scroll {
  height: 116px;
  overflow-y: auto;
  border: 1px solid #d7dee9;
  border-radius: 7px;
  padding: 13px 14px;
  color: #697586;
  background: #fff;
  font-size: 10px;
  line-height: 1.65;
  scrollbar-color: #aab4c2 transparent;
  scrollbar-width: thin;
}

.privacy-scroll b {
  color: #344054;
}

.privacy-scroll p {
  margin: 7px 0 0;
}

.inquiry-modal .consult-form .agreement span {
  color: #536176;
}

.inquiry-modal .consult-form .agreement {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: -4px 0;
  cursor: pointer;
}

.inquiry-modal .consult-form .agreement input {
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #bcc7d6;
  padding: 0;
  background: #fff;
  box-shadow: none;
  accent-color: var(--blue-600);
  appearance: auto;
}

.inquiry-modal .consult-form .agreement input:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.18);
  outline-offset: 2px;
}

.inquiry-modal .consult-form .agreement span {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.inquiry-modal .form-submit {
  height: 55px;
  margin-top: 2px;
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.18);
}

.inquiry-modal .form-status {
  color: var(--blue-600);
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(28px); }
}

.site-footer {
  padding: 42px 20px calc(104px + var(--safe-bottom));
  color: #788499;
  background: #030b18;
  font-size: 10px;
  line-height: 1.7;
}

.footer-brand {
  margin-bottom: 20px;
  color: #dce8f8;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-notice {
  max-width: 560px;
}

.sticky-actions {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 8px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid rgba(9, 27, 57, 0.1);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 -8px 28px rgba(3, 16, 38, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 0.3s;
}

.sticky-actions button {
  height: 52px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.sticky-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cad3df;
  color: var(--ink);
  background: #fff;
}

.sticky-call svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sticky-form {
  border: 0;
  color: #fff;
  background: var(--blue-600);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-header,
  .hero-content,
  .section,
  .consult,
  .site-footer {
    padding-right: max(7vw, 32px);
    padding-left: max(7vw, 32px);
  }

  .hero {
    min-height: 830px;
  }

  .hero-media {
    background-position: 70% 68%;
  }

  .hero-content {
    padding-top: 180px;
  }

  .section > *,
  .consult > *,
  .site-footer > * {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }

  .principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
  }

  .principles .section-head {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }

  .principle-card {
    margin-top: 0;
  }

  .sticky-actions {
    right: 22px;
    bottom: 22px;
    left: auto;
    width: 390px;
    border: 1px solid #dde4ed;
    border-radius: 8px;
    padding: 8px;
  }

  .inquiry-modal {
    align-items: center;
    padding: 28px;
  }

  .diagnosis-modal {
    align-items: center;
    padding: 28px;
  }

  .diagnosis-panel {
    width: min(100%, 430px);
    border-radius: 18px;
  }

  .modal-panel {
    width: min(100%, 540px);
    border-radius: 16px;
    padding: 30px;
  }
}

@media (max-width: 340px) {
  .modal-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .modal-head h2 {
    font-size: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-modal .consult-form input {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
