:root {
  --bg: #f5f2eb;
  --paper: #fffdf8;
  --text: #111a14;
  --muted: #51645a;
  --subtle: #8a9e90;
  --border: #e0e6e1;
  --accent: #0d3526;
  --dark: #0a0f08;
  --dark-text: #ddeee3;
  --dark-muted: rgba(222, 244, 230, .82);
  --dark-faint: rgba(222, 244, 230, .58);
  --max: 760px;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 100vw;
  background: rgba(245, 242, 235, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  width: min(100%, var(--max));
  min-height: 56px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-mark {
  width: 42px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

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

.nav-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-select {
  min-height: 40px;
  min-width: 118px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 7px 30px 7px 12px;
  background: rgba(255, 253, 248, .94);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(17, 26, 20, .08);
}

.shell {
  width: min(100%, var(--max));
  max-width: 100vw;
  margin: 0 auto;
  padding: 32px 0 40px;
  display: grid;
  gap: 32px;
}

.screen-dark,
.screen-paper {
  width: 100%;
  max-width: 100vw;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(17, 26, 20, .1);
}

.screen-dark {
  background: var(--dark);
  padding: 88px 48px 80px;
}

.screen-paper {
  background: var(--paper);
  padding: 64px 48px;
  border: 1px solid rgba(224, 230, 225, .72);
}

.screen-n {
  display: block;
  margin: 0 0 24px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.screen-dark .screen-n {
  color: var(--dark-faint);
}

.screen-dark h1,
.screen-dark h2 {
  margin: 0 0 24px;
  color: var(--dark-text);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.07;
  overflow-wrap: anywhere;
}

.screen-paper > h2 {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.dark-lead {
  margin: 0 0 14px;
  color: var(--dark-muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.dark-note {
  margin: 0;
  color: var(--dark-faint);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
}

.idea-block {
  margin: 0 0 28px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}

.idea-block h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.screen-paper p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.screen-paper p:last-child {
  margin-bottom: 0;
}

.screen-paper strong {
  color: var(--text);
  font-weight: 600;
}

.statement-screen p {
  font-size: clamp(17px, 1.6vw, 21px);
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 2px 0 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-line span {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.45;
}

.flow-line span + span::before {
  content: "→";
  margin: 0 11px;
  color: var(--subtle);
}

.short-flow span {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
}

.quiet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 2px 0 28px;
  border-top: 1px solid var(--border);
}

.quiet-list span {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.35;
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 2px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.decision-steps span {
  padding: 22px 0;
  color: var(--accent);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.16;
}

.category-list {
  margin-top: 26px;
  border-top: 1px solid var(--border);
}

.category-row {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) 1.25fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.category-name {
  color: var(--text) !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

.price-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 4px 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-box div {
  display: grid;
  gap: 6px;
}

.price-label {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-box strong {
  color: var(--accent);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.product-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 4px 0 28px;
  border-top: 1px solid var(--border);
}

.product-matrix div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1.2fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.product-matrix strong {
  color: var(--text);
  font-size: clamp(15px, 1.3vw, 17px);
}

.product-matrix span {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
}

.decision-list {
  display: grid;
  margin: 28px 0 40px;
}

.decision-list p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(210, 235, 215, .1);
  color: rgba(210, 235, 215, .85);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 500;
}

.decision-list p:last-child {
  border-bottom: 0;
}

.screen-dark .final-close {
  margin: 48px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(210, 235, 215, .16);
  color: #ddeee3;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.018em;
}

.install-panel {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 32px 34px;
  text-align: center;
}

.install-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(13, 53, 38, .18);
}

.install-button:hover {
  background: #0a2a1e;
}

footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 20px;
  }

  .lang-select {
    min-width: 96px;
    font-size: 14px;
  }

  .shell {
    width: 100%;
    padding: 20px 12px 28px;
    gap: 20px;
  }

  .install-panel {
    padding: 0 20px 28px;
  }

  .install-button {
    width: 100%;
    max-width: 320px;
  }

  .screen-dark,
  .screen-paper {
    padding: 52px 24px;
    border-radius: 28px;
  }

  .screen-dark h1,
  .screen-dark h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .screen-paper > h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .quiet-list,
  .decision-steps,
  .category-row,
  .price-box,
  .product-matrix {
    grid-template-columns: 1fr;
  }

  .flow-line {
    display: grid;
    gap: 8px;
  }

  .flow-line span + span::before {
    content: "";
    margin: 0;
  }

  .decision-steps {
    gap: 0;
  }

  .decision-steps span {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }

  .decision-steps span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 380px) {
  .screen-dark,
  .screen-paper {
    padding: 44px 18px;
    border-radius: 24px;
  }
}
