/* ══════════════════════════════════════════════════════════════════════
   ЕваСтудия3Д — Global Styles
   Palette: dark #0e0e14, accent #7c3aed (violet), highlight #06b6d4 (cyan)
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --c-bg:       #0e0e14;
  --c-surface:  #16161f;
  --c-border:   #2a2a3a;
  --c-text:     #e2e8f0;
  --c-muted:    #8892a4;
  --c-accent:   #7c3aed;
  --c-accent2:  #06b6d4;
  --c-success:  #10b981;
  --c-warn:     #f59e0b;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --font:       'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: var(--c-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ─────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-family: var(--font);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: .2s; text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary  { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: #6d28d9; }
.btn--cyan     { background: var(--c-accent2); color: #0e0e14; }
.btn--cyan:hover { background: #0891b2; }
.btn--outline  { background: transparent; color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn--outline:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--lg       { padding: 16px 32px; font-size: 1.05rem; }
.btn--sm       { padding: 8px 16px; font-size: .85rem; }
.btn--block    { width: 100%; justify-content: center; }

/* ── Header ────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,20,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.logo { font-size: 1.1rem; font-weight: 800; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--c-accent); }
.logo__icon { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; margin-left: 16px; }
.nav__link {
  padding: 6px 12px; border-radius: 6px; color: var(--c-muted);
  font-size: .9rem; font-weight: 500; transition: .15s;
}
.nav__link:hover, .nav__link--active { color: var(--c-text); background: var(--c-surface); text-decoration: none; }
.nav__link--b2b { color: var(--c-accent2); }
.nav__link--b2b:hover { background: rgba(6,182,212,.1); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cart-btn {
  position: relative; padding: 8px 16px; border-radius: 8px;
  background: var(--c-surface); color: var(--c-text); font-weight: 600;
  font-size: .9rem; transition: .15s; border: 1px solid var(--c-border);
}
.cart-btn:hover { border-color: var(--c-accent2); text-decoration: none; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--c-accent);
  color: #fff; border-radius: 50%; width: 18px; height: 18px;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--sm  { padding: 48px 0; }
.section--dark { background: var(--c-surface); }
.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; margin-bottom: 12px;
}
.section__sub { color: var(--c-muted); margin-bottom: 40px; max-width: 560px; }

/* ── Hero B2C ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0e0e14 0%, #1a0a2e 50%, #0a1a2e 100%);
  padding: 80px 0 64px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(6,182,212,.1) 0%, transparent 50%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__label {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4);
  color: var(--c-accent); font-size: .8rem; font-weight: 600;
  margin-bottom: 16px; letter-spacing: .05em;
}
.hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.hero__title .accent { color: var(--c-accent); }
.hero__title .cyan   { color: var(--c-accent2); }
.hero__sub { color: var(--c-muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 460px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero__stat__num  { font-size: 1.8rem; font-weight: 800; color: var(--c-accent2); }
.hero__stat__label { font-size: .8rem; color: var(--c-muted); margin-top: 2px; }

.hero__visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hero__card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  transition: .2s; cursor: pointer;
}
.hero__card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.hero__card__icon { font-size: 2.4rem; margin-bottom: 8px; }
.hero__card__title { font-size: .85rem; font-weight: 600; color: var(--c-text); }
.hero__card__price { font-size: .8rem; color: var(--c-accent2); margin-top: 4px; }

/* ── Product grid ──────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card__img {
  aspect-ratio: 4/3; background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--c-muted);
}
.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat  { font-size: .75rem; color: var(--c-accent); font-weight: 600; margin-bottom: 4px; letter-spacing: .05em; text-transform: uppercase; }
.product-card__name { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.product-card__desc { font-size: .82rem; color: var(--c-muted); margin-bottom: 12px; flex: 1; line-height: 1.5; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__price  { font-size: 1.05rem; font-weight: 800; color: var(--c-accent2); }
.product-card__price--req { font-size: .85rem; color: var(--c-muted); font-weight: 500; }

/* ── Category tabs ─────────────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-tab {
  padding: 6px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--c-border); color: var(--c-muted);
  background: transparent; cursor: pointer; transition: .15s; font-family: var(--font);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
}

/* ── Services grid (B2B) ───────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px; transition: .2s;
}
.service-card:hover { border-color: var(--c-accent); }
.service-card__icon  { font-size: 2.4rem; margin-bottom: 16px; }
.service-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-card__desc  { font-size: .88rem; color: var(--c-muted); line-height: 1.6; }

/* ── Process steps ─────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
  counter-reset: steps;
}
.step {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px 24px 24px 56px; position: relative;
}
.step::before {
  counter-increment: steps; content: counter(steps);
  position: absolute; left: 16px; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.step__title { font-weight: 700; margin-bottom: 6px; }
.step__desc  { font-size: .85rem; color: var(--c-muted); line-height: 1.5; }

/* ── Features / Advantages ─────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--c-surface); border-radius: 10px;
  border: 1px solid var(--c-border);
}
.feature__icon { font-size: 1.4rem; flex-shrink: 0; }
.feature__text { font-size: .88rem; line-height: 1.5; }
.feature__title { font-weight: 700; margin-bottom: 2px; }

/* ── Lead Form ─────────────────────────────────────────────────────── */
.lead-section {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1a2e 100%);
  border-top: 1px solid var(--c-border);
}
.lead-form { max-width: 520px; }
.form-row  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.form-row input, .form-row textarea,
.form-field { flex: 1 1 200px; }
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; padding: 13px 16px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1.5px solid var(--c-border);
  color: var(--c-text); font-family: var(--font); font-size: .95rem;
  transition: .15s; outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--c-accent); background: rgba(124,58,237,.08);
}
textarea { resize: vertical; min-height: 100px; }
.form__agree { font-size: .78rem; color: var(--c-muted); margin-top: 10px; }
.form__agree a { color: var(--c-muted); text-decoration: underline; }
.form-success {
  display: none; padding: 16px; border-radius: 8px;
  background: rgba(16,185,129,.1); border: 1px solid var(--c-success);
  color: var(--c-success); font-weight: 600; margin-top: 12px;
}

