@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --az3-bg: #f5f8f4;
  --az3-surface: #ffffff;
  --az3-surface-soft: #f1f6ee;
  --az3-ink: #173023;
  --az3-muted: #5f7568;
  --az3-line: #d7e4d8;
  --az3-brand: #2ea95a;
  --az3-brand-strong: #238748;
  --az3-danger: #cf4e4e;
  --az3-warning: #c08e2f;
  --az3-radius: 18px;
  --az3-radius-sm: 12px;
  --az3-shadow: 0 14px 34px rgba(25, 45, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html.land-azs-toplivo body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--az3-ink);
  background:
    radial-gradient(1200px 480px at 50% -200px, rgba(46, 169, 90, 0.15), transparent),
    var(--az3-bg);
  -webkit-font-smoothing: antialiased;
}

html.land-azs-toplivo .az3-shell {
  width: min(1140px, calc(100% - 24px));
  margin: 16px auto 28px;
}

html.land-azs-toplivo .view {
  display: none;
}

html.land-azs-toplivo .view.active {
  display: block;
}

html.land-azs-toplivo .az3-head {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--az3-radius);
  border: 1px solid var(--az3-line);
  background: var(--az3-surface);
  box-shadow: var(--az3-shadow);
}

html.land-azs-toplivo .az3-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.land-azs-toplivo .az3-logo strong {
  display: block;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.15;
}

html.land-azs-toplivo .az3-logo p {
  margin: 2px 0 0;
  color: var(--az3-muted);
  font-size: 0.83rem;
}

html.land-azs-toplivo .az3-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

html.land-azs-toplivo .az3-control,
html.land-azs-toplivo .az3-board,
html.land-azs-toplivo .az3-auth {
  border: 1px solid var(--az3-line);
  border-radius: var(--az3-radius);
  background: var(--az3-surface);
  box-shadow: var(--az3-shadow);
}

html.land-azs-toplivo .az3-control {
  padding: 18px;
}

html.land-azs-toplivo .az3-control h1 {
  margin: 0 0 8px;
  font-size: clamp(1.26rem, 2.8vw, 1.52rem);
  line-height: 1.2;
}

html.land-azs-toplivo .az3-control > p {
  margin: 0 0 14px;
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--az3-muted);
}

html.land-azs-toplivo .az3-box {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--az3-line);
  border-radius: var(--az3-radius-sm);
  background: var(--az3-surface-soft);
}

html.land-azs-toplivo .az3-box h2 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

html.land-azs-toplivo .az3-fuel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html.land-azs-toplivo .az3-fuel-grid button {
  min-height: 42px;
  border: 1px solid #c8dbc9;
  border-radius: 10px;
  background: #fff;
  color: #234232;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

html.land-azs-toplivo .az3-fuel-grid button:hover {
  border-color: #9fc4a8;
}

html.land-azs-toplivo .az3-fuel-grid button.is-active {
  border-color: var(--az3-brand);
  background: #ebf7ee;
  box-shadow: inset 0 0 0 1px rgba(46, 169, 90, 0.22);
}

html.land-azs-toplivo .az3-select-wrap {
  display: block;
}

html.land-azs-toplivo .az3-select-wrap select,
html.land-azs-toplivo .phone-input,
html.land-azs-toplivo .password-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8dbc9;
  border-radius: 10px;
  background: #fff;
  color: var(--az3-ink);
  font: inherit;
  padding: 0 12px;
}

html.land-azs-toplivo .az3-select-wrap select:focus,
html.land-azs-toplivo .phone-input:focus,
html.land-azs-toplivo .password-input:focus {
  outline: none;
  border-color: var(--az3-brand);
  box-shadow: 0 0 0 3px rgba(46, 169, 90, 0.18);
}

html.land-azs-toplivo .az3-inline-btn {
  margin-top: 8px;
  border: 1px dashed #a9c9b1;
  background: #fff;
  color: #345942;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

html.land-azs-toplivo .az3-inline-btn.is-active {
  border-color: var(--az3-brand);
  color: var(--az3-brand-strong);
  background: #ebf7ee;
}

html.land-azs-toplivo .az3-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: #2e4a3a;
  cursor: pointer;
}

