/* Стар Таксі — клон дизайну Eximium. Кольори/шрифти/розміри звірені з живим сайтом. */

:root {
  --c-top: #1c2830;        /* фон верхнього блока хедера */
  --c-nav: #364657;        /* навбар, футер, заголовки */
  --c-nav2: #364556;       /* скошені плашки героя/callback */
  --c-nav-dark: #2b3947;
  --c-hover: #445363;      /* ховер навбару */
  --c-accent: #ffcc00;     /* фірмовий жовтий */
  --c-accent-dark: #e6b800;
  --c-pill: #e65d65;       /* червоні плашки міст */
  --c-pill-dark: #d4555e;
  --c-text: #333333;
  --c-muted: #6a7581;
  --c-border: #e0e4e8;
  --c-zebra: #e6e8eb;
  --c-link: #40b1e2;
  --c-link-hover: #1c8ab9;
  --c-green: #009900;
  --wrap: 1180px;
  --shadow: 0 2px 12px rgba(28, 40, 48, .1);
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text);
  background: #fff;
  overflow-x: clip;       /* clip не створює скрол-контейнер і не ламає sticky-хедер */
  max-width: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--c-nav); line-height: 1.2; margin: 1em 0 .5em; font-weight: 500; }
p { margin: 0 0 10px; }
svg.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.hero-in > *, .layout > *, .perks-in > *, .footer-cols > * { min-width: 0; } /* запобіжник overflow у grid */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 3px;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .3px;
  text-decoration: none; border: 0; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--c-accent-dark); color: #fff; text-decoration: none; }
.btn-lg { padding: 15px 44px; font-size: 18px; }
.btn-block { display: block; text-align: center; margin-top: 12px; }

