/* =======================================================
   L2CORE.RU — Полностью новый дизайн
   ======================================================= */

/* ---------- Переменные ---------- */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-elevated: #16161f;
  --border: rgba(255,255,255,.06);
  --border-hover: rgba(255,255,255,.12);
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108,92,231,.25);
  --green: #00b894;
  --text: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-muted: #5c5c72;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.4);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --max-w: 1140px;
}

/* ---------- Сброс ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

h1,h2,h3,h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -.02em;
}

p { color: var(--text-secondary); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(108,92,231,.08), transparent),
    radial-gradient(600px 400px at 80% 100%, rgba(0,184,148,.05), transparent);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn--accent:hover {
  background: #7c6cf0;
  border-color: #7c6cf0;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--white);
}

.btn--outline-accent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-light);
}
.btn--outline-accent:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Шапка ---------- */
.site-top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,.8);
  border-bottom: 1px solid var(--border);
}

.site-top__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-size: 20px; font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.brand img { display: none; }
.brand span { display: contents; }
.brand strong { font-size: 20px; }
.brand small {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
  margin-left: 8px;
}

.site-nav {
  display: none; /* скрываем вторую навигацию, всё в top-actions */
}

.top-actions {
  display: flex; align-items: center; gap: 6px;
}
.top-actions .btn {
  padding: 8px 16px; font-size: 13px;
  border-radius: var(--radius-xs);
}

/* ---------- Flash-сообщения ---------- */
.notice {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0 0;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.notice--error { border-color: #e74c3c44; background: #e74c3c11; color: #ff7675; }
.notice--success { border-color: #00b89444; background: #00b89411; color: #55efc4; }

/* ---------- Главный контент ---------- */
main.container { padding-bottom: 60px; }

/* ---------- Hero ---------- */
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-section h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-section h1 .accent { color: var(--accent-light); }
.hero-section .hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Карточки услуг ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  background: rgba(108,92,231,.1);
  border: 1px solid rgba(108,92,231,.15);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Преимущества ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}

.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}

.check-list { padding: 0; }
.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  color: var(--green);
  font-weight: 700;
}

/* ---------- CTA секция ---------- */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.contact-list {
  display: grid; gap: 12px;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--accent); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(108,92,231,.1);
  flex-shrink: 0;
}
.contact-item span { color: var(--text-secondary); font-size: 14px; }
.contact-item strong { color: var(--white); font-size: 15px; display: block; }

/* ---------- Таблицы (pricing/checkout/admin) ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}
.table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- Формы ---------- */
label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="radio"], input[type="checkbox"] {
  width: auto;
  margin-bottom: 0;
}

/* ---------- Футер ---------- */
.site-foot {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 0;
}

.site-foot__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.foot-brand strong {
  color: var(--white);
  font-size: 18px;
}
.foot-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.foot-links {
  display: flex; gap: 20px;
}
.foot-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.foot-links a:hover { color: var(--white); }

/* ---------- Юридическая страница ---------- */
.legal-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.legal-nav a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.legal-nav a:hover {
  border-color: var(--accent);
  color: var(--white);
}

.legal-doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}
.legal-doc h2 {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-doc h3 {
  font-size: 17px;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal-doc p, .legal-doc li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.legal-doc ul, .legal-doc ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-doc ol { list-style: decimal; }
.legal-doc ul { list-style: disc; }

/* ---------- Hero простой (для подстраниц) ---------- */
.hero {
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}
.hero p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---------- Карточки контактов ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.list-item h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.list-item p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.list-item a { color: var(--accent-light); }
.list-item a:hover { color: var(--white); }

/* ---------- Карточки тарифов ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card:hover::before { opacity: 1; }

.pricing-card__header { margin-bottom: 16px; }
.pricing-card__product {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 600;
}
.pricing-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

.pricing-card__body { margin-bottom: 20px; }
.pricing-card__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.pricing-card__period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pricing-card__btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- Секция ИП ---------- */
.ip-info {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Анимации ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section, .service-card, .feature-card, .cta-section, .legal-doc {
  animation: fadeUp .6s ease both;
}
.service-card:nth-child(2) { animation-delay: .05s; }
.service-card:nth-child(3) { animation-delay: .1s; }
.service-card:nth-child(4) { animation-delay: .15s; }
.service-card:nth-child(5) { animation-delay: .2s; }
.service-card:nth-child(6) { animation-delay: .25s; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { grid-template-columns: 1fr; padding: 32px; }
  .cards-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .site-foot__inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 60px 0 40px; }
  .section { padding: 48px 0; }
  .site-top__inner { height: 56px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .top-actions .btn { padding: 6px 12px; font-size: 12px; }
  .hero { padding: 28px 20px; }
  .legal-doc { padding: 24px 20px; }
  .cta-section { padding: 24px; }
  .service-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
