:root {
  --bg: #1e1e1e;
  --bg-card: #252526;
  --bg-elevated: #2d2d2d;
  --border: #3e3e42;
  --text: #cccccc;
  --text-dim: #808080;
  --text-bright: #ffffff;
  --accent: #007acc;
  --accent-hover: #0098ff;
  --purple: #7c5cbf;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--accent);
  color: var(--text-bright);
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* An author-level `display` on .btn outranks the user-agent `[hidden]` rule, so
   the attribute needs this to actually hide anything. */
[hidden] { display: none !important; }

.btn-primary {
  background: var(--accent);
  color: var(--text-bright);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}

.killer-feature {
  border-top: 1px solid var(--border);
}

/* Killer Visual */
.killer-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.branch-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
}

.branch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.branch-dot.excluded {
  opacity: 0.4;
}

.dim { color: var(--text-dim); text-decoration: line-through; }

.arrow-group {
  flex-shrink: 0;
}

.mr-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mr-item {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--mono);
}

.mr-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.mr-badge.new {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.killer-stat {
  text-align: center;
  font-size: 18px;
  color: var(--text-dim);
}

.killer-stat strong {
  color: var(--accent);
}

/* Advantages Grid */
.advantages {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.adv-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.adv-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.adv-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.adv-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.adv-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Installation */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin-bottom: 32px;
}

.install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--text-bright);
  font-size: 16px;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-dim);
  font-size: 14px;
}

.install-code {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.install-code code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}

/* CTA */
.cta {
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--accent);
}

/* Supported Providers */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 40px;
}

.provider-card {
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.provider-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.provider-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.provider-icon {
  font-size: 22px;
}

.provider-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.chip-cloud {
  background: rgba(0, 122, 204, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 204, 0.35);
}

.chip-selfhosted {
  background: rgba(124, 92, 191, 0.15);
  color: var(--purple);
  border: 1px solid rgba(124, 92, 191, 0.35);
}

.chip-review {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.chip-progress {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.chip-next {
  background: rgba(0, 122, 204, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 204, 0.35);
}

.chip-exploring {
  background: rgba(124, 92, 191, 0.15);
  color: var(--purple);
  border: 1px solid rgba(124, 92, 191, 0.35);
}

.roadmap .adv-card .chip {
  display: inline-block;
  margin-bottom: 12px;
}

.roadmap-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.roadmap-note a {
  color: var(--accent);
}

.providers-cta {
  text-align: center;
}

.providers-cta-text {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 16px;
}

/* Compare Table */
.compare {
  border-top: 1px solid var(--border);
}

.compare-table {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 96px 96px;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-row.compare-head {
  background: var(--bg-elevated);
}

.compare-feature {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  border-right: 1px solid var(--border);
}

.compare-cell {
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.compare-cell.free { color: var(--text-dim); }

.compare-cell.pro {
  color: var(--accent);
  background: rgba(0, 122, 204, 0.06);
}

.compare-cell.check { color: var(--green); }
.compare-cell.no { color: var(--red); }

/* Pricing */
.pricing {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual and team plans are separate grids: the team prices are quoted for
   three included seats, so putting one $147 card next to a $5 one in a single
   row would read as a per-seat comparison that the pricing does not support. */
.pricing-group-label {
  max-width: 1000px;
  margin: 40px auto 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pricing-group-note {
  max-width: 1000px;
  margin: 0 auto 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.plan-price-custom {
  font-size: 30px;
}

.plan-card.plan-contact {
  border-style: dashed;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.plan-card.plan-hot {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-bright);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
  text-align: center;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-bright);
  text-align: center;
}

/* Two lines: the ruble is what a Russian buyer actually pays and reads first,
   the dollar sits under it as the amount the price list is written in. The
   ruble inherits the size so .plan-price-custom (which has no children and
   says "On request") stays exactly as it was. */
.plan-price .price-rub {
  display: block;
}

.plan-price .price-usd {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
}

.plan-period {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
}

.pricing-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}

.plan-list {
  list-style: none;
  margin: 0 0 24px;
  flex-grow: 1;
}

.plan-list li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0 6px 22px;
  position: relative;
}

.plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.plan-list li.plan-muted::before { color: var(--text-dim); }

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hero install line */
.hero-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.hero-install a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-install a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hero-install-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}

/* Code Review spotlight */
.feature-spot {
  border-top: 1px solid var(--border);
}

/* Screenshots */
.feature-shot {
  max-width: 760px;
  margin: 0 auto 40px;
}

.demo-shot {
  max-width: 720px;
  margin: 0 auto 40px;
}

.feature-shot img,
.demo-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.feature-shot figcaption,
.demo-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.adv-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 36px auto 0;
}

.adv-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.adv-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.feature-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 32px;
}

.feature-action-card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-action-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.feature-action-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

details.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

details.faq-item > summary.faq-q {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 18px 22px;
  transition: color 0.2s;
}

details.faq-item > summary.faq-q::-webkit-details-marker {
  display: none;
}

details.faq-item > summary.faq-q:hover {
  color: var(--accent);
}

details.faq-item > summary.faq-q::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

details.faq-item[open] > summary.faq-q::after {
  content: '−';
}

details.faq-item[open] > summary.faq-q {
  color: var(--accent);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
}

.faq-item > .faq-a {
  padding: 0 22px 18px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.faq-a ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Competitors matrix */
.matrix-scroll {
  overflow-x: auto;
  max-width: 980px;
  margin: 0 auto;
}

.matrix-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.matrix-table th,
.matrix-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.matrix-table tr:last-child th,
.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table thead th {
  background: var(--bg-elevated);
  font-weight: 700;
  color: var(--text-bright);
}

.matrix-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.matrix-check { color: var(--green); font-weight: 700; }
.matrix-no { color: var(--red); font-weight: 700; }
.matrix-partial { color: #d29922; font-weight: 700; }

.howto-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.howto-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}

.howto-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Legal document (oferta.html) */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.legal .legal-back {
  margin-bottom: 28px;
  font-size: 14px;
}

.legal-back a {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--accent);
}

.legal-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-size: 30px;
  line-height: 1.25;
  color: var(--text-bright);
}

.legal .legal-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text);
}

