/* ========================================
   ROOT & RESET
======================================== */
:root {
  --white-white: #ffffff;
  --paper: #e0ded1;
  --paper-line: #DAD6C8;
  --ink: #1B2A4A;
  --ink-soft: #3C4A68;
  --gold: #C9962C;
  --credit: #1F5C4E;
  --debit: #7A5A2E;
  --white: #FCFCFA;
  --receipt-bg: #FAFAF7;
  --font-body: 'PT Sans', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 6px;
  --shadow: 0 4px 12px rgba(27, 42, 74, 0.06);
  --container: 1120px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
@media (max-width: 420px) { .wrap { padding: 0 16px; } }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
}
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 600;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ========================================
   RECEIPT CARD (ЧЕК)
======================================== */
.receipt-card {
  background: var(--receipt-bg);
  border: 1px solid #D6D2C4;
  padding: 24px;
  font-family: var(--font-mono);
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.receipt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-size: 16px 10px;
}

.receipt-header { text-align: center; padding-bottom: 12px; margin-bottom: 16px; }
.receipt-header .shop-name { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.receipt-header .receipt-sub { font-size: 12px; color: var(--ink-soft); }

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--paper-line);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--ink-soft); }
.receipt-row .value { font-weight: 600; color: var(--ink); text-align: right; }
.receipt-row .value.highlight { color: var(--credit); }

.receipt-divider { border-top: 2px dashed var(--ink); margin: 14px 0; }
.receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    text-transform: uppercase;
    color: var(--credit);
}

.barcode {
  height: 38px;
  margin-top: 16px;
  background: repeating-linear-gradient(90deg, var(--ink), var(--ink) 2px, transparent 2px, transparent 4px, var(--ink) 4px, var(--ink) 7px, transparent 7px, transparent 9px);
  opacity: 0.85;
}

/* ========================================
   HEADER
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.8; }

.mobile-logo {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease;
}
.mobile-logo:hover { background: var(--paper); transform: scale(1.05); }
.mobile-logo svg { width: 100%; height: 100%; display: block; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link {
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}
.phone-link:hover { color: var(--gold); }

@media (max-width: 768px) {
  .brand { display: none; }
  .mobile-logo { display: flex; }
  .site-header .wrap { padding: 10px 16px; }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  padding: 18px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  text-align: center;
  transition: all 0.15s ease;
  border: none;
}
@media (max-width: 576px) { .btn-primary { width: 100%; } }
.btn-primary { background: var(--credit); color: var(--white); }
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  margin: 1.5rem 0;
  width:100%;
  font-weight:700;
}
.btn-gold:hover { background: #b98722; border-color: #b98722; }

/* ========================================
   HERO
======================================== */
.hero { padding: 64px 0 48px; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  margin-bottom: 6rem;
  padding: 0 24px;
}
@media (max-width: 900px) { 
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 44px; 
    padding: 0 16px; 
  } 
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin-bottom: 20px; }
.hero-lede { font-size: 18.5px; color: var(--ink-soft); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note {
    margin-top: 2em;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-soft);
    background: #E8F2EE;
    padding: 4px 8px;
    display: inline-block;
    color: var(--credit);
    font-weight: 600;
}

/* ========================================
   SEGMENTS
======================================== */
.segments { padding: 0 16px; }
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 900px) { .segments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .segments-grid { grid-template-columns: 1fr; } }

.segment-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 20px 16px;
  border-top: 3px solid var(--gold);
}
.segment-card h2 { font-size: 16px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.segment-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.4; }

/* ========================================
   SECTIONS
======================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ========================================
   CASES
======================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card { border-top: 3px solid var(--gold); padding: 24px; }
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
  border-bottom: 1px solid var(--paper-line);
  padding: 12px 0;
}
.metric-num { font-family: var(--font-mono); font-size: 34px; font-weight: 600; }
.metric-note {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}
.metric-note-sub {
    margin-top: 0.5em;
    font-family: var(--font-mono);
    font-size: 13px;
    background: #E8F2EE;
    padding: 4px 8px;
    display: inline-block;
    font-weight: 600;
    color: var(--credit);
}

/* ========================================
   CALCULATOR
======================================== */
.calc-card { background: var(--white); border: 1px solid var(--paper-line); padding: 18px; border-top: 3px solid var(--gold); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.calc-val { font-family: var(--font-mono); font-size: 30px; font-weight: 600; margin: 8px 0; line-height: 1.15; }

/* ========================================
   DEBIT-CREDIT
======================================== */
.dc-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--gold);
}
@media (max-width: 760px) { .dc-table { grid-template-columns: 1fr; } }

