/* Баш и Месони: стилове на сайта (от варианта 05 „Куките и плочките“). Цветове и шрифтове само през tokens.css. */
/* Посока 05 „Куките и плочките“: месарската стена. Бели метро плочки, стоманена релса с куки, картони-етикети, червената ивица на витрината. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .karton, .btn, .vid__etiket, .chislo__g, .fut__ime, .fut__tel, .hed__ime { font-family: var(--font-display); }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--dark); color: var(--on-dark); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }
section[id], #glavno { scroll-margin-top: var(--hed-h); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.plochki { background-color: var(--bg); background-image: var(--plochki); background-size: 120px 60px; }

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 6px; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cherveno { background: var(--accent); color: var(--on-dark); box-shadow: 0 3px 0 var(--accent-press); }
.btn--cherveno:hover { background: var(--accent-press); }
.btn--cherveno:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-press); }
.btn--tih { background: var(--on-dark); color: var(--dark); border: 2px solid var(--dark); }
.btn--tih:hover { background: var(--dark); color: var(--on-dark); }
.redbtn { display: flex; flex-wrap: wrap; gap: 12px; }
.redbtn .btn { flex: 1 1 auto; }
@media (min-width: 700px) { .redbtn .btn { flex: 0 0 auto; } }

/* Хедър: графит като тапетите зад тезгяха, отделен от бялата стена */
.hed { position: sticky; top: 0; z-index: 30; background: var(--dark); color: var(--on-dark); height: var(--hed-h); box-shadow: 0 2px 0 var(--accent); }
.hed__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hed__ime { font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.hed__nav { display: flex; gap: 24px; margin-left: auto; }
.hed__nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--on-dark-soft); padding: 10px 0; }
.hed__nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.hed__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--accent); color: var(--on-dark); border-radius: 6px; font: 600 16px var(--font-display); text-decoration: none; white-space: nowrap; }
.hed__tel svg { width: 18px; height: 18px; }
.hed__tel-kras { display: none; }

/* Релсата и куките */
.hero__relsa, .vidove__relsa { position: relative; }
.relsa { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 22px; filter: drop-shadow(0 4px 3px var(--shade-18)); }
.hero__relsa::before, .hero__relsa::after, .vidove__relsa::before, .vidove__relsa::after { content: ""; position: absolute; top: -6px; width: 14px; height: 34px; border-radius: 3px; background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 45%, var(--steel-dark)); z-index: 1; }
.hero__relsa::before, .vidove__relsa::before { left: calc(var(--gutter) - 4px); }
.hero__relsa::after, .vidove__relsa::after { right: calc(var(--gutter) - 4px); }
.etiketi { list-style: none; margin: 0 auto; padding: 4px var(--gutter) 18px; max-width: var(--maxw); display: flex; gap: 10px; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.etiketi::-webkit-scrollbar { display: none; }
.etiketi__el { flex: none; scroll-snap-align: start; padding-top: var(--d); }
.etiket { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--dark); transform-origin: 50% 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kuka { width: 20px; height: 40px; color: var(--steel-dark); flex: none; margin-bottom: -3px; position: relative; z-index: 1; }
.karton { position: relative; display: block; padding: 18px 16px 10px; min-width: 92px; text-align: center; background: var(--surface-2); border: 1px solid var(--card-edge); border-radius: 4px 4px 6px 6px; font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 10px -4px var(--shade-28); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.karton::before { content: ""; position: absolute; top: 5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.etiket:hover .karton, .etiket.aktiven .karton { background: var(--accent); color: var(--on-dark); border-color: var(--accent-press); }
.etiket:hover .karton::before, .etiket.aktiven .karton::before { box-shadow: 0 0 0 2px var(--on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .etiket:hover, .etiket.lyulka { animation: lyulka 1.3s ease-out; }
}
@keyframes lyulka { 0% { transform: rotate(0); } 18% { transform: rotate(7deg); } 40% { transform: rotate(-5deg); } 62% { transform: rotate(3deg); } 82% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }

/* Първият екран: стената */
.hero { position: relative; display: flex; flex-direction: column; padding-top: 22px; border-bottom: 0; }
.hero__in { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 18px; padding-bottom: 28px; width: 100%; }
.hero h1 { font-size: clamp(56px, 16vw, 84px); line-height: .9; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 18px; color: var(--dark); }
.hero__pod { font-size: 18px; max-width: 34em; color: var(--text-muted); margin-bottom: 18px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: nowrap; }
.hero__btns .btn { flex: 1 1 auto; }

.status { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 6px; background: var(--on-dark); border: 1px solid var(--line); margin-bottom: 20px; }
.status__tochka { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); flex: none; }
.status.otvoreno .status__tochka { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-ring); }
.status.zatvoreno .status__tochka { background: var(--accent); }

/* Прозорец в стената: стоманена рамка */
.prozorec { min-width: 0; margin: 0; position: relative; background: var(--steel-dark); padding: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--glint-25), 0 10px 24px -10px var(--shade-45); background-image: linear-gradient(135deg, var(--steel-hi), var(--steel-lo) 50%, var(--steel-mid)); }
.prozorec picture { display: block; position: relative; overflow: hidden; border-radius: 2px; height: 100%; }
.prozorec picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, var(--glint-16) 0 22%, transparent 22% 30%, var(--glint-07) 30% 34%, transparent 34%); pointer-events: none; }
.prozorec img { width: 100%; height: 100%; object-fit: cover; }
.prozorec figcaption { position: absolute; left: 22px; bottom: 22px; background: var(--dark); color: var(--on-dark); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 3px; max-width: calc(100% - 44px); }
.hero__prozorec { height: 300px; }
.hero__prozorec img { object-position: 50% 12%; }

