:root {
  --white: #ffffff;
  --paper: #f6f7f4;
  --paper-2: #eef1ed;
  --ink: #171a1b;
  --muted: #67706e;
  --line: #dfe3df;
  --accent: #6f9b8d;
  --accent-deep: #3e6a5e;
  --accent-soft: #e5ede9;
  --radius: 10px;
  --page: min(1240px, calc(100% - 48px));
  --shadow: 0 24px 70px rgba(23,26,27,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.formal-site {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.formal-page { width: var(--page); margin-inline: auto; }

.formal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.formal-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.formal-logo {
  width: 128px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  background: transparent;
}
.formal-logo img {
  width: 128px;
  height: 128px;
  max-width: none;
  display: block;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translateY(-38px);
}
.formal-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.formal-nav::-webkit-scrollbar { display: none; }
.formal-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 13px;
  border-radius: 7px;
  color: #303736;
  font-size: 13px;
  transition: 200ms ease;
}
.formal-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 9px;
  height: 2px;
  background: var(--accent);
  transition: 200ms ease;
}
.formal-nav a:hover,
.formal-nav a:focus-visible,
.formal-nav a.active {
  transform: translateY(-2px);
  background: #f1f3ef;
  color: var(--accent-deep);
  box-shadow: 0 8px 18px rgba(23,26,27,.08);
  outline: none;
}
.formal-nav a:hover::after,
.formal-nav a:focus-visible::after,
.formal-nav a.active::after { left: 14px; right: 14px; }
.formal-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.formal-lang {
  width: 46px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.formal-contact-button,
.formal-primary,
.formal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 7px;
  font-weight: 800;
  transition: 200ms ease;
}
.formal-contact-button,
.formal-primary { background: var(--ink); color: #fff; }
.formal-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.88); color: var(--ink); }
.formal-contact-button:hover,
.formal-primary:hover,
.formal-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,26,27,.14); }

.formal-hero { padding: 18px 0 0; }
.formal-video-stage {
  min-height: min(690px, calc(100vh - 118px));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(90deg, rgba(12,17,16,.78), rgba(12,17,16,.16) 58%, rgba(12,17,16,.04)),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.34), transparent 21%),
    repeating-linear-gradient(115deg, #7f8985 0 42px, #69736f 42px 84px);
  box-shadow: var(--shadow);
}
.formal-video-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.42)),
    repeating-linear-gradient(90deg, transparent 0 19.9%, rgba(255,255,255,.08) 20%);
}
.formal-video-status {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .5px;
}
.formal-hero-copy {
  max-width: 800px;
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 76px);
  color: #fff;
}
.formal-kicker {
  margin: 0 0 15px;
  color: #b9d2ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.formal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(43px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -2.5px;
}
.formal-hero-copy > p:not(.formal-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.7;
}
.formal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.formal-scene-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(10,15,14,.68);
  backdrop-filter: blur(10px);
}
.formal-scene-rail div { padding: 15px 20px; color: rgba(255,255,255,.64); border-right: 1px solid rgba(255,255,255,.16); font-size: 12px; }
.formal-scene-rail div:last-child { border-right: 0; }
.formal-scene-rail strong { display: block; margin-bottom: 4px; color: #fff; font-size: 13px; }

.formal-section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.formal-section.soft { background: var(--paper); }
.formal-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: end;
  gap: 46px;
  margin-bottom: 34px;
}
.formal-section h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}
.formal-section-note { margin: 0; color: var(--muted); line-height: 1.75; }

.formal-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formal-choice {
  min-height: 340px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: 200ms ease;
}
.formal-choice:hover { transform: translateY(-5px); border-color: #b8c8c2; box-shadow: var(--shadow); }
.formal-choice::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -115px;
  border: 1px solid #cdd8d3;
  border-radius: 50%;
}
.formal-choice small { color: var(--accent-deep); font-weight: 900; }
.formal-choice h3 { margin: 72px 0 12px; font-size: 34px; }
.formal-choice p { max-width: 560px; color: var(--muted); line-height: 1.65; }
.formal-choice-link { position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; font-weight: 900; }
.formal-choice-link span { transition: 200ms ease; }
.formal-choice:hover .formal-choice-link span { transform: translateX(5px); }

