/* Savolino - a SAVOV PRO brand. A boutique for children's name letters: warm ivory and sand,
   natural light, cocoa text; the colour comes from the letters themselves. Headings in
   Playfair Display (its Cyrillic keeps the usual letterforms in Bulgarian), text in Golos Text,
   the wordmark in Nunito. Fonts are our own files (no outside font service). */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-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: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-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: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-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+0304, U+0308, U+0329, 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-style: normal; 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-style: normal; 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+0304, U+0308, U+0329, 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-style: normal; 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-style: normal; 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+0304, U+0308, U+0329, 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-style: normal; 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-style: normal; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* The name on the 3D letter: the same font the configurator uses for names. */
@font-face { font-family: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pacifico-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: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pacifico-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* the palette of the brand */
  --ivory: #faf5ed;
  --cream: #f4ebdf;
  --sand: #eadccb;
  --blush: #e4b2af;
  --sage: #b3c3a5;
  --sky: #b3cddb;
  --cocoa: #594335;
  /* deeper tones for text */
  --cocoa-d: #3b2a20;
  --muted: #7a6455;
  --rose: #a35d58;
  --line: rgba(89, 67, 53, 0.16);
  --paper: #fffdf9;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Golos Text", system-ui, sans-serif;
  --round: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The page's scroll bar: thin, in the site's colours, without the grey arrows. Chrome, Edge and Safari
   draw it from the ::-webkit-scrollbar rules (they would drop them if scrollbar-color were set too);
   Firefox from scrollbar-color. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: rgba(89, 67, 53, 0.3); border: 3px solid var(--ivory); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(89, 67, 53, 0.48); }
::-webkit-scrollbar-button { display: none; }
@supports (-moz-appearance: none) { html { scrollbar-width: thin; scrollbar-color: rgba(89, 67, 53, 0.32) var(--ivory); } }
body { margin: 0; background: var(--ivory); color: var(--cocoa); font-family: var(--text); font-size: 17px; line-height: 1.6; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--cocoa-d); text-wrap: balance; font-variant-numeric: lining-nums; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose); }
p, dl, dd, ol, ul { margin: 0; }
p { text-wrap: pretty; }
img { display: block; width: 100%; max-width: 100%; height: auto; background: var(--cream); }
a { color: var(--cocoa-d); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--cocoa-d); color: var(--ivory); text-decoration: none; }
.skip:focus { top: 12px; }

main { overflow-x: hidden; overflow-x: clip; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); }

/* ── type ── */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(54px, 7.6vw, 116px); line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.015em; }
.h2s { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; }
.h3 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--cocoa-d); color: var(--ivory); font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color 0.25s, transform 0.25s; }
.btn:hover { background: var(--cocoa); color: var(--ivory); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-line { min-height: 44px; padding: 0 20px; background: transparent; color: var(--cocoa-d); box-shadow: inset 0 0 0 1px var(--cocoa-d); font-size: 14px; }
.btn-line:hover { background: var(--cocoa-d); color: var(--ivory); }

/* ── the bar at the top: clear over the first screen, then ivory ── */
.bar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); transition: background-color 0.3s, box-shadow 0.3s; }
.bar.solid { background: rgba(250, 245, 237, 0.88); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.bar-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.mark { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 44px; text-decoration: none; color: var(--cocoa-d); }
/* the logo (img/logo: the owner's, made light for the dark end of the page) */
.mark-logo { display: block; width: auto; height: 44px; background: none; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; gap: 34px; margin-right: 22px; list-style: none; padding: 0; }
.nav-list a { color: var(--cocoa-d); text-decoration: none; font-size: 15px; }
.nav-list a:hover { color: var(--rose); }
.round { position: relative; width: 44px; height: 44px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 249, 0.7); box-shadow: inset 0 0 0 1px var(--line); color: var(--cocoa-d); cursor: pointer; }
.menu-btn { display: none; }
.count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--cocoa-d); color: var(--ivory); font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; }

/* the header of the other pages (404) */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }

