:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #111c32;
  background: #fff;
  --blue: #0755ec;
  --deep-blue: #0642c7;
  --muted: #4e5e73;
  --line: #e1ebf9;
  --panel: #f5faff;
  --shadow: 0 4px 15px rgb(18 61 123 / 5%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; scrollbar-gutter: stable; }
html:has(dialog:modal) { overflow: hidden; overscroll-behavior-y: none; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a[href], button { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #247bfa; outline-offset: 3px; }
.shell { width: min(1224px, calc(100% - 60px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #edf2fa;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand, .header-phone {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.shield {
  display: grid;
  place-items: center;
  width: 37px;
  height: 43px;
  padding-bottom: 4px;
  clip-path: polygon(50% 0, 92% 14%, 89% 52%, 76% 78%, 50% 100%, 24% 78%, 11% 52%, 8% 14%);
  background: linear-gradient(165deg, #2688ff, #0645df 75%);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
}

.brand strong, .brand small, .header-phone strong, .header-phone small { display: block; }
.brand strong { font-size: 1.25rem; line-height: 1.2; }
.brand small, .header-phone small { margin-top: 3px; color: var(--muted); font-size: 0.75rem; }
.header-phone { color: var(--blue); }
.header-phone > span:first-child { font-family: "Segoe UI Symbol", sans-serif; font-size: 1.65rem; }
.header-phone strong { font-size: 1.18rem; font-variant-numeric: tabular-nums; }

.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(16px, 3vw, 44px); }
.main-nav a { position: relative; display: grid; place-items: center; white-space: nowrap; font-size: 0.91rem; }
.main-nav a[aria-current], .main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current]::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(325px, 29vw, 420px);
  background: linear-gradient(110deg, #e3f1fe, #f0f8ff 45%, #dbe9fb);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 8% 0 32%;
}
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center 22%; }
.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eaf5ff 0%, rgb(234 245 255 / 74%) 15%, transparent 37%, transparent 86%, #deebfc 100%);
  content: "";
}

.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: inherit; }
.hero-copy { padding-block: clamp(31px, 4vw, 56px); }
.hero-kicker { margin: 0 0 10px; color: #33465f; font-size: 1.02rem; }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.55vw, 3.55rem); line-height: 1.18; letter-spacing: -0.045em; }
.hero h1 span { color: var(--blue); }
.hero-summary { margin: 14px 0 0; color: #2e3e55; font-size: clamp(1rem, 1.55vw, 1.26rem); line-height: 1.58; }
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: #1b2b45;
  font-size: 0.88rem;
}

.hero-checks li { display: flex; align-items: center; gap: 7px; }
.hero-checks li::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  content: "✓";
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
}
.button-orange { background: linear-gradient(180deg, #cc4814, #b93516); color: #fff; box-shadow: 0 4px 10px rgb(189 65 24 / 16%); }
.button-orange:hover { background: linear-gradient(180deg, #b93a13, #a72c12); }
.button-outline { border-color: #3977ff; background: rgb(255 255 255 / 54%); color: var(--deep-blue); }
.button-outline:hover { background: #fff; }

.hero-highlights { display: grid; flex: none; width: 145px; gap: 9px; }
.hero-highlights > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 11px;
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow);
}
.hero-highlights b, .hero-highlights small { display: block; }
.hero-highlights b { font-size: 0.9rem; }
.hero-highlights small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; }
.highlight-icon, .round-icon {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: "Segoe UI Symbol", Inter, sans-serif;
  font-style: normal;
  font-weight: 700;
}
.highlight-icon { width: 27px; height: 27px; font-size: 1rem; }
.round-icon { width: 46px; height: 46px; font-size: 1.5rem; }
.blue { background: linear-gradient(145deg, #58a6ff, #0554eb); }
.red { background: linear-gradient(145deg, #ff7762, #f33630); }
.orange { background: linear-gradient(145deg, #ffb438, #f17b08); }
.green { background: linear-gradient(145deg, #58d698, #16a766); }
.purple { background: linear-gradient(145deg, #b67afd, #7130e9); }

.content { padding-block: 22px 0; }
.section { margin-bottom: 29px; scroll-margin-top: 8px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.1vw, 1.85rem); letter-spacing: -0.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.section-heading a { margin-left: auto; color: var(--deep-blue); font-size: 0.88rem; }
.section-heading a:hover { text-decoration: underline; }

.problem-grid, .process-grid, .material-grid, .support-grid, .faq-grid { display: grid; gap: 11px; }
.problem-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.problem-card, .process-grid li, .support-grid article, .faq-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.problem-card { display: flex; flex-direction: column; align-items: center; padding: 13px 7px; text-align: center; }
.problem-card h3, .process-grid h3, .material-grid h3, .support-grid h3, .faq-grid h3 { margin: 0; font-size: 0.95rem; }
.problem-card h3 { margin-top: 9px; }
.problem-card p, .process-grid p, .material-grid p, .support-grid p, .faq-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.problem-card p { flex: 1; }
.detail-button {
  margin-top: 11px;
  padding: 3px 13px;
  border: 1px solid #b4d0fc;
  border-radius: 18px;
  background: #fff;
  color: var(--deep-blue);
  font-size: 0.8rem;
}
.detail-button:hover { background: #eef5ff; border-color: #719ff8; }

.process-grid, .material-grid { padding: 0; margin: 0; list-style: none; }
.process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.process-grid li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px; }
.process-grid li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -19px;
  z-index: 1;
  color: #3389fa;
  font-size: 1.35rem;
  font-weight: 800;
  transform: translateY(-50%);
  content: "→";
}
.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 2px solid #c5e0ff;
  border-radius: 50%;
  background: linear-gradient(155deg, #4a9fff, #004af2 72%);
  color: #fff;
  font-size: 1.03rem;
  font-weight: 750;
}
.material-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.material-grid li { display: flex; align-items: flex-start; gap: 9px; padding: 13px 11px; border: 1px solid #e4effd; border-radius: 9px; background: #ecf5ff; }
.material-grid li > span { display: grid; flex: none; place-items: center; width: 21px; height: 21px; border-radius: 5px; background: var(--blue); color: #fff; font-size: 0.78rem; }
.support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.support-grid article { display: flex; align-items: flex-start; gap: 11px; padding: 14px 12px; }
.faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid article { padding: 13px; }
.faq-grid h3, .faq-grid p { display: flex; gap: 8px; align-items: flex-start; }
.faq-grid h3 > span, .faq-grid p > span { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; }
.faq-grid h3 > span { background: #3269de; color: #fff; }
.faq-grid p > span { background: #eaf0f8; color: #405575; }

.consult {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: 16px;
  background: radial-gradient(ellipse at 5% 135%, #3f95fb 0 38%, transparent 39%), linear-gradient(120deg, #0755ec, #2778f4 65%, #63b4fa);
  color: #fff;
  scroll-margin-top: 22px;
}
.consult-intro h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.28; letter-spacing: -0.04em; }
.consult-intro p { margin: 11px 0 18px; color: #f1f8ff; line-height: 1.55; }
.consult-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.consult-contacts a, .consult-contacts button {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 7px;
  background: rgb(255 255 255 / 13%);
  color: #fff;
  font-size: 0.81rem;
}
.consult-contacts a:hover, .consult-contacts button:hover { background: rgb(255 255 255 / 24%); }
.consult-form { display: grid; min-width: 0; gap: 8px; padding: 16px; border-radius: 12px; background: #fff; color: #172740; box-shadow: 0 8px 24px rgb(2 41 115 / 13%); }
.field { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 0.87rem; }
.field > span { font-weight: 600; }
.field input, .field select, .field textarea {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #ccd9eb;
  border-radius: 5px;
  background: #fbfdff;
  color: #14223a;
  font-size: 0.88rem;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #c44223; }
.field .field-feedback { grid-column: 2; color: #862a17; font-size: 0.78rem; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: 7px; color: #46566b; font-size: 0.76rem; line-height: 1.55; }
.consent input { margin: 3px 0 0; accent-color: var(--blue); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; min-height: 38px; padding-block: 6px; }
.submit:disabled { cursor: wait; opacity: 0.72; }
.form-status { min-height: 2.1rem; margin: 0; padding: 6px 8px; border-radius: 5px; font-size: 0.87rem; line-height: 1.5; }
.form-status[data-state="pending"] { background: #edf4ff; color: #164489; }
.form-status[data-state="success"] { background: #e9f8f1; color: #145237; }
.form-status[data-state="error"] { background: #fff1ed; color: #862a17; }

.site-footer { margin-top: 25px; border-top: 1px solid var(--line); background: #f7faff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 11px 24px; padding-block: 18px 21px; font-size: 0.87rem; }
.footer-inner p { margin: 5px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-links a { color: var(--deep-blue); }
.footer-links a:hover { text-decoration: underline; }

.quick-contact { position: fixed; z-index: 2; top: 42%; right: 12px; display: grid; width: 88px; gap: 8px; text-align: center; }
.quick-primary, .quick-links { overflow: hidden; border-radius: 10px; box-shadow: 0 4px 19px rgb(16 48 109 / 13%); }
.quick-primary { display: grid; gap: 6px; padding: 8px 5px 6px; background: linear-gradient(160deg, #3a94ff, #0454ec); color: #fff; font-size: 0.88rem; }
.quick-primary span { font-size: 1.6rem; }
.quick-primary small { display: block; padding: 5px 0; border-radius: 5px; background: #bd4015; font-size: 0.72rem; }
.quick-links { display: grid; border: 1px solid var(--line); background: #fff; }
.quick-links a, .quick-links button { display: grid; gap: 3px; min-height: 48px; place-content: center; border: 0; border-bottom: 1px solid #eef3fa; background: #fff; color: #405570; font-size: 0.71rem; }
.quick-links a:hover, .quick-links button:hover { background: #f0f6ff; }
.quick-links span { font-size: 1rem; }
.mobile-actions { display: none; }

.issue-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 26px); padding: 25px; border: 1px solid var(--line); border-radius: 15px; color: #14223a; overscroll-behavior-y: contain; }
.issue-dialog::backdrop { background: rgb(9 24 53 / 58%); }
.issue-dialog h2 { margin: 0 32px 10px 0; }
.issue-dialog p { color: var(--muted); line-height: 1.65; }
.dialog-close { position: absolute; top: 10px; right: 11px; min-width: 34px; min-height: 34px; border: 0; border-radius: 5px; background: #edf4ff; color: #253b5d; font-size: 1.3rem; }
.toast { position: fixed; z-index: 5; right: 18px; bottom: 15px; max-width: calc(100% - 36px); margin: 0; padding: 10px 14px; border-radius: 8px; background: #142d59; color: #fff; font-size: 0.9rem; box-shadow: var(--shadow); }

@media (max-width: 1420px) {
  .quick-contact { display: none; }
}
@media (max-width: 970px) {
  .hero-highlights { display: none; }
  .hero-art { right: 0; }
  .main-nav { gap: 13px; }
  .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html { --dock-clearance: calc(66px + env(safe-area-inset-bottom)); scroll-padding: 10px 0 var(--dock-clearance); scrollbar-gutter: auto; }
  body { padding-bottom: var(--dock-clearance); }
  .site-header { position: static; }
  .shell { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .brand strong { font-size: 1.07rem; }
  .brand small { font-size: 0.65rem; }
  .shield { width: 30px; height: 35px; }
  .header-phone { gap: 5px; }
  .header-phone strong { font-size: 0.95rem; }
  .header-phone > span:first-child { display: none; }
  .main-nav { order: 3; flex: 1 0 100%; min-height: 43px; justify-content: space-between; gap: 7px; }
  .main-nav a { font-size: 0.79rem; }
  .main-nav a[aria-current]::after { bottom: 4px; }
  .hero { min-height: 0; }
  .hero-art { inset: 0 0 0 27%; opacity: 0.32; }
  .hero-art img { object-position: 76% 20%; }
  .hero-copy { padding-block: 26px; }
  .hero h1 span { display: block; }
  .hero-checks { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 7px 11px; margin-block: 14px; }
  .hero-summary { margin-top: 10px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 40px; padding-inline: 10px; font-size: 0.85rem; }
  .problem-grid, .process-grid, .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-button { min-height: 35px; }
  .process-grid { gap: 10px; }
  .process-grid li:not(:last-child)::after { display: none; }
  .section { margin-bottom: 23px; }
  .section-heading a { margin-left: 0; }
  .faq-grid, .consult { grid-template-columns: 1fr; }
  .consult { gap: 14px; padding: 16px; }
  .consult-intro p { margin-bottom: 12px; }
  .consult-form { padding: 12px; }
  .field { grid-template-columns: 59px minmax(0, 1fr); gap: 6px; }
  .field input, .field select, .field textarea { min-height: 42px; font-size: 16px; }
  .mobile-actions {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -3px 14px rgb(18 61 123 / 8%);
  }
  .mobile-actions .button { min-height: 44px; padding: 7px 10px; font-size: 0.9rem; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .brand { gap: 5px; }
  .brand small { display: none; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .detail-button { transition: background-color 130ms, border-color 130ms; }
  .issue-dialog:modal, #support-chat:modal { animation: dialog-in 140ms ease-out; }
  @keyframes dialog-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

#support-chat {
  border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 26px); color: #172849; box-shadow: 0 20px 75px #122e5960;
  overscroll-behavior-y: contain;
}
#support-chat::backdrop { background: #10213d80; }
.chat-header { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #0755d8; color: white; }
.chat-header h2 { font-size: 20px; margin: 0; }
.chat-header p { font-size: 13px; margin: 3px 0 0; }
.chat-header button { border: 0; border-radius: 8px; min-width: 44px; min-height: 44px; color: white; background: #ffffff24; font-size: 24px; cursor: pointer; }
.chat-content { padding: 14px 18px; font-size: 14px; }
.chat-content form p, .chat-content > p { margin: 0 0 9px; }
.chat-content label { display: grid; gap: 4px; margin-bottom: 10px; }
.chat-content input:not([type=checkbox]), .chat-content textarea {
  border: 1px solid #b7c6da; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0;
  color: inherit; font: inherit; font-size: 16px; background: white;
}
.chat-content textarea { resize: vertical; }
.chat-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-content label.chat-consent { display: flex; align-items: center; }
.chat-content .button { min-height: 42px; width: 100%; }
.chat-messages { max-height: min(300px, 34dvh); overflow: auto; overscroll-behavior-y: contain; background: #f1f6ff; padding: 9px; border-radius: 10px; margin-bottom: 9px; }
.chat-bubble { width: fit-content; max-width: 92%; border-radius: 10px; padding: 7px 10px; background: white; margin: 5px 0 8px; overflow-wrap: anywhere; }
.chat-bubble.visitor { margin-left: auto; background: #d7e7ff; }
.chat-bubble small { display: block; color: #425a7a; }
.chat-bubble p { white-space: pre-wrap; margin: 2px 0 0; }
#chat-feedback:not(:empty) { margin: 8px 0; color: #9a3f0b; }
.chat-privacy, #chat-receipt { color: #425a7a; font-size: 12px; }
.chat-content .chat-privacy { margin: 8px 0 0; }
.chat-privacy a { color: #0755d8; white-space: nowrap; }
