/* Автокар Комерс — сайт на отделни страници: меню, начална страница, футър с приложението */

/* ---------- Меню ---------- */
.nav a[aria-current="page"]:not(.btn):not(.nav-acct) { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.nav-menu { display: none; }
.mnav { display: none; }

/* Под 1120 px менюто е в бутон „Меню“; горе остават „Моята кола“ и телефонът */
@media (max-width: 1120px) {
  .site-header .nav > a:not(.btn):not(.nav-acct) { display: none; }
  .nav-menu { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
  .nav-menu svg { width: 18px; height: 18px; }
  .nav-menu[aria-expanded="true"] { background: var(--ink); color: var(--white); }
  .mnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(22, 24, 27, .16); max-height: calc(100vh - 64px); overflow-y: auto; }
  .mnav:not([hidden]) { display: block; }
  .mnav ul { list-style: none; margin: 0 auto; max-width: 1200px; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .mnav li a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .mnav li a::after { content: "→"; color: var(--red); font-weight: 600; }
  .mnav li a[aria-current="page"] { color: var(--red); }
  .mnav li:last-child a { border-bottom: 0; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .site-header .nav { column-gap: 12px; }
  .nav-acct .acct-txt small { display: block; }
}
/* 1121–1299 px: по-малко лого и „Обади се“ вместо номера, за да е на един ред */
@media (min-width: 1121px) and (max-width: 1299px) {
  .brand img { height: 34px; }
  .nav { column-gap: 12px; font-size: 15px; }
  .nav .btn { padding: 8px 14px; }
  .nav .ph-long { display: none; }
  .nav .ph-short { display: inline; }
}
/* Над 1300 px: малко по-малко лого и шрифт, за да се събере менюто с „Галерия“ на един ред */
@media (min-width: 1300px) {
  .brand img { height: 38px; }
  .nav { column-gap: 12px; font-size: 15px; }
  .nav .btn { padding: 8px 14px; }
}
@media (max-width: 760px) {
  /* На телефон горе: лого · Меню · Моята кола. Телефонът е в долната лента. */
  .site-header .nav .btn { display: none; }
  .site-header .nav { gap: 8px; }
}
@media (max-width: 440px) {
  .nav-menu span { display: none; }
  .nav-menu { padding: 0; width: 40px; justify-content: center; }
  .nav-menu svg { width: 20px; height: 20px; }
}

/* ---------- Долна лента на телефон ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(22, 24, 27, .97); box-shadow: 0 -6px 18px rgba(0, 0, 0, .22); transition: transform .2s ease; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 8px; font-weight: 600; font-size: 17px; text-decoration: none; }
  .mbar .mbar-call { background: #FFFFFF; color: #16181B; }
  .mbar .mbar-book { background: #E30016; color: #FFFFFF; }
  .mbar.away { transform: translateY(110%); }
  .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }
.card-link { font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Начална страница ---------- */
.home-hero .wrap { min-height: 540px; }
.section-tight { padding: 72px 0; }
@media (max-width: 760px) { .section-tight { padding: 52px 0; } }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sec-head .stack { gap: 10px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.tile-body b { font-size: 19px; font-weight: 600; line-height: 1.25; }
.tile-body span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tile-go { margin-top: auto; padding-top: 8px; color: var(--red); font-weight: 600; font-size: 15px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; }
  .tile img { width: 112px; flex: 0 0 112px; aspect-ratio: auto; height: auto; min-height: 100%; }
  .tile-body { padding: 14px 16px; gap: 4px; }
  .tile-body b { font-size: 17px; }
  .tile-body span { font-size: 14px; }
  .tile-go { padding-top: 4px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* Моята кола / приложението */
.app-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.app-band .stack { gap: 14px; min-width: 0; }
.app-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.app-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.app-points svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #FDE8E9; color: var(--red); flex: 0 0 auto; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.app-cta p { margin: 0; color: var(--muted); font-size: 15px; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 14px; background: var(--ink); color: #F4F3EF; text-align: center; }
.qr-card img { width: 168px; height: 168px; display: block; border-radius: 8px; background: #FFFFFF; padding: 6px; }
.qr-card b { font-size: 15px; }
.qr-card small { color: var(--muted-dark-2); font-size: 13px; }
@media (max-width: 760px) {
  .app-band { grid-template-columns: 1fr; }
  .app-band .qr-card { display: none; }
}

.gplay { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px; border-radius: 8px; background: var(--ink); color: #FFFFFF; text-decoration: none; line-height: 1.15; border: 1px solid var(--ink-line); }
.gplay:hover { background: #000000; color: #FFFFFF; }
.gplay svg { width: 22px; height: 22px; flex: 0 0 auto; }
.gplay small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.gplay b { display: block; font-size: 17px; font-weight: 600; }

/* Партньори — тънка лента */
.partners-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.partners-slim img { display: block; width: auto; height: auto; max-width: 140px; }
@media (max-width: 760px) { .partners-slim { justify-content: center; gap: 18px 26px; } .partners-slim img { max-width: 110px; } }

/* Заповядайте при нас */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.visit-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.visit-text .h2 { color: #F4F3EF; }
.visit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.visit-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.visit-list dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark-2); }
.visit-list dd { margin: 0; color: #F4F3EF; }
.visit-list a { color: #F4F3EF; font-weight: 600; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-photo { position: relative; min-width: 0; }
.visit-photo img.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.visit-photo .stamp { position: absolute; right: -14px; bottom: -22px; width: 132px; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .visit-photo .stamp { right: -6px; bottom: -18px; width: 104px; } }
@media (max-width: 420px) { .visit-list { grid-template-columns: 1fr; } }

/* ---------- Вътрешни страници ---------- */
.page-first { padding-top: 64px; }
@media (max-width: 760px) { .page-first { padding-top: 40px; } }
.crumbs { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.section-dark .crumbs, .section-dark .crumbs a { color: var(--muted-dark-2); }
.crumbs a { color: var(--muted); }

/* Сервиз: вдясно кутия към записването */
.svc-aside { flex: 1 1 340px; min-width: 0; align-self: flex-start; position: sticky; top: 96px; background: var(--ink-2); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.svc-aside h2 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; color: #F4F3EF; }
.svc-aside p { margin: 0; color: var(--muted-dark); }
.svc-aside .btn { align-self: stretch; }
.svc-aside .svc-hours { font-size: 15px; color: var(--muted-dark-2); }
@media (max-width: 900px) { .svc-aside { position: static; } }

/* Запиши час */
.zapis-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.zapis-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.zapis-info h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.zapis-info p { margin: 0; color: var(--muted-dark); }
.zapis-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: st; }
.zapis-steps li { display: flex; gap: 12px; align-items: flex-start; color: #F4F3EF; }
.zapis-steps li::before { counter-increment: st; content: counter(st); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--red); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.zapis-grid .booking { flex: none; }
@media (max-width: 900px) { .zapis-grid { grid-template-columns: 1fr; } }

/* ---------- Футър ---------- */
.site-footer .foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) auto; gap: 32px 40px; padding-top: 56px; padding-bottom: 32px; font-size: 15px; align-items: start; }
.site-footer .foot img.foot-logo { height: 34px; width: auto; display: block; }
.foot-about { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.foot-about p { margin: 0; color: var(--muted-dark-2); max-width: 340px; }
.foot h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #F4F3EF; text-decoration: none; }
.foot a:hover { color: var(--red-on-dark); text-decoration: underline; }
.foot address { font-style: normal; display: flex; flex-direction: column; gap: 6px; color: var(--muted-dark); }
.foot-app { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.foot-app .qr { display: flex; align-items: center; gap: 14px; }
.foot-app .qr img { width: 112px; height: 112px; border-radius: 8px; background: #FFFFFF; padding: 5px; display: block; }
.foot-app .qr span { font-size: 14px; color: var(--muted-dark-2); max-width: 130px; line-height: 1.45; }
.foot-app .gplay { background: #000000; border-color: #3A3D43; align-self: flex-start; }
.foot-bottom { border-top: 1px solid var(--ink-line); }
.site-footer .foot-bottom .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: var(--muted-dark-2); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-bottom a { color: var(--muted-dark); }
@media (max-width: 1000px) { .site-footer .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .site-footer .foot { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .foot-app .qr { display: none; }
}

/* Телефон: по-кратка начална страница */
@media (max-width: 760px) {
  .facts .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-top: 28px; padding-bottom: 28px; }
  .facts .fact b { font-size: 22px; }
  .facts .fact span { font-size: 15px; line-height: 1.4; }
  .visit-photo { display: none; }
}

/* Галерия на цяла страница */
.gallery-full { grid-auto-flow: dense; }
.gallery-full .g-item.wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery-full .g-item.wide { grid-column: span 2; } }