/* ── the first screen: the name field and, beside it, the 3D story that plays by itself (js/scena.js) ── */
.story { position: relative; background: var(--ivory); }
.pin { position: relative; display: flex; min-height: 100vh; min-height: 100svh; overflow: hidden; }
/* natural light from a window on the left, a warm floor at the bottom */
.light { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(70% 60% at 12% 4%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 60%),
  radial-gradient(60% 50% at 92% 100%, rgba(234, 220, 203, 0.9) 0%, rgba(234, 220, 203, 0) 70%),
  linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 62%, #f3e8da 100%); }
.cv { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.has3d .cv { opacity: 1; }
/* on a computer the texts and the field on the left, the story on the right */
.first { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); width: 100%; max-width: 1440px; margin: 0 auto; padding: 108px max(48px, env(safe-area-inset-right, 0px)) 28px max(48px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.hero { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding-bottom: 36px; pointer-events: auto; }
.hero .display { margin-top: 2px; font-size: clamp(48px, 4.7vw, 76px); }
.hero-lead { max-width: 30ch; font-size: 19px; line-height: 1.55; color: var(--muted); }
/* the name field: the 3D letters beside it spell what is written in it */
.hero-name { display: flex; align-items: center; gap: 6px; width: min(100%, 560px); margin-top: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 253, 249, 0.86); box-shadow: inset 0 0 0 1px var(--line), 0 22px 44px -30px rgba(59, 42, 32, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow 0.2s; }
.hero-name:focus-within { box-shadow: inset 0 0 0 1.5px var(--cocoa-d), 0 22px 44px -30px rgba(59, 42, 32, 0.55); }
.hero-in { flex: 1; min-width: 0; height: 50px; padding: 0 8px 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--cocoa-d); font-family: var(--text); font-size: 17px; font-weight: 500; }
.hero-in::placeholder { color: var(--muted); opacity: 1; }
.hero-in:focus { outline: none; }
.hero-name .btn { position: relative; isolation: isolate; overflow: hidden; flex: none; min-height: 50px; padding: 0 26px; }
/* while the story plays the name just entered (js/scena.js), the button fills; when it is full the page
   goes on to „Създайте своя“ */
.hero-name .btn::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(255, 253, 249, 0.22); transform: scaleX(var(--show, 0)); transform-origin: left center; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.hero-name .btn.showing::after { opacity: 1; }
.hero-note { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
/* the story: its box (the 3D is drawn there), its text and a bar with its three parts, which shows how
   far it is; a part tapped plays from there, the round button stops it and starts it again */
.film { display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; }
.film-box { position: relative; flex: 1; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.still { display: none; }
/* until the 3D is ready (seconds, on a slow phone) a still picture of the story's first moment stands in
   its box; it goes a moment after the 3D has come in over it, so the letters do not turn pale in between */
.poster { position: absolute; inset: 0; transition: opacity 0.4s ease 0.3s, visibility 0s 0.7s; pointer-events: none; }
.poster img { width: 100%; height: 100%; object-fit: contain; background: none; }
.has3d .poster { opacity: 0; visibility: hidden; }
.no3d .poster { display: none; }
.reel { display: flex; flex-direction: column; gap: 14px; pointer-events: auto; visibility: hidden; }
.has3d .reel { visibility: visible; }
.caps { display: grid; margin: 0; padding: 0; list-style: none; }
.cap { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; max-width: 36rem; opacity: 0; visibility: hidden; }
.cap-h { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.cap p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; list-style: none; padding: 0; }
.chips li { min-height: 30px; padding: 0 13px; border-radius: 999px; display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, color 0.3s; }
.chips li.on { background: var(--cocoa-d); color: var(--ivory); box-shadow: none; }
.reel-bar { display: flex; align-items: center; gap: 16px; }
.reel-stop { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 249, 0.9); box-shadow: inset 0 0 0 1px var(--line); color: var(--cocoa-d); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reel-go, .stopped .reel-pause { display: none; }
.stopped .reel-go { display: block; }
.reel-ch { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.cap-n { max-width: 100%; overflow: hidden; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.reel-ch.on .cap-n { color: var(--rose); }
.reel-line { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.reel-line b { display: block; height: 100%; background: var(--cocoa-d); transform: scaleX(0); transform-origin: left center; }
@media (hover: hover) {
  .reel-ch:hover .cap-n { color: var(--cocoa-d); }
  .reel-stop:hover { box-shadow: inset 0 0 0 1px var(--cocoa); }
}
/* without WebGL: a photo of the 3D letter instead of the story */
.no3d .reel, .no3d .cv { display: none; }
.no3d .still { display: block; position: absolute; left: 50%; top: 50%; width: auto; height: min(100%, 440px); max-width: 100%; aspect-ratio: 1; object-fit: contain; background: none; border-radius: 28px; transform: translate(-50%, -50%); }
/* smaller computers: two even columns */
@media (max-width: 1100px) { .first { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
/* where the bar under the story is narrow, it says only the names of its parts */
@media (max-width: 1180px) { .cap-k { display: none; } }
/* phones and other upright screens: the texts at the top, the story under them, the field and its button
   under the story (near the thumb, and while the name is typed the story shows it just above) */
@media (max-aspect-ratio: 11/10) {
  .first { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: calc(96px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); text-align: center; }
  .hero { display: contents; }
  .hero-lead { max-width: 36ch; }
  .film { order: 1; flex: 1; align-self: stretch; }
  .hero-name { order: 2; }
  .hero-note { order: 3; }
  .cap { justify-self: center; align-items: center; }
  .chips { justify-content: center; }
}

/* ── our work ── */
.gal { display: flex; flex-direction: column; gap: 56px; padding-block: 40px 120px; }
.gal-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.gal-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; }
.gal-grid img { aspect-ratio: 1 / 1; border-radius: 28px; }
.gal-grid .g1 { grid-row: span 2; }

/* ── which of the two: two cards with a real photo. They are the choice itself (the name of each is its
   button, and the button takes the whole card), at the top of the part where the name and the colours
   are chosen, so every „Създайте“ button of the page lands on them ── */
.two { display: flex; flex-direction: column; gap: 56px; padding-bottom: 130px; }
.col-intro { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; align-items: center; gap: 30px; padding: 18px 60px 18px 18px; border-radius: 32px; transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.card:has(.pick-b.on) { background: var(--paper); box-shadow: 0 26px 50px -36px rgba(59, 42, 32, 0.5); }
.card-pics { position: relative; flex: none; width: 43%; }
.card-pics .p-main { aspect-ratio: 1 / 1; border-radius: 20px; }
.card-pics .p-side { position: absolute; right: -14px; bottom: -12px; width: 36%; aspect-ratio: 1 / 1; border-radius: 14px; box-shadow: 0 0 0 5px var(--ivory), 0 20px 34px -22px rgba(59, 42, 32, 0.5); }
.card:has(.pick-b.on) .p-side { box-shadow: 0 0 0 5px var(--paper), 0 20px 34px -22px rgba(59, 42, 32, 0.5); }
.card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.card-h { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.015em; }
.pick-b { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pick-b::after { content: ""; position: absolute; inset: 0; border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s; }
.pick-b.on::after { box-shadow: inset 0 0 0 2px var(--cocoa-d); }
/* the round mark in the corner: which one is chosen */
.pick-b::before { content: ""; position: absolute; z-index: 1; right: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 253, 249, 0.92) center / 100% no-repeat; box-shadow: inset 0 0 0 1.5px rgba(89, 67, 53, 0.35); transition: background-color 0.25s, box-shadow 0.25s; }
.pick-b.on::before { background-color: var(--cocoa-d); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23faf5ed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15.5l4 4 8-9'/%3E%3C/svg%3E"); box-shadow: none; }
.pick-b:focus-visible { outline: none; }
.pick-b:focus-visible::after { outline: 2px solid var(--cocoa); outline-offset: 3px; }
@media (hover: hover) { .card:hover { transform: translateY(-2px); } .card:hover .pick-b:not(.on)::after { box-shadow: inset 0 0 0 1px var(--cocoa); } }
.col-n { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.col-n span { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--rose); }
.col-sub { font-size: 16px; line-height: 1.55; color: var(--muted); }
.col-price { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--cocoa-d); font-variant-numeric: lining-nums; }
.col-price span { font-family: var(--text); font-size: 15px; color: var(--muted); }

/* ── „Вашето име. Вашите цветове.“: right under the two cards, for the one chosen ── */
/* a „Създайте“ button lands with the title of the cards just under the bar, not a whole empty band above it */
.make { padding-block: 150px 140px; scroll-margin-top: -56px; }
.make-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "stage ctrl"; column-gap: 56px; row-gap: 40px; align-items: end; scroll-margin-top: 96px; }
.make-stage, .make-ctrl { align-self: start; }
.make-head { grid-area: head; display: flex; flex-direction: column; gap: 16px; }
.make-stage { grid-area: stage; position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; padding: 56px 40px 72px; border-radius: 32px; overflow: hidden; background:
  radial-gradient(90% 70% at 30% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%),
  linear-gradient(180deg, #f6eee3 0%, var(--sand) 100%); }
/* which of the two, once more: a small switch at the top of the picture. Where the name and the colours
   are chosen the two cards are off the screen, and going back up for the other one is a long way. */
.swap { position: absolute; z-index: 2; left: 50%; top: 16px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 253, 249, 0.8); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transform: translateX(-50%); }
.swap button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s; -webkit-tap-highlight-color: transparent; }
.swap button.on { background: var(--cocoa-d); color: var(--ivory); }
/* the two products on the same stage, one fades into the other */
.st { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 76px 40px 72px; transition: opacity 0.45s ease, transform 0.45s ease; }
.st.off { opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
.for { display: flex; flex-direction: column; gap: 28px; }
.sws { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(59, 42, 32, 0.16); }
.sw.on { box-shadow: inset 0 0 0 1px rgba(59, 42, 32, 0.16), 0 0 0 3px var(--ivory), 0 0 0 4.5px var(--cocoa-d); }
.tap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; }
.make-ctrl { grid-area: ctrl; display: flex; flex-direction: column; gap: 28px; }
.fld { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld-l { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--cocoa-d); }
.nm { width: 100%; min-height: 58px; padding: 0 20px; border: 1px solid rgba(89, 67, 53, 0.45); border-radius: 14px; background: var(--paper); color: var(--cocoa-d); font-family: var(--text); font-size: 20px; font-weight: 500; }
.nm:focus-visible { outline: none; border-color: var(--cocoa-d); box-shadow: 0 0 0 3px rgba(89, 67, 53, 0.14); }
.combos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.combo { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
.combo.on { box-shadow: inset 0 0 0 1.5px var(--cocoa-d); }
.combo i { flex: none; display: flex; padding-right: 6px; }
.combo i b { width: 18px; height: 18px; margin-right: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 1px rgba(59, 42, 32, 0.12); }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 16px; background: var(--cream); }
.sizes button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.sizes button.on { background: var(--paper); color: var(--cocoa-d); box-shadow: 0 2px 8px rgba(59, 42, 32, 0.1); }
.sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.sum-l { font-size: 14px; color: var(--muted); }
.sum-p { font-family: var(--serif); font-size: 44px; line-height: 1.05; color: var(--cocoa-d); font-variant-numeric: lining-nums; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; font-size: 13px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

/* the bubble letters of the name: grey renders, the filament colour under their light and shade */
.row { display: flex; align-items: flex-end; justify-content: center; max-width: 100%; }
.gap { flex: none; display: block; }
.bl { position: relative; display: block; flex: none; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: bl-drop 1050ms both; }
.bl::before { content: ""; position: absolute; left: 6%; right: 6%; top: 88%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 48, 38, 0.3), rgba(70, 48, 38, 0)); animation: bl-shadow 1050ms both; animation-delay: inherit; }
.bl-in { position: absolute; inset: 0; display: block; isolation: isolate; transform-origin: 50% 92%; }
.bl-c { position: absolute; inset: 0; display: block; -webkit-mask: var(--u) center / 100% 100% no-repeat; mask: var(--u) center / 100% 100% no-repeat; transition: background-color 240ms ease 120ms; }
.bl-s { position: absolute; inset: 0; display: block; background: var(--u) center / 100% 100% no-repeat; mix-blend-mode: multiply; }
.bl:focus-visible, .l3:focus-visible { outline-offset: 4px; border-radius: 12px; }
.l3 { position: relative; display: block; flex: none; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.l3::before { content: ""; position: absolute; top: 89%; height: 9%; border-radius: 50%; }
.l3::before { left: -3%; right: -3%; top: 89%; height: 9%; background: radial-gradient(closest-side, rgba(70, 48, 38, 0.36), rgba(70, 48, 38, 0)); }
.nm3 { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%) perspective(900px) rotateY(var(--ry, -14deg)); font-family: "Pacifico", "Segoe Script", cursive; font-weight: 400; line-height: 1; white-space: nowrap; color: var(--nc, #ffffff); text-shadow: -1px -0.5px 0 var(--ne, #e4ddd6), -2px -1px 0 var(--ne, #e4ddd6), -3px -1.5px 0 var(--ne2, #d6cec6), -4px -2px 0 var(--ne2, #d6cec6), 0 7px 12px rgba(51, 38, 44, 0.26); pointer-events: none; }
.popA { animation: l3-popA 900ms both; }
.popB { animation: l3-popB 900ms both; }
.hopA { animation: bl-hopA 620ms; }
.hopB { animation: bl-hopB 620ms; }
@keyframes bl-drop {
  0% { transform: translateY(-150%); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  8% { opacity: 1; }
  52% { transform: translateY(0) scale(1.03, 0.96); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  60% { transform: translateY(0) scale(1, 1); }
  71% { transform: translateY(-11%); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  82% { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  90% { transform: translateY(-2.5%); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes bl-shadow { 0% { opacity: 0; transform: scale(0.4); } 52% { opacity: 1; transform: scale(1); } 71% { opacity: 0.6; transform: scale(0.8); } 82%, 100% { opacity: 1; transform: scale(1); } }
@keyframes bl-hopA { 0% { transform: none; } 38% { transform: translateY(-24%) rotate(-7deg); } 66% { transform: translateY(0) scale(1.05, 0.94); } 82% { transform: translateY(-4%) scale(0.99, 1.01); } 100% { transform: none; } }
@keyframes l3-popA { 0% { transform: translateY(-14%) scale(0.92); opacity: 0; } 45% { transform: translateY(0) scale(1.02, 0.98); opacity: 1; } 70% { transform: translateY(-2%); } 100% { transform: none; opacity: 1; } }
@keyframes l3-popB { 0% { transform: translateY(-14%) scale(0.92); opacity: 0; } 45% { transform: translateY(0) scale(1.02, 0.98); opacity: 1; } 70% { transform: translateY(-2%); } 100% { transform: none; opacity: 1; } }
@keyframes bl-hopB { 0% { transform: none; } 38% { transform: translateY(-24%) rotate(7deg); } 66% { transform: translateY(0) scale(1.05, 0.94); } 82% { transform: translateY(-4%) scale(0.99, 1.01); } 100% { transform: none; } }

/* ── sizes and questions ── */
/* ── about us: a quiet band; how to order: three steps ── */
.about { background: var(--cream); }
.about-in { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; padding-block: 120px; }
.about-in .lead { max-width: 34em; }
.about-sub { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.how { display: flex; flex-direction: column; gap: 56px; padding-block: 130px 100px; }
.how .h2 { text-align: center; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; padding: 0; }
.how-steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.how-n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--rose); }
.how-h { font-size: 32px; line-height: 1.15; }
.how-steps p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; align-items: start; padding-block: 40px 140px; }
.info > div { display: flex; flex-direction: column; gap: 28px; }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.facts dt { padding-top: 21px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 20px 44px 20px 0; font-size: 17px; font-weight: 500; color: var(--cocoa-d); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--cocoa); transition: transform 0.25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; font-size: 16px; color: var(--muted); }
/* ── the last call ── */
.end { background: var(--sand); }
.end-in { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; padding-block: 110px; }
.end-in .lead { color: var(--cocoa); }
.end-in .btn { margin-top: 12px; }

/* ── on a phone the button stays at hand ── */
.float-go { position: fixed; z-index: 15; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); box-shadow: 0 14px 30px -12px rgba(59, 42, 32, 0.55); white-space: nowrap; }

.foot { background: var(--cocoa-d); color: var(--ivory); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 72px; }
.foot-mark { display: flex; flex-direction: column; gap: 6px; }
.foot-logo { display: block; align-self: flex-start; width: auto; height: 54px; background: none; }
.foot-tag { max-width: 30ch; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; }
/* the company behind the brand and how to reach it: a full-width row under the logo and the menu */
.foot-firm { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px;
  padding-top: 20px; border-top: 1px solid rgba(250, 245, 237, 0.16); font-size: 14px; }
.foot-firm p { color: rgba(250, 245, 237, 0.85); }
.foot .foot-firm a { font-size: 14px; }
.foot-firm p > a { text-decoration: underline; text-decoration-color: rgba(250, 245, 237, 0.4); text-underline-offset: 3px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 0 24px; }
/* Facebook, Instagram, TikTok: round buttons, 44 px to tap */
.foot-social { display: flex; gap: 12px; margin-top: 14px; }
.foot .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(250, 245, 237, 0.28); transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
@media (hover: hover) { .foot .foot-social a:hover { color: var(--cocoa-d); background: var(--blush); border-color: var(--blush); } }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav { display: flex; gap: 0 28px; flex-wrap: wrap; align-items: start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { color: var(--ivory); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--blush); }
.foot :focus-visible { outline-color: var(--blush); }

/* ── narrower screens ── */
@media (max-width: 1000px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .nav-list { display: none; }
  .menu-btn { display: flex; }
  .nav-list.open { display: flex; flex-direction: column; gap: 0; position: absolute; z-index: 5; right: 24px; top: calc(100% - 4px); min-width: 220px; margin: 0; padding: 8px; border-radius: 18px; background: var(--paper); box-shadow: 0 14px 34px rgba(59, 42, 32, 0.16), inset 0 0 0 1px var(--line); }
  .nav-list.open a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
  .nav-list.open a:hover { background: var(--cream); color: var(--cocoa-d); }
  .make-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "ctrl"; align-items: start; }
  /* the cards one under the other, each a row */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-pics { width: 200px; }
  .two { padding-bottom: 96px; }
  .info { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bar-in { min-height: 64px; }
  .mark-logo { height: 38px; }
  .nav { gap: 8px; }
  .nav-go { display: none; }
  .nav-list.open { right: 16px; }
  .first { gap: 12px; padding-top: calc(78px + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .hero .display { font-size: clamp(42px, 12.6vw, 60px); }
  .hero-lead { font-size: 16px; line-height: 1.5; }
  /* the field and the button one under the other, each whole (no shared box) */
  .hero-name { flex-direction: column; gap: 10px; padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-name:focus-within { box-shadow: none; }
  .hero-in { flex: none; width: 100%; height: 54px; padding: 0 20px; background: rgba(255, 253, 249, 0.94); box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -28px rgba(59, 42, 32, 0.5); text-align: center; font-size: 17px; transition: box-shadow 0.2s; }
  .hero-in:focus { box-shadow: inset 0 0 0 1.5px var(--cocoa-d), 0 18px 36px -28px rgba(59, 42, 32, 0.5); }
  .hero-name .btn { width: 100%; min-height: 54px; }
  /* the line under the button says what the small line above the title says: on a phone the story
     needs the room; its texts too (the bar under it says which part it is) */
  .hero-note, .caps { display: none; }
  .film { gap: 4px; }
  .film-box { min-height: 160px; }
  .reel-bar { gap: 10px; }
  .reel-ch { gap: 6px; padding: 4px 0; }
  .cap-n { font-size: 14px; }
  .gal { gap: 36px; padding-block: 24px 72px; }
  .gal-grid { gap: 12px; }
  .gal-grid img { border-radius: 20px; }
  /* the two cards as two rows, so both are seen at once: the photo, the name, one line and the price
     (the rest is under them, where the name and the colours are chosen, and in „Размери, материал и срок“) */
  .make { padding-block: 84px 88px; scroll-margin-top: -12px; }
  .two { gap: 22px; padding-bottom: 64px; }
  .col-intro { gap: 12px; }
  .cards { gap: 12px; }
  .card { gap: 14px; padding: 10px 52px 10px 10px; border-radius: 22px; }
  .card-pics { width: 104px; }
  .card-pics .p-main { border-radius: 14px; }
  .card-pics .p-side, .card .col-n, .card .more { display: none; }
  .card-text { gap: 4px; }
  .card-h { font-size: 23px; }
  .col-sub { font-size: 14px; line-height: 1.4; }
  .col-price { font-size: 21px; }
  .col-price span { font-size: 13px; }
  .pick-b::after { border-radius: 22px; }
  .pick-b::before { right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; }
  .make-in { scroll-margin-top: 76px; }
  .make-in { row-gap: 28px; }
  .make-stage { min-height: 290px; border-radius: 24px; }
  .st { padding: 64px 16px 54px; }
  .swap { top: 12px; }
  .swap button { padding: 0 14px; font-size: 13px; }
  .sw { width: 36px; height: 36px; }
  .tap { bottom: 16px; font-size: 12px; }
  .sum-p { font-size: 38px; }
  .sizes button { font-size: 13px; }
  .about-in { padding-block: 80px; }
  .how { gap: 32px; padding-block: 80px 56px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-steps li { padding-block: 22px; }
  .how-h { font-size: 26px; }
  .end-in { padding-block: 80px 110px; }
  .info { padding-block: 24px 96px; }
  .facts { grid-template-columns: 104px minmax(0, 1fr); }
  .foot-in { padding-block: 56px 96px; }
}
@media (min-width: 701px) { .float-go { display: none; } }
/* short phones (iPhone SE and the like): the first screen's texts closer, so the story has room */
@media (max-width: 700px) and (max-height: 720px) {
  .first { gap: 10px; padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .hero .eyebrow { letter-spacing: 0.16em; }
  .hero .display { font-size: clamp(38px, 11vw, 50px); }
  .hero-lead { font-size: 15px; line-height: 1.45; }
  .film-box { min-height: 140px; }
  .hero-in, .hero-name .btn { height: 50px; min-height: 50px; }
}
/* very short screens (an iPhone SE with the browser's bars): the line under the title goes, so that
   the story, the field and the button fit on the first screen */
@media (max-width: 700px) and (max-height: 600px) { .hero-lead { display: none; } }
/* a phone on its side: everything closer, so it fits the low screen */
@media (min-aspect-ratio: 11/10) and (max-height: 520px) {
  .first { padding-top: calc(72px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
  .hero { gap: 10px; padding-bottom: 0; }
  .hero .display { font-size: 38px; }
  .hero-lead { font-size: 15px; line-height: 1.45; }
  .hero-note, .caps { display: none; }
  .film-box { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bl, .bl::before, .bl-in, .l3 { animation: none !important; }
  .st { transition: none; }
  .bl-c { transition: none; }
}

/* the page for a wrong address */
.sec { display: flex; flex-direction: column; gap: 56px; padding-block: 128px; }
.nf { align-items: flex-start; gap: 24px; padding-block: 96px 128px; }

/* ── the product pages (3d-bukva-s-ime.html, puhkavi-bukvi-s-ime.html): photos and what it is at the top,
   then what it suits, how to order, prices, sizes, questions and the other product ── */
.pp main { padding-top: 92px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cocoa-d); }
.pp-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-block: 24px 110px; }
.pp-pics { display: flex; flex-direction: column; gap: 12px; }
.pp-main { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.pp-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pp-thumb { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; opacity: 0.72; box-shadow: inset 0 0 0 1px var(--line); transition: opacity 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.pp-thumb img { aspect-ratio: 1 / 1; object-fit: cover; }
.pp-thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--cocoa-d); }
@media (hover: hover) { .pp-thumb:hover { opacity: 1; } }
.pp-text { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.h1p { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
.pp-price { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--cocoa-d); font-variant-numeric: lining-nums; }
.pp-price span { display: block; margin-top: 8px; font-family: var(--text); font-size: 14px; color: var(--muted); }
.pp-facts { width: 100%; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pp-facts li { padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.pp-sec { display: flex; flex-direction: column; gap: 32px; padding-bottom: 110px; }
.pp-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pp-uses li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.pp-uses h3 { font-size: 26px; line-height: 1.15; }
.pp-uses p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.pp-scroll { overflow-x: auto; }
.pp-prices { width: 100%; max-width: 520px; border-collapse: collapse; font-variant-numeric: lining-nums; }
.pp-prices th, .pp-prices td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.pp-prices th { padding-top: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pp-prices td { font-size: 17px; }
.pp-prices td + td, .pp-prices th + th { text-align: right; }
.pp-prices td + td { font-family: var(--serif); font-size: 22px; color: var(--cocoa-d); }
.pp-note { font-size: 15px; color: var(--muted); }
.pp-info { padding-block: 0 72px; }
.pp-go { display: flex; justify-content: center; padding-bottom: 110px; }
.pp-other { display: flex; align-items: center; gap: 22px; max-width: 520px; padding: 12px 28px 12px 12px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 15px; text-decoration: none; transition: box-shadow 0.2s; }
.pp-other img { flex: none; width: 104px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.pp-other b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; color: var(--cocoa-d); }
@media (hover: hover) { .pp-other:hover { box-shadow: inset 0 0 0 1px var(--cocoa); } }
@media (max-width: 1000px) {
  .pp-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pp-text { position: static; }
  .pp-uses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .pp main { padding-top: 76px; }
  .pp-top { gap: 24px; padding-block: 16px 72px; }
  .pp-main { border-radius: 22px; }
  .pp-thumbs { gap: 8px; }
  .pp-thumb { border-radius: 10px; }
  .h1p { font-size: 34px; }
  .pp-price { font-size: 34px; }
  .pp-text { gap: 18px; }
  .pp-text .btn { width: 100%; }
  .pp-sec { gap: 24px; padding-bottom: 72px; }
  .pp-uses li { padding: 22px; }
  /* the sizes one under the other: their names are long for a column beside them */
  .pp .facts { grid-template-columns: minmax(0, 1fr); }
  .pp .facts dt { padding-bottom: 0; border-bottom: 0; }
  .pp .facts dd { padding-top: 6px; }
  .pp-uses h3 { font-size: 23px; }
  .pp-go { padding-bottom: 72px; }
  .pp-go .btn { width: 100%; }
  .pp-other { gap: 16px; padding-right: 18px; }
  .pp-other img { width: 84px; }
  .pp-other b { font-size: 22px; }
}

/* ── „Подаръци с име за всеки повод“ (podaratsi-s-ime.html): each occasion with a photo, its text and the
   product (or both) that suits it ── */
.pp-all a, .occ-go a { color: var(--cocoa-d); font-weight: 600; text-decoration: none; }
.pp-all a::after, .occ-go a::after { content: " →"; }
@media (hover: hover) { .pp-all a:hover, .occ-go a:hover { color: var(--rose); } }
.occ-top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 24px 64px; }
.occ-top > *, .occ-faq .faq { max-width: 760px; }
.occ-go { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.occ-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 110px; }
.occ { display: flex; align-items: flex-start; gap: 24px; padding: 18px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 96px; }
.occ img { flex: none; width: 150px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.occ-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 4px; }
.occ-h { font-size: 26px; line-height: 1.15; }
.occ-text > p:not(.occ-go) { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1000px) { .occ-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .occ-top { padding-block: 16px 40px; }
  .occ-list { gap: 12px; padding-bottom: 72px; }
  .occ { gap: 14px; padding: 12px; border-radius: 20px; }
  .occ img { width: 84px; border-radius: 12px; }
  .occ-h { font-size: 21px; }
  .occ-text { gap: 6px; padding-top: 0; }
  .occ-text > p:not(.occ-go) { font-size: 15px; line-height: 1.5; }
  .occ-go { gap: 4px 16px; font-size: 14px; }
}

/* ── the terms, privacy and contact pages (made by src/savolino/make-legal.mjs from savovpro.com's) ── */
.legal { display: flex; flex-direction: column; gap: 28px; padding-block: 24px 110px; }
.legal > :not(section), .legal section > * { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
.legal h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.legal section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.legal p, .legal li, .legal dd { font-size: 16px; line-height: 1.7; color: var(--cocoa); }
.legal .legal-updated { font-size: 14px; color: var(--muted); }
.legal .legal-brand { padding: 16px 20px; border-radius: 16px; background: var(--cream); color: var(--cocoa-d); }
.legal ol, .legal ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 22px; }
.legal a { color: var(--rose); text-underline-offset: 3px; }
.legal a:hover { color: var(--cocoa-d); }
.legal-toc { padding: 22px 26px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.legal .legal-toc h2 { margin-bottom: 10px; font-size: 20px; }
.legal .legal-toc ol { display: block; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-company { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 20px 24px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.legal-company dt { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); }
.legal-company dd { margin: 0; }
.legal section > .legal-table-wrap { max-width: 1000px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; color: var(--cocoa); }
.legal-table th { font-weight: 600; color: var(--cocoa-d); background: var(--cream); }

.kontakt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 24px 110px; }
.kontakt > .lead { max-width: 640px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; width: 100%; margin-top: 18px; }
.contact-aside { padding: 26px 28px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--cocoa); }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cocoa-d); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--rose); }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.contact-form-title { font-size: 28px; line-height: 1.2; }
.contact-form-lead, .contact-form-note, .contact-form-status { font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-form-note a { color: var(--rose); }
.contact-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cocoa-d); }
.contact-field input, .contact-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(89, 67, 53, 0.32); border-radius: 14px; background: #fff; color: var(--cocoa-d); font: inherit; font-size: 16px; font-weight: 400; }
.contact-field textarea { min-height: 140px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--cocoa-d); outline-offset: 2px; }
.contact-optional { font-weight: 400; color: var(--muted); }
.contact-file-label { display: grid; gap: 6px; min-width: 0; }
/* The browser's own file button speaks the browser's language; ours is in Bulgarian. The real input lies invisibly on top. */
.contact-file-box { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 8px 10px; border: 1px dashed rgba(89, 67, 53, 0.32); border-radius: 14px; background: #fff; }
.contact-file-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.contact-file-btn { flex: none; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cocoa-d); color: var(--cocoa-d); font-size: 14px; }
.contact-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 400; }
.contact-file-box.has-file .contact-file-name { color: var(--cocoa-d); }
.contact-file-box:has(input:focus-visible) { outline: 2px solid var(--cocoa-d); outline-offset: 2px; }
.contact-file-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.contact-file-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 0 0 12px; border-radius: 12px; background: var(--cream); font-weight: 400; }
.contact-file-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-file-item-size { flex: none; color: var(--muted); font-size: 13px; }
.contact-file-list button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.contact-file-list button:hover { color: var(--rose); }
.contact-file-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-turnstile:empty { display: none; }
.contact-form-actions .btn { width: 100%; }
.contact-form-status.is-error { color: var(--rose); }

/* The review form (otziv.html, made from savovpro.com's): opened from the link in the email after
   delivery. While it loads, and when the link is used up or the review is sent, a card with one line. */
.otziv { padding-block: 24px 110px; }
.review-wrap { max-width: 680px; }
.review-state { padding: 26px 28px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; line-height: 1.6; color: var(--cocoa); }
.review-state strong { color: var(--cocoa-d); }
.review-state a { color: var(--rose); }
.review-form .contact-form-title { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.015em; }
.review-form .contact-form-lead { color: var(--rose); font-weight: 500; }
.review-form .contact-form-lead:empty { display: none; }
.review-rating { min-width: 0; margin: 4px 0 0; padding: 0; border: 0; }
.review-rating legend { margin-bottom: 4px; padding: 0; font-size: 14px; font-weight: 600; color: var(--cocoa-d); }
/* The stars: empty ones drawn as an outline, the chosen one and those before it filled (and the same
   while the mouse is over one), so the choice shows by shape, not only by colour. */
.review-stars { display: inline-flex; gap: 4px; }
.review-stars label { position: relative; display: grid; place-items: center; width: 48px; height: 48px; font-size: 38px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--muted); cursor: pointer; transition: color 0.15s, -webkit-text-stroke-color 0.15s; }
.review-stars input { position: absolute; opacity: 0; pointer-events: none; }
.review-stars label:has(input:checked), .review-stars label:has(~ label input:checked),
.review-stars:hover label:hover, .review-stars:hover label:has(~ label:hover) { color: var(--rose); -webkit-text-stroke-color: var(--rose); }
.review-stars:hover label:hover ~ label { color: transparent; -webkit-text-stroke-color: var(--muted); }
.review-stars label:has(input:focus-visible) { outline: 2px solid var(--cocoa-d); outline-offset: 0; border-radius: 10px; }
.review-photo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.review-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.review-thumbs:empty { display: none; }
.review-thumb { position: relative; width: 84px; height: 84px; }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.review-thumb button { position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: var(--cocoa-d); color: var(--ivory); font-size: 18px; line-height: 1; cursor: pointer; }
/* a finger needs more than the round button: 44 px around it */
.review-thumb button::after { content: ""; position: absolute; inset: -8px; }
.review-add { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; width: 104px; height: 84px; border: 1px dashed rgba(89, 67, 53, 0.4); border-radius: 12px; background: #fff; color: var(--cocoa-d); text-align: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.review-add:hover { border-color: var(--cocoa-d); background: var(--cream); }
.review-add input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.review-add:has(input:focus-visible) { outline: 2px solid var(--cocoa-d); outline-offset: 2px; }
.review-add__plus { font-size: 26px; font-weight: 400; line-height: 1; }
.review-add__text { font-size: 12px; font-weight: 600; line-height: 1.2; }
.review-msg { font-size: 15px; line-height: 1.5; color: var(--rose); }
.review-msg:empty { display: none; }

/* Reviews on the home page (after the gallery) and the product pages (before „Въпроси“): written in by
   the Worker once there are 3 approved ones (src/savolino/reviews.js). */
.rv { display: flex; flex-direction: column; gap: 40px; padding-block: 20px 120px; }
.rv.pp-sec { gap: 32px; padding-block: 0 110px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.rv-head > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.rv-score { display: flex; align-items: center; gap: 16px; }
.rv-score b { font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1; color: var(--cocoa-d); font-variant-numeric: lining-nums; }
.rv-score div { display: flex; flex-direction: column; gap: 6px; }
.rv-score p:not(.rv-stars) { font-size: 15px; color: var(--muted); }
.rv-stars { font-size: 18px; line-height: 1; letter-spacing: 2px; color: var(--rose); }
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rv-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.rv-body { font-size: 16px; line-height: 1.65; color: var(--cocoa); overflow-wrap: anywhere; }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-photos a { display: block; overflow: hidden; border-radius: 12px; }
.rv-photos img { width: 76px; height: 76px; object-fit: cover; }
.rv-reply { padding: 14px 16px; border-radius: 16px; background: var(--cream); font-size: 15px; line-height: 1.6; color: var(--cocoa); }
.rv-reply strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--cocoa-d); }
.rv-who { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.rv-who p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-who strong { font-weight: 600; color: var(--cocoa-d); }
.rv-who p span { color: var(--muted); }
.rv-ok { padding: 4px 10px; border-radius: 999px; background: rgba(179, 195, 165, 0.35); color: var(--cocoa-d); font-size: 13px; white-space: nowrap; }
.rv-note { font-size: 14px; color: var(--muted); }
/* under a product's title: the stars and the count, to the reviews lower on the page */
.rv-mini { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-block: -12px -6px; color: var(--cocoa); font-size: 15px; text-decoration: none; }
.rv-mini u { text-underline-offset: 3px; }
.rv-mini:hover { color: var(--rose); }
@media (max-width: 900px) { .rv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 700px) {
  .legal { gap: 22px; padding-block: 16px 72px; }
  .legal .legal-toc ol { columns: 1; }
  .legal-company { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px 18px; }
  .legal-company dd + dt { margin-top: 10px; }
  /* the tables become one card per row, each value under its column's name */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table td { padding: 3px 0; border: 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .kontakt, .otziv { padding-block: 16px 72px; }
  .review-state { padding: 20px; }
  .contact-aside { padding: 20px 20px; }
  .contact-form { padding: 22px 18px; }
  .rv { gap: 28px; padding-block: 8px 80px; }
  .rv.pp-sec { padding-block: 0 72px; }
  .rv-card { padding: 22px 20px; }
  .rv-score b { font-size: 46px; }
}
@media (max-width: 560px) { .contact-form-row { grid-template-columns: minmax(0, 1fr); } }

/* A promo code kept from a link (js/promo.js): a note at the bottom for a few seconds. */
.promo-note { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 20px; border-radius: 999px; background: var(--cocoa-d); color: var(--ivory); font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 10px 28px rgba(59, 42, 32, 0.22); transform: translateX(-50%); transition: opacity 0.35s, transform 0.35s; cursor: pointer; }
.promo-note.is-out { opacity: 0; transform: translate(-50%, 8px); }
@media (prefers-reduced-motion: reduce) { .promo-note { transition: none; } }
