/* --- Стили для лендинга VK AdBlogger Helper --- */

:root {
  --primary: #0077FF;
  --primary-hover: #0066de;
  --primary-light: #eef5ff;
  --primary-border: #cce0ff;
  --text-main: #1c1c1e;
  --text-secondary: #626d7a;
  --text-muted: #818c99;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-light: #edf2f7;
  --green: #27ae60;
  --green-bg: #eafaf1;
  --red: #e64646;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Навигация --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 119, 255, 0.2);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.badge-version {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s ease;
}

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

.nav-author {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Hero --- */
.hero {
  padding: 64px 0 80px;
  background: radial-gradient(circle at 80% 20%, #eef5ff 0%, #f8fafc 60%);
  border-bottom: 1px solid var(--border-card);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: #1e824c;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #27ae60;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #0f172a;
}

.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #0077FF 0%, #00aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-item svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Hero Preview Graphics */
.hero-preview {
  position: relative;
}

.preview-card-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  background: #ffffff;
  overflow: visible;
}

.preview-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.preview-img-floating {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 230px;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border: 2px solid #ffffff;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* --- Секции --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* --- Возможности (Grid) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-icon-blue { background: #eef5ff; }
.feature-icon-green { background: #eafaf1; }
.feature-icon-purple { background: #f3e8ff; }
.feature-icon-excel { background: #e6f7f0; }
.feature-icon-orange { background: #fff4e5; }
.feature-icon-teal { background: #e6fffa; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Showcase --- */
.section-screenshots {
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.showcase-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.showcase-browser-bar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-card);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-address {
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  width: 380px;
}

.showcase-img {
  width: 100%;
  display: block;
}

.showcase-caption {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-card);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.showcase-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.showcase-mini-card {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.showcase-mini-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-mini-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.card-img-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.mini-preview-img {
  max-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.excel-preview-box {
  margin-top: auto;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.excel-badge {
  display: inline-block;
  background: #27ae60;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.excel-fields {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Установка (Tabs) --- */
.install-tabs-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.install-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-card);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.browser-icon {
  width: 18px;
  height: 18px;
}

.tab-content {
  display: none;
  padding: 36px 32px;
}

.tab-content.active {
  display: block;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.step-body strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.step-body p {
  font-size: 14px;
  color: var(--text-secondary);
}

.link-download {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.link-ext {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.code-copy {
  display: inline-block;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s;
}

.code-copy:hover {
  background: #e2e8f0;
}

/* --- FAQ --- */
.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

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

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.section-cta {
  padding: 40px 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, #0077FF 0%, #0055d4 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 119, 255, 0.3);
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.cta-box p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 28px;
}

.cta-btns {
  display: flex;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  padding: 50px 0 24px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1c1c1e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* --- Адаптивность (Mobile) --- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc {
    margin: 0 auto 28px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges-list {
    justify-content: center;
  }
  .preview-img-floating {
    right: 10px;
    bottom: -16px;
    width: 180px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
  .nav-links {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .install-tabs {
    flex-wrap: wrap;
  }
  .tab-btn {
    flex: 1 1 50%;
  }
  .footer-container {
    flex-direction: column;
  }
}