.formal-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.formal-proof-card { min-height: 240px; padding: 24px; border-top: 3px solid var(--accent); background: var(--white); }
.formal-proof-card span { color: var(--accent-deep); font-size: 12px; font-weight: 900; }
.formal-proof-card h3 { margin: 74px 0 11px; font-size: 21px; }
.formal-proof-card p { color: var(--muted); line-height: 1.6; }

.formal-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.formal-video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: 200ms ease; }
.formal-video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.formal-video-placeholder {
  aspect-ratio: 16/10;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(111,155,141,.28), rgba(255,255,255,.05)),
    repeating-linear-gradient(130deg, #d9dfdb 0 34px, #cbd2ce 34px 68px);
}
.formal-play { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; transition: 200ms ease; }
.formal-video-card:hover .formal-play { transform: scale(1.08); }
.formal-video-placeholder small { position: absolute; left: 15px; bottom: 13px; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--muted); }
.formal-video-body { padding: 22px; }
.formal-video-body h3 { margin: 0 0 10px; font-size: 20px; }
.formal-video-body p { margin: 0; color: var(--muted); line-height: 1.6; }

.formal-process-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formal-step { min-height: 260px; padding: 24px 20px; border-right: 1px solid var(--line); }
.formal-step:last-child { border-right: 0; }
.formal-step span { color: var(--accent-deep); font-size: 12px; font-weight: 900; }
.formal-step h3 { margin: 76px 0 10px; font-size: 19px; }
.formal-step p { color: var(--muted); line-height: 1.6; }

.formal-cta {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}
.formal-cta-main { min-height: 370px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 12px; background: var(--ink); color: #fff; }
.formal-cta-main h2 { font-size: clamp(34px, 4vw, 55px); }
.formal-cta-main p { max-width: 660px; color: rgba(255,255,255,.65); line-height: 1.7; }
.formal-request-list { display: grid; gap: 10px; }
.formal-request-list div { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.formal-request-list strong { display: block; margin-bottom: 6px; }
.formal-request-list span { color: var(--muted); font-size: 13px; }

.formal-footer { padding: 38px 0; }
.formal-footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; color: var(--muted); font-size: 13px; }
.formal-footer strong { color: var(--ink); }

/* Unified public-page components. These classes are also used by app.js. */
.catalog-hero,
.contact-hero {
  padding: clamp(72px, 9vw, 132px) 0 64px;
  border-bottom: 1px solid var(--line);
}
.catalog-hero h1,
.contact-hero h1,
.model-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -2.4px;
}
.catalog-hero > p:last-child,
.contact-hero > p:last-child,
.model-hero > div > p:not(.kicker) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.section-tight { padding: 70px 0; border-bottom: 1px solid var(--line); }

