:root {
  --page: #f3f9ff;
  --page-2: #eaf6ff;
  --white: #ffffff;
  --ink: #0b1833;
  --text: #14243a;
  --muted: #52667d;
  --line: #d7e8f6;
  --blue: #1769e0;
  --blue-2: #2487ff;
  --blue-dark: #08265f;
  --cyan: #2ec7e6;
  --green: #1bbf8a;
  --yellow: #ffc247;
  --orange: #ff7a1a;
  --red: #ef4444;
  --shadow: 0 20px 60px rgba(23, 105, 224, .14);
  --shadow-soft: 0 12px 34px rgba(8, 38, 95, .08);
  --radius: 26px;
}

html,
body {
  background: var(--page) !important;
  color: var(--text) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(46, 199, 230, .22), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(23, 105, 224, .14), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #eef8ff 48%, #f7fbff 100%);
}

/* hide phone visually */
a[href^="tel:"],
.header-phone-number,
.header-contact,
.header-phone,
.mobile-phone,
.footer-phone,
.footer-contact-phone {
  display: none !important;
}

/* Header */
.site-header,
.header,
.page-header {
  position: sticky !important;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid rgba(215, 232, 246, .9) !important;
  box-shadow: 0 10px 30px rgba(8, 38, 95, .06) !important;
  backdrop-filter: blur(18px);
}

.header-inner,
.site-header .container {
  min-height: 76px !important;
}

.logo,
.logo-title,
.logo-text {
  color: var(--blue-dark) !important;
  font-weight: 900 !important;
}

.logo-image {
  width: 38px !important;
  height: 38px !important;
}

.nav-link,
.mobile-nav-link {
  color: var(--ink) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: var(--blue) !important;
}

.city-selector,
.city-select,
.header-city {
  background: #eef7ff !important;
  color: var(--blue-dark) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
}

/* Breadcrumb */
.breadcrumb,
.breadcrumbs {
  background: rgba(255,255,255,.72) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* Global typography */
h1,
h2,
h3,
.section-title {
  color: var(--ink) !important;
  letter-spacing: -.035em;
}

p,
li,
.section-subtitle {
  color: var(--muted) !important;
  line-height: 1.75;
}

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

/* New hero */
.hero {
  position: relative;
  padding: 74px 0 62px !important;
  background:
    radial-gradient(circle at 75% 15%, rgba(46, 199, 230, .28), transparent 30%),
    linear-gradient(135deg, #f7fcff 0%, #eaf6ff 100%) !important;
  color: var(--text) !important;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(23,105,224,.12), rgba(46,199,230,.24));
  filter: blur(2px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: 46px !important;
  align-items: center !important;
}

.hero-content {
  max-width: 780px;
}

.hero-badge,
.hero-offer,
.clean-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: #fff !important;
  color: var(--blue-dark) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  box-shadow: var(--shadow-soft) !important;
  font-weight: 800;
}

.hero-offer {
  color: #8a5400 !important;
  background: rgba(255, 194, 71, .22) !important;
  border-color: rgba(255, 194, 71, .45) !important;
}

.hero-title {
  margin-top: 24px !important;
  color: var(--ink) !important;
  font-size: clamp(40px, 5.6vw, 72px) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
  font-weight: 950 !important;
}

.hero-title-accent {
  display: inline !important;
  color: var(--blue) !important;
}

.hero-subtitle {
  max-width: 660px;
  margin-top: 22px !important;
  color: #384b63 !important;
  font-size: 18px !important;
}

.hero-benefits {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hero-benefits li {
  padding: 14px 14px 14px 40px !important;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 750;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.hero-benefits li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 191, 138, .13);
  color: var(--green);
  font-weight: 950;
}

.hero-kpis,
.clean-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  margin-top: 26px !important;
}

.hero-kpi,
.clean-stat {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  box-shadow: var(--shadow-soft) !important;
}

.hero-kpi-number,
.clean-stat strong {
  display: block;
  color: var(--blue) !important;
  font-size: 26px !important;
  font-weight: 950 !important;
}

.hero-kpi-label,
.clean-stat span {
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 700;
}

/* Forms */
.lead-form-card,
.form-card,
.hero-card,
.clean-calc {
  background: rgba(255,255,255,.94) !important;
  color: var(--text) !important;
  border: 1px solid rgba(215,232,246,.95) !important;
  border-radius: 30px !important;
  box-shadow: var(--shadow) !important;
  padding: 26px !important;
}