/* Червената ивица като на витрината */
.ivica { background: var(--accent); color: var(--on-dark); font: 600 15px/1 var(--font-display); letter-spacing: .02em; flex: none; }
.ivica__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }

/* Глава на секция със знака на брадвите */
.glava { display: flex; align-items: flex-start; gap: 14px; }
.glava .bradvi { margin-top: 2px; }
.bradvi { width: 44px; height: 44px; color: var(--dark); flex: none; }

/* На куките */
.vidove { padding: 56px 0 56px; border-top: 0; }
.vidove__uvod { margin: 10px 0 30px; color: var(--text-muted); max-width: 40em; }
.vidove__relsa { margin-bottom: 18px; }
.paneli { display: grid; gap: 28px; }
.vid { display: grid; gap: 20px; align-items: center; scroll-margin-top: calc(var(--hed-h) + 20px); }
.vid__snimka { aspect-ratio: 4 / 3; }
.vid__etiket { display: inline-block; font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1; padding: 14px 18px 12px; background: var(--surface-2); border: 1px solid var(--card-edge); border-radius: 4px; margin-bottom: 16px; }
.vid__red { font-size: 19px; margin-bottom: 22px; max-width: 30em; }
.js .vid { display: none; }
.js .vid.aktiven { display: grid; }
@media (prefers-reduced-motion: no-preference) { .js .vid.aktiven { animation: pokazhi .35s ease-out; } }
@keyframes pokazhi { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Числата на стоманена плоча */
.chisla { background: var(--steel-light); background-image: repeating-linear-gradient(90deg, var(--glint-22) 0 1px, transparent 1px 4px), linear-gradient(180deg, var(--plate-hi), var(--plate-lo)); border-top: 6px solid var(--accent); padding: 40px 0; }
.chisla__in { display: grid; grid-template-columns: 1fr; gap: 22px 40px; }
.chislo { display: flex; flex-direction: column; }
.chislo__g { font-size: clamp(56px, 5.6vw, 76px); white-space: nowrap; font-weight: 800; line-height: 1; color: var(--dark); letter-spacing: -0.02em; }
.chislo__m { font-weight: 600; color: var(--dark); }

/* През стъклото: тъмно като тапетите зад тезгяха */
.steklo { background: var(--dark); color: var(--on-dark); padding: 56px 0; }
.steklo .bradvi { color: var(--on-dark-soft); }
.steklo__uvod { margin: 14px 0 30px; max-width: 38em; color: var(--on-dark-muted); font-size: 18px; }
.steklo__redica { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steklo__redica .prozorec { aspect-ratio: 3 / 4; }
.steklo__redica .prozorec:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* Топлата витрина: тави в червен тезгях */
.topla { padding-top: 56px; }
.topla__in { display: grid; gap: 28px; padding-bottom: 36px; }
.topla__tekst p { margin: 14px 0 22px; font-size: 18px; max-width: 30em; }
.tavi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: linear-gradient(180deg, var(--steel-pale-2), var(--steel-mid-3)); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--shade-15); }
.tava { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; border: 4px solid var(--steel-pale); box-shadow: inset 0 0 0 1px var(--steel), 0 2px 0 var(--steel-mid-2); }
.tava img { width: 100%; height: 100%; object-fit: cover; }
.tava figcaption { position: absolute; left: 6px; bottom: 6px; background: var(--surface-2); color: var(--dark); font: 700 13px/1.2 var(--font-display); padding: 5px 8px; border-radius: 3px; }