.brand-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.brand-card {
  min-height: 154px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: 200ms ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: #b8c8c2;
  box-shadow: 0 18px 44px rgba(23,26,27,.09);
}
.brand-card span { margin-bottom: auto; color: var(--accent-deep); font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.brand-card strong { font-size: 20px; }
.brand-card small { margin-top: 5px; color: var(--muted); }

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: 200ms ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-visual {
  position: relative;
  min-height: 220px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(145deg, rgba(111,155,141,.20), rgba(255,255,255,.18)),
    repeating-linear-gradient(130deg, #edf0ed 0 34px, #e2e7e3 34px 68px);
}
.model-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model-visual span { position: relative; z-index: 1; }
.model-visual span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--accent-deep); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.model-body { padding: 22px; }
.model-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.model-body h3 { margin: 16px 0 8px; font-size: 23px; }
.model-body p { min-height: 50px; margin: 0; color: var(--muted); line-height: 1.55; }
.model-price { margin: 22px 0 16px; font-size: 18px; font-weight: 900; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: 200ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,26,27,.13); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.empty-state { padding: 28px; border: 1px dashed #bfc8c3; border-radius: var(--radius); background: var(--paper); color: var(--muted); }

.model-hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.kicker { margin: 0 0 15px; color: var(--accent-deep); font-size: 12px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.price-line { margin-top: 24px; font-size: 24px; font-weight: 900; }
.price-note { margin-top: 7px; color: var(--muted); font-size: 13px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-panel { min-height: 260px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius); background: var(--paper); border-top: 3px solid var(--accent); }
.detail-panel.has-image { position: relative; overflow: hidden; color: #fff; background: #1c2220; isolation: isolate; }
.detail-panel.has-image::before { position: absolute; z-index: -2; inset: 0; content: ""; background: var(--model-image) center / cover no-repeat; }
.detail-panel.has-image::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(16,22,20,.05), rgba(16,22,20,.82)); }
.detail-panel.has-image span, .detail-panel.has-image small { color: rgba(255,255,255,.85); }
.detail-panel span { margin-bottom: auto; color: var(--accent-deep); font-size: 12px; font-weight: 900; }
.detail-panel strong { font-size: 28px; }
.detail-panel small { margin-top: 8px; color: var(--muted); }
.detail-grid { width: var(--page); margin: 0 auto; padding: 70px 0 96px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.detail-main,
.detail-side { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.detail-main h2,
.detail-side h2 { margin: 0 0 22px; font-size: 27px; }
.detail-side p { color: var(--muted); line-height: 1.65; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.spec-list div { padding: 16px; display: flex; justify-content: space-between; gap: 16px; background: var(--white); }
.spec-list span { color: var(--muted); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.download-button { min-height: 52px; padding: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; font-weight: 800; transition: 200ms ease; }
.download-button { background: var(--white); color: var(--ink); text-decoration: none; }
.download-button:hover { border-color: #b8c8c2; background: var(--paper); }
.copy-link { width: 100%; margin-top: 12px; }
.detail-side .btn-secondary { width: 100%; margin-top: 9px; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.route-card { min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: 200ms ease; }
.route-card:hover { transform: translateY(-4px); border-color: #b8c8c2; box-shadow: var(--shadow); }
.route-card span { color: var(--accent-deep); font-size: 12px; font-weight: 900; }
.route-card h3 { margin: 72px 0 12px; font-size: 23px; }
.route-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.contact-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 56px; align-items: end; }
.contact-buttons { display: grid; gap: 10px; }
.contact-buttons a { min-height: 58px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 900; transition: 200ms ease; }
.contact-buttons a:hover { transform: translateY(-3px); border-color: #b8c8c2; background: var(--white); box-shadow: 0 14px 34px rgba(23,26,27,.08); }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-list article { min-height: 245px; padding: 24px 20px; border-right: 1px solid var(--line); }
.process-list article:last-child { border-right: 0; }
.process-list span { color: var(--accent-deep); font-size: 12px; font-weight: 900; }
.process-list h3 { margin: 72px 0 10px; font-size: 20px; }
.process-list p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 1020px) {
  .formal-header-inner { gap: 10px; }
  .formal-nav a { padding-inline: 10px; }
  .formal-contact-button { display: none; }
  .formal-proof-grid { grid-template-columns: 1fr 1fr; }
  .formal-process-list { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .formal-step { border-bottom: 1px solid var(--line); }
  .brand-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-grid, .route-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list article { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --page: calc(100% - 28px); }
  .formal-logo { width: 108px; }
  .formal-logo img { margin-left: -10px; }
  .formal-lang { width: 40px; }
  .formal-video-stage { min-height: 650px; }
  .formal-hero-copy { padding: 28px 24px 148px; }
  .formal-scene-rail { grid-template-columns: 1fr; }
  .formal-scene-rail div { padding: 9px 14px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .formal-section { padding: 64px 0; }
  .formal-section-head, .formal-choice-grid, .formal-video-grid, .formal-cta { grid-template-columns: 1fr; }
  .formal-proof-grid { grid-template-columns: 1fr; }
  .formal-process-list { grid-template-columns: 1fr; }
  .formal-step { min-height: auto; }
  .formal-step h3 { margin-top: 28px; }
  .formal-footer-inner { grid-template-columns: 1fr; }
  .catalog-hero, .contact-hero { padding-top: 56px; }
  .catalog-hero h1, .contact-hero h1, .model-hero h1 { letter-spacing: -1.4px; }
  .brand-wall, .model-grid, .route-grid, .process-list, .model-hero, .detail-grid, .contact-hero { grid-template-columns: 1fr; }
  .brand-card { min-height: 128px; }
  .model-hero { gap: 28px; }
  .detail-grid { padding-top: 36px; }
  .spec-list, .download-grid { grid-template-columns: 1fr; }
  .process-list article { min-height: auto; border-right: 0; }
  .process-list h3 { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
