/* Окна и Двери 74 — B2B лендинг (визуал под макет) */
:root {
  --color-bg: #ffffff;
  --color-surface: #f0f0f0;
  --color-text: #1f1f1f;
  --color-heading: #1a1a1a;
  --color-muted: #5a5a5a;
  --color-accent: #c22222;
  --color-accent-hover: #a61d1d;
  --color-border: #e8e8e8;
  --color-wood: #e8dfd4;
  --section-muted: #f7f7f5;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", var(--font);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
  --container: 1180px;
  --header-h: 72px;
  --section-pad-y: 48px;
  --section-pad-y-lg: 56px;
  --footer-bg: #0d0d0d;
  --footer-border: rgba(255, 255, 255, 0.08);
  --text-measure: 62ch;
  --radius-card: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Якорные ссылки: контент не уезжает под липкую шапку */
#quiz,
#products,
#dealers,
#about,
#delivery,
#contacts,
#lead-form {
  scroll-margin-top: 4.5rem;
}

@media (min-width: 960px) {
  #quiz,
  #products,
  #dealers,
  #about,
  #delivery,
  #contacts,
  #lead-form {
    scroll-margin-top: 7.25rem;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

main {
  overflow-x: hidden;
}

h1,
h2,
h3,
.section__title,
.text-section__title,
.hero__title,
.lead__title,
.offer-card__title,
.quiz__question,
.quiz__contact-title,
.product-card__name,
.benefits__name {
  font-family: var(--font-display);
  color: var(--color-heading);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 480px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 24px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(194, 34, 34, 0.35);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn.is-loading {
  position: relative;
  opacity: 0.88;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(194, 34, 34, 0.06);
  text-decoration: none;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header__top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-bg);
}

.header__top-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand burger"
    "badge badge"
    "actions actions";
  align-items: center;
  column-gap: 16px;
  row-gap: 14px;
  padding: 16px 0 18px;
}

@media (max-width: 959px) {
  .header__top-inner {
    column-gap: 12px;
    row-gap: 8px;
    padding: 10px 0 12px;
  }

  .header__badge {
    padding: 5px 12px;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.3;
  }

  .header__badge-star {
    margin-right: 4px;
    font-size: 11px;
  }

  .logo {
    gap: 8px;
  }

  .logo__icon svg {
    width: 34px;
    height: 34px;
  }

  .logo__name {
    font-size: 17px;
  }

  .logo__tagline {
    font-size: 11px;
    max-width: 210px;
    line-height: 1.25;
  }

  .burger {
    width: 40px;
    height: 40px;
  }

  .header__brand {
    justify-self: center;
  }

  .header__phone {
    font-size: 16px;
    white-space: nowrap;
  }

  .header__hours {
    font-size: 11px;
  }

  .header__callback.btn--primary {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
}

.header__brand {
  grid-area: brand;
  min-width: 0;
}

.header__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
}

@media (max-width: 959px) {
  .header__actions {
    gap: 8px 12px;
    flex-wrap: nowrap;
  }
}

.header__badge {
  grid-area: badge;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 8px 14px;
  max-width: min(100%, 300px);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  text-align: center;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid var(--color-border);
}

.header__badge-star {
  flex-shrink: 0;
  margin-right: 6px;
  color: var(--color-accent);
  font-size: 13px;
  line-height: 1;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}

.header__phone {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-heading);
  text-decoration: none;
}

.header__phone:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.header__hours {
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-muted);
}

.header__callback {
  flex-shrink: 0;
}

.header__callback.btn--primary {
  padding: 11px 18px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(194, 34, 34, 0.28);
}

