/* ============================================================
   OTVET.CHAT — Global Styles
   Design: Refined Minimalism + Editorial Accents
   ============================================================ */

:root {
  --ink: #0A0E1A;
  --ink-2: #1B2237;
  --ink-3: #373F56;
  --paper: #FAFAF7;
  --paper-warm: #F5F1EA;
  --paper-cold: #F0F3F7;
  --accent: #FF5733;
  --accent-2: #16B897;
  --brand-blue: #2E5FDB;
  --line: #E4DFD6;
  --muted: #6B6960;
  --success: #16B897;
  --warning: #FF9F1C;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 32px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a.active { color: var(--accent); }

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle::after {
  content: "↓";
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.5;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-width: 240px;
  box-shadow: 0 20px 40px -15px rgba(10, 14, 26, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.nav-links .dropdown-menu a:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

/* Buttons */
.btn {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-big {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-sm { padding: 60px 0 40px; }

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 87, 51, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  background: white;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Typography */
h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--ink);
}

h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 87, 51, 0.15);
  z-index: -1;
}

h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--ink);
}

h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.proof-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 88px 0; }
section.sm { padding: 56px 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 52px;
  line-height: 1.5;
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 14, 26, 0.15);
  border-color: var(--ink);
}

.feat-icon {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.feat-card:nth-child(2) .feat-icon { background: var(--accent); }
.feat-card:nth-child(4) .feat-icon { background: var(--accent-2); }
.feat-card:nth-child(6) .feat-icon { background: var(--brand-blue); }

.feat-card h3 { margin-bottom: 10px; }

.feat-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Segments grid */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.seg-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.seg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.seg-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.seg-card:hover::before { transform: scaleX(1); }

.seg-emoji {
  font-size: 40px;
  margin-bottom: 18px;
  line-height: 1;
}

.seg-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.seg-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.seg-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step {
  text-align: left;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.step h3 { margin-bottom: 10px; }

.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: var(--ink);
  color: var(--paper);
}

.pricing .section-label { color: var(--accent); }
.pricing h2, .pricing .section-lead { color: var(--paper); }
.pricing .section-lead { opacity: 0.7; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
}

.price-card.featured {
  background: var(--paper);
  color: var(--ink);
  transform: scale(1.02);
}

.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}

.price-amount {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-per {
  font-size: 15px;
  opacity: 0.6;
  margin-bottom: 28px;
}

.price-list {
  list-style: none;
  margin-bottom: 28px;
}

.price-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.price-card.featured .price-list li {
  border-color: rgba(10, 14, 26, 0.08);
}

.price-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-price {
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: white;
}

.price-card:not(.featured) .btn-price {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-q {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  list-style: none;
  line-height: 1.4;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

details[open] .faq-q::after { transform: rotate(45deg); }

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

/* ============================================================
   CTA
   ============================================================ */
.cta-final {
  background: var(--paper-warm);
  text-align: center;
  padding: 120px 0;
}

.cta-final h2 { margin: 0 auto 20px; }

.cta-final .section-lead {
  margin: 0 auto 36px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: var(--paper);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 14px;
}

.footer-logo .dot { color: var(--accent); }

.footer-tagline {
  color: rgba(250, 250, 247, 0.6);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 280px;
}

footer h4 {
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 10px; }

footer ul a {
  color: rgba(250, 250, 247, 0.7);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

footer ul a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   CONTENT PAGES (для /whatsapp, /telegram, сегментов)
   ============================================================ */
.content-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
}

.content-body h2 {
  margin-top: 56px;
  margin-bottom: 16px;
}

.content-body h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 22px;
}

.content-body p {
  margin-bottom: 20px;
  color: var(--ink-3);
}

.content-body ul, .content-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.content-body li {
  margin-bottom: 10px;
  color: var(--ink-3);
  line-height: 1.65;
}

.content-body strong { color: var(--ink); font-weight: 700; }

.content-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.content-body a:hover { border-bottom-color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .sep { opacity: 0.4; }

/* Callout boxes */
.callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.callout-success {
  background: rgba(22, 184, 151, 0.08);
  border-left-color: var(--accent-2);
}

.callout strong { display: block; margin-bottom: 4px; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.data-table th {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table tr:nth-child(even) td { background: var(--paper-warm); }

/* Lead form */
.lead-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  box-shadow: 0 20px 40px -20px rgba(10, 14, 26, 0.08);
}

.lead-form h3 {
  margin-bottom: 8px;
}

.lead-form p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-consent {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}

.form-consent a { color: var(--accent); text-decoration: none; }

/* Cases / Kases */
.case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
}

.case-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.case-tag {
  background: var(--paper-warm);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.case-metric {
  display: flex;
  gap: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  flex-wrap: wrap;
}

.case-metric-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.case-metric-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.blog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

.blog-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--muted);
  font-size: 14.5px;
  flex-grow: 1;
  line-height: 1.55;
}

.blog-card .read-more {
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 14.5px;
}

.compare-table th, .compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  background: var(--paper-warm);
  font-weight: 600;
}

.compare-table .yes { color: var(--accent-2); font-weight: 700; }
.compare-table .no { color: #D63031; font-weight: 700; }

.compare-table .winner {
  background: rgba(255, 87, 51, 0.05);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }

  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    min-width: auto;
  }

  .burger { display: flex; }

  section { padding: 56px 0; }
  section.sm { padding: 36px 0; }
  .hero { padding: 40px 0 32px; }

  .hero-proof { gap: 24px; }
  .proof-num { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero-cta .btn { width: 100%; text-align: center; }

  .price-card.featured { transform: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .case-metric { gap: 24px; }
  .case-metric-num { font-size: 24px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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