:root {
  --ink: #0b0d0f;
  --ink-soft: #15181c;
  --ink-3: #1d2127;
  --paper: #f5f2ec;
  --paper-2: #ece7dd;
  --white: #ffffff;
  --orange: #ff4d00;
  --orange-2: #ff7a2f;
  --orange-soft: rgba(255, 77, 0, 0.1);
  --orange-text: #c2410c;
  --orange-btn: #d63a00;
  --muted: #646b76;
  --muted-light: #9aa1ab;
  --line: rgba(11, 13, 15, 0.12);
  --line-strong: rgba(11, 13, 15, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 6px;
  --radius-lg: 14px;
  --container: 1240px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "DIN Alternate", "Helvetica Neue", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 48px), 1440px);
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section-sm {
  padding: 72px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-paper-2 {
  background: var(--paper-2);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--orange-text);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.section-dark .eyebrow,
.page-hero .eyebrow,
.cta .eyebrow {
  color: var(--orange-2);
}

.display {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(32px, 4.1vw, 56px);
  line-height: 1.1;
}

.h3 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.3;
}

.lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.66);
}

.text-orange {
  color: var(--orange);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 58px;
}

.section-head .head-main {
  max-width: 760px;
}

.section-head .head-side {
  max-width: 380px;
  padding-bottom: 6px;
}

.section-head .head-side p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.section-dark .section-head .head-side p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn-primary {
  background: var(--orange-btn);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--orange-btn);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--orange-btn);
  color: var(--white);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.25s ease;
}

.link-arrow::after {
  content: "↗";
  font-size: 15px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--orange-text);
}

.link-arrow:hover::after {
  transform: translate(3px, -3px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: var(--header-h);
  background: rgba(245, 242, 236, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 242, 236, 0.97);
  box-shadow: 0 10px 40px rgba(11, 13, 15, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 48px), 1440px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 2px;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #4b5563;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4048;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .btn {
  min-height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 9, 11, 0.96) 0%, rgba(7, 9, 11, 0.82) 42%, rgba(7, 9, 11, 0.36) 100%), url("../images/auto-exhibition.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1.08);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 64px;
  align-items: end;
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.hero-copy {
  max-width: 860px;
}

.hero .eyebrow {
  color: var(--orange-2);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero-title {
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.2s forwards;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--orange);
}

.hero-sub {
  max-width: 660px;
  margin-top: 28px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.5s forwards;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.62s forwards;
}

.hero-panel {
  position: relative;
  padding: 30px;
  background: rgba(13, 16, 19, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.55s forwards;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 3px;
  background: var(--orange);
}

.hero-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.hero-panel-label .dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-2);
}

.hero-panel-label .dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.16);
  animation: pulse 2s infinite;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-stat {
  padding: 22px 18px;
  background: rgba(11, 13, 15, 0.72);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat strong em {
  font-style: normal;
  color: var(--orange);
  font-size: 0.55em;
}

.hero-stat span {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.16);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 77, 0, 0.04);
  }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 20px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.marquee-item::after {
  content: "✦";
  color: var(--orange);
  font-size: 12px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Intro / stats strip ---------- */

.intro {
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: start;
}

.intro-copy .h2 {
  max-width: 620px;
}

.intro-copy p {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  line-height: 2;
}

.intro-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  padding: 30px 26px;
  background: var(--paper);
}

.metric strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.metric strong em {
  font-style: normal;
  color: var(--orange);
  font-size: 0.5em;
}

.metric span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.intro-signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.intro-signature .sig-mark {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.intro-signature p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 34px 32px 30px;
  background: var(--paper);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.service-card .service-num {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange-text);
}

.service-card .service-icon {
  width: 38px;
  height: 38px;
  margin: 34px 0 26px;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.service-card h3 {
  font-size: 22px;
}

.service-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.service-card .service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.service-card .service-foot::after {
  content: "↗";
  font-size: 16px;
}

.service-card:hover {
  background: var(--ink);
  color: var(--white);
}

.service-card:hover .service-icon,
.service-card:hover .service-num {
  color: var(--orange-2);
}

.service-card:hover p,
.service-card:hover .service-foot {
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Advantages ---------- */

.advantage-banner {
  position: relative;
  margin-bottom: 1px;
  overflow: hidden;
  background: var(--ink);
}

.advantage-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.62;
}

.advantage-banner .banner-label {
  position: absolute;
  left: 40px;
  bottom: 34px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  color: var(--white);
}

.advantage-banner .banner-label strong {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.advantage-banner .banner-label span {
  padding-bottom: 4px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange-2);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 38px 34px;
  background: var(--white);
  border-top: 3px solid var(--ink);
  transition: border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.advantage-card:hover {
  border-top-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(11, 13, 15, 0.08);
}

.advantage-card .adv-num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange-text);
}