.header__callback.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(194, 34, 34, 0.38);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.logo__name {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.logo__tagline {
  font-size: 12px;
  color: var(--color-muted);
  max-width: 240px;
}

.logo--footer .logo__name {
  font-size: 16px;
}

.logo__tagline--footer {
  font-size: 11px;
  color: #9a9a9a;
  max-width: 200px;
}

.footer .logo {
  color: #fff;
}

.footer .logo__icon {
  color: var(--color-accent);
}

.footer .logo:hover {
  color: #fff;
  text-decoration: none;
}

.burger {
  grid-area: burger;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav.is-open {
  display: block;
}

.nav__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Не обнулять padding по горизонтали: иначе перебивается .container и пункты прилипают к краю */
  padding: 10px 22px 20px;
}

.nav__inner a {
  padding: 14px 4px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__inner a:hover {
  color: var(--color-accent);
  text-decoration: none;
  background: rgba(194, 34, 34, 0.04);
}

@media (min-width: 960px) {
  .header__top-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);
    grid-template-areas: "brand badge actions";
    column-gap: 28px;
    row-gap: 0;
    padding: 18px 0 20px;
    align-items: center;
  }

  .header__brand {
    justify-self: start;
  }

  .logo__icon svg {
    width: 44px;
    height: 44px;
  }

  .logo__name {
    font-size: 21px;
  }

  .logo__tagline {
    font-size: 13px;
    max-width: 260px;
  }

  .header__badge {
    justify-self: center;
    margin: 0;
    max-width: 260px;
    padding: 9px 20px;
    font-size: 13px;
    background: #f6f6f6;
  }

  .header__actions {
    justify-self: end;
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 20px 24px;
    flex-shrink: 0;
  }

  .header__contacts {
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    min-width: 0;
  }

  .header__phone {
    font-size: 22px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .header__hours {
    font-size: 12px;
  }

  .header__callback.btn--primary {
    padding: 13px 26px;
    font-size: 15px;
  }

  .burger {
    display: none;
  }

  .nav {
    display: block !important;
    border-top: 0;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    padding: 14px 24px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav__inner a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 6px;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav__inner a:hover,
  .nav__inner a:focus-visible {
    text-decoration: none;
    color: var(--color-accent);
    background: rgba(194, 34, 34, 0.07);
  }
}

/* Hero */
.hero {
  padding: 32px 0 24px;
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(194, 34, 34, 0.06), transparent 55%),
    linear-gradient(180deg, #e8e8e8 0%, #f4f4f4 32%, #fafafa 70%, #fff 100%);
}

.hero__content {
  min-width: 0;
}

.hero__grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6.8vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.032em;
  overflow-wrap: anywhere;
}

.hero__subtitle {
  margin: 0 0 20px;
  font-size: clamp(22px, 3.1vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 17px;
  max-width: 34em;
  line-height: 1.62;
}

.hero__chips {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.hero__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  line-height: 1.35;
}

.hero__chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(194, 34, 34, 0.12);
  color: var(--color-accent);
  line-height: 0;
}

.hero__chip-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__actions--single {
  width: 100%;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__actions--single {
    justify-content: center;
  }

  .hero__actions--single .btn {
    min-width: min(100%, 280px);
  }
}

@media (min-width: 900px) {
  .hero__actions--single .btn {
    min-width: 260px;
  }
}

.hero__actions .btn {
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
}

.hero__actions .btn--primary {
  box-shadow: 0 6px 22px rgba(194, 34, 34, 0.32);
}

.hero__actions .btn--outline {
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.hero__actions .btn--outline:hover {
  background: #fff5f5;
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: none;
}

.hero__media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  background: #e0dcd8;
}

.hero__media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

/* Мобильный hero: сначала оффер и CTA, затем детали — без смены HTML */
@media (max-width: 899px) {
  .hero__content {
    display: grid;
    grid-template-areas:
      "title"
      "sub"
      "actions"
      "lead"
      "chips";
    row-gap: 12px;
  }

  .hero__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(28px, 7.5vw, 42px);
    letter-spacing: 0.028em;
  }

  .hero__subtitle {
    grid-area: sub;
    margin: 0;
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .hero__lead {
    grid-area: lead;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  .hero__chips {
    grid-area: chips;
    margin: 0;
    gap: 12px 14px;
    font-size: 12px;
  }

  .hero__actions {
    grid-area: actions;
    margin: 4px 0 2px;
    gap: 12px;
  }

  .hero__actions .btn {
    min-height: 52px;
    font-size: 15px;
  }

  .hero__chip-icon {
    width: 40px;
    height: 40px;
  }

  .hero__chip-svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 52px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 1.42fr);
    gap: clamp(36px, 4.5vw, 68px);
    align-items: start;
  }

  .hero__title {
    font-size: clamp(34px, 4.42vw, 54px);
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: clamp(24px, 2.6vw, 32px);
    margin-bottom: 22px;
  }

  .hero__lead {
    font-size: 18px;
    margin-bottom: 26px;
  }

  .hero__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    margin-bottom: 28px;
  }

  .hero__chip {
    font-size: 13px;
    gap: 10px;
  }

  .hero__chip-icon {
    width: 46px;
    height: 46px;
  }

  .hero__actions .btn {
    min-height: 56px;
    padding-left: 26px;
    padding-right: 26px;
    font-size: 16px;
  }

  .hero__media img {
    aspect-ratio: 4 / 5;
    min-height: 480px;
    max-height: min(680px, 84vh);
    width: 100%;
    object-position: center;
  }
}

