/* Mi's Cookies · „Под лупа“ */

/* ---------- Шрифтове (локални) ---------- */
@font-face { font-family: "Prata"; font-weight: 400; font-display: swap; src: url(fonts/prata-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: "Prata"; font-weight: 400; font-display: swap; src: url(fonts/prata-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: "Fira Sans"; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-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: "Fira Sans"; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-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: "Fira Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/fira-sans-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/fira-sans-latin-400-italic.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: "Fira Sans"; font-weight: 500; font-display: swap; src: url(fonts/fira-sans-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: "Fira Sans"; font-weight: 500; font-display: swap; src: url(fonts/fira-sans-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: "Fira Sans"; font-weight: 600; font-display: swap; src: url(fonts/fira-sans-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: "Fira Sans"; font-weight: 600; font-display: swap; src: url(fonts/fira-sans-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 {
  --velvet: #24122a;     /* тъмно кадифе */
  --velvet-2: #33193a;
  --purple: #6d2a82;     /* лилавото на логото */
  --lilac: #c9b0d3;
  --gold: #c8a25a;       /* златните листа */
  --gold-lt: #e8d3a0;
  --cream: #f8f3ec;      /* фондан */
  --brick: #efe9e1;      /* бялата тухлена стена */
  --berry: #a3243a;      /* червените рози */
  --ink: #2a1d2c;
  --muted: #6f6170;

  --f-head: "Prata", "Georgia", serif;
  --f-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: min(1180px, 100% - 2rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--cream); overflow-x: hidden; }
a { color: var(--purple); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--berry); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.wrap { width: var(--wrap); margin-inline: auto; }

.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem; display: flex; align-items: center; gap: .8rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-head .kicker { justify-content: center; }
.sec-head .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.demo-bar { background: #120914; color: #e9dcef; font-size: .8rem; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .85rem 1.6rem; border-radius: 2px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--velvet); text-decoration: none;
  font: 600 .95rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--velvet); }
.btn-line { background: transparent; color: var(--gold-lt); }
.btn-line:hover { background: rgba(200, 162, 90, .15); color: var(--gold-lt); }
.btn-small { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- Хедър ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(248, 243, 236, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #e3d8ca; }
.top-in { display: flex; align-items: center; gap: 1.2rem; padding: .45rem 0; }
.brand { margin-right: auto; display: block; }
.brand img { height: 52px; width: auto; mix-blend-mode: multiply; }
.nav { display: none; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--purple); }
.top .btn { background: var(--purple); border-color: var(--purple); color: #fff; }
.top .btn:hover { background: var(--velvet); border-color: var(--velvet); }
@media (min-width: 900px) { .nav { display: flex; } .brand img { height: 62px; } }

/* ---------- Първи екран (кадифе) ---------- */
.hero {
  background:
    radial-gradient(80% 70% at 75% 40%, rgba(109, 42, 130, .55), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 26px),
    var(--velvet);
  color: #f1e8f3;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-in { display: grid; gap: 2.8rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7.4vw, 4.3rem); color: #fff; }
.lead { font-size: 1.1rem; color: #dccfe0; max-width: 34rem; margin: 1.4rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-frame { position: relative; margin: 0 auto; width: min(100%, 440px); padding: 14px; border: 1px solid rgba(200, 162, 90, .55); }
.hero-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold); }
.c1 { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.c2 { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.c3 { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.c4 { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* ---------- Заглавия на секции ---------- */
.sec-head { text-align: center; max-width: 40rem; margin: 0 auto 2.8rem; }
.sec-head > p:not(.kicker) { color: var(--muted); margin: 1rem 0 0; }

/* ---------- Под лупа ---------- */
.lupa-sec { padding: 5rem 0; background: var(--brick); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: block; } }
.lupa-grid { display: grid; gap: 2.4rem 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lupa { margin: 0; }
.lupa-img { position: relative; overflow: hidden; background: #ddd3c7; cursor: zoom-in; }
.lupa-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lupa figcaption { padding: 1rem .2rem 0; color: var(--muted); font-size: .97rem; }
.lupa figcaption strong { display: block; font: 400 1.3rem var(--f-head); color: var(--ink); margin-bottom: .2rem; }
.lupa .no { float: right; color: var(--gold); font: 400 1rem var(--f-head); }

.lens {
  position: absolute; z-index: 2; width: 190px; height: 190px; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
  border: 3px solid var(--gold); background-repeat: no-repeat; background-color: #fff;
  box-shadow: 0 0 0 6px rgba(36, 18, 42, .55), 0 18px 40px rgba(0, 0, 0, .45);
}
.lens::after { /* дръжката на лупата */
  content: ""; position: absolute; width: 16px; height: 70px; right: 6px; bottom: -58px;
  background: linear-gradient(90deg, #8a6a34, var(--gold), #8a6a34); border-radius: 8px;
  transform: rotate(-45deg); transform-origin: top center;
}
.lupa-img.is-on .lens { opacity: 1; transform: none; }
.lupa-img.is-on { cursor: none; }
.lupa-img.touch-on { touch-action: none; }

.lupa-btn {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  display: none; align-items: center; gap: .35rem;
  padding: .5rem .9rem; border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(36, 18, 42, .82); color: var(--gold-lt); font: 600 .85rem var(--f-body); cursor: pointer;
}
.lupa-btn svg { width: 16px; height: 16px; }
.lupa-btn[aria-pressed="true"] { background: var(--gold); color: var(--velvet); }
@media (hover: none) { .lupa-btn { display: inline-flex; } .lupa-img { cursor: default; } }

/* ---------- Поводи ---------- */
.povodi { padding: 5rem 0; }
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 .4rem; margin: 0 0 2rem; scrollbar-width: none; justify-content: flex-start; }
@media (min-width: 760px) { .tabs { justify-content: center; flex-wrap: wrap; } }
.tab {
  flex: none; padding: .6rem 1.1rem; border: 1px solid #d9cbb8; border-radius: 999px; background: #fff;
  font: 500 .95rem var(--f-body); color: var(--ink); cursor: pointer;
}
.tab:hover { border-color: var(--purple); }
.tab.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.no-js .tabs { display: none; }

.works { list-style: none; padding: 0; margin: 0; columns: 2 160px; column-gap: 1rem; }
.works li { break-inside: avoid; margin: 0 0 1rem; background: #fff; padding: 8px 8px 0; box-shadow: 0 10px 24px -18px rgba(36, 18, 42, .6); }
.works li[hidden] { display: none; }
.works span { display: block; padding: .55rem .2rem .7rem; font: 400 1rem var(--f-head); text-align: center; }
@media (min-width: 760px) { .works { columns: 3; column-gap: 1.4rem; } .works li { margin-bottom: 1.4rem; } }
@media (min-width: 1100px) { .works { columns: 4; } }

/* ---------- За Тихомира ---------- */
.about { padding: 5rem 0; background: var(--velvet); color: #e6dbe9; }
.about h2 { color: #fff; margin-bottom: 1.2rem; }
.about-in { display: grid; gap: 2.5rem; align-items: center; }
.about-text p:not(.kicker) { max-width: 38rem; }
.medal { margin: 0 auto; width: min(80%, 300px); text-align: center; }
.medal img { border-radius: 50%; border: 1px solid rgba(200, 162, 90, .6); padding: 10px; }
.medal figcaption { margin-top: 1rem; font-size: .9rem; color: var(--lilac); }
@media (min-width: 860px) { .about-in { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }

/* ---------- Поръчка ---------- */
.order { padding: 5rem 0; }
.recipe { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; counter-reset: r; }
.recipe li { counter-increment: r; position: relative; padding: 0 0 1.8rem 4.2rem; border-left: 1px solid #ddd0bf; margin-left: 1.5rem; }
.recipe li:last-child { border-left-color: transparent; padding-bottom: 0; }
.recipe li::before {
  content: counter(r); position: absolute; left: -1.5rem; top: -.2rem;
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 1px solid var(--gold); color: var(--purple); font: 400 1.3rem var(--f-head);
}
.recipe h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.recipe p { margin: 0; color: var(--muted); }
.order-cta { text-align: center; margin: 2.8rem 0 0; }
.order-cta .btn { background: var(--purple); border-color: var(--purple); color: #fff; }
.order-cta .btn:hover { background: var(--velvet); border-color: var(--velvet); }

/* ---------- Контакти ---------- */
.contact { padding: 0 0 5rem; }
.contact-in { display: grid; gap: 1.6rem; }
.card { background: #fff; padding: 2.4rem 1.6rem; text-align: center; border-top: 3px solid var(--purple); box-shadow: 0 18px 40px -26px rgba(36, 18, 42, .5); }
.card h2 { font-size: 2rem; margin-bottom: .8rem; }
.card h3 { margin: 1.6rem 0 .6rem; font-size: 1.1rem; color: var(--purple); }
address { font-style: normal; }
.hours { margin: 0 auto; max-width: 20rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dotted #d9cbb8; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.links { margin: 1.6rem 0 0; line-height: 1.9; word-break: break-word; }
.map-wrap { display: flex; flex-direction: column; gap: .6rem; }
.map-box { flex: 1; min-height: 340px; background: var(--brick); border: 1px solid #e0d5c7; color: var(--muted); font-size: .92rem; justify-items: center; }
.map-box p { max-width: 30rem; margin: 0; }
.map-box .btn-line { color: var(--purple); border-color: var(--purple); }
.map-box.is-loaded iframe { height: 100%; min-height: 340px; }
.maps-link { margin: 0; text-align: right; font-weight: 500; }
@media (min-width: 860px) { .contact-in { grid-template-columns: .85fr 1.15fr; } }

.foot { background: #120914; color: #cdbfd1; text-align: center; padding: 2.8rem 0 3rem; font-size: .95rem; }
.foot p { margin: .35rem 0; }
.foot a { color: var(--gold-lt); }
.foot-name { font: 400 1.7rem var(--f-head); color: #fff; }

/* ---------- Поверителност ---------- */
.legal h1 { font-size: 2.1rem; margin: 1rem 0 .4rem; }
.legal h2 { font-family: var(--f-head); font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
