:root {
  --bg: #07111f;
  --panel: #0b1728;
  --soft: #f4f7fb;
  --text: #0f172a;
  --muted: #5b667a;
  --line: #dbe3ef;
  --white: #ffffff;
  --accent: #ef4444;
  --accent-dark: #c83333;
  --shadow: 0 18px 48px rgba(2, 6, 23, 0.12);
  --radius: 22px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(800px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.muted-section { background: var(--soft); }
.dark-section { background: var(--bg); color: var(--white); }
.section-head { margin-bottom: 32px; }
.section-head-inline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.1; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); }
.dark-section .lead,
.dark-section p,
.dark-section .text-link { color: rgba(255,255,255,0.82); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  transition: 0.2s ease;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.22);
  border: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button-small { padding: 10px 16px; font-size: 14px; }
.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.dark-section .button-secondary { color: var(--white); border-color: rgba(255,255,255,0.2); }
.text-link { color: var(--accent); font-weight: 700; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.brand img { height: 40px; }
.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}
.lang-switcher {
  display: flex;
  gap: 8px;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.lang-switcher a.active { background: var(--bg); color: var(--white); border-color: var(--bg); }
.menu-toggle { display: none; }
.hero {
  padding: 60px 0 56px;
  background: radial-gradient(circle at top right, rgba(239,68,68,0.08), transparent 24%), linear-gradient(180deg, #fff, #f7f9fc 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.meta-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.meta-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.hero-visual { position: relative; }
.hero-main-image {
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}
.stats-card {
  position: absolute;
  left: -24px;
  bottom: -30px;
  display: grid;
  gap: 16px;
  padding: 18px;
  width: min(320px, 100%);
  background: rgba(7,17,31,0.92);
  color: var(--white);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.26);
}
.stats-card small { display: block; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.stats-card strong { display: block; font-size: 16px; }
.card-grid {
  display: grid;
  gap: 22px;
}
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .feature-card, .step-card, .blog-card, .training-box, .cta-box, .login-card, .admin-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .feature-card, .step-card { padding: 26px; }
.feature-card { background: linear-gradient(180deg, #fff, #fafcff 100%); }
.dark-section .step-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.workflow-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: start;
}
.workflow-steps { display: grid; gap: 18px; }
.workflow-media img,
.article-cover {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
}
.table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.comparison-table th { background: #f8fafc; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gallery-grid img {
  border-radius: 22px;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.training-box, .cta-box {
  padding: 32px;
  text-align: center;
}
.faq-list { display: grid; gap: 14px; }
.faq-item {
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; color: var(--muted); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.blog-card { overflow: hidden; }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card-body { padding: 20px; }
.date-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero.small { padding: 56px 0 20px; background: linear-gradient(180deg, #fff, #f7f9fc 100%); }
.article-page { padding: 48px 0 80px; }
.article-content {
  margin-top: 26px;
  font-size: 18px;
}
.article-content p { margin-bottom: 18px; }
.back-link { display: inline-block; margin-bottom: 16px; }
.site-footer {
  padding: 44px 0;
  background: #050b15;
  color: rgba(255,255,255,0.82);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 24px;
}
.footer-logo { height: 38px; margin-bottom: 12px; }
.admin-body { background: #f4f7fb; }
.admin-shell { width: min(1380px, calc(100% - 28px)); margin: 24px auto 48px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.login-card { max-width: 520px; margin: 80px auto 0; padding: 28px; }
.login-card form,
.admin-form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 16px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.alert { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.alert-success { background: #e8fff1; color: #166534; }
.alert-error { background: #fff1f2; color: #991b1b; }
.admin-section { padding: 26px; margin-bottom: 22px; }
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.post-editor {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafcff;
  margin-bottom: 18px;
}
.post-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.remove-post {
  background: transparent;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.admin-note { color: var(--muted); }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }
@media (max-width: 1080px) {
  .hero-grid,
  .workflow-grid,
  .proof-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid,
  .cols-3,
  .three-cols { grid-template-columns: 1fr 1fr; }
  .stats-card { position: static; margin-top: 18px; width: 100%; }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto auto; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 24px;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .lang-switcher { display: none; }
  .section { padding: 68px 0; }
  .meta-list,
  .blog-grid,
  .cols-3,
  .gallery-grid,
  .two-cols,
  .three-cols { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .container, .narrow { width: min(100% - 20px, var(--container)); }
  .training-box, .cta-box, .card, .feature-card, .step-card, .admin-section { padding: 22px; }
}