.advantage-card h3 {
  margin-top: 26px;
  font-size: 23px;
}

.advantage-card p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 78px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 112px;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-media {
  position: relative;
}

.feature-media::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 96px;
  height: 96px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  pointer-events: none;
}

.feature-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  pointer-events: none;
}

.feature-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.section-dark .feature-media::before,
.section-dark .feature-media::after {
  border-color: var(--orange-2);
}

.feature-copy .h3 {
  max-width: 520px;
}

.feature-copy > p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 2;
}

.section-dark .feature-copy > p {
  color: rgba(255, 255, 255, 0.64);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
}

.section-dark .feature-list li {
  color: rgba(255, 255, 255, 0.86);
}

.feature-list .tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
}

.feature-list .tick svg {
  width: 11px;
  height: 11px;
}

.feature-list strong {
  display: block;
  font-weight: 700;
}

.feature-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.section-dark .feature-list span {
  color: rgba(255, 255, 255, 0.5);
}

.feature-quote {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.section-dark .feature-quote {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Cases ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.case-item {
  position: relative;
  display: block;
  grid-column: span 4;
  min-height: 300px;
  overflow: hidden;
  background: var(--ink);
}

.case-item.wide {
  grid-column: span 8;
}

.case-item.tall {
  min-height: 420px;
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.5s ease;
}

.case-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 11, 0.86) 0%, rgba(7, 9, 11, 0.1) 62%, transparent 100%);
  transition: opacity 0.4s ease;
}

.case-item:hover img {
  transform: scale(1.06);
  opacity: 0.86;
}

.case-info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  color: var(--white);
}

.case-info .case-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange-2);
  text-transform: uppercase;
}

.case-info h3 {
  font-size: 21px;
}

.case-info p {
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.case-item .case-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background 0.3s ease;
}

.case-item:hover .case-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--orange);
  border-color: var(--orange);
}

/* ---------- About preview ---------- */

.about-preview {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-media .media-badge {
  position: absolute;
  right: -22px;
  bottom: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 18px;
  background: var(--orange-btn);
  color: var(--white);
}

.about-media .media-badge strong {
  font-family: var(--font-num);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.about-media .media-badge span {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.about-copy p {
  margin-top: 22px;
  color: var(--muted);
  line-height: 2;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-points div {
  padding: 18px 20px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.about-points div span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- CTA / contact form ---------- */

.cta {
  position: relative;
  padding: 100px 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 9, 11, 0.97) 0%, rgba(7, 9, 11, 0.85) 48%, rgba(7, 9, 11, 0.55) 100%), url("../images/cta-contact.svg");
  background-size: cover;
  background-position: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.24) 0%, transparent 68%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-copy .h2 {
  max-width: 540px;
}

.cta-copy p {
  max-width: 440px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 2;
}

.cta-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.cta-contact-list a,
.cta-contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-contact-list svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.form-card {
  padding: 42px 40px;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--orange);
}

.form-card h3 {
  font-size: 24px;
}

.form-card > p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3f4650;
}

.field label .req {
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

.field .field-error {
  display: none;
  font-size: 12px;
  color: #d92d20;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d92d20;
}

.field.is-invalid .field-error {
  display: block;
}

.form-card .form-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.form-card .form-note a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card .btn {
  margin-top: 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #07090b;
  color: var(--white);
  padding: 76px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.62);
}

.footer-brand > p {
  max-width: 340px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-col .footer-title {
  margin-bottom: 22px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a,
.footer-col li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--orange-2);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.8;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--orange);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: var(--orange-2);
}

.icp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 77, 0, 0.4);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: var(--font-num);
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.icp-link:hover {
  background: rgba(255, 77, 0, 0.14);
  border-color: var(--orange);
  color: var(--white) !important;
}

.icp-link svg {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.footer-wordmark {
  overflow: hidden;
  padding: 10px 0 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  font-size: clamp(72px, 15vw, 210px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 98px) 0 82px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 9, 11, 0.94) 0%, rgba(7, 9, 11, 0.7) 100%), url("../images/auto-exhibition.svg");
  background-size: cover;
  background-position: center 58%;
  opacity: 0.5;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 620px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--orange-2);
}

.breadcrumb span {
  color: var(--orange-2);
}

/* ---------- About page ---------- */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story .h2 {
  max-width: 560px;
}