/* ---------- Верхній блок хедера ---------- */
.topbar { position: relative; z-index: 1; background: var(--c-top); color: #fff; overflow: hidden; }
.topbar:before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(../img/bgtaxi.webp) center/cover no-repeat; opacity: .1;
}
.topbar-in {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: 22px; padding: 16px 15px;
}
.topbar .logo { display: inline-block; }
.topbar .logo img { display: block; height: 80px; width: auto; }
.topbar-slogan { text-align: center; }
.topbar-slogan p { margin: 0 0 8px; font-size: 14px; color: #e8ebee; }
.city-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 4px;
  background: var(--c-pill); color: #fff; font-size: 14px; text-decoration: none; transition: background .15s;
}
.pill:hover { background: var(--c-pill-dark); color: #fff; text-decoration: none; }
.topbar-phones { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.tphone { color: var(--c-accent); font-size: 18px; font-weight: 500; text-decoration: none; }
.tphone:hover { color: var(--c-accent); text-decoration: underline; }
.tphone:first-child { font-size: 36px; line-height: 1.1; }
.tphone .ic { margin-right: 4px; font-size: 20px; color: #fff; } /* іконка біла, як на живому */
.tphone:first-child .ic { font-size: 40px; vertical-align: -0.2em; color: #fff; }
.tphone em { font-style: normal; font-size: 14px; font-weight: 300; color: #fff; }
.topbar-apps { text-align: center; border: 1px solid rgba(255,255,255,.3); padding: 10px 12px; }
.topbar-apps .apps-title { display: block; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.topbar-apps a { display: block; }
.topbar-apps a img { height: 38px; width: auto; margin: 4px auto; }

/* ---------- Навбар ---------- */
.site-header { background: var(--c-nav); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-in { display: flex; align-items: center; min-height: 50px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; color: #fff; padding: 15px 18px; text-decoration: none;
  font-size: 14px; text-transform: uppercase; letter-spacing: .3px; transition: background .15s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-page-ancestor > a,
.main-nav .current_page_item > a {
  background: var(--c-hover); color: #fff; text-decoration: none;
}
.main-nav .menu-item-has-children > a:after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
  border-top: 4px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.main-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; background: #fff;
  min-width: 240px; padding: 4px 0; border: 1px solid rgba(0,0,0,.15);
  border-radius: 0 0 4px 4px; box-shadow: 0 6px 12px rgba(0,0,0,.175); z-index: 60;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 9px 20px; text-transform: uppercase; font-size: 13px; color: #333; }
.main-nav .sub-menu a:hover { background: var(--c-hover); color: #fff; }
.header-cta { margin-left: auto; padding: 9px 22px; }

/* ---------- Герой (світле фото міста + скошена плашка) ---------- */
.hero { position: relative; overflow: hidden; background: #fcfcfc; }
.hero:before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/content-bg.webp) center/cover no-repeat; opacity: 1;
}
.hero:after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.28);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; min-height: 400px; padding: 28px 15px; }
.hero-text { color: #2a2a2a; }
.hero-panel { display: inline-block; background: rgba(54,69,86,.9); padding: 12px 30px 12px 44px; margin-left: -20px; transform: skewX(-27deg); }
.hero-title { transform: skewX(27deg); margin: 0; color: #fff; font-size: 36px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.hero-title span { color: var(--c-accent); }
.hero-list { list-style: none; margin: 24px 0; padding: 0; }
.hero-list li { position: relative; padding-left: 28px; margin: 9px 0; font-size: 20px; color: #444; }
.hero-list li:before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); }
.hero-img { text-align: right; }
.hero-img img { display: inline-block; max-height: 400px; width: auto; }

/* ---------- Смуга callback (скошений паралелограм) ---------- */
.callback-strip { background: transparent; }
.callback-strip .wrap { max-width: var(--wrap); }
.callback-strip .cb-inner {
  background: var(--c-nav2); color: #fff; padding: 12px 30px;
  clip-path: polygon(26px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  font-size: 15px; text-transform: uppercase; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.callback-strip .cb-ic { width: 30px; height: 30px; padding: 5px; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; margin-right: 6px; color: #fff; flex: 0 0 auto; }
.callback-strip a { color: #fff; font-size: 20px; font-weight: 700; }
.callback-strip a b { color: #fff; font-weight: 700; font-size: 28px; }
.callback-strip a:hover { color: var(--c-accent); text-decoration: none; }

/* ---------- Жовта смуга переваг ---------- */
.perks { background: #ffcc00 url(../img/orange_bg.png); }
.perks-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 20px 15px 15px; }
.perk { display: flex; align-items: center; gap: 12px; }
.perk img { width: 50px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.perk span { color: #000; font-size: 14px; font-weight: 400; line-height: 1.35; }

/* ---------- Контент + сайдбар (контейнер 1180) ---------- */
.wrap-wide { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.layout { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 24px 0 36px; }
@media (min-width: 900px) { .layout.has-side { grid-template-columns: 1fr 300px; } }
.content { min-width: 0; }
.page-h1, .content h1 { color: var(--c-nav); text-transform: uppercase; font-size: 20px; font-weight: 400; border-bottom: 2px solid var(--c-accent); padding-bottom: 4px; margin: 6px 0 18px; }
.content h2 { color: var(--c-nav); font-size: 16px; text-transform: uppercase; font-weight: 400; }
.content h2 a { color: var(--c-nav); }
.content ul { padding-left: 20px; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.content td, .content th { padding: 8px 12px; border: 1px solid var(--c-border); text-align: left; }
.content th { background: var(--c-nav); color: #fff; font-weight: 500; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); margin: 12px 0 2px; }
.breadcrumbs a { color: var(--c-muted); }

/* ---------- Сайдбар / тарифи (щільна безрамкова таблиця) ---------- */
.sidebar .card { background: #fff; border: 0; border-radius: 0; padding: 0; margin-bottom: 22px; }
.sidebar h3 { margin: 0 0 8px; color: var(--c-nav); text-transform: uppercase; font-size: 18px; font-weight: 300; border-bottom: 1px solid var(--c-accent); padding-bottom: 2px; }
table.tariffs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tariffs th { background: var(--c-nav); color: #fff; padding: 6px 8px; text-align: left; font-weight: 400; }
table.tariffs td { padding: 4px 8px; border: 0; }
table.tariffs td:last-child { text-align: left; white-space: nowrap; color: inherit; font-weight: 400; }
table.tariffs tr:nth-child(even) td { background: var(--c-zebra); }

/* ---------- FAQ ---------- */
.faq { margin: 8px 0 30px; }
.faq h2 { color: var(--c-nav); text-transform: uppercase; font-size: 20px; font-weight: 400; border-bottom: 2px solid var(--c-accent); padding-bottom: 4px; margin: 0 0 14px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary { cursor: pointer; padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--c-nav); list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 20px; color: var(--c-accent); font-weight: 700; }
.faq-item[open] summary:after { content: "\2212"; }
.faq-a { padding: 0 4px 14px; color: #444; }

/* ---------- Плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.tile { display: block; background: #f2f4f6; border: 1px solid var(--c-border); border-radius: 4px; padding: 15px; color: var(--c-nav); font-weight: 500; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-nav); text-decoration: none; }

/* ---------- Віджет замовлення ---------- */
.order-widget { margin: 8px 0 28px; }
.order-widget h2 { color: var(--c-nav); text-transform: uppercase; font-size: 20px; }
.order-widget iframe { width: 100%; border: 0; background: #fff; border-radius: 4px; }

/* ---------- Підвал ---------- */
.site-footer { background: var(--c-nav); color: #fff; padding: 38px 0; }
.footer-cols { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.fcol h3 { color: #fff; text-transform: uppercase; font-size: 18px; font-weight: 300; border-bottom: 1px solid #485868; padding-bottom: 4px; margin: 0 0 14px; }
.fcol ul { list-style: disc inside; margin: 0; padding: 0; }
.fcol li { margin: 5px 0; }
.fcol a { color: #fff; }
.fcol a:hover { color: var(--c-link-hover); text-decoration: underline; }
.fcol p { margin: 0 0 8px; font-size: 14px; color: #d6dbe0; }
.fcol .copyr { margin-top: 14px; font-size: 12px; color: #9aa4ad; }
.footer-black { background: #212121; padding: 70px 0; }

/* ---------- Плаваюча кнопка дзвінка (зелена, «дихає») ---------- */
.magic-call {
  position: fixed; right: 32px; bottom: 32px; width: 60px; height: 60px; z-index: 40;
  border-radius: 50%; background: var(--c-green); color: #fff; opacity: .85;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); text-decoration: none;
  animation: magic-shake 1s infinite ease-in-out;
}
.magic-call:hover { color: #fff; text-decoration: none; opacity: 1; }
.magic-call-ic { font-size: 30px; line-height: 1; position: relative; z-index: 2; }
.magic-call-ring {
  position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-green);
  animation: magic-pulse 1.4s infinite ease-out;
}
@keyframes magic-pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes magic-shake {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-18deg); }
  20%, 40% { transform: rotate(18deg); }
}

/* ---------- Форма CF7 ---------- */
.wpcf7 input:not([type=submit]):not([type=radio]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 4px; font: inherit; margin: 4px 0 12px;
}
.wpcf7 input[type=submit] { width: auto; padding: 13px 30px; border-radius: 3px; background: var(--c-accent); color: #fff; font-weight: 700; text-transform: uppercase; border: 0; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--c-accent-dark); }

/* ---------- Бургер + мобільна панель ---------- */
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 8px 12px; }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; box-shadow: 0 -2px 10px rgba(0, 0, 0, .2); }
.mobile-cta a { flex: 1; text-align: center; padding: 13px 8px; color: #fff; font-weight: 700; text-decoration: none; background: var(--c-nav); }
.mobile-cta a.call { background: var(--c-accent); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 979px) {
  .topbar-in { grid-template-columns: auto 1fr; gap: 14px; }
  .topbar-phones, .topbar-apps { grid-column: span 2; }
  .topbar-phones { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 14px; align-items: baseline; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { display: none; }
  .perks-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .burger { display: block; margin-right: auto; }
  .header-cta { margin-left: 0; }
  .main-nav { display: none; position: absolute; top: 50px; left: 0; right: 0; background: var(--c-nav-dark); padding: 8px; z-index: 60; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { display: block; position: static; background: transparent; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .main-nav .sub-menu a { color: #fff; }
  .mobile-cta { display: flex; }
  .magic-call { display: none; }
  body { padding-bottom: 50px; }
  .hero-panel { margin-left: 0; }
  .footer-black { padding: 30px 0; }
}
@media (max-width: 680px) {
  /* Хедер у один стовпчик через flex — grid-діти не стискались і розпирали viewport. */
  .topbar-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .topbar-in > * { width: 100%; max-width: 100%; min-width: 0; }
  .topbar .logo { text-align: center; }
  .topbar .logo img { height: 58px; }
  .city-pills, .topbar-phones { justify-content: center; }
  .topbar-apps { display: block; }
}
@media (max-width: 560px) {
  .perks-in { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; transform: skewX(16deg); word-break: break-word; }
  .hero-panel { padding: 10px 18px; transform: skewX(-16deg); max-width: 100%; margin-left: 0; }
  .tphone:first-child { font-size: 26px; }
  .tphone { font-size: 16px; }
  .callback-strip .cb-inner { padding: 12px 16px; font-size: 13px; }
  .callback-strip a b { font-size: 20px; }
  .callback-strip a { font-size: 16px; }
  .perks-in { padding: 16px 15px; }
}