/* Sections */
.section {
  padding: var(--section-pad-y) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--section-pad-y-lg) 0;
  }
}

.section--tight {
  padding: 28px 0;
}

@media (max-width: 767px) {
  .benefits.benefits--strip.section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .lead__grid {
    gap: 22px;
  }

  .lead {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .slider__dots {
    margin-top: 16px;
  }
}

.section__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__title--sm {
  font-size: 20px;
}

.section--muted {
  background: var(--section-muted);
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Quiz layout */
.quiz-section__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .quiz-section__title {
    margin-bottom: 20px;
  }
}

/* Единая визуальная зона: квиз + карточки справа */
.quiz-section.section--muted {
  background: linear-gradient(180deg, #dde0db 0%, #e8eae5 40%, #eceee8 100%);
}

.quiz-section.section {
  padding-top: 48px;
  padding-bottom: 52px;
}

@media (min-width: 768px) {
  .quiz-section.section {
    padding-top: 52px;
    padding-bottom: 56px;
  }
}

@media (min-width: 1024px) {
  .quiz-section.section {
    padding-top: 58px;
    padding-bottom: 62px;
  }
}

/* Квиз сразу под героем — меньше зазор сверху */
#quiz.section.quiz-section {
  padding-top: 22px;
}

@media (min-width: 768px) {
  #quiz.section.quiz-section {
    padding-top: 26px;
  }
}

@media (min-width: 1024px) {
  #quiz.section.quiz-section {
    padding-top: 30px;
  }
}

.quiz-zone {
  background: #fafaf8;
  border-radius: 18px;
  padding: 18px 14px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1), 0 2px 14px rgba(0, 0, 0, 0.05);
}

@media (min-width: 600px) {
  .quiz-zone {
    padding: 24px 20px 26px;
  }
}