.about-story p {
  margin-top: 22px;
  color: var(--muted);
  line-height: 2;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
}

.value-card .value-index {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange-text);
}

.value-card h3 {
  margin-top: 22px;
  font-size: 22px;
}

.value-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.section-dark .timeline,
.section-dark .timeline-item {
  border-color: var(--line-dark);
}

.section-dark .timeline-item strong {
  color: var(--orange-2);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item strong {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
}

.timeline-item h3 {
  font-size: 19px;
}

.timeline-item p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Services page ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:first-of-type {
  padding-top: 0;
}

.service-detail:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-detail-head .service-index {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange-text);
}

.service-detail-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 40px);
}

.service-detail-head p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-detail-body img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-detail-body ul {
  display: grid;
  gap: 18px;
}

.service-detail-body li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.service-detail-body li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-detail-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.service-detail-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---------- Cases page ---------- */

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.case-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-masonry .case-item {
  grid-column: auto;
  min-height: 320px;
}

.case-masonry .case-item:nth-child(1) {
  grid-column: span 2;
  min-height: 380px;
}

.case-masonry .case-item.is-hidden {
  display: none;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-info-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 24px;
  background: var(--paper);
}

.contact-info-item .ci-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--orange);
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
}

.contact-info-item h3 {
  font-size: 15px;
}

.contact-info-item p,
.contact-info-item a {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.contact-info-item a:hover {
  color: var(--orange-text);
}

.contact-form-panel {
  padding: 44px 40px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 24px 60px rgba(11, 13, 15, 0.06);
}

.contact-form-panel h2 {
  font-size: 26px;
}

.contact-form-panel > p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.map-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 80px;
  padding: 38px 42px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.map-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.map-strip > * {
  position: relative;
  z-index: 2;
}

.map-strip h3 {
  font-size: 24px;
}

.map-strip p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Auth pages ---------- */

.auth-section {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--paper);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(7, 9, 11, 0.96) 0%, rgba(7, 9, 11, 0.55) 60%, rgba(7, 9, 11, 0.4) 100%), url("../images/auto-exhibition.svg");
  background-size: cover;
  background-position: center;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

.auth-visual > * {
  position: relative;
  z-index: 2;
}

.auth-visual .brand-name {
  color: var(--white);
}

.auth-visual .brand-sub {
  color: rgba(255, 255, 255, 0.46);
}

.auth-quote {
  max-width: 460px;
  margin-top: auto;
  padding-top: 60px;
}

.auth-quote p {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.auth-quote p span {
  color: var(--orange);
}

.auth-quote small {
  display: block;
  margin-top: 22px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
}

.auth-visual .auth-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

.auth-box {
  width: min(100%, 430px);
}

.auth-box h1 {
  font-size: clamp(30px, 3vw, 40px);
}

.auth-box .auth-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.demo-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 12px 14px;
  background: rgba(255, 77, 0, 0.07);
  border: 1px solid rgba(255, 77, 0, 0.22);
  font-size: 12px;
  line-height: 1.7;
  color: #8a3a13;
}

.demo-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.auth-tabs {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  padding: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.auth-tab.is-active {
  color: var(--ink);
}

.auth-tab.is-active::after {
  transform: scaleX(1);
}

.auth-form {
  margin-top: 28px;
}

.auth-form .field + .field {
  margin-top: 18px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  padding-left: 44px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-row .field + .field {
  margin-top: 0;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
}

.code-btn {
  min-height: 49px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.code-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.code-btn:disabled {
  color: var(--muted-light);
  cursor: not-allowed;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 13px;
}

.auth-options a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.auth-options a:hover {
  color: var(--orange-text);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.check a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-field {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.agreement-field.is-invalid {
  border-color: #d92d20;
  background: rgba(217, 45, 32, 0.04);
}

.agreement-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #d92d20;
}

.agreement-field.is-invalid .agreement-error {
  display: block;
}

.auth-form .btn {
  margin-top: 24px;
}

.auth-foot {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.auth-foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-foot a:hover {
  color: var(--orange-text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-agreement-note {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

.auth-agreement-note a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: calc(var(--header-h) + 76px) 0 56px;
  background: var(--ink);
  color: var(--white);
}

.legal-hero .eyebrow {
  color: var(--orange-2);
}

.legal-hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.legal-section {
  padding: 64px 0 100px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.legal-toc h2 {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: block;
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--muted-light);
}

.legal-toc a:hover {
  color: var(--orange);
}

.legal-body {
  padding: 52px 56px;
  background: var(--white);
  border: 1px solid var(--line);
}

.legal-intro {
  padding-bottom: 30px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

.legal-body section {
  padding-top: 34px;
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.legal-body h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 21px;
}

.legal-body h2 .legal-num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-text);
  letter-spacing: 0.06em;
}

.legal-body h3 {
  margin: 22px 0 10px;
  font-size: 16px;
}

.legal-body p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 2;
  color: #3c434d;
}

.legal-body ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 4px;
}

.legal-body ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.95;
  color: #3c434d;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 1px;
}

.legal-body a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.9;
  color: #3c434d;
}

.legal-contact {
  margin-top: 18px;
  padding: 22px 24px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 2;
}

.legal-contact strong {
  color: var(--white);
}

.legal-contact a {
  color: var(--orange-2);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(calc(100% - 40px), 440px);
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--orange);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, 24px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s ease, visibility 0.3s;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-2);
}

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