.lead-form-card h2,
.lead-form-card h3,
.form-card h2,
.form-card h3 {
  color: var(--ink) !important;
  letter-spacing: -.03em;
}

input,
select,
textarea {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid #cfe2f3 !important;
  border-radius: 15px !important;
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-2) !important;
  box-shadow: 0 0 0 4px rgba(36,135,255,.13) !important;
  outline: none !important;
}

/* Buttons */
.btn,
button,
input[type="submit"] {
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
}

.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--blue), var(--cyan)) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 14px 34px rgba(23,105,224,.28) !important;
}

.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(23,105,224,.34) !important;
}

.btn-outline {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  color: var(--blue) !important;
}

/* New custom sections */
.clean-section {
  padding: 82px 0;
}

.clean-section.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clean-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.clean-eyebrow {
  color: var(--blue) !important;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.clean-head h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.clean-head p {
  max-width: 430px;
  margin: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.problem-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.problem-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(46,199,230,.16);
}

.problem-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf6ff, #fff);
  border: 1px solid var(--line);
  font-size: 26px;
  margin-bottom: 18px;
}

.problem-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.problem-card p {
  margin: 0 0 18px;
  color: var(--muted) !important;
}

.problem-price {
  color: var(--blue) !important;
  font-weight: 950;
}

.timeline-clean {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.timeline-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 950;
  margin-bottom: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compare-card {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compare-card.before {
  border-color: rgba(255,122,26,.28);
  background: linear-gradient(180deg, #fff, #fff7ef);
}

.compare-card.after {
  border-color: rgba(27,191,138,.25);
  background: linear-gradient(180deg, #fff, #f0fff9);
}

.compare-card h3 {
  margin-top: 0;
}

.compare-card ul {
  margin: 0;
  padding-left: 20px;
}

.audience-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audience-card,
.trust-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-card strong,
.audience-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 18px;
}

.cta-clean {
  margin: 72px 0;
  padding: 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255,194,71,.28), transparent 24%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  box-shadow: 0 24px 70px rgba(8,38,95,.24);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-clean h2,
.cta-clean p {
  color: #fff !important;
}

.cta-clean h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.cta-clean p {
  margin: 0;
  opacity: .88;
}

.cta-clean .btn {
  background: #fff !important;
  color: var(--blue-dark) !important;
}

/* Existing cards restyle */
.service-card,
.advantage-card,
.review-card,
.faq-item,
.card {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-soft) !important;
}

.service-card:hover,
.advantage-card:hover,
.review-card:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(36,135,255,.42) !important;
}

.review-card {
  border-color: rgba(255,194,71,.55) !important;
}

.review-card::before {
  color: var(--yellow);
}

.service-link,
.card a {
  color: var(--blue) !important;
  font-weight: 850 !important;
}

/* Footer */
.footer,
.site-footer {
  background: var(--blue-dark) !important;
  color: #dcecff !important;
  border-top: none !important;
}

.footer p,
.footer li,
.footer a,
.site-footer p,
.site-footer a {
  color: #dcecff !important;
}

.footer a:hover,
.site-footer a:hover {
  color: var(--cyan) !important;
}

/* Cookie */
.cookie,
.cookie-banner,
[class*="cookie"] {
  background: rgba(8, 38, 95, .96) !important;
  color: #fff !important;
}

/* Modal contrast */
.modal,
.popup,
[class*="modal"] {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-inner,
  .compare-grid,
  .cta-clean {
    grid-template-columns: 1fr !important;
  }

  .problem-grid,
  .audience-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-clean {
    grid-template-columns: 1fr;
  }

  .hero-benefits,
  .hero-kpis,
  .clean-stats {
    grid-template-columns: 1fr !important;
  }

  .clean-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .problem-grid,
  .audience-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0 !important;
  }

  .hero-title {
    font-size: 38px !important;
  }

  .cta-clean {
    padding: 28px;
  }
}

/* Extra contrast pass */
.main-content,
.page-main {
  background: transparent !important;
}

.content-section,
.text-section {
  color: var(--text) !important;
}

.content-section p,
.text-section p,
.article-content p {
  color: #30455c !important;
}

.content-section h2,
.content-section h3,
.text-section h2,
.text-section h3 {
  color: var(--ink) !important;
}