@media (min-width: 900px) {
  .quiz-zone {
    padding: 30px 30px 34px;
    background: linear-gradient(180deg, #fcfcfa 0%, #f6f6f2 100%);
  }
}

.quiz-layout {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .quiz-layout {
    grid-template-columns: 1.22fr 0.78fr;
    gap: 22px 26px;
  }
}

.quiz.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.quiz-zone .quiz.card {
  padding: 22px 16px 20px;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid #e0e0dc;
}

@media (min-width: 900px) {
  .quiz-zone .quiz.card {
    padding: 32px 28px 26px;
  }
}

.quiz-zone .offer-card.card {
  border: 1px solid #dcdcd8;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
  background: #fff;
}

.quiz__head {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.quiz__progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz__step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a5a5a;
}

.quiz__bar {
  margin-top: 0;
  height: 3px;
  background: #d4d4d4;
  border-radius: 999px;
  overflow: hidden;
}

.quiz__bar span {
  display: block;
  height: 100%;
  width: 33.333%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz__panels {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.quiz__panel {
  flex: 1 1 auto;
}

.quiz__question {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.9vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quiz__options {
  display: grid;
  gap: 12px;
}

.quiz__options--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .quiz__options--cards:not(.quiz__options--compact) {
    gap: 14px 16px;
  }
}

.quiz__options--cards.quiz__options--volume {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .quiz__options--cards.quiz__options--volume {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quiz__options--triple {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .quiz__options--triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz__options--triple .quiz-card:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.quiz-card--task .quiz-card__body {
  align-items: flex-start;
  text-align: left;
  min-height: 60px;
  padding: 16px 16px;
}

.quiz-card--task .quiz-card__text {
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .quiz-card--task .quiz-card__text {
    font-size: 14px;
  }
}

.quiz__hint {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}

.quiz__soft-error {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #8a1212;
}

.quiz__contact-title {
  margin: 0 0 14px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.quiz__contact-lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-muted);
}

.quiz__field-error {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #8a1212;
}

.field__optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 12px;
}

.quiz__checkbox {
  margin-top: 2px;
}

.quiz__footer-note {
  margin: 10px 0 0;
  padding: 0 2px 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
  text-align: center;
}

@media (min-width: 480px) {
  .quiz__footer-note {
    text-align: right;
  }
}

.quiz-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.quiz-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px 18px;
  border: 1px solid #d8d8d8;
  border-radius: calc(var(--radius-card) + 2px);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 188px;
  height: 100%;
}

@media (min-width: 900px) {
  .quiz__options--cards:not(.quiz__options--compact) .quiz-card__body {
    min-height: 208px;
    padding: 28px 20px;
  }
}

@media (min-width: 900px) {
  .quiz__options--triple .quiz-card__body {
    min-height: 220px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

.quiz-card--compact .quiz-card__body {
  padding: 15px 12px;
  min-height: 56px;
}

.quiz-card--compact .quiz-card__text {
  font-size: 14px;
  font-weight: 600;
}

.quiz-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  color: var(--color-accent);
  line-height: 0;
}

.quiz-card__svg {
  display: block;
  width: 68px;
  height: 68px;
}

.quiz-card__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.quiz-card:hover .quiz-card__body {
  border-color: #c8c8c8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.quiz-card:active .quiz-card__body {
  transform: scale(0.99);
}

.quiz-card:has(input:checked) .quiz-card__body {
  border-color: var(--color-accent);
  background: rgba(194, 34, 34, 0.06);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.quiz-card:has(input:focus-visible) .quiz-card__body {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.quiz__form {
  display: grid;
  gap: 14px;
}

.quiz__footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #ececec;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.quiz__footer--split {
  justify-content: space-between;
}

@media (max-width: 479px) {
  .quiz__footer {
    flex-wrap: wrap;
  }

  .quiz__footer--split {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .quiz__footer .quiz__btn-prev {
    margin-right: 0;
    width: 100%;
    order: 2;
    min-height: 46px;
  }

  .quiz__next.btn--primary {
    width: 100%;
    order: 1;
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
  }
}

.quiz__footer .quiz__btn-prev {
  flex-shrink: 0;
}

.quiz__btn-prev {
  background: #f4f4f4;
  color: var(--color-text);
  border: 1px solid #ddd;
  box-shadow: none;
  font-weight: 600;
}

.quiz__btn-prev:hover {
  background: #ececec;
  border-color: #cfcfcf;
  color: var(--color-text);
  text-decoration: none;
}

.quiz__btn-prev:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.quiz__next.btn--primary {
  min-width: min(12rem, 100%);
  max-width: 100%;
  flex: 0 1 auto;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  box-shadow: 0 4px 16px rgba(194, 34, 34, 0.28);
}

.quiz__next.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(194, 34, 34, 0.4);
}

.quiz__thanks {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--color-accent);
}

.quiz__thanks--error {
  color: #8a1212;
}

.quiz__panel[hidden] {
  display: none !important;
}

.quiz__panel.is-active {
  display: block;
}

@keyframes quiz-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.quiz--shake {
  animation: quiz-shake 0.35s ease;
}

.offers-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .offers-stack {
    gap: 20px;
    justify-content: flex-start;
  }

  .offers-stack .offer-card.card {
    flex: 0 1 auto;
    min-height: 0;
  }
}

.offer-card.card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 18px 22px;
  background: #fff;
  border-radius: calc(var(--radius-card) + 4px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media (min-width: 600px) {
  .offer-card.card {
    padding: 28px 22px 26px;
  }
}

@media (min-width: 900px) {
  .offer-card.card {
    padding: 30px 24px 28px;
  }
}

.offer-card.card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.offer-card__icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f2f2f0, #e4e4e2);
  border-radius: 16px;
  color: var(--color-accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.offer-card__icon svg {
  display: block;
  width: 38px;
  height: 38px;
}

.offer-card__icon--consult {
  background: linear-gradient(145deg, #f2f2f0, #e4e4e2);
}

.offer-card__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.offer-card__text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a3a;
  flex: 1 1 auto;
  min-height: 4.65em;
}

.offer-card .btn {
  margin-top: auto;
  min-height: 54px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(194, 34, 34, 0.26);
}

.offer-card .btn--primary:hover {
  box-shadow: 0 4px 14px rgba(194, 34, 34, 0.32);
}

.products.section {
  padding-top: 48px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .products.section {
    padding-top: 56px;
    padding-bottom: 68px;
  }
}

@media (min-width: 1024px) {
  .products.section {
    padding-top: 64px;
    padding-bottom: 76px;
  }
}

.products__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .products__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 16px 24px;
  }
}

.products .section__title {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.products__link {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  color: var(--color-accent);
  text-decoration: none;
  opacity: 1;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.products__link:hover {
  color: var(--color-accent-hover);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.products__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Products slider */
.products__slider-wrap {
  position: relative;
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
  margin: 0 44px;
}

.slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  transition: transform 0.35s ease;
  gap: 18px;
}

.slider__slide {
  display: flex;
  flex: 0 0 calc(100% - 9px);
  min-width: 0;
}

@media (min-width: 560px) {
  .slider__slide {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (min-width: 900px) {
  .slider__slide {
    flex: 0 0 calc((100% - 36px) / 3);
  }
}

@media (min-width: 1100px) {
  .slider__slide {
    flex: 0 0 calc((100% - 54px) / 4);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  border: 1px solid #d8d4cf;
  border-radius: calc(var(--radius-card) + 4px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03), 0 8px 28px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.2s ease, transform 0.25s ease;
}

.product-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  background: linear-gradient(160deg, #ddd8d0, #c9c2b8);
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 560px) {
  .product-card__media {
    min-height: 240px;
  }
}

@media (min-width: 768px) {
  .product-card__media {
    min-height: 260px;
  }
}

@media (min-width: 1100px) {
  .product-card__media {
    min-height: 288px;
  }
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  min-height: 0;
}

.product-card__name {
  margin: 0 0 10px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  margin: 0;
  margin-top: auto;
  padding: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #444;
  max-width: 100%;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(194, 34, 34, 0.35);
  background: #fff;
  cursor: pointer;
  z-index: 3;
  box-shadow:
    0 2px 10px rgba(194, 34, 34, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.slider__arrow::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto;
  border-left: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}

.slider__arrow--prev {
  left: 0;
}

.slider__arrow--prev::after {
  transform: rotate(45deg) translate(2px, -2px);
}

.slider__arrow--next {
  right: 0;
}

.slider__arrow--next::after {
  transform: rotate(-135deg) translate(2px, -2px);
}

.slider__arrow:hover {
  background: #fff7f7;
  border-color: rgba(194, 34, 34, 0.65);
  box-shadow:
    0 3px 14px rgba(194, 34, 34, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.08);
}

.slider__arrow:hover::after {
  border-left-color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

.slider__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.slider__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 20px;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c4c4c4;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider__dot:hover {
  background: #9a9a9a;
}

.slider__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.slider__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Benefits — деловая инфополоса */
.benefits--strip {
  background: linear-gradient(180deg, #ebe9e4 0%, #f2f1ed 100%);
}

.benefits--strip .section__title {
  margin: 0 0 18px;
  max-width: 38rem;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .benefits--strip .section__title {
    margin-bottom: 22px;
  }
}

.benefits--strip .benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #d6d4cf;
  border-radius: calc(var(--radius-card) + 4px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07), 0 2px 10px rgba(0, 0, 0, 0.04);
}

.benefits--strip .benefits__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 18px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8e6e1;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.benefits--strip .benefits__item:last-child {
  border-bottom: 0;
}

.benefits--strip .benefits__icon {
  flex-shrink: 0;
  margin: 0;
  color: #a04538;
  line-height: 0;
}

.benefits--strip .benefits__icon svg {
  display: block;
  width: 44px;
  height: 44px;
}

.benefits--strip .benefits__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.benefits--strip .benefits__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #424242;
  max-width: 44ch;
}

@media (min-width: 640px) {
  .benefits--strip .benefits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits--strip .benefits__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
    border-bottom: 1px solid #e8e6e1;
    border-right: 1px solid #e8e6e1;
  }

  .benefits--strip .benefits__item:nth-child(2n) {
    border-right: 0;
  }

  .benefits--strip .benefits__item:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 959px) {
  .benefits--strip .benefits__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
  }

  .benefits--strip .benefits__icon {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .benefits--strip .benefits__name {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    text-align: center;
    justify-self: center;
    max-width: 11rem;
  }

  .benefits--strip .benefits__text {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    max-width: none;
  }
}

@media (min-width: 960px) {
  .benefits--strip .benefits__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefits--strip .benefits__item {
    min-height: 100%;
    padding: 30px 24px 34px;
    border-bottom: 0;
    border-right: 1px solid #e8e6e1;
  }

  .benefits--strip .benefits__item:last-child {
    border-right: 0;
  }

  .benefits--strip .benefits__icon {
    margin-bottom: 16px;
  }

  .benefits--strip .benefits__icon svg {
    width: 48px;
    height: 48px;
  }
}

/* Lead form */
.lead {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background-color: #c9b8a4;
  background-image:
    linear-gradient(125deg, rgba(255, 252, 248, 0.75) 0%, transparent 42%),
    linear-gradient(-35deg, rgba(120, 85, 55, 0.12) 0%, transparent 45%),
    radial-gradient(80% 120% at 100% 0%, rgba(194, 34, 34, 0.08), transparent 50%),
    repeating-linear-gradient(
      88deg,
      transparent,
      transparent 2px,
      rgba(60, 40, 25, 0.03) 2px,
      rgba(60, 40, 25, 0.03) 3px
    ),
    linear-gradient(175deg, #efe6dc 0%, #d8c8b4 38%, #c4b09a 100%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

.lead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 28%);
}

.lead .container {
  position: relative;
  z-index: 1;
}

.lead__grid {
  display: grid;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .lead__grid {
    grid-template-columns: 1fr minmax(320px, 1.12fr);
    gap: 44px 56px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .lead {
    padding: 80px 0 88px;
  }
}

.lead__text {
  max-width: 40rem;
}

.lead__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #1a1410;
}

.lead__subtitle {
  margin: 0;
  color: #2f2924;
  font-size: clamp(16px, 1.9vw, 19px);
  max-width: 38rem;
  line-height: 1.6;
  font-weight: 500;
}

.lead .lead__form.card {
  padding: 28px 22px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 56px rgba(40, 30, 20, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .lead .lead__form.card {
    padding: 34px 30px 32px;
  }
}

.lead .field {
  margin-bottom: 16px;
}

.lead .field__label {
  font-size: 13px;
  margin-bottom: 7px;
}

.lead .field--icon .field__wrap {
  min-height: 50px;
  border-radius: 8px;
}

.lead .field--icon input {
  padding: 14px 14px 14px 8px;
  font-size: 16px;
}

.lead .checkbox {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.lead .checkbox a {
  color: #a61d1d;
  font-weight: 500;
}

.lead .checkbox a:hover {
  color: var(--color-accent-hover);
}

.lead .btn--primary.btn--lg {
  min-height: 60px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(160, 28, 28, 0.38);
}

.lead .btn--primary.btn--lg:hover {
  box-shadow: 0 8px 28px rgba(160, 28, 28, 0.48);
}

.lead__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.lead__form-success {
  padding: 16px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: rgba(194, 34, 34, 0.06);
  border: 1px solid rgba(194, 34, 34, 0.25);
  border-radius: var(--radius-sm);
}

.lead__form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #8a1212;
  background: rgba(194, 34, 34, 0.08);
  border: 1px solid rgba(194, 34, 34, 0.35);
  border-radius: var(--radius-sm);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.hp-field input {
  pointer-events: auto;
}

.lead__form.is-sent .field,
.lead__form.is-sent .hp-field,
.lead__form.is-sent .checkbox,
.lead__form.is-sent .btn[type="submit"],
.lead__form.is-sent .lead__note,
.lead__form.is-sent .lead__form-error {
  display: none;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.field--icon .field__wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.field--icon .field__wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(194, 34, 34, 0.2);
}

.field--icon .field__prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.field--icon .field__prefix svg {
  display: block;
}

.field--icon input {
  border: 0;
  border-radius: 0;
  padding-left: 8px;
  flex: 1;
  min-width: 0;
}

.field--icon input:focus {
  outline: none;
  box-shadow: none;
}

.field input:focus {
  outline: 2px solid rgba(194, 34, 34, 0.35);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.field input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 16px;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--color-accent);
}

.checkbox a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--color-accent-hover);
}

.checkbox a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* О производстве + доставка (единая инфозона) */
.info-blocks {
  background: #eef0f3;
  border-top: 1px solid var(--color-border);
}

.info-blocks > .section--info.text-section {
  background: transparent;
  padding: 40px 0 40px;
}

@media (min-width: 768px) {
  .info-blocks > .section--info.text-section {
    padding: 44px 0 48px;
  }
}

@media (min-width: 1024px) {
  .info-blocks > .section--info.text-section {
    padding: 48px 0 52px;
  }
}

.info-blocks > .section--info.text-section + .section--info.text-section {
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  padding-top: 40px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .info-blocks > .section--info.text-section + .section--info.text-section {
    padding-top: 48px;
  }
}

@media (min-width: 960px) {
  .info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: stretch;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 3vw, 32px);
  }

  .info-blocks > .section--info.text-section {
    padding: 48px 0 52px;
    min-width: 0;
  }

  .info-blocks > .section--info.text-section + .section--info.text-section {
    border-top: 0;
    padding-top: 48px;
    border-left: 1px solid rgba(0, 0, 0, 0.09);
    padding-left: 28px;
    margin-left: 0;
  }

  .info-blocks > .section--info.text-section:first-child {
    padding-right: 8px;
  }

  .info-blocks .text-block {
    margin-inline: 0;
    max-width: none;
  }
}

.text-block {
  max-width: 38rem;
  margin-inline: auto;
}

.text-section__title {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

.text-section__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: #3d3d3d;
  max-width: 52ch;
}

@media (max-width: 480px) {
  .text-section__body {
    font-size: 15px;
  }
}

/* Lightbox: фото продукции (оверлей без <dialog> — стабильнее с position:fixed и прокруткой) */
.lightbox[hidden] {
  display: none !important;
}

.lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 56px 16px 24px;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border: none;
  background: transparent;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 10, 8, 0.88);
  cursor: pointer;
}

.lightbox__img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(92vw, 1200px);
  max-height: min(86vh, 900px);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(194, 34, 34, 0.9);
}

.lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Всплывающая заявка (имя + телефон) */
.lead-modal[hidden] {
  display: none !important;
}

.lead-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 10, 8, 0.55);
  cursor: pointer;
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lead-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--color-muted);
  background: #f2f2f2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lead-modal__close:hover {
  background: #e8e8e8;
  color: var(--color-heading);
}

