/* Yii integration overrides for the ATE-KA.RU marketing pages. */

.check-form--report {
  width: 100%;
  max-width: 620px;
}

.hero-left {
  min-width: 0;
}

.seo-logo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
}

.seo-logo-copy .logo-text-main,
.seo-logo-copy .logo-text-sub {
  display: block;
}

.header .header-cta {
  padding: 10px 16px !important;
  gap: 0;
}

.header .header-inner {
  gap: 14px;
}

.header .nav {
  gap: 0;
  font-size: 13px;
}

.header .nav a {
  padding-inline: 8px;
}

.report-type-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.report-type-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.report-type-switch__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.report-type-switch__item.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.report-query-field {
  width: 100%;
  margin: 0;
}

.check-form--report input[data-report-query] {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.check-form--report input[data-report-query]::placeholder {
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.check-form--report .btn-form-primary {
  min-height: 48px;
}

.report-form-error {
  min-height: 18px;
  margin-top: 7px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 600;
}

.report-form-error:empty {
  display: none;
}

.check-form-alt--report {
  justify-content: flex-end;
}

.check-form-alt--report a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) {
  body:has(.header .nav.is-open),
  body.seo-menu-open {
    overflow: hidden;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .header .burger {
    display: inline-flex;
    position: relative;
    z-index: 72;
    order: -2;
  }

  .header .logo {
    position: relative;
    z-index: 72;
    order: -1;
    margin-right: auto;
  }

  .header .logo > div {
    display: none;
  }

  .header .header-cta {
    position: relative;
    z-index: 72;
    margin-left: 0;
  }

  .header .nav {
    display: none;
    position: fixed;
    z-index: 70;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 96px 24px 32px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow-y: auto;
  }

  .header .nav.is-open {
    display: flex;
  }

  .header .nav a {
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
  }

  .header .burger[aria-expanded="true"] {
    border-color: var(--brand-2);
    background: var(--ink);
  }

  .header .burger[aria-expanded="true"] span {
    background: #fff;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .report-type-switch {
    gap: 5px;
  }

  .report-type-switch__item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .check-form--report input[data-report-query] {
    padding: 10px 12px;
    font-size: 15px;
  }

  .check-form--report .btn-form-primary {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .report-type-switch__item {
    padding-inline: 3px;
    font-size: 10px;
  }
}
