@charset "UTF-8";

:root {
  --blue: #1479ff;
  --blue-deep: #0752cc;
  --blue-light: #9cc8ff;
  --ink: #080f1d;
  --ink-soft: #101a2e;
  --paper: #f8fbff;
  --white: #ffffff;
  --muted: #66758b;
  --line: #dfe9f6;
  --radius: 8px;
  --shell: 1220px;
  --header-height: 76px;
  --shadow: 0 18px 42px rgba(4, 25, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("/assets/icons/download.svg"); }
.icon-menu::before { background-image: url("/assets/icons/menu.svg"); }
.icon-close::before { background-image: url("/assets/icons/close.svg"); }
.icon-plus::before { background-image: url("/assets/icons/plus.svg"); }
.icon-bolt::before { background-image: url("/assets/icons/bolt.svg"); }
.icon-shield::before { background-image: url("/assets/icons/shield.svg"); }
.icon-route::before { background-image: url("/assets/icons/route.svg"); }
.icon-book::before { background-image: url("/assets/icons/book.svg"); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.97);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(21px, 3vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-download {
  min-width: 132px;
  padding: 0 15px;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
}

.nav-download .icon,
.button-primary .icon {
  filter: invert(37%) sepia(96%) saturate(2900%) hue-rotate(203deg) brightness(102%) contrast(104%);
}

.nav-download:hover {
  border-color: var(--blue-deep);
  background: var(--blue);
  color: #fff;
}

.nav-download:hover .icon {
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.hero {
  padding: 70px 0 68px;
  background:
    radial-gradient(circle at 82% 30%, rgba(20, 121, 255, 0.1), transparent 30%),
    linear-gradient(rgba(20, 121, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 121, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 520px);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 585px;
  padding: 20px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.hero h1,
.section-heading h2,
.download h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
}

.hero-title {
  margin: 15px 0 16px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.hero-summary {
  max-width: 540px;
  margin: 0 0 29px;
  color: var(--muted);
  font-size: 16px;
}

.button {
  min-width: 174px;
  padding: 0 23px;
}

.button-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}

.button-primary .icon {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  background: var(--blue-deep);
  transform: translate(-2px, -2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: 0;
  align-items: center;
}

.droiddeck-card {
  width: 100%;
  max-width: 520px;
  margin: 0 0 0 auto;
  padding: 18px;
  border: 1px solid #cfe1f8;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.droiddeck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf3fb;
  color: #74839a;
  font-size: 12px;
}

.droiddeck-head b {
  color: var(--ink);
  font-size: 15px;
}

.droiddeck-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  margin-top: 12px;
}

.droiddeck-main {
  min-width: 0;
  margin: 0;
}

.droiddeck-main img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.droiddeck-main figcaption {
  margin-top: 7px;
  color: #77869b;
  font-size: 11px;
  text-align: center;
}

.droiddeck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.droiddeck-grid span {
  display: block;
  aspect-ratio: 1;
  border: 1px solid #d8e8fa;
  border-radius: 7px;
  background: #f2f7fd;
}

.droiddeck-grid span.on {
  background: linear-gradient(135deg, var(--blue), #52c7ff);
}

.droiddeck-grid span.new {
  border: 1px dashed #8fbced;
  background: #fff;
}

.droiddeck-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf3fb;
  color: #77869b;
  font-size: 11px;
}

.routes {
  padding: 72px 0 80px;
  color: #fff;
  background: #091222;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 39px;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-dark .eyebrow {
  color: #66b5ff;
}

.section-heading h2,
.download h2 {
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.18;
}

.section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-heading-dark > p:last-child {
  color: #a9b7ca;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #253651;
  border-radius: var(--radius);
}

.route-card {
  min-height: 206px;
  padding: 26px 25px 22px;
  border-left: 3px solid #1b5da7;
  background: rgba(16, 30, 52, 0.78);
}

.route-card + .route-card {
  border-left: 3px solid #1b5da7;
}

.route-card .icon {
  width: 29px;
  height: 29px;
  filter: invert(52%) sepia(99%) saturate(3232%) hue-rotate(194deg) brightness(104%) contrast(102%);
}

.route-card h3 {
  margin: 18px 0 7px;
  font-size: 19px;
}

.route-card p {
  margin: 0;
  color: #abb9cb;
  font-size: 14px;
}

.story-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.story-notes p {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #111d31;
  color: #b8c5d6;
  font-size: 13px;
  line-height: 1.85;
}

.screens {
  padding: 82px 0 88px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.screens-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  column-gap: 46px;
  align-items: end;
}

.screens-heading .eyebrow,
.screens-heading h2 {
  grid-column: 1;
}

.screens-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0 0 4px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 2.4vw, 28px);
}

.screen-card {
  min-width: 0;
  margin: 0;
}

.screen-card:nth-child(2) {
  margin-top: 34px;
}

.screen-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(8, 15, 29, 0.09);
}

.screen-card figcaption {
  display: grid;
  grid-template-columns: 31px 1fr;
  column-gap: 5px;
  margin-top: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.screen-card figcaption b {
  color: var(--blue-deep);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.screen-card figcaption small {
  grid-column: 2;
  color: #77869b;
  font-size: 12px;
  font-weight: 400;
}

.faq {
  padding: 79px 0 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(430px, 1.18fr);
  gap: 68px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item,
.official-fold {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.official-fold {
  border-color: var(--blue);
}

.faq-item summary,
.official-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker,
.official-fold summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3,
.official-fold summary h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-item summary .icon,
.official-fold summary .icon {
  flex: none;
  filter: invert(36%) sepia(89%) saturate(3000%) hue-rotate(200deg) brightness(99%) contrast(104%);
  transition: transform 180ms ease;
}

.faq-item[open] summary .icon,
.official-fold[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-answer .official-note {
  margin-top: 8px;
  color: #74839a;
  font-size: 12px;
}

.official {
  padding: 28px 0 78px;
}

.official-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f1f7ff;
}

.official-inner h2 {
  margin: 6px 0 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.official-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.button-ghost {
  min-width: 136px;
  padding: 0 22px;
  border: 1px solid var(--blue-deep);
  border-radius: var(--radius);
  color: var(--blue-deep);
  background: #fff;
  font-weight: 800;
}

.button-ghost:hover {
  color: #fff;
  background: var(--blue-deep);
}

.reviews {
  padding: 78px 0 82px;
  background: #eef5fd;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dce8f6;
  border-radius: var(--radius);
  background: #fff;
}

.review-card:nth-child(even) {
  margin-top: 22px;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 33px;
  min-height: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.review-card header b {
  color: #cee3fb;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.review-card > p {
  margin: 19px 0 17px;
  color: #435168;
  font-size: 14px;
  line-height: 1.82;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf3fb;
  color: #74839a;
  font-size: 12px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.review-card time {
  margin-left: auto;
}

.download {
  padding: 32px 0;
  color: #fff;
  background: #091222;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  padding: 30px 45px;
  border-left: 5px solid var(--blue);
  gap: 24px;
  background: #101c30;
}

.download .eyebrow {
  margin-bottom: 7px;
  color: var(--blue-light);
}

.download h2 {
  font-size: 37px;
}

.download-inner > div > p:last-child {
  margin: 6px 0 0;
  color: #b6c2d2;
  font-size: 14px;
}

.button-light {
  min-width: 192px;
  border: 1px solid #fff;
  color: var(--ink);
  background: #fff;
}

.button-light .icon {
  filter: brightness(0);
}

.button-light:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.button-light:hover .icon {
  filter: brightness(0) invert(1);
}

.site-footer {
  padding: 39px 0 16px;
  color: #dbe3ed;
  background: #070c15;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: 40px auto;
  column-gap: 9px;
  align-items: center;
}

.footer-brand img {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
}

.footer-brand b {
  color: #fff;
  font-size: 20px;
}

.footer-brand p {
  margin: 0;
  color: #8695a9;
  font-size: 12px;
}

.site-footer a,
.footer-bottom {
  color: #8695a9;
  font-size: 12px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #1b2637;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-legal a {
  white-space: nowrap;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 152px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(355px, 0.9fr);
    gap: 32px;
  }

  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-card:nth-child(3) {
    border-top: 1px solid #253651;
  }

  .route-card:nth-child(4) {
    border-top: 1px solid #253651;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--paper);
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 10px;
    row-gap: 0;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 17px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 36px;
    margin-left: auto;
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-download .icon {
    width: 15px;
    height: 15px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 36px;
    height: 36px;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 13px;
  }

  .primary-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    padding: 45px 0 43px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-copy {
    max-width: 600px;
    padding: 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-title {
    font-size: 27px;
  }

  .hero-summary {
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
  }

  .hero-visual {
    display: block;
  }

  .droiddeck-card {
    max-width: 430px;
    margin: 0 auto;
  }

  .routes,
  .screens,
  .reviews {
    padding: 55px 0;
  }

  .section-heading {
    margin-bottom: 29px;
  }

  .section-heading h2,
  .download h2 {
    font-size: 31px;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: auto;
    padding: 23px;
  }

  .route-card + .route-card,
  .route-card:nth-child(3),
  .route-card:nth-child(4) {
    border-top: 1px solid #253651;
    border-left: 3px solid #1b5da7;
  }

  .story-notes {
    grid-template-columns: 1fr;
  }

  .screens-heading {
    display: block;
  }

  .screens-heading > p:last-child {
    margin-top: 13px;
  }

  .screen-grid {
    display: flex;
    width: calc(100% + 16px);
    margin-right: -16px;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .screen-card,
  .screen-card:nth-child(2) {
    flex: 0 0 min(72vw, 310px);
    margin-top: 0;
    scroll-snap-align: start;
  }

  .faq {
    padding: 55px 0 18px;
  }

  .official {
    padding: 22px 0 55px;
  }

  .official-inner {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card,
  .review-card:nth-child(even) {
    min-height: auto;
    margin-top: 0;
  }

  .review-card time {
    font-size: 11px;
  }

  .download {
    padding: 18px 0;
  }

  .download-inner {
    display: grid;
    min-height: 0;
    padding: 27px 24px;
  }

  .button-light {
    width: 100%;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
    text-align: left;
  }

  .footer-legal {
    justify-content: flex-start;
  }

    .to-top {
    right: 16px;
    bottom: 140px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 15px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 36px;
    padding: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-title {
    font-size: 24px;
  }

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(20, 121, 255, 0.08), transparent 25%),
    var(--paper);
}

.page-header .nav-shell {
  grid-template-columns: 1fr auto;
}

.back-home {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.legal-main {
  padding-top: 58px;
  padding-bottom: 72px;
}

.legal-hero {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.legal-hero > p:last-child {
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-content,
.complaint-card,
.contact-card {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 15, 29, 0.06);
}

.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #516077;
  font-size: 14px;
  line-height: 1.9;
}

.legal-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-meta {
  margin: -20px auto 28px;
  color: #8090a6;
  font-size: 12px;
  text-align: center;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.map-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.map-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.map-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.map-card span {
  color: var(--muted);
  font-size: 13px;
}

.contact-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions .button {
  min-width: 156px;
}

.contact-actions .button-primary {
  box-shadow: none;
}

.button-secondary {
  border: 1px solid var(--blue);
  color: var(--blue-deep);
  background: #fff;
}

.complaint-card {
  max-width: 780px;
  padding: 32px 36px 36px;
}

.form-message {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
}

.form-message.success {
  color: #075c37;
  background: #e8f8f0;
}

.form-message.error {
  color: #9e1b1b;
  background: #fff0f0;
}

.complaint-form {
  display: grid;
  gap: 24px;
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span,
.form-field > label {
  font-size: 14px;
  font-weight: 800;
}

.required {
  color: #e32929;
  font-style: normal;
}

.field-tip {
  margin: -2px 0 0;
  color: #7c8ba0;
  font-size: 12px;
}

.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.type-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7faff;
  color: #45536a;
  cursor: pointer;
  font-size: 13px;
}

.type-item:has(input:checked) {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: #eaf3ff;
}

.type-item input {
  accent-color: var(--blue);
}

.complaint-form textarea,
.complaint-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.complaint-form textarea {
  min-height: 150px;
  padding: 13px;
  resize: vertical;
}

.complaint-form input[type="text"] {
  height: 46px;
  padding: 0 13px;
}

.complaint-form textarea:focus,
.complaint-form input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 121, 255, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-actions .submit {
  min-width: 132px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.form-actions .submit:hover {
  background: var(--blue-deep);
}

.form-actions .back {
  color: var(--muted);
  font-size: 13px;
}

.simple-footer {
  padding: 24px 0;
  color: #8796aa;
  background: #070c15;
}

.simple-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12px;
}

.simple-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.simple-footer a {
  color: #a9b5c5;
}

.simple-footer a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .legal-main {
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .legal-content,
  .complaint-card,
  .contact-card {
    padding: 24px 20px;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .submit,
  .contact-actions .button {
    width: 100%;
  }

  .simple-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