.lead-modal__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lead-modal__title {
  margin: 0 36px 10px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  font-family: var(--font-display);
}

.lead-modal__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted);
}

.lead-modal__form .field {
  margin-bottom: 14px;
}

.lead-modal__form .field__label {
  font-size: 13px;
}

.lead-modal__form .checkbox {
  margin: 6px 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.lead-modal__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #8a1212;
  background: #fdecec;
  border-radius: var(--radius-sm);
  border: 1px solid #f0b4b4;
}

.lead-modal__success {
  margin: 0 0 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #1a5c2e;
  background: #e8f5eb;
  border-radius: var(--radius-sm);
  border: 1px solid #b8dfc4;
}

.lead-modal__panel.is-sent .lead-modal__title,
.lead-modal__panel.is-sent .lead-modal__lead,
.lead-modal__panel.is-sent .lead-modal__form,
.lead-modal__panel.is-sent .lead-modal__error {
  display: none !important;
}

.lead-modal__panel.is-sent .lead-modal__success {
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 0;
  background: var(--footer-bg);
  color: #e4e4e4;
  border-top: 1px solid var(--footer-border);
}

.footer__inner {
  padding: 36px 0 32px;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__col--brand .logo {
  align-items: center;
}

.footer__hours {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #9a9a9a;
}

.footer__col--contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer__link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer__link--phone {
  font-size: clamp(18px, 2.4vw, 21px);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.footer__link--phone:hover {
  color: #ffb4b4;
  text-decoration: none;
}

.footer__link--email {
  font-size: 15px;
  font-weight: 500;
  color: #d4d4d4;
}

.footer__link--email:hover {
  color: #fff;
}

.footer__col--address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: #c4c4c4;
  max-width: 22rem;
  margin: 0;
  text-align: center;
}

.footer__copy {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6f6f6f;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    padding: 40px 0 36px;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 32px 40px;
    text-align: left;
  }

  .footer__col--brand {
    align-items: flex-start;
  }

  .footer__col--brand .logo {
    align-items: flex-start;
  }

  .footer__col--contacts {
    align-items: center;
    text-align: center;
    justify-self: center;
  }

  .footer__col--address {
    justify-self: end;
    text-align: right;
    max-width: 18rem;
  }

  .footer__copy {
    text-align: left;
  }
}

