:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1c2030;
  --muted: #646b80;
  --line: #e3e6ef;
  --accent: #3b5bfd;
  --accent-dark: #2a45d6;
  --accent-soft: #eaeeff;
  --ok: #1f9d6a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(28, 32, 48, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem; transition: background .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}

/* Sections */
section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 2rem; margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }
.page-head { padding: 56px 0 20px; text-align: center; }
.page-head h1 { font-size: 2.4rem; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.4rem;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--accent); }
.stat span { color: var(--muted); }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 30px 0; }
.feature-row:nth-child(even) .feature-visual { order: -1; }
.feature-row h2 { margin-top: 0; }
.feature-row ul { padding-left: 20px; color: var(--muted); }
.feature-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; min-height: 220px;
}
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: .95rem;
}
.file-row:last-child { border-bottom: 0; }
.file-row .ext {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.file-row .meta { color: var(--muted); font-size: .85rem; margin-left: auto; white-space: nowrap; }
.ext.pdf { background: #e5484d; } .ext.zip { background: #f5a524; }
.ext.img { background: #1f9d6a; } .ext.doc { background: #3b5bfd; } .ext.vid { background: #8b5cf6; }

/* Pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan.featured::before {
  content: "Популярный"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .8rem; padding: 3px 12px; border-radius: 999px; font-weight: 600;
}
.price { font-size: 2.4rem; font-weight: 700; margin: 10px 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 6px 0; padding-left: 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { text-align: center; }
.toggle { display: flex; justify-content: center; gap: 6px; margin-bottom: 30px; }
.toggle button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: .95rem;
}
.toggle button.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Upload */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 60px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.drag, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .big { font-size: 3rem; }
.dropzone input { display: none; }
.upload-list { margin-top: 24px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.share-link {
  margin-top: 6px; font-size: .85rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.share-link code { background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.notice { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 16px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff;
  border-radius: 20px; padding: 48px 24px; text-align: center;
}
.cta h2 { margin: 0 0 10px; font-size: 1.9rem; }
.cta p { margin: 0 0 24px; opacity: .9; }
.cta .btn { background: #fff; color: #2a45d6; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 40px 0 30px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { color: var(--text); margin: 0 0 10px; font-size: .95rem; }
.footer-grid a { color: var(--muted); display: block; padding: 3px 0; }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px;
  }
  .nav.open { display: flex; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 40px; }
}
.footer-grid a.logo { display: flex; color: var(--text); }