.header-phone-number,
.header-contact,
.footer-phone,
a[href^="tel:"] {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hide aggressive promo modal visually */
.discount-modal,
.promo-modal,
.lead-modal,
.modal-overlay.is-active,
.popup-overlay.is-active {
  display: none !important;
}

/* FAQ cleanup / visual consistency */
.faq-section + .faq-section,
section:has(h2):has(+ .faq-section) {
  margin-top: 0;
}

.faq-item,
.faq-card,
.accordion-item {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.faq-item *,
.faq-card *,
.accordion-item * {
  color: var(--text) !important;
}

/* Remove old dark card look where it leaks through */
.advantage-card,
.review-card,
.timeline-item,
.compare-card,
.service-card {
  background: #fff !important;
  color: var(--text) !important;
}

.advantage-card *,
.review-card *,
.timeline-item *,
.compare-card *,
.service-card * {
  color: inherit;
}

.advantage-card p,
.review-card p,
.timeline-item p,
.compare-card p,
.service-card p {
  color: #30455c !important;
}

.review-card {
  border: 1px solid rgba(255, 194, 71, .55) !important;
  background: linear-gradient(180deg, #fff, #fffdf6) !important;
}

.review-card .stars,
.review-card [class*="star"] {
  color: #f5a900 !important;
}

/* Better mobile */
@media (max-width: 768px) {
  html,
  body {
    background: #f4faff !important;
  }

  .site-header,
  .header,
  .page-header {
    position: sticky !important;
    top: 0;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .header-inner,
  .site-header .container {
    min-height: 62px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .logo-image {
    width: 32px !important;
    height: 32px !important;
  }

  .logo-title,
  .logo-text {
    font-size: 14px !important;
  }

  .nav,
  .main-nav,
  .desktop-nav {
    display: none !important;
  }

  .hero {
    padding: 34px 0 42px !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(46,199,230,.26), transparent 34%),
      linear-gradient(180deg, #f8fcff 0%, #edf8ff 100%) !important;
  }

  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-badge,
  .hero-offer {
    max-width: 100%;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
  }

  .hero-title {
    margin-top: 18px !important;
    font-size: 34px !important;
    line-height: 1.06 !important;
    letter-spacing: -.045em !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #30455c !important;
  }

  .hero-benefits {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero-benefits li {
    padding: 12px 12px 12px 38px !important;
    font-size: 14px !important;
  }

  .hero-kpis,
  .clean-stats {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
  }

  .hero-kpi,
  .clean-stat {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .hero-kpi-number,
  .clean-stat strong {
    font-size: 18px !important;
  }

  .hero-kpi-label,
  .clean-stat span {
    font-size: 11px !important;
  }

  .lead-form-card,
  .form-card,
  .clean-calc {
    padding: 18px !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 34px rgba(23,105,224,.13) !important;
  }

  .lead-form-card h2,
  .form-card h2 {
    font-size: 22px !important;
  }

  input,
  select,
  textarea {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .btn,
  button,
  input[type="submit"] {
    width: 100%;
    min-height: 48px;
  }

  .clean-section {
    padding: 48px 0 !important;
  }

  .clean-section .container,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .clean-head {
    display: block !important;
    margin-bottom: 22px !important;
  }

  .clean-head h2,
  h2.section-title,
  .section-title {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .clean-head p {
    margin-top: 10px !important;
    max-width: 100% !important;
  }

  .problem-grid,
  .audience-grid,
  .trust-grid,
  .compare-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .problem-card,
  .audience-card,
  .trust-card,
  .compare-card,
  .service-card,
  .advantage-card,
  .review-card,
  .faq-item,
  .accordion-item {
    border-radius: 20px !important;
    padding: 18px !important;
  }

  .problem-card {
    min-height: auto !important;
  }

  .timeline-clean {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .timeline-item::before {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 10px !important;
  }

  .cta-clean {
    display: block !important;
    margin: 44px 0 !important;
    padding: 24px !important;
    border-radius: 24px !important;
  }

  .cta-clean h2 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .cta-clean .btn {
    margin-top: 18px !important;
  }

  .reviews-grid,
  .advantages-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .footer,
  .site-footer {
    padding-bottom: 80px !important;
  }

  .cookie,
  .cookie-banner,
  [class*="cookie"] {
    font-size: 12px !important;
    padding: 10px 14px !important;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 30px !important;
  }

  .hero-kpis,
  .clean-stats {
    grid-template-columns: 1fr !important;
  }

  .problem-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
  }
}

/* FIX: lead/order form */
.lead-form-card,
.form-card,
.clean-calc,
.hero .lead-form-card {
  background: #ffffff !important;
  border: 1px solid #d7e8f6 !important;
  color: #14243a !important;
  border-radius: 28px !important;
  box-shadow: 0 22px 60px rgba(23, 105, 224, .14) !important;
}

.lead-form-card *,
.form-card *,
.clean-calc * {
  color: #14243a !important;
}

.lead-form-card h2,
.lead-form-card h3,
.form-card h2,
.form-card h3 {
  color: #0b1833 !important;
  margin-bottom: 10px !important;
}

.lead-form-card p,
.form-card p {
  color: #52667d !important;
}

.lead-form,
.form-grid,
.order-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.lead-form label,
.form-grid label,
.order-form label {
  display: grid !important;
  gap: 6px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  color: #30455c !important;
}

.lead-form label:has(textarea),
.form-grid label:has(textarea),
.order-form label:has(textarea) {
  grid-column: 1 / -1 !important;
}

.lead-form textarea,
.form-grid textarea,
.order-form textarea {
  min-height: 96px !important;
  resize: vertical !important;
}

.lead-form button,
.form-grid button,
.order-form button,
.lead-form .btn,
.form-grid .btn,
.order-form .btn {
  grid-column: 1 / -1 !important;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100% !important;
  background: #f8fcff !important;
  border: 1px solid #cfe2f3 !important;
  color: #102033 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #8aa0b5 !important;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  background: #fff !important;
  border-color: #2487ff !important;
  box-shadow: 0 0 0 4px rgba(36, 135, 255, .14) !important;
  outline: none !important;
}

@media (max-width: 768px) {
  .lead-form,
  .form-grid,
  .order-form {
    grid-template-columns: 1fr !important;
  }

  .lead-form-card,
  .form-card,
  .clean-calc,
  .hero .lead-form-card {
    padding: 18px !important;
    border-radius: 22px !important;
  }
}

/* FIX: remove black cards from process, advantages, reviews */
.work-steps .step,
.steps .step,
.process-card,
.timeline-item,
.how-work-card,
.advantage-card,
.advantages-card,
.review-card,
.reviews-card,
.testimonial-card,
.card-dark,
[class*="advantage"],
[class*="review"],
[class*="testimonial"] {
  background: #ffffff !important;
  color: #14243a !important;
  border: 1px solid #d7e8f6 !important;
  box-shadow: 0 14px 38px rgba(8, 38, 95, .08) !important;
}

.work-steps .step *,
.steps .step *,
.process-card *,
.timeline-item *,
.how-work-card *,
.advantage-card *,
.advantages-card *,
.review-card *,
.reviews-card *,
.testimonial-card *,
.card-dark * {
  color: inherit !important;
}

.work-steps .step h3,
.steps .step h3,
.process-card h3,
.timeline-item h3,
.how-work-card h3,
.advantage-card h3,
.advantages-card h3,
.review-card h3,
.reviews-card h3,
.testimonial-card h3 {
  color: #0b1833 !important;
}

.work-steps .step p,
.steps .step p,
.process-card p,
.timeline-item p,
.how-work-card p,
.advantage-card p,
.advantages-card p,
.review-card p,
.reviews-card p,
.testimonial-card p {
  color: #30455c !important;
}

/* Specific old dark backgrounds */
[style*="background: #000"],
[style*="background:#000"],
[style*="background: #030712"],
[style*="background:#030712"],
[style*="background: #020617"],
[style*="background:#020617"] {
  background: #ffffff !important;
  color: #14243a !important;
}

/* Stars stay yellow */
.review-card .stars,
.reviews-card .stars,
.testimonial-card .stars,
[class*="star"] {
  color: #f5a900 !important;
}

/* Step number badges */
.step-number,
.timeline-number,
.process-number {
  background: linear-gradient(135deg, #1769e0, #2ec7e6) !important;
  color: #ffffff !important;
}

/* FIX: force light cards only in "Как мы работаем" and "Наши преимущества" */
.force-light-cards {
  background: transparent !important;
}

.force-light-cards .container,
.force-light-cards .section-container {
  background: transparent !important;
}

.force-light-cards article,
.force-light-cards .card,
.force-light-cards .step,
.force-light-cards .work-step,
.force-light-cards .timeline-item,
.force-light-cards .advantage-card,
.force-light-cards .advantage-item,
.force-light-cards .feature-card,
.force-light-cards .benefit-card,
.force-light-cards [class*="card"],
.force-light-cards [class*="step"],
.force-light-cards [class*="advantage"],
.force-light-cards [class*="feature"],
.force-light-cards [class*="benefit"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #14243a !important;
  border: 1px solid #d7e8f6 !important;
  box-shadow: 0 14px 38px rgba(8, 38, 95, .08) !important;
}

.force-light-cards article *,
.force-light-cards .card *,
.force-light-cards .step *,
.force-light-cards .work-step *,
.force-light-cards .timeline-item *,
.force-light-cards .advantage-card *,
.force-light-cards .advantage-item *,
.force-light-cards .feature-card *,
.force-light-cards .benefit-card *,
.force-light-cards [class*="card"] *,
.force-light-cards [class*="step"] *,
.force-light-cards [class*="advantage"] *,
.force-light-cards [class*="feature"] *,
.force-light-cards [class*="benefit"] * {
  color: inherit !important;
}

.force-light-cards h2,
.force-light-cards h3,
.force-light-cards h4,
.force-light-cards strong {
  color: #0b1833 !important;
}

.force-light-cards p,
.force-light-cards li,
.force-light-cards span {
  color: #30455c !important;
}

.force-light-cards .step-number,
.force-light-cards .timeline-number,
.force-light-cards .process-number {
  background: linear-gradient(135deg, #1769e0, #2ec7e6) !important;
  color: #ffffff !important;
}

/* HARD FIX: "Как мы работаем" must be light */
.section--timeline,
.section--timeline .container,
.section--timeline .timeline,
.section--timeline .timeline-list,
.section--timeline .timeline-item,
.section--timeline .timeline-content,
.section--timeline .timeline-card,
.section--timeline .step,
.section--timeline .step-card,
.section--timeline article,
.section--timeline div {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.section--timeline .timeline-item,
.section--timeline .timeline-content,
.section--timeline .timeline-card,
.section--timeline .step,
.section--timeline .step-card,
.section--timeline article {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #14243a !important;
  border: 1px solid #d7e8f6 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 38px rgba(8, 38, 95, .08) !important;
}

.section--timeline .timeline-item *,
.section--timeline .timeline-content *,
.section--timeline .timeline-card *,
.section--timeline .step *,
.section--timeline .step-card *,
.section--timeline article * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #14243a !important;
}

.section--timeline h2,
.section--timeline h3,
.section--timeline h4,
.section--timeline strong {
  color: #0b1833 !important;
}

.section--timeline p,
.section--timeline span,
.section--timeline li {
  color: #30455c !important;
}

.section--timeline .step-number,
.section--timeline .timeline-number,
.section--timeline [class*="number"],
.section--timeline [class*="badge"] {
  background: linear-gradient(135deg, #1769e0, #2ec7e6) !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* GLOBAL FIX v2: service pages real classes */
.section--timeline .timeline-item,
.section--timeline .timeline-content,
.section--timeline .timeline-marker,
.section--benefits .benefit-card-new,
.section--benefits .benefits-grid-new > *,
.force-light-cards .benefit-card-new,
.force-light-cards .timeline-item,
.force-light-cards .timeline-content,
.force-light-cards .timeline-marker,
.force-light-cards .compare-card,
.force-light-cards .compare-card--bad,
.force-light-cards .compare-card--good,
.section--reviews .review-card,
.section--reviews .review-item,
.reviews-grid-new > *,
.reviews-grid > *,
[class*="review-card"],
[class*="testimonial"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #14243a !important;
  border: 1px solid #d7e8f6 !important;
  box-shadow: 0 14px 38px rgba(8, 38, 95, .08) !important;
}

.section--timeline .timeline-marker,
.force-light-cards .timeline-marker {
  background: linear-gradient(135deg, #1769e0, #2ec7e6) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.force-light-cards .compare-card--good {
  background: linear-gradient(180deg, #ffffff, #f0fff9) !important;
  border-color: rgba(27, 191, 138, .25) !important;
}

.force-light-cards .compare-card--bad {
  background: linear-gradient(180deg, #ffffff, #fff7ef) !important;
  border-color: rgba(255, 122, 26, .28) !important;
}

.section--timeline h2,
.section--timeline h3,
.section--benefits h2,
.section--benefits h3,
.force-light-cards h2,
.force-light-cards h3,
.force-light-cards strong {
  color: #0b1833 !important;
}

.section--timeline p,
.section--timeline li,
.section--benefits p,
.section--benefits li,
.force-light-cards p,
.force-light-cards li,
.force-light-cards span {
  color: #30455c !important;
}

/* kill inline dark backgrounds */
[style*="background:#000"],
[style*="background: #000"],
[style*="background:#030712"],
[style*="background: #030712"],
[style*="background:#020617"],
[style*="background: #020617"] {
  background: #ffffff !important;
  color: #14243a !important;
}

/* FIX: service page hero forms — single column */
.hero .lead-form,
.hero .order-form,
.hero .service-form,
.hero .hero-form,
.hero-form,
.hero-card form,
.hero-side form,
.service-hero-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.hero .lead-form label,
.hero .order-form label,
.hero .service-form label,
.hero-form label {
  display: grid !important;
  gap: 6px !important;
  width: 100% !important;
}

.hero .lead-form input,
.hero .lead-form select,
.hero .lead-form textarea,
.hero .order-form input,
.hero .order-form select,
.hero .service-form input,
.hero .service-form select,
.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 2 columns only on homepage calculator */
.clean-calc .lead-form,
.index-hero .lead-form {
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 768px) {
  .lead-form,
  .form-grid,
  .order-form,
  .hero-form,
  .service-form {
    grid-template-columns: 1fr !important;
  }
}

/* FIX: contacts page */
body.contacts-page,
.page-contacts,
.contacts-page {
  background: #f3f9ff !important;
}

.contacts-grid,
.contact-cards,
.contacts-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.contact-card,
.contacts-item,
.contacts-block,
.contacts-info,
.contacts-form-card {
  background: #ffffff !important;
  border: 1px solid #d7e8f6 !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 14px 38px rgba(8, 38, 95, .08) !important;
  color: #14243a !important;
}

.contacts-form,
.contact-form,
.callback-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

@media (max-width: 768px) {
  .contacts-grid,
  .contact-cards,
  .contacts-list {
    grid-template-columns: 1fr !important;
  }
}

/* FIX: mobile burger menu readability */
.mobile-menu,
.mobile-nav,
.mobile-navigation,
.mobile-menu-panel,
.mobile-menu-inner,
.mobile-menu-overlay,
.nav-mobile,
.menu-mobile,
.site-header.is-menu-open .mobile-menu,
body.menu-open .mobile-menu,
body.nav-open .mobile-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #14243a !important;
}

.mobile-menu a,
.mobile-nav a,
.mobile-nav-link,
.mobile-menu-link,
.mobile-menu-inner a {
  color: #0b1833 !important;
  background: transparent !important;
}

.mobile-menu a:hover,
.mobile-nav-link:hover,
.mobile-menu-link:hover {
  color: #1769e0 !important;
  background: #eef7ff !important;
}

.mobile-menu-overlay,
.mobile-nav-overlay {
  background: rgba(8, 38, 95, .45) !important;
}

.burger,
.menu-toggle,
.mobile-menu-toggle {
  color: #0b1833 !important;
}

/* FIX v2: service hero form rows */
.hero .lead-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.hero .form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
}

.hero .form-field,
.hero .form-field--full {
  display: grid !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.hero .form-field input,
.hero .form-field select,
.hero .form-field textarea {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.hero .lead-form-card {
  width: 100% !important;
  max-width: 420px !important;
}

@media (max-width: 768px) {
  .hero .form-row {
    grid-template-columns: 1fr !important;
  }

  .hero .lead-form-card {
    max-width: 100% !important;
  }
}

/* FIX v2: force light mobile menu over components.css */
.mobile-menu,
.mobile-menu.mobile-menu--open,
.mobile-menu-inner,
.mobile-menu .mobile-nav-link {
  background: #ffffff !important;
  color: #0b1833 !important;
}

.mobile-menu .mobile-nav-link {
  border-bottom: 1px solid #e8f2fb !important;
  padding: 14px 0 !important;
}

/* FIX v3: kill dark mobile menu gradient completely */
.mobile-menu,
.mobile-menu.mobile-menu--open {
  background: #ffffff !important;
  background-image: none !important;
}

.mobile-nav-link,
.mobile-menu .mobile-nav-link,
.mobile-menu-inner .mobile-nav-link {
  color: #0b1833 !important;
}

.mobile-city-and-contact {
  border-top-color: #d7e8f6 !important;
}

/* FIX: kontakty — restore header layout if base CSS missing/conflict */
body.contact-page .site-header,
body.contacts-page .site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #d7e8f6 !important;
}

body.contact-page .header-nav,
body.contacts-page .header-nav {
  display: flex !important;
  gap: 18px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.contact-page .header-nav a,
body.contacts-page .header-nav a {
  color: #0b1833 !important;
  text-decoration: none !important;
}

/* hide mobile menu on desktop */
@media (min-width: 769px) {
  body.contact-page .mobile-menu,
  body.contacts-page .mobile-menu {
    display: none !important;
  }
}
