@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --accent: #e82020;
  --accent-mid: #ff3a32;
  --accent-deep: #c41212;
  --copper: #e82020;
  --copper-soft: #ff7a73;
  --writer: #2b7de9;
  --sheet: #1aa35a;
  --slide: #f5a623;
  --pdf: #e82020;
  --ink: #1c1e22;
  --ink-soft: #3c424a;
  --muted: #6b7280;
  --line: #e5e8ec;
  --line-strong: #d0d5dc;
  --paper: #f4f6f8;
  --paper-2: #eef1f4;
  --card: #ffffff;
  --shadow: 0 24px 48px -28px rgba(20, 24, 32, 0.35);
  --shadow-sm: 0 8px 22px -16px rgba(20, 24, 32, 0.22);
  --sans: "Source Sans 3", "Segoe UI", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Sans 3", "Segoe UI", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 0.7rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.62;
  background: var(--paper);
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, .display {
  font-family: var(--sans);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
}

.wrap { width: min(1160px, calc(100% - 2.2rem)); margin-inline: auto; }
.section { padding: 4.2rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff, 0 10px 24px -22px rgba(20, 24, 32, 0.45);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.98); }

.site-rail { display: none; }

.site-header-inner {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  background: #ff1b1f;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy small {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-copy b { font-size: 1.02rem; font-weight: 700; }

.nav-desktop { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.nav-desktop a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: #fff5f4;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(232, 32, 32, 0.8);
}
.btn-solid:hover { background: var(--accent-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #f0b4b0; }
.btn-dark { background: #1c1e22; color: #fff; }

.menu-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 1.1rem 1.3rem;
}
.mobile-nav.is-open { display: grid; gap: 0.2rem; }
.mobile-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 0.72rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero { padding: 3.4rem 0 2.4rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.page-hero {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  padding: 2.8rem 0 1.6rem;
}
@media (min-width: 900px) {
  .page-hero { grid-template-columns: 1.12fr 0.88fr; gap: 3.2rem; }
}
.hero-title,
.page-hero h1.display,
.page-hero .text-5xl {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  max-width: 16ch;
  margin: 0.85rem 0 0;
  font-weight: 600;
}
.lede {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 58ch;
  font-style: normal;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.trust-line { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.trust-line a { color: inherit; }

.hero-frame,
.page-hero > img,
.page-hero figure {
  margin: 0;
  position: relative;
}
.page-hero img,
.rounded-media,
.hero-frame img {
  width: 100%;
  display: block;
  border-radius: 1.25rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7);
}
.hero-frame {
  background: #fff;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-frame img {
  box-shadow: none;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.hero-frame figcaption {
  margin: 0.7rem 0.35rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
  padding-top: 1.25rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.45; }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* Sections */
.section-head { max-width: 46rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0.45rem 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-lede { color: var(--muted); margin: 0.7rem 0 0; font-size: 1.05rem; line-height: 1.7; }

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.stat-row {
  display: grid;
  gap: 0.9rem;
  margin: 0.4rem 0 0.2rem;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.05rem;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: var(--sans);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

.prose-article { max-width: 72ch; }
.prose-article h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.4rem;
}
.prose-article h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.45rem;
  font-family: var(--sans);
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}
.prose-article p, .prose-article li { color: #333a44; line-height: 1.82; }
.prose-article p { margin: 0 0 1.05rem; }
.prose-article ul, .prose-article ol { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.prose-article a { color: var(--accent); font-weight: 600; text-underline-offset: 0.18em; }
.prose-article a:hover { color: var(--accent-deep); }
.prose-article blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: #fff;
  border-radius: 0 0.7rem 0.7rem 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-style: normal;
}
.prose-article code {
  background: #eef1f4;
  padding: 0.12rem 0.38rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

.prose-article ol {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}
.prose-article ol > li {
  counter-increment: steps;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1rem 4.1rem;
  margin: 0 0 0.75rem;
  min-height: 4.2rem;
}
.prose-article ol > li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 0 0.95rem 0.95rem 0;
  padding: 1.05rem 1.2rem;
  margin: 1.4rem 0;
  box-shadow: var(--shadow-sm);
}
.callout h3, .callout strong {
  display: block;
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: start;
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table th {
  background: #f4f6f8;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table td:first-child { font-weight: 600; }
.data-table a { color: var(--accent); font-weight: 700; }

.card-grid { display: grid; gap: 1.05rem; counter-reset: cards; }
@media (min-width: 720px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.soft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.soft-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}
.card-grid > .soft-card { counter-increment: cards; }
.card-grid > .soft-card::after { content: none; }
.soft-card:hover {
  transform: translateY(-3px);
  border-color: #f0b4b0;
  box-shadow: var(--shadow);
}
.soft-card h3 { margin: 0.15rem 0 0.5rem; font-size: 1.18rem; padding-right: 0; }
.soft-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.96rem; }
.soft-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.85rem;
}

.next-row {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
@media (min-width: 720px) { .next-row { grid-template-columns: repeat(3, 1fr); } }

.site-footer {
  background: #1c1e22;
  color: #d5dce4;
  margin-top: 4.5rem;
  border-top: 3px solid var(--accent);
}
.site-footer a { color: #f4f6f8; text-decoration: none; }
.site-footer a:hover { color: #ffb3ae; }
.footer-grid {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 3.4rem 0 2.2rem;
  display: grid;
  gap: 2.1rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.45fr 1fr 1fr 1fr; } }
.footer-grid h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-grid p { color: #b7c0cb; line-height: 1.7; margin: 0; max-width: 36ch; }
.footer-legal {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem 0 1.5rem;
  color: #8f9aaa;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
}

.search-wrap { margin: 0.2rem 0 1.5rem; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font: inherit;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.search-wrap input:focus {
  outline: 2px solid rgba(232, 32, 32, 0.28);
  border-color: var(--accent);
}
.guide-item.hidden,
[data-guide-item].hidden { display: none; }

.kw-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.15rem; }
.kw-row a, .kw-row span {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a3038;
  text-decoration: none;
}
.kw-row a:hover { border-color: var(--copper-soft); color: var(--accent); }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item { margin-top: 0.7rem; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 1.05rem 3rem 1.05rem 1.15rem;
  cursor: pointer;
  position: relative;
}
.faq-item button::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--accent);
}
.faq-item.is-open button::after { content: "–"; }
.faq-item .faq-body { display: none; padding: 0 1.15rem 1.1rem; color: var(--muted); line-height: 1.75; }
.faq-item.is-open .faq-body { display: block; }

.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn { border-color: var(--copper-soft); }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: 12rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 80;
}
.lang-switch-menu a {
  display: block;
  padding: 0.52rem 0.72rem;
  border-radius: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-switch-menu a:hover { background: var(--paper); }
.lang-switch-menu a[aria-current="true"] { background: var(--accent); color: #fff; }

html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] .nav-desktop { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .prose-article ul,
html[dir="rtl"] .prose-article ol { padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .prose-article ol > li { padding-left: 1.1rem; padding-right: 4.1rem; }
html[dir="rtl"] .prose-article ol > li::before { left: auto; right: 0.95rem; }
html[dir="rtl"] .prose-article blockquote,
html[dir="rtl"] .callout {
  border-left: 0;
  border-right: 4px solid var(--copper);
  border-radius: 0.9rem 0 0 0.9rem;
}
html[dir="rtl"] .faq-item button { padding-left: 3rem; padding-right: 1.15rem; text-align: right; }
html[dir="rtl"] .faq-item button::after { right: auto; left: 1.15rem; }
html[dir="rtl"] .soft-card h3 { padding-right: 0; padding-left: 2rem; }

@media (max-width: 860px) {
  .nav-desktop, .site-header-inner .btn-solid { display: none; }
  .menu-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
  .site-rail { display: none; }
  .hero-title, .page-hero h1.display, .page-hero .text-5xl { max-width: none; }
}

.grid { display: grid; }
.relative { position: relative; }
.gap-4 { gap: 1rem; }
.gap-10 { gap: 2.5rem; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.max-w-xl { max-width: 36rem; }
.leading-none { line-height: 1; }
.text-xs { font-size: 0.75rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .md\:text-5xl { font-size: clamp(2.15rem, 4.6vw, 3.55rem); }
  .md\:text-6xl { font-size: 3.4rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: 1fr 1fr; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Homepage */
html[data-page="home"] body { background: var(--paper); }
html[data-page="home"] .site-footer { margin-top: 0; }
html[data-page="home"] .section { padding: 3.4rem 0; }

.home-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.8rem;
}
.home-hero-grid {
  display: grid;
  gap: 1.8rem;
  align-items: start;
}
@media (min-width: 980px) {
  .home-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
}
.home-copy .hero-title {
  max-width: 16em;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.home-indie {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid #ffd2ce;
  border-radius: 4px;
  background: #fff5f4;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.os-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.os-pills a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}
.os-pills a:hover { border-color: var(--accent); color: var(--accent); }

.suite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 560px) {
  .suite-grid { grid-template-columns: 1fr 1fr; }
}
.suite-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 0.95rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.suite-card:hover { border-color: #c9d0d8; }
.suite-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.suite-card.writer .suite-icon { background: var(--writer); }
.suite-card.sheet .suite-icon { background: var(--sheet); }
.suite-card.slide .suite-icon { background: var(--slide); }
.suite-card.pdf .suite-icon { background: var(--pdf); }
.suite-copy { min-width: 0; }
.suite-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.suite-copy em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.08rem 0 0.28rem;
}
.suite-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.home-h { max-width: 44rem; margin-bottom: 1.25rem; }
.home-h h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.home-h p { margin: 0.5rem 0 0; color: var(--muted); }
.home-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.home-steps + .home-note,
.card-grid + .home-note {
  margin-top: 1.1rem;
}
.home-note + .home-note { margin-top: 0.35rem; }
.home-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.home-note a:hover { text-decoration: underline; }

.home-dir {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 800px) { .home-dir { grid-template-columns: 1fr 1fr; } }
.home-dir a {
  display: block;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.home-dir a:hover { border-color: #c9d0d8; }
.home-dir strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}
.home-dir span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

html[dir="rtl"] .home-copy .hero-title { max-width: none; }
html[dir="rtl"] .soft-card h3 { padding-left: 0; }

.home-device { margin: 0; }
.home-device-bezel {
  position: relative;
  background: linear-gradient(180deg, #2b3038 0%, #1c1e22 100%);
  border-radius: 16px;
  padding: 12px 12px 18px;
  box-shadow: 0 32px 56px -28px rgba(20, 24, 32, 0.55);
}
.home-device-bezel::before {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 99px;
  background: #3d444d;
}
.home-device-bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #e8edf3;
}
.home-device figcaption {
  margin: 0.75rem 0.1rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0 1.5rem;
}
.home-stats .stat-row { margin: 0; }
.home-stats .stat {
  box-shadow: none;
  background: #f6f8fa;
}
.home-stats .stat b { font-size: 1.45rem; }

.app-shots {
  display: grid;
  gap: 1.05rem;
}
@media (min-width: 800px) {
  .app-shots { grid-template-columns: 1fr 1fr; }
}
.app-shot {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.app-shot.writer { border-top-color: var(--writer); }
.app-shot.sheet { border-top-color: var(--sheet); }
.app-shot.slide { border-top-color: var(--slide); }
.app-shot.pdf { border-top-color: var(--pdf); }
.app-shot:hover {
  transform: translateY(-3px);
  border-color: #c9d0d8;
  box-shadow: var(--shadow);
}
.app-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #e8edf3;
  border-bottom: 1px solid var(--line);
}
.app-shot-body {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
}
.app-shot-body em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.app-shot-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.38rem;
}
.app-shot-head img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  background: none;
}
.app-shot-head .app-shot-name { min-width: 0; }
.app-shot.writer .app-shot-body em { color: var(--writer); }
.app-shot.sheet .app-shot-body em { color: var(--sheet); }
.app-shot.slide .app-shot-body em { color: var(--slide); }
.app-shot.pdf .app-shot-body em { color: var(--pdf); }
.app-shot-body strong {
  display: block;
  margin: 0.18rem 0 0.38rem;
  font-size: 1.08rem;
  font-weight: 800;
}
.app-shot-body span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-split {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
@media (min-width: 900px) {
  .home-split { grid-template-columns: 1.05fr 0.95fr; gap: 2.8rem; }
  .home-split-flip { grid-template-columns: 0.95fr 1.05fr; }
}
.home-split .prose-article { max-width: none; }
.home-split .prose-article h2 { margin-top: 0; padding-top: 0; }
.home-shot { margin: 0; }
.home-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #eef1f4;
}
.home-shot figcaption {
  margin: 0.65rem 0.1rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.home-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 54ch;
}

.home-steps {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.home-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.home-steps b {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.home-steps h3 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.05rem;
}
.home-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-platforms {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .home-platforms { grid-template-columns: repeat(3, 1fr); }
}
.home-platforms a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.05rem 1.05rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-platforms a:hover {
  border-color: #c9d0d8;
  box-shadow: var(--shadow-sm);
}
.home-platforms strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}
.home-platforms span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (min-width: 980px) {
  .home-hero { padding: 3rem 0 3.2rem; }
  .home-copy .hero-title { max-width: 14.5em; }
}

html[dir="rtl"] .home-steps b { letter-spacing: 0; }