.legal .legal-meta,
.legal .legal-foot-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.legal-toc {
  margin: 28px 0 8px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal .legal-toc-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-bright);
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
}

.legal-toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
}

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

.legal h2 {
  margin: 44px 0 14px;
  font-size: 20px;
  color: var(--text-bright);
  scroll-margin-top: 24px;
}

.legal h3 {
  margin: 26px 0 10px;
  font-size: 15px;
  color: var(--text-bright);
}

.legal p,
.legal li,
.legal td,
.legal th {
  font-size: 14.5px;
  line-height: 1.65;
}

.legal p {
  margin-bottom: 12px;
}

.legal b {
  color: var(--text-bright);
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal code {
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-elevated);
  border-radius: 4px;
}

.legal-ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-ol li {
  margin-bottom: 8px;
}

.legal .legal-note {
  padding: 10px 14px;
  background: var(--bg-card);
  border-left: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}

.legal table {
  width: 100%;
  margin: 4px 0 12px;
  border-collapse: collapse;
}

.legal th,
.legal td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal th {
  background: var(--bg-card);
  color: var(--text-bright);
  font-weight: 600;
}

.legal td.num {
  text-align: right;
  white-space: nowrap;
}

.legal .legal-requisites {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.9;
}

/* Responsive */
@media (max-width: 768px) {
  .legal { padding: 24px 20px 56px; }
  .legal-title { font-size: 23px; }
  .legal-toc ol { columns: 1; }
  .legal table { display: block; overflow-x: auto; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 50px 0; }
  .killer-visual { flex-direction: column; gap: 16px; }
  .arrow-group { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .compare-row { grid-template-columns: 1fr 64px 64px; }
  .compare-feature { padding: 12px 10px; font-size: 13px; }
  .compare-cell { padding: 12px 8px; font-size: 13px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}
