/* ========== GLOBALS ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #fff;
}

:root {
  --primary: #2563eb;
  --primary-ink: #fff;
  --muted: #667085;
  --border: #e5e7eb;
  --alt: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.nav__toggle {
  display: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  text-decoration: none;
  color: inherit;
}

.nav__list a:hover {
  color: var(--primary);
}

/* ========== HERO ========== */
.hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, #eef2ff, transparent 60%);
}

.hero__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 4vw, 2rem);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero__bullets {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.hero__art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(0.75rem, 2vw, 1rem) 0;
}

.section--alt {
  background: var(--alt);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
}

/* ========== TEXT BLOCKS ========== */
.seo-text {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seo-text h2,
.seo-text h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.seo-text p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.seo-text ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.seo-text li {
  margin-bottom: 0.4rem;
}

/* ========== CARDS, GRIDS, CTA BOX ========== */
.grid {
  display: grid;
  gap: 0.75rem;
}

.features {
  grid-template-columns: repeat(4, 1fr);
}

.features.small {
  grid-template-columns: repeat(3, 1fr);
}

.screens {
  grid-template-columns: repeat(3, 1fr);
}

.compare {
  grid-template-columns: repeat(2, 1fr);
}

.pricing {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.footer__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.card {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature .icon {
  width: 36px;
  height: 36px;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.screen figcaption {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta__box {
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #e0e7ff, #f0f9ff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 1rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer__links {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.muted {
  font-size: 0.9rem;
  color: var(--muted);
}

.subscribe__row {
  display: flex;
  gap: 0.3rem;
}

.subscribe input {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.socials {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: transparent;
}

.btn--primary:hover {
  filter: brightness(0.95);
}

.btn--ghost {
  background: #fff;
  color: #111827;
}

.btn--sm {
  padding: 0.4rem 0.6rem;
}

/* ========== ADAPTIVE ========== */
@media (max-width: 980px) {
  .features,
  .features.small {
    grid-template-columns: repeat(2, 1fr);
  }
  .screens {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: block;
  }
  .nav__list {
    display: none;
    position: absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .nav__list.is-open {
    display: flex;
  }
  .screens,
  .pricing,
  .features,
  .features.small {
    grid-template-columns: 1fr;
  }
  .subscribe__row {
    flex-direction: column;
  }
}

/* ========== CENTER CTA BUTTON ========== */
.section.cta .hero__cta {
  justify-content: center;
}

/* ========== ACCORDION ========== */
.accordion {
  max-width: 800px;
  margin: 2rem auto;
  background: #f9f9fb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion details {
  border-top: 1px solid #e0e0e6;
  background: #fff;
  transition: background 0.3s ease;
}

.accordion details:first-of-type {
  border-top: none;
}

.accordion summary {
  position: relative;
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  color: #2a9df4;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "▼";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #2a9df4;
}

.accordion details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.accordion summary:hover {
  background: #f1f1f5;
  color: #1c7cd6;
}

.accordion details div {
  padding: 0 1.25rem 1rem;
  color: #555;
  line-height: 1.6;
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  background-color: #e3f2fd;
  color: #0d47a1;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.comparison-table tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #dde3ea;
  color: #333;
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: #f9fcff;
}

.comparison-table tbody tr:hover {
  background-color: #eef7ff;
}

.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* Highlight the “Our Email Extractor” column */
.comparison-table tbody td:nth-child(2) {
  background-color: rgba(42, 157, 244, 0.1);
}

.full-width-parent {
  display: block;       /* textarea всегда занимает всю доступную ширину */
  width: 100%;          /* 100% от ширины родителя */
  box-sizing: border-box; /* учитывает внутренние отступы и бордеры */
}