/* РУК Журнал — маркетинговый лендинг (статика, без Laravel) */

:root {
  --lp-bg: #f4f6fb;
  --lp-surface: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-accent: #1e40af;
  --lp-accent-soft: rgba(30, 64, 175, 0.12);
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-glow: rgba(59, 130, 246, 0.35);
  --lp-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --lp-hero-mesh: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(139, 92, 246, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(14, 165, 233, 0.1), transparent);
}

[data-theme='dark'] {
  --lp-bg: #0f1218;
  --lp-surface: #171c26;
  --lp-text: #e8edf5;
  --lp-muted: #94a3b8;
  --lp-accent: #7cb3ff;
  --lp-accent-soft: rgba(124, 179, 255, 0.14);
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-glow: rgba(124, 179, 255, 0.25);
  --lp-card-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  --lp-hero-mesh: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(139, 92, 246, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(14, 165, 233, 0.12), transparent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--lp-text);
  background: var(--lp-bg);
  transition: background 0.25s ease, color 0.25s ease;
}

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

a:hover {
  text-decoration: underline;
}

.landing-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

[data-theme='dark'] .landing-logo img {
  filter: invert(1);
  opacity: 0.92;
}

/* Hero */
.lp-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lp-hero-mesh);
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .lp-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  margin-bottom: 14px;
}

.lp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lp-lead {
  margin: 0 0 26px;
  font-size: 1.11rem;
  color: var(--lp-muted);
  max-width: 52ch;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.lp-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45);
}

.lp-btn-ghost {
  background: var(--lp-surface);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
}

.lp-btn-ghost:hover {
  transform: translateY(-2px);
}

.lp-hero-visual {
  border-radius: 18px;
  padding: 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-card-shadow);
}

.lp-hero-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lp-bg);
  line-height: 0;
}

.lp-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(520px, 56vh);
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 899px) {
  .lp-hero-shot img {
    max-height: min(380px, 42vh);
  }
}

.lp-hero-caption {
  margin: 14px 4px 0;
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.45;
}

/* Sections */
.lp-section {
  padding: 56px 0;
}

.lp-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lp-section-intro {
  margin: 0 0 36px;
  max-width: 62ch;
  color: var(--lp-muted);
}

.lp-grid-3 {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .lp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--lp-card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 48px var(--lp-glow);
}

.lp-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.lp-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--lp-muted);
}

.lp-icon-card {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lp-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--lp-accent);
}

.lp-icon-card svg {
  width: 24px;
  height: 24px;
}

/* Mock browser “screenshots” */
.lp-shots {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  .lp-shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-mock {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lp-card-shadow);
  transition: transform 0.25s ease;
}

.lp-mock:hover {
  transform: scale(1.015);
}

.lp-mock-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-border);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme='dark'] .lp-mock-chrome {
  background: rgba(255, 255, 255, 0.04);
}

.lp-dots {
  display: flex;
  gap: 6px;
}

.lp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lp-dots span:nth-child(1) {
  background: #ff5f56;
}

.lp-dots span:nth-child(2) {
  background: #ffbd2e;
}

.lp-dots span:nth-child(3) {
  background: #27c93f;
}

.lp-url {
  flex: 1;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--lp-bg);
  color: var(--lp-muted);
  font-family: ui-monospace, monospace;
}

.lp-mock-body {
  padding: 14px;
  min-height: 160px;
}

.lp-mini-table {
  display: grid;
  gap: 6px;
}

.lp-mini-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--lp-bg);
}

.lp-pill {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.lp-pill.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.lp-pill.warn {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.lp-mini-dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lp-mini-kpi {
  padding: 12px;
  border-radius: 10px;
  background: var(--lp-bg);
  font-size: 11px;
}

.lp-mini-kpi strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
  color: var(--lp-accent);
}

.lp-mock-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--lp-muted);
  border-top: 1px solid var(--lp-border);
}

/* Pricing */
.lp-pricing {
  display: grid;
  gap: 18px;
}

@media (min-width: 820px) {
  .lp-pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.lp-price-card {
  position: relative;
  padding: 26px 22px;
  border-radius: 18px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-card-shadow);
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-price-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.lp-price-card.featured {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 12px 48px var(--lp-glow);
}

.lp-price-card .lp-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}

.lp-price-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.lp-price-num span {
  font-size: 1.1rem;
  font-weight: 600;
  vertical-align: super;
}

