/* Digi Cash — светло-фиолетовая тема */
:root {
  --violet-900: #3b2a63;
  --violet-700: #5b3fa8;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-300: #c4b5fd;
  --violet-100: #ede9fe;
  --violet-50:  #f6f3ff;
  --text: #2d2544;
  --text-soft: #5f5680;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(92, 63, 168, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--violet-50);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet-600); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: .2s;
  border: 2px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 58, 237, .45); }
.btn--outline { border-color: var(--violet-500); color: var(--violet-600); background: transparent; }
.btn--outline:hover { background: var(--violet-100); }
.btn--big { padding: 16px 40px; font-size: 18px; border-radius: 14px; }

/* Шапка */
.header { background: var(--white); box-shadow: 0 2px 12px rgba(92, 63, 168, .08); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 28px; padding: 10px 20px; }
.header__logo img { display: block; }
.header__nav { display: flex; gap: 22px; margin-left: 8px; }
.header__nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.header__nav a:hover { color: var(--violet-600); }
.header__auth { margin-left: auto; display: flex; gap: 12px; }

/* Hero + калькулятор */
.hero {
  background: linear-gradient(160deg, var(--violet-100) 0%, var(--violet-50) 55%, #fdfcff 100%);
  padding: 56px 0 64px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.2; color: var(--violet-900); margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: var(--text-soft); margin-bottom: 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.badge {
  background: var(--white); border: 1px solid var(--violet-300);
  color: var(--violet-700); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600;
}

/* Калькулятор */
.calc {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.calc h2 { font-size: 22px; color: var(--violet-900); margin-bottom: 20px; }
.calc__row { margin-bottom: 20px; }
.calc__label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.calc__label output { color: var(--violet-600); }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, var(--violet-500) var(--fill, 50%), var(--violet-100) var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--violet-600);
  cursor: pointer; box-shadow: 0 2px 8px rgba(124, 58, 237, .4);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--violet-600); cursor: pointer;
}
.calc__result {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--violet-50); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px;
}
.calc__result strong { font-size: 22px; color: var(--violet-900); }
.calc__zero { font-size: 13px; color: var(--violet-600); font-weight: 600; }
.calc .btn { width: 100%; }

/* Секции и карточки */
.section { padding: 56px 0; }
.section--alt { background: var(--white); }
.section h2 { font-size: 30px; color: var(--violet-900); margin-bottom: 14px; }
.section h3 { font-size: 21px; color: var(--violet-900); margin: 26px 0 10px; }
.section p { margin-bottom: 14px; }
.section ul, .section ol { margin: 0 0 16px 22px; }
.section li { margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  border-top: 4px solid var(--violet-500);
}
.section--alt .card { background: var(--violet-50); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { color: var(--text-soft); margin: 0; font-size: 15px; }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--violet-100); color: var(--violet-600);
  font-weight: 700; font-size: 18px; margin-bottom: 12px;
}

/* Таблица условий */
.terms-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.terms-table th, .terms-table td { padding: 13px 18px; text-align: left; }
.terms-table th { background: var(--violet-600); color: var(--white); }
.terms-table tr:nth-child(even) td { background: var(--violet-50); }

/* FAQ */
.faq details {
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0;
  color: var(--violet-900); list-style: none; position: relative; padding-right: 30px;
}
.faq summary::after { content: '+'; position: absolute; right: 4px; color: var(--violet-500); font-size: 22px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; color: var(--text-soft); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--violet-700), var(--violet-500));
  border-radius: var(--radius); padding: 40px; text-align: center; color: var(--white);
  margin: 20px 0;
}
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { color: var(--violet-100); margin-bottom: 22px; }
.cta .btn--primary { background: var(--white); color: var(--violet-700); box-shadow: none; }

/* ЛК */
.auth-panel { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0 8px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.review { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--violet-100); color: var(--violet-600);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review__name { font-weight: 600; color: var(--violet-900); }
.review__date { font-size: 13px; color: var(--text-soft); }
.review__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.review p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* Хлебные крошки */
.breadcrumbs { padding: 18px 0 0; font-size: 14px; color: var(--text-soft); }
.breadcrumbs a { color: var(--violet-600); text-decoration: none; }
.breadcrumbs span { margin: 0 6px; }

/* 404 */
.err404 { text-align: center; padding: 90px 20px; }
.err404 .code { font-size: 110px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--violet-600), var(--violet-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err404 h1 { font-size: 30px; color: var(--violet-900); margin: 14px 0 10px; }
.err404 p { color: var(--text-soft); max-width: 480px; margin: 0 auto 26px; }
.err404 .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Подвал */
.footer { background: var(--violet-900); color: var(--violet-100); margin-top: 40px; padding: 36px 0 24px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { background: var(--white); border-radius: 10px; padding: 6px; }
.footer__copy { font-size: 14px; }
.footer__nav { display: flex; gap: 22px; }
.footer__nav a { color: var(--violet-100); text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__note { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.footer__note p { font-size: 13px; color: var(--violet-300); }

/* Адаптив */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .header__nav { display: none; }
}
@media (max-width: 560px) {
  .header__auth .btn { padding: 9px 14px; font-size: 14px; }
  .section h2 { font-size: 24px; }
  .cta { padding: 28px 18px; }
}
