:root {
  --color-primary: #d92d2d;
  --color-primary-dark: #b91f28;
  --color-primary-soft: #fff1f1;
  --color-gold: #c99a3d;
  --color-gold-soft: #fbf4e5;
  --color-ink: #252b35;
  --color-muted: #626a76;
  --color-line: #dfe3e8;
  --color-surface: #ffffff;
  --color-soft: #f6f7f9;
  --shadow-sm: 0 12px 34px rgba(30, 36, 44, 0.08);
  --shadow-focus: 0 0 0 4px rgba(217, 45, 45, 0.2);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shell: 1200px;
  --header-height: 68px;
  --space-section: clamp(1.15rem, 2vw, 1.85rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 1080px;
  margin-right: auto;
  margin-bottom: 0.7rem;
  margin-left: auto;
  font-size: clamp(2.25rem, 5.1vw, 4rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
}

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

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-top: clamp(0.85rem, 1.6vw, 1.35rem);
}

.section--muted {
  background: var(--color-soft);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  color: var(--color-ink);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #424a55;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: var(--color-primary);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.menu-toggle__icon,
.menu-toggle__icon i {
  display: block;
}

.menu-toggle__icon {
  width: 20px;
}

.menu-toggle__icon i {
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: auto;
  display: grid;
  place-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.75rem);
  text-align: center;
  color: #fff;
  background: #111216;
  border-bottom: 4px solid var(--color-gold);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 740px;
  margin-bottom: 2rem;
  color: #cbd0d7;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding: 0.7rem 1rem;
  text-align: left;
  background: #1c1e23;
  border: 1px solid #7f6737;
  border-radius: var(--radius-md);
}

.app-identity img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.app-identity strong,
.app-identity span {
  display: block;
}

.app-identity strong {
  font-size: 1.4rem;
}

.app-identity span {
  color: #cbd0d7;
}

.hero .eyebrow {
  color: #e2ba68;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button--primary {
  color: #fff;
  background: var(--color-primary);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.button--primary:active {
  transform: translateY(0);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.accordion button:focus-visible,
.brand:focus-visible,
.primary-navigation a:focus-visible,
.footer-links a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.button--download {
  width: min(100%, 880px);
  min-height: 58px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(0.65rem, 1.4vw, 1rem);
}

.section-heading > p:last-child {
  color: var(--color-muted);
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.table-wrap {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid #bfc5cc;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 3px 0 var(--color-gold);
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-right: 1px solid #c9ced4;
  border-bottom: 1px solid #c9ced4;
}

tr > *:last-child {
  border-right: 0;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

thead th {
  color: #fff;
  background: var(--color-ink);
}

tbody th {
  width: 42%;
  font-weight: 650;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
}

.content-grid__main p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.notice-card {
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--color-gold-soft);
  border: 1px solid #e8cf9c;
  border-radius: var(--radius-lg);
}

.notice-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 0.7rem;
  place-items: center;
  color: #fff;
  background: #9a6e1f;
  border-radius: 50%;
  font-weight: 800;
}

.notice-card p {
  margin-bottom: 0;
  color: #5d4a26;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  min-height: 0;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(30, 36, 44, 0.035);
  border-top: 3px solid var(--color-gold);
}

.feature-grid li > span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: #a87923;
  font-size: 1.35rem;
  font-weight: 800;
}

.feature-grid h3 {
  margin-bottom: 0.4rem;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.steps li > span {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 0.45rem;
}

.steps p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
  align-items: start;
}

.screenshot-grid figure {
  margin: 0;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: 2px solid #d4b36f;
  border-radius: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

.screenshot-grid figcaption {
  padding: 0.55rem 0.25rem 0;
  color: var(--color-muted);
  text-align: center;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.faq-layout__intro {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.accordion {
  border-top: 1px solid var(--color-line);
}

.accordion__item {
  border-bottom: 1px solid var(--color-line);
}

.accordion h3 {
  margin: 0;
}

.accordion button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0;
  color: var(--color-ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}

.accordion button > span {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
}

.accordion button > span::before,
.accordion button > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-primary);
  content: '';
  transform: translate(-50%, -50%);
}

.accordion button > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.accordion button[aria-expanded='true'] > span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__panel {
  padding: 0 2.4rem 0.85rem 0;
  color: var(--color-muted);
}

.accordion__panel p {
  margin-bottom: 0;
}

.responsible {
  color: #fff;
  background: var(--color-ink);
  border-top: 4px solid var(--color-gold);
}

.responsible__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  max-width: 900px;
}

.responsible__badge {
  display: grid;
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
}

.responsible h2 {
  margin-bottom: 0.45rem;
}

.responsible p:last-child {
  margin-bottom: 0;
  color: #d4d8dd;
}

.site-footer {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  background: #111216;
  border-top: 1px solid #7f6737;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: clamp(1.15rem, 2.5vw, 2.25rem);
}

.brand--footer img {
  width: 48px;
  height: 48px;
}

.site-footer__summary {
  max-width: 430px;
  margin-top: 1rem;
  color: #b7bdc6;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.65rem;
}

.footer-links a {
  color: #cbd0d7;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal {
  margin-top: 1.15rem;
  padding: 1rem;
  color: #ded2ba;
  background: #1b1d22;
  border: 1px solid #675839;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

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

.site-footer__bottom {
  margin-top: 1rem;
  padding-block: 0.75rem;
  color: #aeb5bf;
  border-top: 1px solid #34383f;
  font-size: 0.88rem;
}

.readable {
  max-width: 800px;
}

.page-wrap {
  max-width: 980px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.page-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.page-card:hover,
.page-card:focus-visible {
  border-color: var(--color-primary);
}

.page-card h3 {
  margin-bottom: 0;
}

.page-card p,
.inline-links {
  margin-bottom: 0;
  color: var(--color-muted);
}

.inline-links {
  margin-bottom: 0.75rem;
}

.inline-links a,
.related a,
.legal a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.crumbs a {
  color: var(--color-muted);
}

.related {
  margin-top: 1.15rem;
}

.related__heading {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.steps h3,
.accordion h3 {
  font-size: 1.15rem;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid li {
    min-height: 0;
  }

  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 879px) {
  :root {
    --header-height: 60px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 20px 1rem;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-sm);
  }

  .js .primary-navigation {
    display: none;
  }

  .js .primary-navigation.is-open {
    display: flex;
  }

  .no-js .menu-toggle { display: none; }

  .no-js .primary-navigation {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    box-shadow: none;
  }

  .no-js .accordion__panel[hidden] { display: block; }

  .primary-navigation a {
    min-height: 50px;
    padding-inline: 0.25rem;
    border-bottom: 1px solid var(--color-line);
  }

  .primary-navigation a:last-child {
    border-bottom: 0;
  }

  .primary-navigation a::after {
    display: none;
  }

  .content-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout__intro {
    position: static;
    margin-bottom: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .hero {
    min-height: auto;
  }

  .app-identity {
    width: 100%;
  }

  .button--download {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody tr {
    margin-bottom: 0.45rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
  }

  tbody th,
  tbody td {
    width: 100%;
  }

  tbody th {
    padding: 0.4rem 0.75rem;
    color: var(--color-muted);
    background: var(--color-soft);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  tbody td {
    padding: 0.5rem 0.75rem 0.65rem;
  }

  .nowrap {
    white-space: nowrap;
  }

  .feature-grid,
  .page-grid,
  .steps,
  .screenshot-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .feature-grid li {
    min-height: auto;
  }

  .feature-grid li > span {
    margin-bottom: 0.65rem;
  }

  .screenshot-grid {
    gap: 0.85rem;
  }

  .screenshot-grid figure {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .site-footer__grid > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand {
    gap: 0.55rem;
    font-size: 1.18rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .app-identity {
    gap: 0.9rem;
  }

  .app-identity img {
    width: 76px;
    height: 76px;
  }

  .steps li {
    gap: 0.9rem;
  }

  .steps li > span {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