/* ── Materials ─────────────────────────────────────────────────────── */
.materials { display: flex; flex-wrap: wrap; gap: 10px; }
.material-chip {
  padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--c-border); color: var(--c-muted);
}
.material-chip--active { border-color: var(--c-accent2); color: var(--c-accent2); }

/* ── Cart ──────────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 0; color: var(--c-muted); font-size: .85rem; border-bottom: 1px solid var(--c-border); }
.cart-table td { padding: 16px 0; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.cart-summary { max-width: 320px; margin-left: auto; background: var(--c-surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--c-border); }
.cart-total   { font-size: 1.3rem; font-weight: 800; color: var(--c-accent2); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; }
.faq-item { border: 1px solid var(--c-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; color: var(--c-accent); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '－'; }
.faq-item[open] summary { background: rgba(124,58,237,.08); }
.faq-answer { padding: 0 20px 16px; color: var(--c-muted); line-height: 1.7; font-size: .92rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: 40px 0 24px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { font-size: .9rem; color: var(--c-muted); margin-top: 8px; line-height: 1.6; }
.footer__title { font-weight: 700; margin-bottom: 12px; font-size: .9rem; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a { color: var(--c-muted); font-size: .85rem; }
.footer__links a:hover { color: var(--c-text); text-decoration: none; }
.footer__bottom { border-top: 1px solid var(--c-border); padding-top: 20px; color: var(--c-muted); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Breadcrumb ────────────────────────────────────────────────────── */
.breadcrumb { padding: 10px 0; font-size: .82rem; color: var(--c-muted); border-bottom: 1px solid var(--c-border); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-text); }

/* ── Tags ──────────────────────────────────────────────────────────── */
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600; background: rgba(124,58,237,.15); color: var(--c-accent); }
.tag--cyan { background: rgba(6,182,212,.15); color: var(--c-accent2); }
.tag--green { background: rgba(16,185,129,.15); color: var(--c-success); }

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--c-accent); color: #fff;
  padding: 14px 20px; border-radius: 10px; font-weight: 600;
  transform: translateY(80px); opacity: 0; transition: .3s;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .nav { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { flex-direction: column; }
}

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }

/* ── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
