/* ============================================================
   Статус Гигиена — statusgigiena.ru
   Общие стили для всех страниц сайта
   ============================================================ */

:root {
  --primary: #1780ab;        /* фирменный голубой (логотип СТАТУС) */
  --primary-dark: #0f6285;
  --primary-light: #e1f2fa;
  --brand-blue: #25aae1;     /* голубой из эмблемы */
  --navy: #12303f;           /* тёмный синий, заголовки и футер */
  --accent: #db871c;         /* фирменный оранжевый (логотип СТАТУС) */
  --accent-dark: #b96f0f;
  --text: #21333c;
  --text-muted: #5b717c;
  --bg: #f6fafc;
  --white: #ffffff;
  --border: #dbe6ec;
  --shadow: 0 6px 24px rgba(18, 48, 63, 0.08);
  --radius: 14px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 800; }
h1 { font-size: 42px; }
h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-size: 20px; }

section { padding: 64px 0; }

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
  font-size: 17px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--navy);
  color: #cfe3e7;
  font-size: 14px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar .city::before { content: "📍 "; }

/* ---------- Шапка ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(11,43,51,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text .logo-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .2px;
}
.logo-text .logo-title span { color: var(--accent); }
.logo-text .logo-tagline {
  font-size: 12px;
  color: var(--text-muted);
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  text-align: right;
  line-height: 1.3;
}
.header-phone a { color: var(--navy); font-weight: 800; font-size: 17px; white-space: nowrap; }
.header-phone .phone-note { font-size: 12px; color: var(--text-muted); }
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Герой ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(23,128,171,.55), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(23,128,171,.35), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 720px; margin-bottom: 18px; }
.hero h1 span { color: #7cc8ea; }
.hero p {
  font-size: 19px;
  color: #d7e8eb;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-badge { min-width: 150px; }
.hero-badge .num { font-size: 28px; font-weight: 800; color: #7cc8ea; }
.hero-badge .label { font-size: 14px; color: #b8d3d8; }

/* ---------- Преимущества ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 26px; height: 26px; stroke: var(--primary); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ---------- Категории ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .2s ease;
  display: block;
  color: var(--text);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  color: var(--text);
}
.cat-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cat-card .icon svg { width: 28px; height: 28px; stroke: #fff; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--text-muted); }
.cat-card .cat-items {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0;
  padding-left: 18px;
}
.cat-card .cat-items li { margin-bottom: 3px; }

/* ---------- Бренды ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.brand-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: .3px;
  transition: all .2s;
}
.brand-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-tile .brand-type {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Кому поставляем ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.client-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}
.client-tile svg { width: 24px; height: 24px; stroke: var(--primary); flex-shrink: 0; }

/* ---------- Как мы работаем ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; font-size: 18px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------- CTA-блок с формой ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(124,200,234,.25), transparent 55%),
    var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8dde1; margin-bottom: 20px; }
.cta-band ul { color: #d7e8eb; padding-left: 20px; }
.cta-band ul li { margin-bottom: 8px; }

.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
}
.lead-form h3 { margin-bottom: 16px; }
.lead-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  background: #fbfdfe;
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: none;
  border-color: var(--primary);
}
.lead-form .btn { width: 100%; }
.lead-form .form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}
.form-success {
  background: #e8f8ee;
  border: 1px solid #b3e6c6;
  color: #166534;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(23,128,171,.5), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 52px 0;
}
.page-head h1 { color: #fff; font-size: 36px; }
.page-head p { color: #c8dde1; max-width: 640px; margin-top: 10px; font-size: 17px; }
.breadcrumbs { font-size: 14px; color: #9fc0c6; margin-bottom: 12px; }
.breadcrumbs a { color: #cfe3e7; }

/* ---------- О нас ---------- */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.text-block p { margin-bottom: 14px; color: var(--text); }
.text-block ul { padding-left: 20px; margin-bottom: 14px; }
.text-block ul li { margin-bottom: 8px; }
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-card .num { font-size: 34px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 14px; color: var(--text-muted); }

.terms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terms-table th, .terms-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.terms-table th { background: var(--primary-light); color: var(--navy); font-weight: 700; }
.terms-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---------- Каталог ---------- */
.catalog-section { border-bottom: 1px solid var(--border); padding: 40px 0; }
.catalog-section:last-of-type { border-bottom: none; }
.catalog-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.catalog-head .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--brand-blue));
  display: flex; align-items: center; justify-content: center;
}
.catalog-head .icon svg { width: 26px; height: 26px; stroke: #fff; }
.catalog-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px 24px;
  padding-left: 0;
  list-style: none;
}
.catalog-items li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
}
.catalog-items li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  position: absolute;
  left: 4px;
}

.note-box {
  background: var(--primary-light);
  border: 1px solid #bfe3e6;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--navy);
}

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; stroke: var(--primary); flex-shrink: 0; margin-top: 3px; }
.contact-row .label { font-size: 13px; color: var(--text-muted); }
.contact-row .value { font-weight: 700; color: var(--navy); font-size: 16px; }
.contact-row .value a { color: var(--navy); }
.contact-row .value a:hover { color: var(--primary); }
.messengers { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.msg-btn.wa { background: #25d366; }
.msg-btn.tg { background: #2aabee; }
.msg-btn:hover { opacity: .9; color: #fff; }
.map-frame {
  border: none;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Футер ---------- */
.footer {
  background: var(--navy);
  color: #a9c6cc;
  padding: 48px 0 24px;
  margin-top: 64px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer a { color: #cfe3e7; }
.footer a:hover { color: #7cc8ea; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7f9ba1;
}

/* ---------- Плавающая кнопка WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Мобильная панель быстрой связи ---------- */
.mobile-bar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .logo-text .logo-tagline { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 32px; }
  .two-cols, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 20px rgba(11,43,51,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .burger { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 560px) {
  section { padding: 44px 0; }
  .hero { padding: 48px 0; }
  h1 { font-size: 27px; }
  .topbar .work-hours { display: none; }
  .topbar span:has(a[href^="mailto"]) { display: none; }
  .topbar .container { justify-content: space-between; }

  /* компактная шапка: логотип + бургер, без кнопки */
  .header .container { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text .logo-title { font-size: 17px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px 24px; }
  .hero-badge { min-width: 128px; }
  .cta-band { padding: 22px 18px; }
  .lead-form { padding: 20px 16px; }
  /* 16px в полях — чтобы iPhone не приближал страницу при фокусе */
  .lead-form input, .lead-form textarea, .lead-form select { font-size: 16px; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-tile { padding: 14px 8px; font-size: 14px; }
  .brand-tile .brand-type { font-size: 11px; }

  .terms-table th, .terms-table td { padding: 10px 12px; font-size: 14px; }
  .map-frame { height: 300px; }
  .contact-card { padding: 20px 16px; }
  .catalog-items { grid-template-columns: 1fr; }
  .steps-grid, .features-grid { gap: 14px; }
  .feature, .step { padding: 20px; }

  /* нижняя панель «Позвонить / WhatsApp» вместо плавающей кнопки */
  body { padding-bottom: 68px; }
  .float-wa { display: none; }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--white);
    box-shadow: 0 -4px 18px rgba(18, 48, 63, .18);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
  }
  .mobile-bar a svg { width: 19px; height: 19px; flex-shrink: 0; }
  .mobile-bar .mb-call { background: var(--accent); }
  .mobile-bar .mb-wa { background: #25d366; }
}