.toast p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.64);
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

/* ---------- 404 ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--paper);
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: var(--font-num);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--orange-btn);
}

.error-inner h1 {
  margin-top: 24px;
  font-size: clamp(30px, 4vw, 48px);
}

.error-inner p {
  margin-top: 16px;
  color: var(--muted);
}

.error-inner .btn {
  margin-top: 30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav a {
    padding: 10px 11px;
  }

  .main-nav a::after {
    left: 11px;
    right: 11px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    gap: 40px;
  }

  .intro-grid {
    gap: 56px;
  }

  .feature-row {
    gap: 52px;
  }

  .about-preview {
    gap: 56px;
  }

  .cta-inner {
    gap: 50px;
  }

  .footer-top {
    gap: 40px;
  }

  .service-detail {
    grid-template-columns: 280px 1fr;
    gap: 44px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 20px) 28px 40px;
    background: var(--paper);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s;
  }

  .nav-open .mobile-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-nav nav {
    display: grid;
    gap: 2px;
  }

  .mobile-nav nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .mobile-nav nav a.is-active {
    color: var(--orange);
  }

  .mobile-nav .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .mobile-nav .mobile-meta {
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 72px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
  }

  .hero-panel {
    max-width: 520px;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 84px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 42px;
  }

  .intro-grid,
  .about-story,
  .feature-row,
  .about-preview,
  .cta-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy {
    order: initial;
  }

  .feature-row + .feature-row {
    margin-top: 84px;
  }

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

  .advantages-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .advantage-banner img {
    height: 260px;
  }

  .about-media img {
    aspect-ratio: 16 / 10;
  }

  .about-media .media-badge {
    right: 22px;
  }

  .case-masonry {
    grid-template-columns: 1fr 1fr;
  }

  .case-masonry .case-item:nth-child(1),
  .case-masonry .case-item:nth-child(8) {
    grid-column: span 2;
  }

  .cases-grid {
    gap: 14px;
  }

  .case-item,
  .case-item.wide {
    grid-column: span 6;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 56px 28px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-toc {
    position: static;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: calc(100% - 36px);
  }

  .header-inner {
    width: calc(100% - 36px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    letter-spacing: 0.18em;
  }

  .hero {
    padding-top: calc(var(--header-h) + 52px);
    padding-bottom: 62px;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-sub {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 0 16px;
  }

  .hero-tags {
    gap: 8px 18px;
    margin-top: 32px;
    font-size: 9.5px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-stat {
    padding: 18px 14px;
  }

  .section {
    padding: 68px 0;
  }

  .section-sm {
    padding: 52px 0;
  }

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

  .service-card {
    min-height: 260px;
    padding: 28px 26px;
  }

  .intro-side {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 24px 20px;
  }

  .form-card,
  .contact-form-panel {
    padding: 28px 22px;
  }

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

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

  .case-item,
  .case-item.wide {
    grid-column: auto;
    min-height: 260px;
  }

  .case-masonry {
    grid-template-columns: 1fr;
  }

  .case-masonry .case-item:nth-child(1),
  .case-masonry .case-item:nth-child(8) {
    grid-column: auto;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-body {
    padding: 28px 22px;
  }

  .legal-hero {
    padding-bottom: 42px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-detail-body {
    grid-template-columns: 1fr;
  }

  .map-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row .field + .field {
    margin-top: 18px;
  }

  .auth-panel {
    padding: 40px 18px;
  }

  .auth-box {
    max-width: 100%;
  }

  .toast {
    bottom: 18px;
  }

  .mobile-nav nav a {
    font-size: 22px;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 56px;
  }
}


@media (max-width: 380px) {
  .hero-title {
    font-size: 35px;
  }

  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-bg,
  .marquee-track {
    animation: none;
  }
}
