:root {
  --page-bg: #f0f0f0;
  --surface: #ffffff;
  --muted-surface: #e9e9e9;
  --line: #ebebeb;
  --text: #000000;
  --text-muted: #676767;
  --blue: #1a6cbd;
  --red: #d22f27;
  --gray: #dfdfdf;
  --warning: #f2911a;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 15px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.2;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.ams-page {
  padding: 0 16px;
}

.ams-container {
  width: min(1040px, 100%);
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 23.9px rgba(0, 0, 0, 0.2);
}

.ams-header {
  height: 99px;
  padding: 19px 60px 0;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ams-logo {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.ams-logo-box {
  width: 59px;
  height: 59px;
  border: 2px solid #000;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ams-logo-box img {
  width: 49px;
  height: 19px;
}

.ams-logo-title {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.ams-login-button {
  margin-top: 5px;
  width: 148px;
  height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--gray);
  color: #1b75d6;
  font-size: 16px;
  cursor: pointer;
}

.index-info {
  min-height: 108px;
  padding: 18px 60px 24px;
  border-bottom: 2px solid var(--line);
}

.index-info p {
  margin: 0;
  width: min(763px, 100%);
  font-size: 16px;
  line-height: 20px;
  color: var(--text-muted);
}

.index-find-section {
  padding: 32px 60px;
  background: var(--surface);
}

.index-find-form {
  min-height: 100px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #eeeeee 0%, #d9d9d9 100%);
  padding: 18px 17px 16px 23px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 24px;
}

.index-find-form h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.96px;
  white-space: nowrap;
}

.index-find-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.plate-input-wrap {
  height: 66px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  display: flex;
  overflow: hidden;
}

.plate-main-input {
  width: 232px;
  border: 0;
  border-right: 2px solid #000;
  text-align: center;
  font-size: 36px;
  line-height: 66px;
  letter-spacing: 1.8px;
  color: #121212;
  text-transform: uppercase;
  padding: 0 8px;
}

.plate-main-input::placeholder,
.plate-region-input::placeholder {
  color: #cfcfcf;
}

.plate-region-wrap {
  width: 82px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3px;
}

.plate-region-input {
  width: 100%;
  height: 43px;
  border: 0;
  text-align: center;
  font-size: 34px;
  color: #111;
  padding: 0 2px;
}

.plate-region-mark {
  margin-top: 0;
  width: 18px;
  height: 7px;
}

.plate-region-mark img {
  width: 100%;
  height: 100%;
}

.plate-flag-mark {
  margin-top: 0;
  width: 22px;
  height: 14px;
}

.plate-region-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: -2px;
}

.plate-flag-mark img {
  width: 100%;
  height: 100%;
}

.index-search-button {
  width: 174px;
  height: 66px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 24px;
  letter-spacing: -0.48px;
}

.index-search-button img {
  width: 24px;
  height: 24px;
}

input:focus,
button:focus {
  outline: 2px solid rgba(26, 108, 189, 0.4);
  outline-offset: 2px;
}

.plate-main-input:focus,
.plate-main-input:focus-visible,
.plate-region-input:focus,
.plate-region-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.form-error {
  margin: 0;
  min-height: 18px;
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.2;
  color: #767676;
  font-weight: 700;
}

.form-error.is-error {
  color: var(--red);
}

.index-gallery {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px 32px;
}

.index-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

.index-history-section {
  margin: 0 60px;
  min-height: 150px;
  border-radius: var(--radius-md);
  background: #e6e6e6;
  display: grid;
  grid-template-columns: 212px 224px minmax(336px, 1fr);
  grid-template-rows: 1fr;
  column-gap: 53px;
  align-items: center;
  padding-right: 26px;
}

.index-history-image {
  width: 212px;
  height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
  grid-row: 1 / 3;
}

.index-history-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.96px;
  max-width: 224px;
}

.index-history-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 11px;
}

.index-history-side p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  width: min(358px, 100%);
}

.index-history-button {
  width: 336px;
  height: 45px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.32px;
  cursor: pointer;
}

.index-how-section {
  min-height: 292px;
  padding: 63px 60px 61px;
  border-bottom: 2px solid var(--line);
}

.index-how-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.96px;
}

.index-how-grid {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.how-card {
  min-height: 108px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-lg);
  padding: 16px 22px 12px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  align-items: center;
}

.how-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ececec;
  color: #323232;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  grid-column: 1;
  grid-row: 1;
}

.how-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1;
}

