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

:root {
  --orange: #E89B3C;
  --orange-dark: #D98B2B;
  --blue: #4A90A4;
  --dark: #1a1a1a;
  --gray: #666;
  --light: #f5f5f5;
  --border: #e0e0e0;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 40px; }
.logo__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--gray);
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.header__phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

/* ===== HERO ===== */
/* HERO-BG-PATCH: фото редукторов как фон, плавный переход в белый влево */
.hero {
  padding: 60px 0;
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 28%,
      rgba(255,255,255,0.92) 45%,
      rgba(255,255,255,0.55) 65%,
      rgba(255,255,255,0.15) 82%,
      rgba(255,255,255,0) 100%),
    url('/static/hero-bg.jpg');
  background-size: cover, cover;
  background-position: right center, right center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, scroll;
  min-height: 520px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero__subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #333;
}
.hero__desc {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 28px;
}
.advantages {
  list-style: none;
  margin-bottom: 32px;
}
.advantages li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 17px;
  color: #333;
}
.advantages li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A90A4" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="8 12 11 15 16 9"/></svg>') no-repeat center;
  background-size: contain;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}
.btn--outline:hover { background: var(--dark); color: #fff; }

/* ===== QUIZ OVERLAY ===== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.quiz-overlay.active { display: flex; }

.quiz {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.quiz__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.quiz__progress {
  height: 4px;
  background: var(--light);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.3s;
}
.quiz__step { display: none; }
.quiz__step.active { display: block; }
.quiz__step h2 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}
.quiz__hint {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
}
.quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.quiz__option {
  padding: 14px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.15s;
  font-family: inherit;
}
.quiz__option:hover { border-color: var(--orange); }
.quiz__option.selected {
  border-color: var(--orange);
  background: #fff7ec;
}
.quiz__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
.quiz__input:focus {
  outline: none;
  border-color: var(--orange);
}
.quiz__input--hidden { display: none; margin-top: 10px; }
.quiz__input--hidden.visible { display: block; }

/* Slider */
.quiz__slider-wrap { margin: 24px 0; }
.quiz__slider-wrap input[type=range] {
  width: 100%;
  accent-color: var(--orange);
  height: 6px;
}
.quiz__slider-value {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--orange);
}

.quiz__error {
  color: #d33;
  font-size: 14px;
  margin-top: 8px;
  min-height: 18px;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.quiz__nav .btn { padding: 12px 24px; font-size: 15px; }

/* Mobile */
@media (max-width: 800px) {
  .hero {
    padding: 40px 0 60px;
    background-image:
      linear-gradient(180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 45%,
        rgba(255,255,255,0.92) 75%,
        #ffffff 100%),
      url('/static/hero-bg.jpg');
    background-position: center top, center top;
    background-size: cover, cover;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero__subtitle { font-size: 15px; }
  .quiz__options { grid-template-columns: 1fr; }
}

/* SEO-FAQ-CSS-PATCH: стили для SEO-блока и FAQ */
.seo-block {
  padding: 60px 0 80px;
  background: #fff;
}
.seo-block__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.seo-block__subtitle {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
}
.seo-block p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 900px;
}
.seo-block__list {
  list-style: none;
  margin: 0 0 16px;
  max-width: 900px;
}
.seo-block__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
.seo-block__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A90A4" stroke-width="2.5"><polyline points="5 12 10 17 19 8"/></svg>') no-repeat center;
  background-size: contain;
}

/* FAQ */
.faq {
  max-width: 900px;
  margin-top: 8px;
}
.faq__item {
  border-bottom: 1px solid #e0e0e0;
}
.faq__item:first-child {
  border-top: 1px solid #e0e0e0;
}
.faq__question {
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: #1a1a1a;
  transition: color 0.15s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: #E89B3C;
  transition: transform 0.2s;
}
.faq__item[open] .faq__question::after {
  content: "−";
}
.faq__question:hover { color: #E89B3C; }
.faq__answer {
  padding: 0 40px 20px 0;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .seo-block { padding: 40px 0 60px; }
  .seo-block__title { font-size: 22px; }
  .seo-block__subtitle { font-size: 18px; }
  .faq__question { font-size: 15px; }
  .faq__answer { font-size: 14px; }
}

/* PRIVACY-FOOTER-PATCH: чекбокс согласия, подвал, страница политики */
.quiz__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}
.quiz__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #E89B3C;
  flex-shrink: 0;
  cursor: pointer;
}
.quiz__consent a {
  color: #E89B3C;
  text-decoration: underline;
}
.quiz__consent a:hover { color: #D98B2B; }

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0 30px;
  margin-top: 60px;
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col--right { align-items: flex-end; text-align: right; }
.footer__logo { height: 36px; filter: brightness(0) invert(1); margin-bottom: 8px; }
.footer__col p { color: #999; font-size: 13px; line-height: 1.5; }
.footer__link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.15s;
}
.footer__link:hover { color: #E89B3C; }
.footer__copy { color: #666; font-size: 13px; }

/* Страница политики */
.policy {
  max-width: 820px;
  padding: 40px 24px 60px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}
.policy h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.policy__meta { color: #888; font-size: 14px; margin-bottom: 32px; }
.policy h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.policy p { margin-bottom: 14px; }
.policy ul { margin: 0 0 14px 20px; }
.policy li { margin-bottom: 8px; }
.policy a { color: #E89B3C; text-decoration: underline; }
.policy a:hover { color: #D98B2B; }
.policy__back { margin-top: 40px; font-weight: 600; }

@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__col--right { align-items: flex-start; text-align: left; }
  .policy { padding: 24px 20px 40px; font-size: 15px; }
  .policy h1 { font-size: 22px; }
  .policy h2 { font-size: 17px; }
}
