/* ═══════════════════════════════════════════════
   style.css — 1С Интеграции
   ═══════════════════════════════════════════════ */

/* VARIABLES */
:root {
  --bg:      #0c0e12;
  --bg2:     #12151b;
  --bg3:     #181c24;
  --accent:  #f5e000;
  --accent2: #38b8ff;
  --text:    #f0f2f8;
  --muted:   #7a8196;
  --border:  rgba(255, 255, 255, 0.07);
  --green:   #47ffb0;
  --radius:  16px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

/* BASE */
body {
  font-family: 'Onest', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* NOISE TEXTURE — removed: feTurbulence SVG filter on fixed layer was causing scroll jank */

/* LAYOUT */
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.divider { height: 1px; background: var(--border); }
.dark-bg { background: var(--bg2); }

/* SECTION LABELS */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  line-height: 1.25;
}

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 860px;
  margin: 0 auto;
}
.logo { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.logo span { color: var(--accent); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0c0e12; }
.btn-primary:hover { background: #dccb00; transform: translateY(-1px); }

.btn-tg {
  background: rgba(56, 184, 255, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(56, 184, 255, 0.25);
}
.btn-tg:hover { background: rgba(56, 184, 255, 0.2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255, 255, 255, 0.4); }

/* ─── HERO ─── */
.hero { padding: 80px 0 70px; position: relative; background: #f5f5f0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #2a2e1a;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #0c0e12;
}
.hero h1 em { font-style: normal; color: #9a7c00; }

.hero-sub {
  font-size: 17px;
  color: #4a4f5e;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn { font-size: 15px; padding: 14px 28px; border-radius: 12px; }

.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(245, 224, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg2);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  will-change: transform;
  transform: translateZ(0);
}
.marquee-track span { white-space: nowrap; }
.marquee-track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PROBLEMS ─── */
.problems-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.prob-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.prob-item:hover { border-color: rgba(255, 77, 77, 0.3); }
.prob-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 77, 77, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.prob-item p { font-size: 15px; color: var(--text); line-height: 1.5; margin-top: 4px; }

/* ─── SOLUTION / INTEGRATION CARDS ─── */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.sol-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.sol-item:hover { border-color: rgba(71, 255, 176, 0.3); transform: translateY(-2px); }
.sol-icon { font-size: 22px; margin-bottom: 10px; }
.sol-item h3 { font-size: 15px; font-weight: 600; color: var(--text); }

/* ─── STEPS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.step {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.step h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.step p { font-size: 13px; color: var(--muted); margin-top: 6px; }

.timeline-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 224, 0, 0.08);
  border: 1px solid rgba(245, 224, 0, 0.2);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.price-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s;
}
.price-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.price-card.featured {
  border-color: rgba(245, 224, 0, 0.35);
  background: rgba(245, 224, 0, 0.04);
}
.price-tag { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.price-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.price-card p { font-size: 13px; color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted); font-style: italic; }

/* ─── CASES ─── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.case-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.case-row { font-size: 14px; line-height: 1.6; }
.case-row strong { color: var(--muted); font-weight: 500; }
.case-result { font-size: 14px; font-weight: 600; color: var(--green); line-height: 1.7; }

/* ─── GUARANTEE ─── */
.guarantee-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(71, 255, 176, 0.05);
  border: 1px solid rgba(71, 255, 176, 0.2);
  border-radius: var(--radius);
  padding: 28px;
}
.guarantee-icon { font-size: 36px; flex-shrink: 0; }
.guarantee-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.guarantee-card p { font-size: 15px; color: var(--muted); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  padding: 50px 20px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.cta-band p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── CONTACTS ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  color: var(--text);
}
.contact-item:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.contact-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-tg  { background: rgba(56, 184, 255, 0.12); }
.ci-mail { background: rgba(245, 224, 0, 0.1); }
.contact-item span { font-size: 14px; font-weight: 600; display: block; }
.contact-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── FORM ─── */
.form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
}
.form-wrap p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.form-wrap input,
.form-wrap textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.form-wrap input:focus,
.form-wrap textarea:focus { border-color: rgba(245, 224, 0, 0.4); }
.form-wrap textarea { height: 90px; resize: none; }
.form-wrap .btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px;
  font-size: 15px;
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  position: relative; z-index: 1;
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  width: 34px; height: 34px;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Onest', sans-serif;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); }
.modal-box input,
.modal-box textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-box input:focus,
.modal-box textarea:focus { border-color: rgba(245, 224, 0, 0.4); }
.modal-box textarea { height: 100px; resize: none; }
.modal-submit {
  width: 100%;
  background: var(--accent);
  color: #0c0e12;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-submit:hover { background: #dccb00; }
.modal-hint { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ─── FOOTER ─── */
footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent2); }
footer a:hover { text-decoration: underline; }

/* ─── ANIMATIONS ─── */
.hero-badge { animation: fadeIn 0.5s ease both; }
.hero h1    { animation: fadeIn 0.5s 0.1s ease both; }
.hero-sub   { animation: fadeIn 0.5s 0.2s ease both; }
.hero-btns  { animation: fadeIn 0.5s 0.3s ease both; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .header-cta .btn-outline { display: none; }
  .hero { padding: 48px 0; }
  .cta-inner { flex-direction: column; }
  .sol-grid    { grid-template-columns: 1fr; }
  .steps       { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .guarantee-card { flex-direction: column; }
  .cases-grid  { grid-template-columns: 1fr; }
  .form-wrap   { padding: 20px; }
  .modal-box   { padding: 24px; }
}

/* ─── FAQ ─── */
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(245, 224, 0, 0.25); }

.faq-q {
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q span { transform: rotate(45deg); }

.faq-a {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 300;
  width: calc(100% - 40px);
  max-width: 680px;
  background: #1e2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}
.cookie-banner.cookie-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cookie-icon { font-size: 22px; flex-shrink: 0; }
.cookie-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.cookie-text a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.cookie-btn-accept {
  background: var(--accent);
  color: #0c0e12;
}
.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 500px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