.dc-col-head {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 24px;
    color: var(--ink);
    background: #e0ded1;
    font-weight: 600;
}
.dc-item {
  padding: 18px 24px;
  border-top: 1px solid var(--paper-line);
  font-size: 15px;
  display: flex;
  gap: 12px;
}
.dc-debit { border-right: 1px solid var(--paper-line); }
@media (max-width: 760px) { 
  .dc-debit { border-right: none; border-bottom: 1px solid var(--ink); } 
}
.dc-item .glyph { font-family: var(--font-mono); font-weight: 600; flex: 0 0 auto; }
.dc-debit .glyph { color: var(--debit); }
.dc-credit .glyph { color: var(--credit); }

/* ========================================
   PROCESS
======================================== */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-list { grid-template-columns: 1fr; } }

.process-item { background: var(--white); padding: 28px 24px; }
.process-num { font-family: var(--font-mono); color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.process-item h3 { font-size: 18px; margin-bottom: 8px; }
.process-item p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ========================================
   PRICING
======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { 
  .pricing-grid { 
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) { 
  .pricing-grid { 
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  border-top: 3px solid var(--gold);
}
.price-card.featured { border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--gold); }
.price-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.price-name { font-family: var(--font-body); font-size: 22px; font-weight: 400; margin-bottom: 4px; }
.price-tag { font-family: var(--font-mono); font-size: 26px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.price-tag span { font-size: 14px; color: var(--ink-soft); }
.price-target {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--credit);
  font-weight: 600;
  margin-bottom: 16px;
  background: #E8F2EE;
  padding: 6px 8px;
  display: inline-block;
  line-height: 1.3;
}
.price-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-features li {
  padding: 8px 0;
  border-top: 1px solid var(--paper-line);
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.price-features li:first-child { border-top: none; }
.price-features li::before { content: "+"; color: var(--gold); flex: 0 0 auto; }
.price-purpose { margin-bottom: 2em; }

/* ========================================
   FAQ
======================================== */
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.faq-q .plus { font-family: var(--font-mono); font-size: 20px; color: var(--gold); transition: transform 0.2s ease; flex: 0 0 auto; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 4px 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }

/* ========================================
   CTA (CONTACT)
======================================== */
/* ========================================
   CTA (CONTACT)
======================================== */
.cta-section { 
  background: var(--ink); 
  color: var(--white); 
  padding: 72px 0; 
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.cta-section h2 { 
  color: var(--white); 
}

.cta-section .eyebrow { 
  color: var(--gold); 
}

.cta-lede { 
  font-size: 17px; 
  max-width: 46ch; 
}

/* ===== CONTACT LINKS ===== */
.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 2rem 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: default; /* строка не кликабельна */
  transition: none;
}

/* Иконка */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #245E4D;
  color: var(--white-white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover .card-icon {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Контент */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card-label {
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 2px;
  font-weight: 600;
}

/* ССЫЛКА — кликабелен только текст */
.card-link {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 4px 0;
  border-radius: 2px;
  display: inline-block; /* ссылка занимает только ширину текста */
  cursor: pointer;
}

.card-link:hover {
  color: var(--gold);
}

.card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 860px) { 
  .cta-grid { 
    grid-template-columns: 1fr; 
    gap: 32px;
  } 
}

@media (max-width: 600px) {
  .contact-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-card {
    padding: 4px 0;
  }

  /* Увеличиваем область касания на мобильных */
  .card-link {
    padding: 8px 4px;
    margin: -8px -4px;
  }
}

/* ========================================
   FORM STYLES (из шапки и чека)
======================================== */
.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 5px;
    font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px dashed var(--paper-line);
  background: var(--white);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 0;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 60px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; text-align: left; }
.form-note a { color: var(--gold); }
.form-status { font-size: 13.5px; margin-top: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--credit); font-weight: 600; }

/* ========================================
   FOOTER
======================================== */
.site-footer { padding: 32px 0; border-top: 1px solid var(--paper-line); background: var(--white-white); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-info p { margin: 1em 0; font-size: 13.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; margin-left: 18px; }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--paper-line);
  display: none;
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}
.mobile-cta a { flex: 1; text-align: center; padding: 12px 10px; font-size: 14px; }
@media (max-width: 700px) { .mobile-cta { display: flex; } }