/* Празници: червено като вратата, голям картон на кука */
.praznici { background: var(--accent); color: var(--on-dark); padding: 56px 0; border-top: 6px solid var(--steel-light); }
.praznici__in { display: grid; gap: 28px; align-items: center; }
.golyam-etiket { display: flex; flex-direction: column; align-items: center; }
.kuka--golyama { width: 34px; height: 64px; color: var(--on-dark-soft); margin-bottom: -6px; }
.golyam-etiket__karton { position: relative; background: var(--surface-2); color: var(--dark); padding: 36px 26px 26px; border-radius: 6px; clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px); }
.golyam-etiket__karton::before { content: ""; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--dark); }
.golyam-etiket__karton p { margin: 12px 0 22px; font-size: 18px; }
.praznici__snimki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.praznici__snimki .prozorec { aspect-ratio: 3 / 4; }

/* Къде сме */
.kade { background: var(--surface-2); padding: 56px 0; }
.kade__in { display: grid; gap: 28px; align-items: start; }
.kade__snimka { aspect-ratio: 4 / 3; }
.kade__adres { font: 700 22px/1.35 var(--font-display); margin: 14px 0 14px; }
.chasove { border-collapse: collapse; width: 100%; max-width: 420px; margin: 0 0 24px; background: var(--on-dark); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--card-edge); }
.chasove th, .chasove td { text-align: left; padding: 9px 14px; font-size: 16px; border-bottom: 1px solid var(--card-shade); }
.chasove th { font-weight: 600; }
.chasove td { text-align: right; font-variant-numeric: tabular-nums; }
.chasove tr.dnes { background: var(--dark); color: var(--on-dark); }
.chasove tr.dnes th::after { content: " (днес)"; font-weight: 400; }

/* Футър */
.fut { background: var(--dark); color: var(--on-dark-soft); padding: 56px 0 96px; border-top: 10px solid var(--accent); }
.fut__in { display: grid; gap: 26px; }
.fut__glava { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.fut__glava .bradvi { grid-row: span 2; width: 56px; height: 56px; color: var(--on-dark-soft); }
.fut__ime { font-size: 26px; font-weight: 800; color: var(--on-dark); }
.fut__moto { color: var(--steel-light); }
.fut__tel { white-space: nowrap; font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; color: var(--on-dark); text-decoration: none; line-height: 1; letter-spacing: -0.01em; }
.fut__tel:hover { color: var(--on-accent-soft); }
.fut__kol { display: grid; gap: 6px; }
.fut__soc { display: flex; gap: 18px; }
.fut__kol a { text-underline-offset: 4px; padding: 10px 0; display: inline-block; }
.fut__dolu { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--dark-2); display: grid; gap: 12px; font-size: 14px; color: var(--steel-light); }
.felixbg-credit a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-height: 44px; }
.felixbg-credit img { border-radius: 4px; flex: none; }
.felixbg-credit span { text-decoration: underline; text-underline-offset: 3px; }

/* Лентата за обаждане на телефон */
.lenta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; background: var(--accent); color: var(--on-dark); font: 700 17px var(--font-display); text-decoration: none; border-radius: 8px; box-shadow: 0 8px 20px -6px var(--shade-50); transform: translateY(140%); transition: transform .25s; }
.lenta svg { width: 20px; height: 20px; }
.lenta.vidima { transform: none; }
@media (prefers-reduced-motion: reduce) { .lenta { transition: none; } }

/* Телефон */
@media (max-width: 899px) {
  :root { --hed-h: 56px; }
  .hed__nav { display: none; }
  .hed__ime { font-size: 20px; }
  .hed__tel { margin-left: auto; }
  .hed__tel-dalag { display: none; }
  .hed__tel-kras { display: inline; }
}
@media (max-width: 380px) {
  .hero__btns .btn { padding: 0 16px; }
  .ivica__in { font-size: 13px; }
}