html.land-azs-toplivo .az3-check:last-child {
  margin-bottom: 0;
}

html.land-azs-toplivo .az3-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid #94b5a0;
  background: #fff;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

html.land-azs-toplivo .az3-check input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 26%, 86% 12%, 40% 68%);
  background: #fff;
}

html.land-azs-toplivo .az3-check input:checked {
  background: var(--az3-brand);
  border-color: var(--az3-brand-strong);
}

html.land-azs-toplivo .az3-check input:checked::before {
  transform: scale(1);
}

html.land-azs-toplivo .az3-check input:focus-visible {
  outline: none;
  border-color: var(--az3-brand);
  box-shadow: 0 0 0 3px rgba(46, 169, 90, 0.2);
}

html.land-azs-toplivo .az3-run-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #4fc571, #2ea95a);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(46, 169, 90, 0.28);
}

html.land-azs-toplivo .az3-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

html.land-azs-toplivo .az3-board {
  padding: 14px;
}

html.land-azs-toplivo .az3-stage {
  display: none;
}

html.land-azs-toplivo .az3-stage.is-active {
  display: block;
}

html.land-azs-toplivo .az3-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

html.land-azs-toplivo .az3-info-cards article {
  border: 1px solid var(--az3-line);
  border-radius: 12px;
  background: var(--az3-surface-soft);
  padding: 11px 12px;
}

html.land-azs-toplivo .az3-info-cards p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--az3-muted);
}

html.land-azs-toplivo .az3-info-cards h3 {
  margin: 6px 0 0;
  font-size: 1.34rem;
  line-height: 1.1;
}

html.land-azs-toplivo .az3-map {
  position: relative;
  height: 220px;
  border: 1px solid var(--az3-line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(48, 167, 91, 0.12), rgba(48, 167, 91, 0.02)),
    #edf4ed;
}

html.land-azs-toplivo .az3-map::before,
html.land-azs-toplivo .az3-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html.land-azs-toplivo .az3-map::before {
  background:
    linear-gradient(rgba(152, 181, 156, 0.2) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(152, 181, 156, 0.2) 1px, transparent 1px) 0 0 / 24px 24px;
}

html.land-azs-toplivo .az3-map::after {
  background: radial-gradient(circle at 20% 20%, rgba(89, 184, 122, 0.25), transparent 35%);
}

html.land-azs-toplivo .az3-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

html.land-azs-toplivo .az3-pin.on {
  background: #2ea95a;
}

html.land-azs-toplivo .az3-pin.lim {
  background: var(--az3-warning);
}

html.land-azs-toplivo .az3-pin.off {
  background: #cc5757;
}

html.land-azs-toplivo .az3-note {
  margin: 10px 2px 0;
  color: var(--az3-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

html.land-azs-toplivo .az3-stage h2 {
  margin: 0 0 7px;
  font-size: 1.16rem;
}

html.land-azs-toplivo .az3-scan-line {
  margin: 0 0 10px;
  color: var(--az3-muted);
  font-size: 0.88rem;
}

html.land-azs-toplivo .az3-meter {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: #e5eee5;
  overflow: hidden;
  margin-bottom: 12px;
}

html.land-azs-toplivo .az3-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #4ec470, #2ea95a);
  transition: width 0.2s ease;
}

html.land-azs-toplivo .az3-meter span {
  display: block;
  margin-top: 14px;
  color: var(--az3-muted);
  font-size: 0.8rem;
  text-align: right;
}

html.land-azs-toplivo .az3-scan-log {
  margin: 10px 0 0;
  padding-left: 16px;
  color: #395344;
  font-size: 0.84rem;
  line-height: 1.5;
}

html.land-azs-toplivo .az3-result-card {
  border: 1px solid var(--az3-line);
  border-radius: 14px;
  background: var(--az3-surface-soft);
  padding: 12px;
  margin-bottom: 12px;
}

html.land-azs-toplivo .az3-result-card small {
  color: var(--az3-muted);
  font-size: 0.76rem;
}

html.land-azs-toplivo .az3-result-card h3 {
  margin: 8px 0 4px;
  font-size: 1.42rem;
}

html.land-azs-toplivo .az3-result-card p {
  margin: 0 0 8px;
  color: #355241;
  font-size: 0.88rem;
}

html.land-azs-toplivo .az3-result-card mark {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e4f4e8;
  color: #1f7b42;
  font-size: 0.78rem;
}

html.land-azs-toplivo .az3-result-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #375243;
  font-size: 0.86rem;
  line-height: 1.5;
}