.lp-price-period {
  font-size: 14px;
  color: var(--lp-muted);
  margin-bottom: 18px;
}

.lp-price-features {
  text-align: left;
  font-size: 14px;
  color: var(--lp-muted);
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.lp-price-features li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}

.lp-price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 800;
}

/* Contacts */
.lp-contacts {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .lp-contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-person {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}

.lp-person h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.lp-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.lp-links span {
  color: var(--lp-muted);
  font-size: 13px;
}

/* Stats strip */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  margin-bottom: 36px;
}

.lp-stat {
  text-align: center;
}

.lp-stat-val {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--lp-accent);
}

.lp-stat-label {
  font-size: 13px;
  color: var(--lp-muted);
  margin-top: 4px;
}

/* FAQ */
.lp-faq details {
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--lp-surface);
}

.lp-faq summary {
  cursor: pointer;
  font-weight: 650;
}

.lp-faq details[open] summary {
  margin-bottom: 8px;
}

.lp-faq p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
}

/* Footer */
.lp-footer {
  padding: 36px 0;
  text-align: center;
  color: var(--lp-muted);
  font-size: 14px;
  border-top: 1px solid var(--lp-border);
}

.lp-highlight-box {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  background: var(--lp-accent-soft);
  margin-top: 22px;
}

.lp-highlight-box strong {
  color: var(--lp-accent);
}

/* Roles */
.lp-role-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .lp-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-role-card {
  --role-color: var(--lp-accent);
  --role-soft: var(--lp-accent-soft);
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lp-role-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--role-color) 45%, var(--lp-border));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--role-color) 22%, transparent);
}

.lp-role-card--admin {
  --role-color: #7c3aed;
  --role-soft: rgba(124, 58, 237, 0.12);
}

.lp-role-card--curator {
  --role-color: #059669;
  --role-soft: rgba(5, 150, 105, 0.12);
}

.lp-role-card--teacher {
  --role-color: #2563eb;
  --role-soft: rgba(37, 99, 235, 0.12);
}

.lp-role-card--student {
  --role-color: #0891b2;
  --role-soft: rgba(8, 145, 178, 0.12);
}

[data-theme='dark'] .lp-role-card--admin {
  --role-soft: rgba(167, 139, 250, 0.14);
}

[data-theme='dark'] .lp-role-card--curator {
  --role-soft: rgba(52, 211, 153, 0.12);
}

.lp-role-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.lp-role-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--role-soft);
  color: var(--role-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-role-icon svg {
  width: 26px;
  height: 26px;
}

.lp-role-head h3 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lp-role-slug {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--role-color);
  opacity: 0.85;
}

.lp-role-lead {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--lp-muted);
  line-height: 1.5;
}

.lp-role-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  color: var(--lp-text);
  flex: 1;
}

.lp-role-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--lp-border);
  line-height: 1.45;
}

.lp-role-list li:last-child {
  border-bottom: none;
}

.lp-role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--role-color);
  opacity: 0.75;
}

.lp-role-list li.lp-role-note {
  font-size: 0.88rem;
  color: var(--lp-muted);
  font-style: italic;
  padding-top: 12px;
}

.lp-role-list li.lp-role-note::before {
  background: var(--lp-muted);
  opacity: 0.5;
}

.lp-role-legend {
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  margin-bottom: 28px;
}

.lp-role-legend-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.lp-role-legend-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-att-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.lp-att {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
}

.lp-att b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  font-weight: 800;
  color: var(--lp-accent);
}

.lp-compare-wrap {
  padding: 24px 0 0;
}

.lp-compare-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.lp-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-card-shadow);
}

.lp-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-compare th,
.lp-compare td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--lp-border);
}

.lp-compare th {
  background: var(--lp-bg);
  font-weight: 650;
  color: var(--lp-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lp-compare td:first-child,
.lp-compare th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--lp-text);
  min-width: 200px;
}

.lp-compare tbody tr:last-child td {
  border-bottom: none;
}

.lp-compare tbody tr:hover td {
  background: var(--lp-accent-soft);
}

.lp-yes {
  color: #22c55e;
  font-weight: 800;
}

.lp-no {
  color: var(--lp-muted);
  opacity: 0.55;
}

.lp-part,
.lp-view {
  color: var(--lp-accent);
  font-weight: 700;
}

.lp-compare-note {
  margin: 12px 4px 0;
  font-size: 13px;
  color: var(--lp-muted);
}