/* Таблет и нагоре */
@media (min-width: 700px) {
  .chisla__in { grid-template-columns: repeat(3, 1fr); }
  .steklo__redica { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .steklo__redica .prozorec, .steklo__redica .prozorec:first-child { grid-column: auto; aspect-ratio: auto; height: 340px; }
  .praznici__snimki .prozorec { aspect-ratio: 3 / 4; }
}
@media (min-width: 900px) {
  .vid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .topla__in { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 48px; }
  .praznici__in { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .kade__in { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .fut__in { grid-template-columns: 1fr 1.2fr 1fr; align-items: center; }
  .fut__dolu { grid-template-columns: 1fr auto; align-items: center; }
  .fut { padding-bottom: 40px; }
  .lenta { display: none; }
}

/* Десктоп: първият екран свършва точно с екрана */
@media (min-width: 1000px) {
  .hero { height: calc(100svh - var(--hed-h)); min-height: 600px; }
  .hero__in { flex: 1; min-height: 0; grid-template-columns: 1fr minmax(0, 0.82fr); gap: 48px; align-items: stretch; padding-top: 22px; padding-bottom: 28px; }
  .hero__tekst { display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(72px, min(8.6vw, 15svh), 150px); }
  .hero__prozorec { height: auto; min-height: 0; }
  .hero__prozorec picture { position: absolute; inset: 10px; height: auto; }
  .hero__prozorec img { position: absolute; inset: 0; }
  .hero__btns .btn { flex: 0 0 auto; min-width: 180px; }
  .etiketi--hero { justify-content: space-between; }
}

/* Поправки от прегледа на 390 */
@media (max-width: 699px) {
  .redbtn { flex-wrap: nowrap; }
  .redbtn .btn { padding: 0 14px; font-size: 17px; }
  .steklo__redica .prozorec figcaption { left: 16px; bottom: 16px; font-size: 13px; }
}
@media (max-width: 370px) { .redbtn { flex-wrap: wrap; } }

/* Широк екран (1600+): по-широка стена и по-едър текст, без празни полета на 1920 (K14, 10.11.2026) */
@media (min-width: 1600px) {
  .wrap, .etiketi { max-width: var(--maxw-wide); }
  .hero__in { grid-template-columns: 1fr minmax(0, 1fr); gap: 72px; }
  .hero__pod { font-size: 21px; max-width: 30em; }
  .status { font-size: 18px; }
  .karton { font-size: 18px; min-width: 120px; }
}

/* G6 поправки след независимия преглед (10.11.2026) */
.vidove__sled { margin-top: 8px; }
.chisla__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .chisla__in { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; } }
.praznici__snimki .prozorec, .tava { padding: 4px; background: var(--surface); background-image: none; box-shadow: 0 2px 8px -4px var(--shade-45); border: 0; }
.tava figcaption { background: var(--dark); color: var(--on-dark); }
/* Телефон: всичките 7 етикета на две релси, без отрязване */
@media (max-width: 699px) {
  .etiketi--hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 70px; gap: 0 4px; overflow: visible; padding-bottom: 6px;
    background: linear-gradient(var(--steel) 0 0) 0 70px / 100% 5px no-repeat; }
  .etiketi--hero .etiketi__el { padding-top: 0; }
  .etiketi--hero .karton { min-width: 0; padding: 14px 6px 8px; font-size: 13px; white-space: normal; }
  .etiketi--hero .etiketi__el:nth-child(n+5) { margin-top: 2px; }
}
@media (max-width: 699px) { .etiketi--hero { padding-bottom: 20px; } }
/* Телефон: числата едно под друго, по-големи от 56 px (K2), заглавието и числото на един ред */
@media (max-width: 699px) { .chisla__in { grid-template-columns: 1fr; gap: 14px; } .chislo { flex-direction: row; align-items: baseline; gap: 12px; } .chislo__g { font-size: 56px; } }
.etiketi__el--tel { display: none; }
@media (max-width: 699px) { .etiketi__el--tel { display: block; } .etiket--tel .karton { background: var(--dark); color: var(--on-dark); border-color: var(--dark); } }
@media (max-width: 380px) { .chislo { flex-direction: column; gap: 0; } }
/* G6 кръг 2 */
.vid__etiket { background: none; border: 0; padding: 0; border-bottom: 6px solid var(--accent); padding-bottom: 6px; }
.chislo--vrazka { align-self: center; }
.praznici__snimki--edna { grid-template-columns: minmax(0, 1fr); }
.praznici__snimki--edna .prozorec { aspect-ratio: 4 / 3; }
@media (max-width: 699px) {
  /* втората релса: същата стомана като горната, с крайници */
  .etiketi--hero { background: linear-gradient(180deg, var(--steel-pale), var(--steel-hi) 40%, var(--steel-dark)) 0 66px / 100% 10px no-repeat; }
  .etiketi--hero .etiketi__el:nth-child(n+5) .kuka { margin-top: -6px; }
}
.chislo--vrazka .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 699px) {
  .etiketi--hero { grid-auto-rows: 86px; background-position: 0 76px; }
}
@media (max-width: 699px) { .etiketi--hero { grid-auto-rows: 96px; background-position: 0 88px; } }