html.land-azs-toplivo .az3-result-only .az3-layout {
  grid-template-columns: 1fr;
}

html.land-azs-toplivo .az3-result-only .az3-control {
  display: none;
}

html.land-azs-toplivo .az3-auth {
  margin-top: 14px;
  padding: 18px;
}

html.land-azs-toplivo .az3-auth h2 {
  margin: 0 0 7px;
  font-size: 1.24rem;
}

html.land-azs-toplivo .az3-auth p {
  margin: 0 0 10px;
  color: var(--az3-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

html.land-azs-toplivo .az3-auth-ok {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b8d8bf;
  background: #ebf7ee;
  color: #1e7f44;
  font-weight: 700;
  font-size: 0.8rem;
}

html.land-azs-toplivo .hidden {
  display: none !important;
}

html.land-azs-toplivo .error-msg {
  min-height: 1.2em;
  margin-bottom: 8px;
  color: var(--az3-danger);
  font-size: 0.84rem;
}

html.land-azs-toplivo .az3-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}

html.land-azs-toplivo .country-wrap {
  position: relative;
  flex-shrink: 0;
}

html.land-azs-toplivo .az3-country-btn {
  min-width: 96px;
  min-height: 44px;
  border: 1px solid #c8dbc9;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
}

html.land-azs-toplivo .country-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 250px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--az3-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--az3-shadow);
  padding: 4px;
  display: none;
}

html.land-azs-toplivo .country-drop.open {
  display: block;
}

html.land-azs-toplivo .country-opt {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font: inherit;
  color: #294436;
  cursor: pointer;
}

html.land-azs-toplivo .country-opt .c-cd {
  margin-left: auto;
  color: var(--az3-muted);
}

html.land-azs-toplivo .country-opt.active,
html.land-azs-toplivo .country-opt:hover {
  background: #eef6ef;
}

html.land-azs-toplivo .otp-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

html.land-azs-toplivo .otp-grid input {
  width: 42px;
  height: 48px;
  border: 1px solid #c8dbc9;
  border-radius: 10px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

html.land-azs-toplivo .otp-grid input:focus {
  outline: none;
  border-color: var(--az3-brand);
  box-shadow: 0 0 0 3px rgba(46, 169, 90, 0.18);
}

html.land-azs-toplivo .az3-time {
  font-size: 0.84rem;
  color: var(--az3-muted);
  margin-top: 8px;
}

html.land-azs-toplivo .az3-link {
  margin-top: 10px;
  border: none;
  background: none;
  color: #2b7f48;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

html.land-azs-toplivo .az3-link.az3-link-muted {
  color: var(--az3-muted);
}

html.land-azs-toplivo .az3-success {
  text-align: center;
  padding: 18px 4px;
}

html.land-azs-toplivo .az3-checkmark {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #e8f6ec;
  border: 2px solid #63b47b;
  color: #2d8e4d;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  html.land-azs-toplivo .az3-layout {
    grid-template-columns: 1fr;
  }

  html.land-azs-toplivo .az3-shell {
    width: min(1140px, calc(100% - 16px));
    margin: 10px auto 20px;
  }

  html.land-azs-toplivo .az3-head,
  html.land-azs-toplivo .az3-control,
  html.land-azs-toplivo .az3-board,
  html.land-azs-toplivo .az3-auth {
    border-radius: 14px;
  }
}
