/* EVO TAXI — аренда BYD Qin Plus EV.
 *
 * Оформление снято с evo-taxi.kz: белая страница, крупные скруглённые панели
 * голубого #7fd1e6, чёрные заголовки капсом по центру, белые карточки с голубой
 * обводкой, кнопки-пилюли — чёрная для главного действия и синяя для WhatsApp.
 * Радиусы там большие (28px у панелей, 20px у карточек), и именно они делают
 * страницу узнаваемой.
 *
 * Одна тема, светлая: у оригинала тёмной нет, а витрина в iframe получает
 * theme=light из адреса, иначе при тёмной системе у гостя она оказалась бы
 * чёрным прямоугольником посреди белой страницы.
 *
 * Шрифт — Manrope, лежит в assets/fonts. На evo-taxi.kz объявлен Sora, но
 * кириллицы в нём нет вовсе, и русский текст там отрисован системным шрифтом —
 * отсюда разнобой в их заголовке. Manrope того же геометрического склада и
 * кириллицу покрывает.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #ffffff;
  --ink: #0f1114;
  --muted: #6b7280;
  --line: #e6e8eb;

  --cyan: #7fd1e6;
  --cyan-tint: #eaf7fb;
  --blue: #007aff;

  --r-panel: 28px;
  --r-card: 20px;

  --measure: 62ch;
  --gap: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Шапка ─────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible { border-bottom-color: var(--cyan); }

@media (max-width: 980px) {
  .nav { display: none; }
}

/* ─── Кнопки-пилюли ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 17, 20, 0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Иконка внутри пилюли: канал узнаётся значком быстрее, чем читается словом. */
.ico { width: 18px; height: 18px; flex-shrink: 0; }

.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-link .ico { color: var(--blue); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #23282e; }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0a6ede; }

.btn-cyan { background: var(--cyan); color: var(--ink); margin-left: auto; }
.btn-cyan:hover { background: #6cc7df; }

.btn-line { background: #fff; border-color: var(--ink); color: var(--ink); }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ─── Первый экран ──────────────────────────────────────────────────────── */

.hero { padding: 40px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.hero-panel {
  background: var(--cyan);
  border-radius: var(--r-panel);
  padding: 52px 48px;
  /* Панель заходит под фотографию, как на оригинале: снимок лежит поверх её
     правого края и склеивает две половины экрана. */
  position: relative;
  z-index: 1;
  margin-right: -48px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-panel p {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 16px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-shot {
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--cyan-tint);
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 50px rgba(15, 17, 20, 0.14);
}

.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-panel { margin-right: 0; padding: 36px 26px; }
}

/* ─── Секции ────────────────────────────────────────────────────────────── */

section { padding: 64px 0; }

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

.sub {
  margin: 0 auto 34px;
  max-width: var(--measure);
  color: var(--muted);
  text-align: center;
}

/* ─── Карточки с голубой обводкой ───────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.card {
  background: #fff;
  border: 2px solid var(--cyan);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 17, 20, 0.1);
}

/* Значок в карточке при наведении заливается акцентом: движение у карточки уже
   есть, а это — вторая, спокойная подсказка, что блок живой. */
.card:hover .badge { background: var(--cyan); }
.badge { transition: background 0.15s; }

/* Голубой значок с коротким значением вместо картинки из фотобанка: «24+» и
   «6» человек считывает быстрее, чем рисунок, и это его собственные цифры. */
.badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--cyan-tint);
  border: 2px solid var(--cyan);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ─── Голубая панель «О нас» ────────────────────────────────────────────── */

.panel {
  background: var(--cyan);
  border-radius: var(--r-panel);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.panel h2 { text-align: left; margin-bottom: 14px; }
.panel p { margin: 0 0 12px; max-width: 48ch; }
.panel p:last-child { margin-bottom: 0; }

.panel .shot {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.4);
}

.panel .shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
}

/* ─── Витрина ───────────────────────────────────────────────────────────── */

/* Виджет живёт на нашем сервере и приезжает готовой страницей: список машин,
   цены, фотографии и форма заявки. Заявка попадает в админку парка, а не в
   почту, поэтому отдельной формы здесь нет — второй канал означал бы, что часть
   заявок теряется. */
.widget {
  border: 2px solid var(--cyan);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
}

/* Высоту рамке ставит скрипт по сообщению от самой витрины (assets/app.js):
   iframe под содержимое не растёт, и заданная в вёрстке высота всегда либо
   обрезает список, либо оставляет под ним пустое поле. Значение ниже — запас на
   случай выключенного JS: столько занимает список из двух-трёх моделей. */
.widget iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  transition: height 0.2s ease;
}

@media (max-width: 720px) {
  .widget iframe { height: 900px; }
}

.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ─── Условия аренды ────────────────────────────────────────────────────── */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 30px;
  border: 2px solid var(--cyan);
  border-radius: var(--r-card);
}

.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

/* Подсветка строки под курсором: таблица в три столбца читается по горизонтали,
   и в длинных строках легко потерять, к какому названию относится значение. */
.specs > div:hover { background: var(--cyan-tint); }

.specs dt { color: var(--muted); font-size: 14px; }

.specs dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ─── Шаги ──────────────────────────────────────────────────────────────── */

/* Номер здесь несёт смысл: это порядок действий, а не украшение. */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 2px solid var(--cyan);
  border-radius: var(--r-card);
  padding: 26px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.steps li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 17, 20, 0.1);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.steps b { display: block; margin-bottom: 6px; font-size: 17px; }
.steps span { color: var(--muted); font-size: 14px; }

/* ─── Контакты ──────────────────────────────────────────────────────────── */

.contacts {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts h2 { text-align: left; }
.contacts dl { margin: 0; }
.contacts dt { margin-top: 20px; font-size: 13px; color: var(--muted); }
.contacts dt:first-child { margin-top: 0; }
.contacts dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }
.contacts a { text-decoration-color: var(--cyan); text-underline-offset: 4px; }

.about {
  background: var(--cyan-tint);
  border: 2px solid var(--cyan);
  border-radius: var(--r-card);
  padding: 26px;
}

.about h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.about p { margin: 0; color: #3d4550; font-size: 14px; }

@media (max-width: 900px) {
  .contacts { grid-template-columns: 1fr; gap: 24px; }
}

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ─── Юридическая страница ──────────────────────────────────────────────── */

.doc { max-width: 72ch; padding: 48px 0 64px; }
.doc h1 { font-size: clamp(26px, 4vw, 36px); }
.doc h2 { margin-top: 34px; font-size: 20px; text-align: left; text-transform: none; }
.doc p { color: #3d4550; }
