/* Автокар Комерс — сайт */

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

:root {
  --red: #E30016;
  --red-on-dark: #FF6B6B;
  --ink: #16181B;
  --ink-2: #22252A;
  --ink-line: #33363B;
  --ink-field: #4A4E55;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --line: #E2E0DA;
  --muted: #4A4D52;
  --muted-dark: #C9CBCF;
  --muted-dark-2: #A9ACB2;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.on-dark { color: var(--red-on-dark); }
.lead { margin: 0; color: var(--muted); max-width: 660px; }
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: #F4F3EF; }
.section-white { background: var(--white); border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 6px; border: 2px solid var(--red); background: var(--red); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #C40012; border-color: #C40012; color: var(--white); }
.btn-outline-light { background: transparent; border-color: #F4F3EF; color: #F4F3EF; }
.btn-outline-light:hover { background: #F4F3EF; border-color: #F4F3EF; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Хедър */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 42px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav a:hover { color: var(--red); }
.nav .btn { padding: 10px 18px; min-height: 44px; }
.ph-short { display: none; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .brand { min-width: 0; }
  .brand img { height: auto; width: 100%; max-width: 230px; max-height: 32px; }
  .nav { flex-shrink: 0; }
  .nav .btn { padding: 8px 14px; white-space: nowrap; }
  .ph-long { display: none; }
  .ph-short { display: inline; }
}

/* Начало */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8.6vw, 66px); line-height: 1.08; letter-spacing: -.01em; }
.hero .sub { margin: 0; max-width: 560px; font-size: 19px; color: var(--muted-dark); }
.hero .sub-2 { margin: 0; max-width: 560px; color: var(--muted-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-mark-inner { position: relative; width: 100%; max-width: 460px; }
.hero-mark-inner > img { width: 100%; height: auto; display: block; }
.stamp { position: absolute; right: -8px; bottom: -28px; width: 34%; min-width: 120px; height: auto; display: block; }
.stamp text { font-family: var(--body); }
.stamp .stamp-year { font-family: var(--display); }
.stripe { height: 14px; background: repeating-linear-gradient(135deg, var(--red) 0 16px, var(--ink) 16px 32px); }

/* Накратко */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .wrap { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.fact { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; }
.fact span { color: var(--muted); }

/* Продукти */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 300px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card .bar { display: block; width: 36px; height: 5px; background: var(--red); }
.card h3 { margin-top: 6px; font-size: 22px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partner { flex: 1 1 190px; min-height: 112px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; }
.partner img { max-width: 100%; width: auto; height: auto; display: block; }

/* Сервиз и записване */
.service-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.service-list { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.service-list .lead { color: var(--muted-dark); }
.svc { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--ink-line); }
.svc:last-child { border-bottom: 1px solid var(--ink-line); }
.svc b { flex: 0 0 160px; font-weight: 600; }
.svc span { flex: 1 1 260px; color: var(--muted-dark); }
.makes { margin: 0; color: var(--muted-dark-2); font-size: 15px; }

.booking { flex: 1 1 460px; min-width: 0; background: var(--ink-2); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 90px; }
@media (max-width: 520px) { .booking { padding: 22px 18px; } }
.booking h3 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.booking .intro { margin: -8px 0 0; color: var(--muted-dark); }
.tabs { display: flex; gap: 6px; background: var(--ink); padding: 6px; border-radius: 8px; }
.tab { flex: 1 1 0; font: inherit; font-weight: 600; border: none; border-radius: 6px; padding: 12px 10px; min-height: 48px; cursor: pointer; background: transparent; color: var(--muted-dark); }
.tab[aria-selected="true"] { background: var(--red); color: var(--white); }
.form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .field { flex: 1 1 180px; }
.field { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-size: 15px; font-weight: 600; color: #F4F3EF; }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--ink-field); background: var(--ink); color: #F4F3EF; min-height: 48px; }
.field textarea { resize: vertical; min-height: 80px; }
.field input[type="date"] { color-scheme: dark; }
.field .hint { font-size: 14px; color: var(--muted-dark-2); }
.field.invalid input, .field.invalid select { border-color: var(--red-on-dark); }
.field .err { font-size: 14px; color: var(--red-on-dark); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.slots-box { display: flex; flex-direction: column; gap: 10px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.slot { flex: 0 0 auto; min-width: 74px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 6px; padding: 8px 10px; border: 1px solid var(--ink-field); background: var(--ink); color: #F4F3EF; cursor: pointer; }
.slot:hover:not([disabled]) { border-color: #F4F3EF; }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.slot[disabled] { background: transparent; border-color: var(--ink-line); color: #6B6E74; text-decoration: line-through; cursor: not-allowed; }
.slots-msg { margin: 0; font-size: 15px; color: var(--muted-dark); }
.form-note { margin: 0; font-size: 14px; color: var(--muted-dark-2); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 6px; background: #3A1A1D; color: #FFD9DB; font-size: 15px; }
.success { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.success .tick { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); }
.success p { margin: 0; }
.success .big { font-size: 20px; font-weight: 600; }
.success .muted { color: var(--muted-dark); }
.success a { color: #F4F3EF; font-weight: 600; }
[hidden] { display: none !important; }

/* За нас */
.about .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { margin: 0; }
.about-photo { flex: 1 1 400px; min-width: 0; min-height: 360px; border-radius: 12px; overflow: hidden; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.about-photo img.photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.about-photo img.mark { width: 55%; max-width: 260px; height: auto; display: block; opacity: .95; }

/* Контакти */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; }
.contact-item .k { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { font-size: 19px; }
.contact-item .v.muted { color: var(--muted); }
.map { flex: 1 1 480px; min-width: 0; min-height: 380px; border-radius: 12px; overflow: hidden; background: var(--line); border: 0; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Футър */
.site-footer { background: var(--ink); color: var(--muted-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; font-size: 15px; }
.site-footer img { height: 34px; width: auto; display: block; }
.site-footer a { color: var(--muted-dark); }

/* Прости страници (отказ, инсталация) */
.simple-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.simple-card { width: 100%; max-width: 520px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.simple-card h1 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.simple-card p { margin: 0; }
.simple-card form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.simple-logo { height: 40px; width: auto; display: block; margin-bottom: 8px; }
.simple-when { font-weight: 600; font-size: 19px; }
.simple-error { color: #A3000F; font-weight: 600; }
.simple-form { flex-direction: column; }
.simple-form label { font-weight: 600; font-size: 15px; }
.simple-form input { font: inherit; padding: 12px 14px; border: 1px solid #B9B6AE; border-radius: 6px; }

/* ---------- Снимки ---------- */

/* Начало: фасадата вечер отзад */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,27,.96) 0%, rgba(22,24,27,.9) 40%, rgba(22,24,27,.4) 72%, rgba(22,24,27,.12) 100%); }
.hero .wrap { min-height: 620px; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 0 1 600px; }
@media (max-width: 760px) {
  .hero-media { position: relative; height: 64vw; min-height: 220px; }
  .hero-media img { object-position: 58% 62%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(22,24,27,0) 45%, rgba(22,24,27,1) 100%); }
  .hero .wrap { min-height: 0; padding-top: 8px; padding-bottom: 64px; }
}

/* Снимки в картите */
.card { overflow: hidden; }
.card-img { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 10px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

/* „За нас“: рецепцията и печатът */
.about-photo { position: relative; overflow: visible; background: none; min-height: 0; display: block; }
.about-photo img.photo { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 12px; display: block; }
.about-photo .stamp { right: -18px; bottom: -26px; width: 150px; min-width: 0; }
@media (max-width: 760px) { .about-photo .stamp { right: -8px; bottom: -20px; width: 116px; } }

/* Галерия */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 12px; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--ink-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item.tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* Голяма снимка при клик */
.lb { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgba(10, 11, 13, .9); }
.lb img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; }
.lb-x { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* Клетките на сервиза — като табелите на обекта */
.bays { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bays li { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 6px; background: #1E3F8F; color: #FFFFFF; font-weight: 600; font-size: 15px; }
.bays b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: #FFFFFF; color: #1E3F8F; font-weight: 700; }

/* Три раздела във формата */
.tab { font-size: 15px; padding: 10px 6px; line-height: 1.25; }

/* Иконки на услугите — като квадратчетата на табелата */
.svc { align-items: flex-start; gap: 6px 18px; }
.svc .svc-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; background: #1E3F8F; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.svc .svc-ic svg { width: 26px; height: 26px; fill: none; stroke: #FFFFFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc b { flex: 0 0 140px; padding-top: 10px; }
.svc > span:not(.svc-ic) { padding-top: 10px; }
@media (max-width: 760px) {
  .svc b { flex: 1 1 auto; }
  .svc > span:not(.svc-ic) { flex: 1 1 100%; padding-top: 4px; }
}

#f-plate::placeholder { text-transform: none; }
