/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;
  color: #000000;
  background-color: #ffffff;
}

body {
  line-height: 1.4;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.header__logo-img {
  height: 36px;
  width: auto;
}

.header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #ffd41c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__nav-link,
.header__catalog-btn {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.header__catalog-btn {
  font-weight: 600;
  background-color: #f4f4f4;
}

.header__catalog-btn:hover {
  background-color: #e6e6e6;
}

.header__nav-link:hover {
  background-color: #f5f5f5;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header__phone {
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.header__phone-caption {
  font-size: 12px;
  color: #777;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 4px;
}

.header__burger span {
  width: 20px;
  height: 2px;
  background-color: #000;
}

.header__mobile-menu {
  display: none;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.header__mobile-menu--open {
  display: block;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  gap: 4px;
}

.header__mobile-link {
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 0;
  font-size: 14px;
}

/* Buttons */
.btn {
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn--primary {
  background-color: #ffd41c;
  color: #000;
}

.btn--primary:hover {
  background-color: #f2c800;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn--secondary {
  background-color: #ffffff;
  border: 1px solid #000000;
  color: #000000;
}

.btn--secondary:hover {
  background-color: #f4f4f4;
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid #e0e0e0;
  color: #000000;
}

.btn--ghost:hover {
  background-color: #f9f9f9;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: #1565c0;
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section--gray {
  background-color: #f4f4f4;
}

.section--white {
  background-color: #ffffff;
}

.section__header {
  margin-bottom: 32px;
}

.section__header--row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.section__title {
  margin: 0 0 8px;
  font-size: 28px;
}

.section__subtitle {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.section__cta-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__cta-note {
  font-size: 13px;
  color: #777;
}

/* Hero */
.hero {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #f4f4f4 55%, #f4f4f4 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero__title {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero__subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  color: #444;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.hero__meta-item {
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #f4f4f4;
  font-size: 12px;
}

.hero__meta-label {
  display: block;
  color: #777;
}

.hero__meta-value {
  font-weight: 600;
}

.hero__contact-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.hero__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__contact-phone {
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__image-placeholder {
  border-radius: 12px;
  background: #e0e0e0;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #555;
  overflow: hidden;
}

.hero__image-placeholder .hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.pill--light {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.pill--accent {
  background-color: #ffd41c;
}

/* Grid, cards */
.grid {
  display: grid;
  gap: 16px;
}

.grid--categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--equipment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-category,
.card-product,
.card-type,
.feature,
.service-card,
.case-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 16px;
}

.card-category__image {
  height: 120px;
  border-radius: 6px;
  background-color: #f4f4f4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #777;
}

.card-category__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.card-category__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
}

.card-category__footer {
  display: flex;
  justify-content: flex-start;
}

.card-product__badge {
  display: inline-block;
  width: max-content;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 8px;
}

.card-product__badge--success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.card-product__badge--warning {
  background-color: #fff4e5;
  color: #e65100;
}

.card-product__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-color: #f4f4f4;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #777;
  overflow: hidden;
}

.card-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-product__title {
  margin: 0 0 8px;
  font-size: 15px;
}

.card-product__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: #555;
}

.card-product__specs li + li {
  margin-top: 4px;
}

.card-product {
  display: flex;
  flex-direction: column;
}

.card-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.card-type__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.card-type__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
}

.feature__title {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature__text {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.service-card__title {
  margin: 0 0 6px;
  font-size: 15px;
}

.service-card__text {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.case-card__title {
  margin: 0 0 8px;
  font-size: 15px;
}

.case-card__list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #555;
}

.case-card__list li + li {
  margin-top: 4px;
}

/* Slider */
.slider__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps__item {
  display: flex;
  gap: 10px;
}

.steps__num {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: #ffd41c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.steps__title {
  margin: 0 0 4px;
  font-size: 15px;
}

.steps__text {
  margin: 0;
  font-size: 13px;
  color: #555;
}

/* Geo */
.geo {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.geo__map {
  border-radius: 8px;
  border: 1px dashed #d0d0d0;
  background-color: #fafafa;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 13px;
  text-align: center;
}

.geo__list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #555;
}

.geo__list li + li {
  margin-top: 4px;
}

/* Quiz short */
.quiz-short {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* FAQ accordion */
.accordion__item {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.accordion__icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #ccc;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background-color: #555;
}

.accordion__icon::before {
  width: 8px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  width: 1px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__item--open .accordion__icon::after {
  display: none;
}

.accordion__body {
  display: none;
  padding: 0 16px 12px;
  font-size: 13px;
  color: #555;
}

.accordion__item--open .accordion__body {
  display: block;
}

/* Loaders accordion (марка → модели) */
.loaders-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.loaders-accordion__item {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  margin-bottom: 8px;
  overflow: hidden;
}

.loaders-accordion__header {
  width: 100%;
  border: none;
  background: #f8f8f8;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.loaders-accordion__header:hover {
  background-color: #eee;
}

.loaders-accordion__icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #999;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}

.loaders-accordion__icon::before,
.loaders-accordion__icon::after {
  content: "";
  position: absolute;
  background-color: #555;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loaders-accordion__icon::before {
  width: 8px;
  height: 1px;
}

.loaders-accordion__icon::after {
  width: 1px;
  height: 8px;
}

.loaders-accordion__item--open .loaders-accordion__icon::after {
  display: none;
}

.loaders-accordion__body {
  display: none;
  padding: 12px 16px 16px;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
}

.loaders-accordion__item--open .loaders-accordion__body {
  display: block;
}

.loaders-model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: #fafafa;
  border: 1px solid #eee;
}

.loaders-model:last-child {
  margin-bottom: 0;
}

.loaders-model__name {
  font-weight: 600;
  font-size: 14px;
  min-width: 180px;
}

.loaders-model__period {
  font-size: 13px;
  color: #666;
  min-width: 90px;
}

.loaders-model .btn {
  margin-left: auto;
}

@media (max-width: 767px) {
  .loaders-model {
    flex-direction: column;
    align-items: flex-start;
  }
  .loaders-model .btn {
    margin-left: 0;
  }
  .loaders-model__name {
    min-width: 0;
  }
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__row {
  display: flex;
  gap: 12px;
}

.form__field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form__label {
  font-size: 13px;
  color: #555;
}

.form__field--readonly {
  padding: 10px 12px;
  background-color: #f4f4f4;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.form__prefill-label {
  font-size: 12px;
  color: #666;
  margin-right: 8px;
}

.form__prefill-value {
  font-weight: 600;
  font-size: 14px;
}

.form__input,
.form__textarea,
.form select {
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.form__textarea {
  resize: vertical;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  max-width: 360px;
}

.form__checkbox input {
  margin-top: 2px;
}

.form__note {
  font-size: 12px;
  color: #777;
}

/* CTA final */
.cta-final {
  border-radius: 12px;
  padding: 24px;
  background-color: #000000;
  color: #ffffff;
}

.cta-final__title {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta-final__subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #e0e0e0;
}

/* Footer */
.footer {
  background-color: #111111;
  color: #f4f4f4;
  padding-top: 32px;
  margin-top: 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333;
}

.footer__brand {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-img {
  height: 32px;
  width: auto;
}

.footer__address {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}

.footer__contacts a {
  display: block;
  color: #f4f4f4;
  text-decoration: none;
  font-size: 14px;
}

.footer__contacts a + a {
  margin-top: 2px;
}

.footer__legal {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal a {
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
}

.footer__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 13px;
  color: #f4f4f4;
  cursor: pointer;
}

.footer__text {
  font-size: 13px;
  color: #ccc;
  margin: 0 0 12px;
}

.footer__bottom {
  padding: 10px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #777;
}

/* Mobile bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  z-index: 90;
}

.mobile-bar__item {
  flex: 1 1 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.mobile-bar__icon {
  font-size: 16px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 16px;
}

.modal-overlay--open {
  display: flex;
}

.modal {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 20px 20px 20px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal--wide {
  max-width: 720px;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #555;
}

/* Quiz */
.quiz {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 16px;
}

.quiz__progress {
  height: 4px;
  border-radius: 999px;
  background-color: #f4f4f4;
  overflow: hidden;
  margin-bottom: 12px;
}

.quiz__progress-bar {
  height: 100%;
  width: 0;
  background-color: #ffd41c;
}

.quiz__body {
  min-height: 120px;
  margin-bottom: 12px;
}

.quiz__step-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.quiz__step-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  color: #666;
}

.quiz__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.quiz__chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background-color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

.quiz__chip--selected {
  border-color: #000000;
  background-color: #ffd41c;
}

.quiz__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.quiz__note {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--equipment,
  .grid--categories,
  .grid--cases,
  .slider__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav,
  .header__right > .btn {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    background: #ffffff;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--categories,
  .grid--equipment,
  .grid--features,
  .grid--services,
  .grid--cases,
  .slider__track {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-final {
    padding: 16px;
  }

  .form__row {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .geo {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-short {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }
}

