/* trans.cv.ua — перероблена версія: перевезення авто + продаж авто з Німеччини/Нідерландів */

:root {
  --accent: #06aff8;
  --accent-dark: #0590cc;
  --text: #1d1d1d;
  --muted: #707070;
  --grey: #f6f7f8;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", sans-serif;
  --font-foot: "Open Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Шапка ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 80px;
}
.site-title {
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.header-phone {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 20px 140px;
  text-align: center;
  color: #fff;
  background-color: #1b2530;
  /* Фото шапки: поклади файл img/hero.jpg (краще фото автовоза). Без нього буде темний градієнт. */
  background-image: url("../img/hero.jpg"), linear-gradient(135deg, #2b3a4a 0%, #0d1319 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero-sub {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  opacity: .92;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms;
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; border-color: #fff; color: #000; }

.btn--viber { background: #7360f2; border-color: #7360f2; }
.btn--viber:hover, .btn--viber:focus-visible { background: #5b49d4; border-color: #5b49d4; }
.btn--whatsapp { background: #25d366; border-color: #25d366; }
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { background: #1da851; border-color: #1da851; }
.hero-link { display: inline-block; margin-top: 22px; color: #fff; opacity: .85; font-size: 16px; }
.hero-link:hover { opacity: 1; }

/* ---------- Секції ---------- */
.section { padding: 70px 80px; }
.section--grey { background: var(--grey); }
.section-title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}
.section-title--center { text-align: center; margin-bottom: 40px; }

/* Картки послуг */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1170px;
  margin: 0 auto;
}
.card {
  padding: 36px 28px;
  border: 1px solid #eee;
  text-align: center;
  background: #fff;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.card-icon svg { width: 38px; height: 38px; }
.card h3 {
  margin: 22px 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.35;
}
.card p { margin: 0; color: var(--muted); }


/* Маршрути */
.routes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
}
.route { padding: 26px 28px; background: #fff; border-left: 4px solid var(--accent); }
.route h3 { margin: 0 0 14px; font-family: var(--font-head); font-size: 17px; font-weight: 500; text-transform: uppercase; line-height: 1.35; }
.route h3 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); text-transform: none; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border: 1px solid #dfe3e6; border-radius: 20px; background: var(--grey); font-size: 15px; }
.route-text { margin: 0; color: #444; }
.routes-note { max-width: 1170px; margin: 24px auto 0; color: #444; }

/* Про нас */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1170px;
  margin: 0 auto;
}
.about-text p { margin: 0 0 14px; color: #444; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps strong { font-family: var(--font-head); font-weight: 500; font-size: 16px; text-transform: uppercase; }
.steps li div { color: var(--muted); }
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
}

/* ---------- Слайдер ---------- */
.slider { position: relative; max-width: 760px; margin: 0 auto; }
.slider-viewport { overflow: hidden; touch-action: pan-y; }
.slider-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform 800ms ease; }
.slider-track.is-instant { transition: none; }
.slider-track li { flex: 0 0 100%; }
.slider-track img { width: 100%; user-select: none; -webkit-user-drag: none; }
.slider-btn {
  position: absolute;
  top: 50%;
  width: 44px; height: 64px;
  margin-top: -44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 60px;
  line-height: 58px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 255, 255, .9);
}
.slider-btn--prev { left: 6px; }
.slider-btn--next { right: 6px; }
.slider-dots { margin-top: 10px; text-align: center; }
.slider-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 5px 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
}
.slider-dot.is-active { background: #000; }

/* ---------- Заявка + контакти ---------- */
.split { display: flex; flex-wrap: wrap; max-width: 1170px; margin: 0 auto; }
.split-col { padding: 0 15px; }
.split-col--wide   { width: 66.66667%; }
.split-col--narrow { width: 33.33333%; }

.contact-form { display: flex; flex-wrap: wrap; align-items: flex-start; }
.field { width: 100%; padding: 0 0 15px; }
.field--half { width: 50%; }
.field--half:nth-child(1) { padding-right: 7px; }
.field--half:nth-child(2) { padding-left: 8px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  background: #fff;
  color: #444;
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 300ms;
}
.contact-form textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; }
.contact-form ::placeholder { color: #999; opacity: 1; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-note { width: 100%; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.form-note:empty { display: none; }

.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list small {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #999;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.contact-icon svg { width: 22px; height: 22px; }

.messengers { display: flex; gap: 14px; margin-top: 2px; }
.messengers a { font-size: 15px; color: var(--accent); }
.messengers a:hover { text-decoration: underline; }

/* ---------- Карта ---------- */
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Футер ---------- */
.site-footer {
  padding: 20px 15px;
  background: #000;
  text-align: center;
  font-family: var(--font-foot);
  font-size: 15px;
  line-height: 2;
}
.site-footer a { color: #fff; text-decoration: none; }

/* ---------- Планшет ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 24px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .routes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .split-col--wide, .split-col--narrow { width: 100%; padding: 0; }
  .split-col--narrow { margin-top: 36px; }
}

@media (max-width: 780px) {
  .site-header { padding: 16px 16px; flex-direction: column; gap: 8px; }
  .site-title { font-size: 30px; }
  .hero { padding: 150px 16px 80px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 18px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .btn { flex: 1 1 140px; text-align: center; }
  .field--half { width: 100%; padding: 0 0 15px !important; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .btn { padding: 13px 18px; }
}