.how-card p {
  margin: 0;
  font-size: 14px;
  line-height: 16px;
  color: #323232;
  grid-column: 1 / -1;
}

.ams-footer {
  min-height: 80px;
  border-top: 2px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 62px;
}

.ams-footer-texts {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ams-footer-texts p {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  color: #8d8c8c;
  letter-spacing: -0.44px;
  max-width: 49%;
}

.ams-footer-texts p + p {
  text-align: right;
}

.ams-footer-logo {
  width: 45px;
  height: 45px;
}

.ams-footer-logo img {
  width: 100%;
  height: 100%;
}

.report-result-section {
  padding: 32px 60px;
}

.report-result-card {
  min-height: 100px;
  border-radius: var(--radius-md);
  background: var(--muted-surface);
  padding: 13px 20px 11px 2px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.report-result-logo {
  width: 66px;
  height: 66px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}

.report-result-main {
  min-width: 0;
  flex: 1 1 auto;
}

.report-result-plate {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.44px;
  font-weight: 400;
  white-space: nowrap;
}

.report-result-model {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
}

.report-result-note {
  margin: 0;
  width: 187px;
  font-size: 16px;
  line-height: 20px;
  color: #323232;
  flex: 0 0 auto;
}

.report-buy-button {
  width: 260px;
  min-height: 71px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  letter-spacing: -0.32px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 8px 12px;
}

.icon-camera {
  font-size: 18px;
  line-height: 1;
}

.report-buy-button .icon-camera {
  font-size: 16px;
}

.report-photo-badge .icon-camera {
  font-size: 17px;
}

.report-photos-section {
  padding: 3px 60px;
}

.report-photos-slider {
  position: relative;
}

.report-photos-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  scroll-behavior: smooth;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.photo-nav-prev {
  left: -16px;
}

.photo-nav-next {
  right: -16px;
}

.photo-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.report-photo-item {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.report-photo-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
}

.report-photo-item.is-locked {
  cursor: pointer;
}

.photo-lock-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  z-index: 4;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.photo-lock {
  width: 22px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-lock img {
  width: 100%;
  height: 100%;
  filter: none;
}

.report-full-section {
  padding: 0 60px 54px;
  border-bottom: 2px solid var(--line);
}

.report-full-title {
  margin: 50px 0 0;
  font-size: 32px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.96px;
}

.report-full-meta {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-check-date {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}

.report-photo-badge {
  width: 369px;
  min-height: 51px;
  border-radius: 15px;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.report-check-grid {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.report-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-check-row {
  min-height: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 25px;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}

.report-check-row:last-child {
  margin-bottom: 0;
}

.check-label {
  font-size: 16px;
  line-height: 1;
  color: #323232;
}

.check-value {
  font-size: 16px;
  line-height: 1;
  color: #727272;
  text-align: right;
}

.check-value-strong {
  color: #000;
  font-weight: 700;
}

.check-status-icon {
  width: 25px;
  height: 25px;
  position: relative;
}

.report-check-row.is-loading .check-status-icon {
  border: 2px solid #7ec5ef;
  border-left-color: transparent;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.report-check-row.is-ok .check-status-icon {
  background-image: url("../assets/7ae1462e-b144-466f-bcec-cf54383fadda.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.report-check-row.is-ok .check-value {
  color: #323232;
  font-size: 14px;
}

.report-check-row.is-ok .check-value.check-value-strong {
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.report-check-row.is-warn .check-status-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 17px;
  height: 17px;
  background: var(--warning);
  border-radius: 2px;
  transform: rotate(45deg);
}

.report-check-row.is-warn .check-status-icon::after {
  content: "!";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
}

.report-check-row.is-warn .check-value {
  color: var(--warning);
  font-size: 14px;
  font-weight: 700;
}

.report-get-button {
  margin: 46px auto 0;
  display: block;
  width: 364px;
  min-height: 59px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.54px;
  cursor: pointer;
}

.report-payment-section {
  padding: 41px 60px;
  background: #e9e9e9;
}

.report-payment-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.report-payment-top h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.96px;
}

.report-payment-top p {
  margin: 0;
  width: auto;
  max-width: 600px;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--blue);
}

.report-payment-email {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 38px;
  color: #323232;
}

.report-payment-card {
  margin-top: 10px;
  background: #fff;
  border-radius: var(--radius-lg);
  min-height: 145px;
  padding: 32px 60px 28px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 42px;
  row-gap: 12px;
  align-items: start;
}

.payment-plan-block {
  align-self: center;
}

.payment-plan-title {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.payment-plan-prices {
  margin-top: 10px;
  display: inline-flex;
  align-items: flex-end;
  gap: 26px;
}

.payment-plan-price {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.44px;
  color: var(--blue);
  font-weight: 700;
}

.payment-plan-old-price {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1;
  color: var(--red);
  text-decoration: line-through;
}

.payment-submit-button {
  grid-column: 2;
  width: 100%;
  min-height: 59px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.72px;
  cursor: pointer;
}

.payment-agreement {
  grid-column: 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 15px;
  color: #323232;
}

.payment-agreement span {
  white-space: nowrap;
}

.payment-agreement input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #cdc4b5;
  border-radius: 3px;
  margin: 0;
  background: #fff;
  position: relative;
  cursor: pointer;
}

.payment-agreement input:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 6px;
  height: 10px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.payment-agreement.has-error {
  color: var(--red);
}

.payment-agreement.has-error input {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.2);
}

.report-tariffs {
  margin-top: 42px;
}

.report-tariffs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-tariffs-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.96px;
}

.tariff-toggle-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #323232;
  cursor: pointer;
}

.tariff-toggle-arrow {
  display: inline-block;
  font-size: 38px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.tariff-toggle-arrow::before {
  content: "\203A";
}

.tariff-toggle-button[aria-expanded="false"] .tariff-toggle-arrow {
  transform: rotate(0deg);
}

.report-tariffs-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.28s ease, margin-top 0.28s ease;
  pointer-events: none;
}

.report-tariffs-grid.is-open {
  margin-top: 28px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.report-tariff-card {
  min-height: 99px;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 22px 36px;
}

.report-tariff-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.tariff-meta {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tariff-price {
  margin: 0;
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tariff-note {
  margin: 0;
  color: #323232;
  font-size: 13px;
  line-height: 15px;
  min-width: 0;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.79);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-overlay.is-hidden {
  display: none;
}

.popup-card {
  width: min(752px, 100%);
  border-radius: var(--radius-lg);
  background: #e9e9e9;
  position: relative;
  padding: 36px;
}

.popup-card-check {
  min-height: 452px;
}

.popup-card-loader {
  min-height: 288px;
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 34px;
  line-height: 1;
}

.popup-close span {
  display: block;
  transform: translateY(-1px);
}

.popup-head {
  width: 100%;
  text-align: center;
}

.popup-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.96px;
}

.popup-head p {
  margin: 9px 0 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #323232;
}

.popup-divider {
  margin-top: 27px;
  width: 100%;
  height: 1px;
}

.popup-divider img {
  width: 100%;
  height: 1px;
}

.popup-form {
  margin-top: 22px;
}

.popup-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 38px;
  font-weight: 700;
}

.popup-form input {
  width: 100%;
  height: 64px;
  border: 1px solid #cdc4b5;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0 18px;
  font-size: 20px;
  color: #000;
}

.popup-form input::placeholder {
  color: #767676;
}

.popup-submit-button {
  margin-top: 19px;
  width: 100%;
  min-height: 71px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.72px;
  cursor: pointer;
}

.popup-form .form-error {
  margin-top: 8px;
  min-height: 16px;
  color: var(--red);
}

.popup-disclaimer {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #767676;
  text-align: center;
}

.loader-track {
  margin-top: 52px;
  width: 100%;
  height: 25px;
  border: 2px solid #b4b4b4;
  border-radius: 61px;
  padding: 4px 6px;
}

.loader-bar {
  display: block;
  width: 0;
  height: 13px;
  border-radius: 61px;
  background: var(--blue);
}

.loader-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  color: #323232;
}

.report-photo-popup-card {
  width: min(520px, 100%);
  min-height: auto;
  padding: 28px 24px 24px;
  text-align: center;
}

.report-photo-popup-card h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.45px;
}

.report-photo-popup-button {
  margin-top: 22px;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.report-photo-popup-arrow {
  font-size: 28px;
  line-height: 1;
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1140px) {
  .ams-page {
    padding: 0;
  }

  .ams-container {
    width: 100%;
    box-shadow: none;
  }

  .ams-header,
  .index-info,
  .index-find-section,
  .index-how-section,
  .report-result-section,
  .report-photos-section,
  .report-full-section,
  .report-payment-section,
  .ams-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .index-history-section {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 980px) {
  .index-find-form {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .index-find-form h1 {
    font-size: 30px;
    white-space: normal;
  }

  .index-find-controls {
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
  }

  .index-search-button {
    flex: 0 0 174px;
  }

  .index-history-section {
    grid-template-columns: 212px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    padding: 16px 18px 16px 0;
    row-gap: 10px;
  }

  .index-history-image {
    grid-row: 1 / 4;
  }

  .index-history-section h2 {
    font-size: 30px;
  }

  .index-history-side {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .index-history-button {
    width: 100%;
    max-width: 336px;
  }

  .index-how-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .report-result-card {
    flex-wrap: wrap;
    padding: 14px;
  }

  .report-result-note {
    width: auto;
    flex: 1 1 220px;
  }

  .report-buy-button {
    width: 100%;
    max-width: 320px;
    min-height: 58px;
    margin-left: auto;
  }

  .report-full-title,
  .report-payment-top h2,
  .report-tariffs-head h2,
  .index-how-section h2,
  .index-history-section h2 {
    font-size: 30px;
  }

  .report-full-meta {
    flex-wrap: wrap;
  }

  .report-photo-badge {
    width: 100%;
    justify-content: center;
  }

  .report-check-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .report-payment-top {
    flex-direction: column;
    gap: 8px;
  }

  .report-payment-top p {
    width: auto;
    margin-top: 0;
  }

  .report-payment-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    padding: 18px;
  }

  .payment-submit-button {
    grid-column: 1;
    width: 100%;
    font-size: 24px;
  }

  .payment-agreement {
    grid-column: 1;
  }

  .payment-agreement span {
    white-space: normal;
  }

  .payment-plan-prices {
    gap: 16px;
  }

  .payment-plan-title {
    margin-top: 0;
  }

  .report-tariffs-grid {
    grid-template-columns: 1fr;
  }

  .ams-footer {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ams-footer-texts {
    display: block;
  }

  .ams-footer-texts p {
    max-width: none;
    line-height: 14px;
    text-align: left;
  }

  .ams-footer-texts p + p {
    margin-top: 2px;
    text-align: left;
  }

  .ams-footer-logo {
    width: 38px;
    height: 38px;
    margin-left: auto;
    justify-self: end;
  }

  .popup-form input {
    font-size: 20px;
  }

  .popup-submit-button {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .ams-header {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: center;
  }

  .ams-logo {
    gap: 12px;
  }

  .ams-logo-box {
    width: 48px;
    height: 48px;
  }

  .ams-logo-box img {
    width: 40px;
    height: 16px;
  }

  .ams-logo-title {
    font-size: 17px;
    letter-spacing: -0.3px;
  }

  .ams-login-button {
    width: 96px;
    height: 40px;
    font-size: 14px;
    margin-top: 0;
  }

  .index-info {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .index-info p {
    font-size: 14px;
    line-height: 18px;
  }

  .index-find-section {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .index-find-form h1 {
    font-size: 24px;
    letter-spacing: -0.4px;
  }

  .index-find-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .plate-input-wrap,
  .index-search-button {
    width: 100%;
  }

  .plate-main-input {
    width: calc(100% - 82px);
    font-size: 30px;
  }

  .plate-region-input {
    font-size: 28px;
  }

  .index-search-button {
    flex: 0 0 auto;
    height: 66px;
    min-height: 48px;
    font-size: 18px;
    gap: 8px;
    padding: 0;
  }

  .index-search-button img {
    width: 18px;
    height: 18px;
  }

  .index-gallery {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .index-history-section {
    margin-left: 24px;
    margin-right: 24px;
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0;
  }

  .index-history-image {
    width: 100%;
    height: 160px;
    grid-row: auto;
  }

  .index-history-section h2,
  .index-history-side p,
  .index-history-button {
    grid-column: auto;
    margin: 0 14px;
  }

  .index-history-side {
    grid-column: auto;
    grid-row: auto;
    gap: 12px;
    align-items: stretch;
  }

  .index-history-section h2 {
    font-size: 30px;
    margin-top: 10px;
    width: calc(100% - 28px);
    max-width: none;
    white-space: nowrap;
  }

  .index-history-side p {
    margin-top: 8px;
    width: calc(100% - 28px);
    max-width: none;
  }

  .index-history-button {
    margin-top: 12px;
    margin-bottom: 14px;
    width: calc(100% - 28px);
    max-width: none;
  }

  .index-how-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .index-how-section h2 {
    font-size: 30px;
  }

  .how-card {
    min-height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    align-items: center;
  }

  .how-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .how-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    line-height: 1.1;
  }

  .how-card p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .report-result-section,
  .report-photos-section {
    padding-top: 16px;
    padding-bottom: 0;
  }

  .report-result-plate {
    font-size: 34px;
  }

  .report-result-model {
    font-size: 14px;
    line-height: 16px;
  }

  .report-result-note {
    font-size: 14px;
    line-height: 18px;
  }

  .report-buy-button {
    width: 100%;
    margin-left: 0;
    min-height: 56px;
    font-size: 14px;
    line-height: 16px;
  }

  .photo-nav {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .photo-nav-prev {
    left: 4px;
  }

  .photo-nav-next {
    right: 4px;
  }

  .report-photos-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 22px 6px;
  }

  .report-photo-item {
    flex: 0 0 74vw;
    max-width: 240px;
    scroll-snap-align: start;
  }

  .photo-lock-layer {
    width: 36px;
    height: 36px;
    top: 50%;
  }

  .photo-lock {
    width: 19px;
    height: 22px;
  }

  .report-full-section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .report-full-title,
  .report-payment-top h2,
  .report-tariffs-head h2 {
    font-size: 28px;
    line-height: 1.03;
  }

  .report-full-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
  }

  .report-check-date {
    font-size: 14px;
  }

  .report-photo-badge {
    font-size: 14px;
  }

  .report-check-row {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto 22px;
  }

  .check-label {
    font-size: 14px;
  }

  .check-value {
    font-size: 13px;
  }

  .check-status-icon {
    width: 22px;
    height: 22px;
  }

  .report-check-row.is-warn .check-status-icon::before {
    width: 15px;
    height: 15px;
    left: 3px;
    top: 3px;
  }

  .report-check-row.is-warn .check-status-icon::after {
    line-height: 22px;
  }

  .report-get-button {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    margin-top: 22px;
  }

  .report-payment-section {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .report-payment-email {
    font-size: 16px;
    line-height: 24px;
  }

  .payment-plan-price {
    font-size: 34px;
  }

  .payment-submit-button {
    min-height: 54px;
    font-size: 28px;
  }

  .report-tariffs {
    margin-top: 20px;
  }

  .report-tariffs-grid {
    margin-top: 0;
    gap: 12px;
  }

  .report-tariffs-grid.is-open {
    margin-top: 14px;
  }

  .report-tariff-card {
    padding: 14px;
  }

  .tariff-price {
    font-size: 28px;
    margin-top: 10px;
  }

  .tariff-note {
    margin: 6px 0 0;
    font-size: 12px;
  }

  .popup-card {
    padding: 20px;
  }

  .popup-card-check {
    min-height: auto;
  }

  .popup-card-loader {
    min-height: auto;
  }

  .popup-close {
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    font-size: 24px;
  }

  .popup-head h2 {
    font-size: 30px;
  }

  .popup-divider {
    margin-top: 18px;
  }

  .popup-form {
    margin-top: 14px;
  }

  .popup-form label {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .popup-form input {
    height: 54px;
    font-size: 20px;
  }

  .popup-submit-button {
    min-height: 56px;
    font-size: 26px;
  }

  .popup-disclaimer {
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
  }

  .report-photo-popup-card h2 {
    font-size: 24px;
  }

  .report-photo-popup-button {
    min-height: 54px;
    font-size: 18px;
  }

  .report-photo-popup-arrow {
    font-size: 22px;
  }

  .loader-track {
    margin-top: 22px;
    height: 20px;
  }

  .loader-bar {
    height: 10px;
  }

  .loader-note {
    font-size: 13px;
    margin-top: 10px;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 24px;
  }

  .ams-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .ams-header,
  .index-info,
  .index-find-section,
  .index-how-section,
  .report-result-section,
  .report-photos-section,
  .report-full-section,
  .report-payment-section,
  .ams-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .index-history-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .index-find-form h1 {
    font-size: 22px;
  }

  .plate-main-input {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .plate-region-input {
    font-size: 25px;
  }

  .index-search-button {
    font-size: 16px;
    min-height: 44px;
  }

  .index-search-button img {
    width: 16px;
    height: 16px;
  }

  .index-history-section h2,
  .index-how-section h2,
  .report-full-title,
  .report-payment-top h2,
  .report-tariffs-head h2 {
    font-size: 24px;
  }

  .report-full-title {
    font-size: 20px;
    letter-spacing: -0.25px;
  }

  .report-result-plate {
    font-size: 30px;
  }

  .report-photo-item {
    flex-basis: 82vw;
    max-width: 220px;
  }

  .popup-head h2 {
    font-size: 27px;
  }
}
