/* ============ Пест Мониторинг Центр — демо главной. Mobile-first. ============ */

:root {
  --blue:        #1b6fb3;
  --blue-dark:   #145589;
  --blue-light:  #e8f2fa;
  --navy:        #34495e;
  --navy-dark:   #2b3a4a;
  --orange:      #e8922e;
  --ink:         #1f2a37;
  --muted:       #5b6b7b;
  --line:        #e3e8ee;
  --bg:          #ffffff;
  --bg-soft:     #f5f8fb;
  --ok:          #1f8a4c;
  --err:         #c0392b;
  --radius:      12px;
  --shadow:      0 6px 24px rgba(20, 50, 80, .08);
  --container:   1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: .7em 1.2em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-light); }
.btn--lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.logo__mark { flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: .98rem; color: var(--blue-dark); }
.logo__text small { font-size: .68rem; color: var(--muted); display: none; }

.header__nav { display: none; gap: 22px; }
.header__nav a { color: var(--ink); font-weight: 500; }
.header__nav a:hover { color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__actions { flex: none; }
.header__cta { padding: .5em .95em; font-size: .85rem; white-space: nowrap; }
.header__cta-full { display: none; }
.header__cta-short { display: inline; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 60, 100, .92), rgba(27, 111, 179, .82)),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
    var(--navy);
  padding: 56px 0 64px;
}
.hero__content { max-width: 720px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: #9ecbe8;
  margin-bottom: .8em;
}
.hero__title { font-size: 2rem; font-weight: 800; margin-bottom: .4em; }
.hero__lead { font-size: 1.08rem; color: #dce8f2; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__actions .btn { width: 100%; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }
.hero__trust { font-size: .92rem; color: #c6d8e8; margin: 0; }
.hero__trust strong { color: #fff; }

/* ---------- Social proof ---------- */
.proof { padding: 40px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.proof__title {
  text-align: center;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 24px;
}
.proof__logos {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.proof__logo {
  flex: 1 1 140px;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.proof__logo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.proof__logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Mobile: show 6 logos, collapse the rest into a single note so the
   logo wall doesn't eat a whole iPhone screen. Full list returns >=600px. */
.proof__logo--more { display: none; }
.proof__more-note {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.proof__audits { text-align: center; }
.proof__audits-label { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.proof__audit-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.audit-badge {
  display: inline-block;
  padding: .45em .9em;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.audit-badge--soft { background: #fff4e6; color: #a85d00; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head__eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5em;
}
.section-head__title { font-size: 1.6rem; font-weight: 800; }
.section-head__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { padding: 56px 0; }
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--blue-light);
  border-radius: 12px;
  margin-bottom: 14px;
}
.card__title { font-size: 1.15rem; font-weight: 700; }
.card__text { color: var(--muted); margin: 0; }

/* ---------- Approach ---------- */
.approach { padding: 56px 0; background: var(--bg-soft); }
.approach__inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.approach__text p { color: var(--muted); }
.approach__list { list-style: none; margin: 18px 0 0; padding: 0; }
.approach__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink);
}
.approach__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5l3 3 5-6' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.approach__list strong { color: var(--ink); }
.approach__aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  align-self: start;
}
.approach__quote { font-size: 1.05rem; color: #dce8f2; }
.approach__aside .btn { width: 100%; }

/* ---------- Audience ---------- */
.audience { padding: 56px 0; }
.audience__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.audience__item {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 18px;
}
.audience__item h3 { font-size: 1.08rem; margin-bottom: .25em; }
.audience__item p { color: var(--muted); margin: 0; }

/* ---------- Lead ---------- */
.lead { padding: 56px 0; background: var(--blue-light); }
.lead__inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.lead__title { font-size: 1.6rem; font-weight: 800; }
.lead__sub { color: var(--muted); }
.lead__bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.lead__bullets li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.lead__bullets li::before {
  content: "✓"; color: var(--blue); font-weight: 800;
  position: absolute; left: 0;
}
.lead__form {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: .7em .85em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 111, 179, .15);
}
.field textarea { resize: vertical; }
.form-status {
  margin: 14px 0 0;
  padding: .8em 1em;
  border-radius: 10px;
  font-weight: 600;
}
.form-status--ok  { background: #e7f6ec; color: var(--ok); }
.form-status--err { background: #fbeae8; color: var(--err); }
.lead__consent { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- B2C secondary ---------- */
.b2c { padding: 36px 0; border-top: 1px solid var(--line); }
.b2c__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.b2c__title { font-size: 1.25rem; margin-bottom: .3em; }
.b2c__text { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cdd8e2; padding: 44px 0 0; }
.footer a { color: #cdd8e2; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small { color: #9fb1c2; }
.logo--footer { margin-bottom: 14px; }
.footer__req { font-size: .9rem; line-height: 1.7; color: #b7c4d0; }
.footer__req strong { color: #fff; }
.footer__h { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 8px; font-size: .92rem; }
.footer__contact { font-size: .95rem; line-height: 1.9; }
.footer__hours { color: #9fb1c2; }
.footer__text { font-size: .9rem; color: #b7c4d0; }
.footer__bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .82rem;
  color: #9fb1c2;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Legal page ---------- */
.legal { padding: 40px 0 56px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); margin: 28px 0 10px; }
.legal p { color: var(--ink); margin: 0 0 10px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal__req {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal__req p { margin: 0 0 6px; font-size: .95rem; }
.legal__back { margin-top: 28px; font-weight: 600; }

/* ---------- To-top ---------- */
.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: .9;
}
.to-top:hover { color: #fff; background: var(--navy-dark); }

/* ============ Responsive ============ */
@media (min-width: 600px) {
  .proof__logo--more { display: flex; }
  .proof__more-note { display: none; }
  .logo__text small { display: block; }
  .hero__actions .btn { width: auto; }
  .header__cta { padding: .55em 1.1em; font-size: .9rem; }
  .header__cta-full { display: inline; }
  .header__cta-short { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
  .b2c__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 860px) {
  .header__nav { display: flex; }
  .header__phone { display: inline; }
  .hero { padding: 84px 0 92px; }
  .hero__title { font-size: 2.8rem; }
  .approach__inner { grid-template-columns: 1.6fr 1fr; gap: 40px; }
  .lead__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
  .section-head__title, .lead__title { font-size: 1.9rem; }
  .footer__grid { grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
