/* Avtolot — layout clone of autodvtransit.ru card-stack; teal instead of blue/red */
:root {
  --bg: #e7e7e7;
  --card: #fff;
  --text: #1b1b1b;
  --muted: #5c5c5c;
  --teal: #1a8f86;
  --teal-2: #1a8f86;
  --teal-deep: #1a8f86;
  --cta: #1a8f86;
  --band: linear-gradient(145deg, #1a8f86 0%, #1a8f86 55%, #1a8f86 100%);
  --soft: #edf6f5;
  --line: #d9d9d9;
  --radius: 40px;
  --radius-btn: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max: 480px;
  --font: "Onest", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label {
  -webkit-tap-highlight-color: transparent;
}
a:focus, a:focus-visible, button:focus, button:focus-visible {
  outline: none;
}

body.al-body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-2); text-decoration: none; }
button { font: inherit; }

.al-page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 12px 12px 40px;
}

/* —— top bar —— */
.al-top {
  position: sticky;
  top: 8px;
  z-index: 40;
  margin-bottom: 12px;
}

.al-top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px 8px 10px;
  box-shadow: var(--shadow);
}

.al-top__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
}

.al-top__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2dd4bf, #1a8f86);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

.al-top__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.al-top__nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.al-top__nav::-webkit-scrollbar { display: none; }
.al-top__nav a { color: #3a3a3a; }
.al-top__nav a:hover { color: var(--teal); }

/* —— stack —— */
.al-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.al-card--band {
  background: var(--band);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 107, 100, 0.28);
}

.al-card--band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.05) 14px 16px
    );
  pointer-events: none;
}

.al-card--media { padding-top: 18px; }

.al-card__photo {
  width: calc(100% + 44px);
  margin: -10px -22px 18px;
  height: 210px;
  object-fit: cover;
}

/* —— type —— */
.al-h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.al-h2--light { color: #fff; }

.al-p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.al-p--light { color: rgba(255, 255, 255, 0.92); }

.al-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.al-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.al-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
}

.al-phone {
  display: inline-block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-deep);
}

.al-phone--lg { font-size: 24px; color: var(--text); }

/* —— hero —— */
.al-hero {
  min-height: 640px;
  padding: 0;
  background-color: #d7d7d7;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

.al-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 38%,
    rgba(231, 231, 231, 0.55) 62%,
    rgba(231, 231, 231, 0.96) 78%,
    #e7e7e7 100%
  );
}

.al-hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 22px 26px;
}

.al-hero__sub {
  margin: 0 0 10px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.al-hero__h {
  margin: 0 0 22px;
  max-width: 12em;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.al-hero__h span {
  display: block;
  color: var(--teal);
  margin-top: 4px;
}

.al-hero__btns {
  display: grid;
  gap: 10px;
}

/* —— buttons —— */
.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, filter .12s ease;
}

.al-btn:hover { transform: translateY(-1px); }

.al-btn--cta {
  width: 100%;
  background: var(--cta);
  color: #fff;
}

.al-btn--soft {
  width: 100%;
  background: #f3f3f3;
  color: #222;
}

.al-btn--frost {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-deep);
}

.al-btn--accent {
  width: 100%;
  background: #1a8f86;
  color: #fff;
}

.al-btn--line {
  width: 100%;
  background: #eef1f1;
  color: #222;
}

/* —— icons —— */
.al-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(26, 143, 134, 0.18);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.al-ico::before { content: "✱"; color: var(--teal-deep); font-weight: 700; }
.al-ico--bolt::before { content: "⚡"; }
.al-ico--hands::before { content: "🤝"; filter: grayscale(1) brightness(2); }

.al-ico--tl { position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(255,255,255,.75); }
.al-ico--tr { position: absolute; top: 18px; right: 18px; z-index: 2; background: rgba(255,255,255,.22); }
.al-ico--tr::before { color: #fff; }

.al-row-ico {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.al-emoji { font-size: 28px; line-height: 1; }

/* —— telegram fake card —— */
.al-tg-card {
  display: block;
  margin: 0 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #1c2733;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.al-tg-card__head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #232e3c;
}

.al-tg-card__ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #1a8f86);
}

.al-tg-card__head strong { display: block; font-size: 14px; }
.al-tg-card__head em { display: block; font-style: normal; font-size: 12px; color: #9bb0c3; }

.al-tg-card__pin {
  padding: 14px;
  font-size: 13px;
  color: #c9d6e3;
  min-height: 72px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), transparent),
    #17212b;
}

/* —— calc —— */
.al-field { display: block; margin-bottom: 10px; }

.al-field select,
.al-form input,
.al-form select {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #1a8f86;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.al-field select,
.al-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A8F86' d='M1 2l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.al-field select:hover,
.al-form select:hover {
  border-color: #12756e;
}

.al-field select:focus,
.al-form input:focus,
.al-form select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 143, 134, 0.22);
  border-color: #1a8f86;
  background-color: #fff;
}

.al-calc__out {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.al-calc__out span { color: var(--muted); font-size: 14px; }
.al-calc__out strong { font-size: 32px; color: var(--teal-deep); letter-spacing: -0.02em; }

/* —— form —— */
.al-form .al-field { margin-bottom: 10px; }
.al-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.al-form__msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal-deep);
  font-size: 14px;
}
.al-form__msg.is-error { background: #fdecec; color: #8a1c1c; }

/* —— gallery / steps / reviews —— */
.al-gallery {
  display: grid;
  gap: 10px;
}
.al-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
}

.al-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.al-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}
.al-steps span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}
.al-steps strong { display: block; margin-bottom: 4px; font-size: 17px; }
.al-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.al-reviews {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.al-review {
  padding: 16px;
  border-radius: 22px;
  background: #f5f5f5;
}
.al-review strong { display: block; }
.al-review em {
  display: block;
  margin: 2px 0 8px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.al-review p { margin: 0; font-size: 14px; color: #333; }

.al-managers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.al-managers li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.al-managers li:last-child { border-bottom: 0; }
.al-managers a { font-weight: 700; color: var(--teal-deep); }

.al-faq {
  border-top: 1px solid #eee;
  padding: 14px 0;
}
.al-faq:first-child { border-top: 0; padding-top: 0; }
.al-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
}
.al-faq summary::-webkit-details-marker { display: none; }
.al-faq p { margin: 10px 0 0; color: var(--muted); }

.al-foot__copy { color: var(--muted); font-size: 13px; }
.al-foot__social {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.al-foot__social a { font-weight: 600; }

/* —— modal —— */
.al-modal[hidden] { display: none !important; }
.al-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.al-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.al-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 28px;
  padding: 28px 20px 20px;
  box-shadow: var(--shadow);
}
.al-modal__x {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #777;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.al-prose {
  width: min(100% - 24px, 720px);
  margin: 20px auto;
  background: #fff;
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

/* wider tablet/desktop: keep same card language, slightly wider column */
@media (min-width: 768px) {
  :root { --max: 560px; }
  .al-top__nav { font-size: 12px; gap: 12px; }
  .al-hero { min-height: 680px; }
  .al-hero__h { font-size: 40px; }
}

@media (min-width: 1100px) {
  :root { --max: 640px; }
}
