/* Identify Insect Bite — marketing site. Same design tokens as the funnel. */

:root {
  --paper: #FFFFFF;
  --ground: #EAF4F9;
  --ink: #1C2B33;
  --muted: #5C707B;
  --accent: #E23D3D;
  --success: #2E7D4F;
  --hairline: #E3E9ED;
  --radius-card: 12px;
  --radius-btn: 10px;
  --shadow: 0 1px 3px rgba(28, 43, 51, 0.06);
  --col: 1000px;
  --col-narrow: 680px;
  --col-hero: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 10px;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 12px; }

a { color: var(--accent); }

img { max-width: 100%; display: block; }

.muted { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout */
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: var(--col-narrow); }
.wrap--hero { max-width: var(--col-hero); }

section { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head { max-width: 62ch; margin: 0 auto 32px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(226, 61, 61, 0.25); }

.btn--ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: rgba(226, 61, 61, 0.06); }

.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 0.92rem; }
.btn--full { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--hairline); }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; color: var(--ink); }
.brand-name span { color: var(--accent); }

.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { padding-top: 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0 14px; }
.trust { font-size: 0.88rem; }
.hero-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 30px rgba(28, 43, 51, 0.12);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Cards & grids */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h3 { margin-top: 0; }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ground);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Thumbnail groups inside step cards: always a 3-across horizontal row,
   at EVERY viewport — flex row so the mobile .grid--3 collapse (which is
   only for the step cards themselves) can never stack these images. */
.step-thumb-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 14px;
}

.step-thumb {
  flex: 1;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}

.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* Section bands */
.band { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* Pricing */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.plan-card--featured { border: 2px solid var(--accent); }

.plan-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
}
.badge--accent { background: var(--accent); }
.badge--success { background: var(--success); }

.plan-name { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

.plan-price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price-amount { font-size: 32px; font-weight: 700; color: var(--ink); }
.plan-price-period { font-size: 14px; color: var(--muted); }

.plan-subline { margin: 0; font-size: 13px; font-weight: 600; color: var(--success); }

.plan-billed { margin: 0; font-size: 14px; color: var(--muted); }

.plan-card .btn { margin-top: 16px; }

.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Disclaimer callouts */
.disclaimer-section { text-align: center; }

.disclaimer-box {
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
  max-width: 62ch;
  margin: 0 auto;
}

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--hairline); padding: 36px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .disclaimer { font-size: 0.85rem; color: var(--muted); max-width: 70ch; }
.site-footer .copyright { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Legal pages */
.legal { max-width: var(--col-narrow); margin: 48px auto; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin-top: 34px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--ink); }
.legal a { color: var(--accent); }
.legal ul { padding-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  section { padding: 40px 0; }
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-header nav a:not(.btn) { display: none; }
}

@media (max-width: 420px) {
  .site-header .brand-name { font-size: 16px; }
}

/* Карточки-ссылки в блоке библиотеки: наследовали подчёркивание и цвет ссылки,
   из-за чего читались как список ссылок, а не как карточки. */
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card h3 { color: var(--ink); margin: 0 0 6px; font-size: 1rem; }
a.card p { color: var(--muted); margin: 0; font-size: .92rem; line-height: 1.5; }
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