/* Small screens: меньше отступов у слайдера — без горизонтального скролла на ~320px */
@media (max-width: 479px) {
  .slider__viewport {
    margin: 0 12px;
  }

  .slider__arrow {
    width: 40px;
    height: 40px;
  }

  .slider__arrow::after {
    width: 10px;
    height: 10px;
  }

  .quiz__options--triple .quiz-card__icon {
    width: 72px;
    height: 72px;
  }

  .quiz__options--triple .quiz-card__svg {
    width: 56px;
    height: 56px;
  }

  .quiz__options--triple .quiz-card__body {
    min-height: 168px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 359px) {
  .slider__viewport {
    margin: 0 8px;
  }

  .slider__arrow {
    width: 36px;
    height: 36px;
  }

  .slider__arrow::after {
    width: 9px;
    height: 9px;
    border-left-width: 2.5px;
    border-bottom-width: 2.5px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero__actions .btn {
    min-height: 50px;
    font-size: 15px;
  }

  .quiz.card {
    padding: 20px 16px 18px;
  }

  .quiz__options--cards:not(.quiz__options--compact) {
    gap: 10px;
  }

  .quiz-card__body {
    padding: 16px 12px;
    min-height: 132px;
  }

  .lead .lead__form.card {
    padding: 22px 16px 20px;
  }

  .products__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slider__track {
    transition: none;
  }

  .quiz__bar span {
    transition: none;
  }

  .quiz-card__body {
    transition: none;
  }

  .quiz-card:active .quiz-card__body {
    transform: none;
  }

  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .quiz--shake {
    animation: none;
  }

  .burger span {
    transition: none;
  }

  .btn.is-loading::after {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}

/* Политика ПДн */
.policy-page {
  padding: 32px 0 48px;
  background: var(--color-bg);
}

.policy {
  max-width: 52rem;
}

.policy__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.policy__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

.policy__meta {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
}

.policy__updated {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
}

.policy__section {
  margin-bottom: 28px;
}

.policy__section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

.policy__section p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
}

.policy__section ul {
  margin: 0 0 12px;
  padding-left: 1.35rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
}

.policy__section li {
  margin-bottom: 8px;
}

.policy__section li:last-child {
  margin-bottom: 0;
}

.policy__section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy__section a:hover {
  color: var(--color-accent-hover);
}

.policy__note {
  margin: 36px 0 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
  background: var(--section-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.header__badge--policy {
  justify-content: flex-start;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
}

.header__policy-back {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.header__policy-back:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.header__policy-back:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Подвал: кредиты и ссылка на политику */
.footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  text-align: center;
}

.footer__credits,
.footer__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7a7a7a;
}

.footer__legal {
  margin-top: 8px;
}

.footer__credits a,
.footer__legal a {
  color: #a8a8a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credits a:hover,
.footer__legal a:hover {
  color: #e0e0e0;
}

@media (min-width: 768px) {
  .footer__bottom {
    text-align: right;
  }

  .footer__legal {
    margin-top: 6px;
  }
}
