/* DecorPoint — публичен сайт */

:root {
  color-scheme: light;
  --bg: #fbf9f5;
  --soft: #f3eee6;
  --soft-2: #e9e2d6;
  --ink: #1d1a16;
  --ink-2: #34302a;
  --muted: #6d665c;
  --faint: #a39b8f;
  --line: #e7e0d4;
  --line-strong: #d3cabb;
  /* Месингът е знакът на марката: точки, линии, едър текст. За дребен текст върху светло — --brass-deep */
  --brass: #b08d57;
  --brass-deep: #846637;
  --brass-soft: #f2e8d8;
  --dark: #171411;
  --dark-2: #221e19;
  --on-dark: #f6f1e8;
  --on-dark-muted: rgba(246, 241, 232, .68);
  --card: #ffffff;
  --ok: #2c7a4b;
  --ok-soft: #e7f3eb;
  --warn: #9a5d12;
  --warn-soft: #f8efe1;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(48, 36, 20, .05), 0 12px 32px -12px rgba(48, 36, 20, .16);
  --shadow-lg: 0 2px 6px rgba(48, 36, 20, .05), 0 28px 60px -22px rgba(48, 36, 20, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* scroll-padding: котвите и фокусът не остават под залепената лента */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Българските форми на буквите (т, д, в като ръкописни) остават само в големите заглавия — в дребния текст се четат по-трудно */
  font-feature-settings: "locl" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass-soft); color: var(--ink); }
.i { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; justify-content: center; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }

/* ---------- Типография ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Месинговата точка пред надзаглавието — мотивът на марката */
.eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 11px;
  border-radius: 50%; background: var(--brass); vertical-align: .13em;
}
.eyebrow-plain { letter-spacing: .06em; }
.display, .h1, .h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
  text-wrap: balance;
  font-feature-settings: "locl" 1;
}
.display { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.015em; }
.h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
/* Наклоненият сериф е акцентът: една-две думи в <em>. Върху тъмно --em става светъл месинг */
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 500; letter-spacing: 0; color: var(--em, var(--brass-deep)); }
.h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 62ch; }

.prose { max-width: 72ch; }
.prose h2 {
  margin: 1.6em 0 .45em; font-family: var(--display); font-size: 1.65rem; font-weight: 600;
  line-height: 1.15; letter-spacing: -.005em; font-feature-settings: "locl" 1;
}
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; padding-left: .2em; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration-color: var(--brass); transition: color .2s var(--ease); }
.prose a:hover { color: var(--brass-deep); }
.prose-lead { font-size: 1.1rem; color: var(--ink-2); }

/* ---------- Името (знак) ---------- */

/* brand_wordmark(): „Decor“ изправено, „Point“ наклонено и месингова точка вместо точка накрая */
.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-feature-settings: "locl" 1;
}
.wordmark em { font-style: italic; font-weight: 500; }
.wm-dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .045em;
  border-radius: 50%; background: var(--brass); vertical-align: baseline;
}
.wordmark-inv { color: var(--on-dark); }
/* Голям подпис (долу в сайта): размерът следва ширината; --wm-len = брой букви в името */
.wordmark-xl {
  display: block;
  font-size: clamp(3rem, 18vw, 15rem);
  line-height: .9; letter-spacing: -.02em;
}
.wordmark-xl .wm-dot { width: .17em; height: .17em; background: radial-gradient(circle at 34% 30%, #dcc193, var(--brass) 55%, var(--brass-deep)); }
.wordmark-xl.wordmark-inv { color: rgba(246, 241, 232, .15); }
/* Последната дума и точката са неразделни; дълго име (.wordmark-long, над 16 знака) може да мине на нов ред */
.wm-end { white-space: nowrap; }
.wordmark-long { white-space: normal; text-wrap: balance; }

/* ---------- Бутони ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
/* Тъмният бутон при посочване се затопля към месинга */
.btn-dark { background: var(--ink); color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.btn-dark:hover {
  background: #4e3f27; background: color-mix(in srgb, var(--brass-deep) 45%, var(--ink));
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 26px -14px rgba(138, 107, 60, .9);
}
.btn-line { border-color: var(--line-strong); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--brass); background: #fffdf9; box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .35); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--brass); color: var(--dark); }
.btn-line-light { border-color: rgba(246, 241, 232, .34); color: var(--on-dark); }
.btn-line-light:hover { border-color: var(--brass); background: rgba(176, 141, 87, .12); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled], .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-sm { gap: 8px; margin-top: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brass-deep); text-decoration-color: currentColor; }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Заглавна лента ---------- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), margin .3s var(--ease);
}
/* Размазването е в отделен слой: backdrop-filter върху самата лента би затворил мобилното меню (position: fixed) в нея */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 249, 245, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .3s var(--ease);
}
/* След превъртане (site.js слага .is-scrolled) лентата е по-плътна, с линия и мека сянка */
.hdr.is-scrolled, .menu-open .hdr { border-bottom-color: var(--line); }
.hdr.is-scrolled { box-shadow: 0 14px 34px -24px rgba(48, 36, 20, .45); }
.hdr.is-scrolled::before, .menu-open .hdr::before { background: rgba(251, 249, 245, .95); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .3s var(--ease); }

/* Знак + име; мотото под името изчезва, когато лентата се свие */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; flex: none; }
.logo-mark svg { width: 38px; height: 38px; }
.logo-text { display: grid; justify-items: start; min-width: 0; }
.logo .wordmark, .nav-foot .wordmark { max-width: 100%; padding-right: .06em; overflow: hidden; text-overflow: ellipsis; line-height: 1.22; }
.logo .wordmark { font-size: 1.75rem; }
/* Дълго име: по-дребно и до два реда, вместо да се отреже с „…“ */
.logo .wordmark-long, .nav-foot .wordmark-long { overflow: visible; line-height: 1.06; }
.logo .wordmark-long { font-size: 1.5rem; }
.logo-text small {
  display: block; max-width: 100%; max-height: 1.6em; margin-top: 1px; overflow: hidden;
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
  color: var(--muted); white-space: nowrap; text-overflow: ellipsis;
  transition: max-height .3s var(--ease), opacity .25s var(--ease);
}

.nav { flex: none; margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 500; font-size: .96rem; text-decoration: none; white-space: nowrap; color: var(--ink-2);
  transition: color .2s var(--ease);
}
/* Месингова точка под връзката: бледа при посочване, плътна за текущата страница */
.nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--brass);
  opacity: 0; transform: translateY(4px) scale(.3);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after { opacity: .5; transform: none; }
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav ul a[aria-current="page"]::after { opacity: 1; transform: none; }
.nav-phone, .nav-foot { display: none; }

.hdr-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.hdr-phone {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; height: 46px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.hdr-phone .i { color: var(--brass-deep); }
.hdr-phone:hover { background: var(--soft); }
.cart-btn, .menu-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cart-btn:hover, .menu-btn:hover { border-color: var(--brass); box-shadow: 0 6px 16px -10px rgba(138, 107, 60, .6); }
/* Броят в количката е „точката“ — месингов кръг */
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--brass); color: var(--dark); font-size: .72rem; font-weight: 700; border: 2px solid var(--bg);
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: grid; }

/* Свита лента на компютър: margin-bottom пази общата височина, за да не подскача съдържанието */
@media (min-width: 861px) {
  .hdr.is-scrolled { margin-bottom: 14px; }
  .hdr.is-scrolled .hdr-in { height: 62px; }
  .hdr.is-scrolled .logo-text small { max-height: 0; opacity: 0; }
}

@media (max-width: 1080px) {
  .hdr-in { gap: 20px; }
  .hdr-phone span { display: none; }
  .hdr-phone { width: 46px; padding: 0; justify-content: center; border: 1px solid var(--line); background: var(--card); }
  .hdr-phone:hover { background: var(--card); border-color: var(--brass); }
}

@media (max-width: 860px) {
  .hdr-in { height: 64px; gap: 12px; }
  .logo { gap: 10px; }
  .logo-mark svg { width: 34px; height: 34px; }
  .logo .wordmark { font-size: 1.6rem; }
  .logo .wordmark-long { font-size: 1.22rem; }
  .logo-text small { display: none; }
  .hdr-phone { display: none; }
  .hdr-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  /* --menu-top: долният ръб на лентата (site.js) — над нея може да има лента за колеги */
  .nav {
    position: fixed; top: var(--menu-top, calc(64px + env(safe-area-inset-top))); right: 0; bottom: 0; left: 0; z-index: 49;
    display: flex; flex-direction: column;
    margin: 0; padding: 6px var(--gutter) calc(26px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .5s var(--ease); }
  .nav.is-open li { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open li:nth-child(5) { transition-delay: .2s; }
  .nav ul a {
    padding: 18px 2px 15px; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-size: 2.15rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
    color: var(--ink); font-feature-settings: "locl" 1;
  }
  /* Текущата страница: наклонено и с месингова точка накрая — като името */
  .nav ul a::after {
    position: static; display: inline-block; width: .2em; height: .2em; margin: 0 0 0 .06em;
    vertical-align: baseline; transform: none; transition: none;
  }
  .nav ul a:hover::after { opacity: 0; }
  .nav ul a[aria-current="page"] { font-style: italic; }
  .nav ul a[aria-current="page"]::after { opacity: 1; }
  .nav-phone {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px;
    min-height: 54px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-weight: 600; text-decoration: none;
  }
  .nav-phone .i { color: var(--brass); }
  .nav-foot { display: grid; justify-items: start; gap: 8px; margin-top: auto; padding-top: 36px; }
  .nav-foot .wordmark { font-size: 2.4rem; }
  .nav-foot .wordmark-long { font-size: 1.9rem; }
  .nav-foot small { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Секции ---------- */

.section { padding: clamp(60px, 8.5vw, 112px) 0; }
.section-tight { padding-top: 12px; }
.section-top { padding-top: clamp(24px, 4vw, 40px); }
.section-soft { background: var(--soft); }
/* Тъмна секция: еспресо, топъл светъл текст; акцентите в <em> стават светъл месинг */
.section-dark { --em: var(--brass); background: var(--dark); color: var(--on-dark); }
.section-dark .eyebrow, .section-dark .lead, .section-dark .muted { color: var(--on-dark-muted); }
.section-dark .link-arrow:hover { color: var(--brass); }
.section-dark :focus-visible { outline-color: var(--brass); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 46px); }
.page-head { padding: clamp(28px, 5vw, 60px) 0 clamp(24px, 3.4vw, 40px); }
.page-head .h1 { margin-bottom: 14px; }
.page-head .lead, .page-head .prose > :last-child { margin-bottom: 0; }
/* Тънка линия, която започва с месингова точка — подписът под заглавието на всяка вътрешна страница */
.page-head > .wrap::after {
  content: ""; display: block; height: 7px; margin-top: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(circle closest-side, var(--brass) 86%, transparent) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--line), var(--line)) 15px 3px / calc(100% - 15px) 1px no-repeat;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: clamp(16px, 2.4vw, 22px); font-size: .84rem; color: var(--muted); }
.crumbs a { text-decoration: none; transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }
.crumbs-sep { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
/* Дълго име на продукт се съкращава с „…“, вместо да чупи реда */
.crumbs [aria-current] { min-width: 0; overflow: hidden; color: var(--ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Начало ---------- */

/* Първи екран: текст вляво, снимка в арка вдясно и кръгъл печат с името на ъгъла */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(52px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero-eyebrow-sep { display: inline-block; width: 18px; height: 1px; vertical-align: .35em; background: currentColor; opacity: .5; }
.hero-title { margin-bottom: 24px; }
.hero-title-end, .stop-word { white-space: nowrap; }
/* Месинговата точка вместо точка накрая на голямо изречение — като в знака */
.stop-dot { display: inline-block; width: .15em; height: .15em; margin-left: .05em; border-radius: 50%; background: var(--brass); }
.hero-copy .lead { margin-bottom: 32px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 26px; max-width: 560px; margin: 34px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line); list-style: none; color: var(--ink-2); font-size: .92rem; font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points .i { color: var(--brass); }

.hero-media { position: relative; justify-self: end; width: 100%; max-width: 500px; }
/* Арка: хоризонталният радиус е половин ширина, вертикалният (40% при 4:5) е същото разстояние */
.hero-img, .hero-art { width: 100%; aspect-ratio: 4 / 5; border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px; background: var(--soft); }
.hero-img { object-fit: cover; }
.hero-art { display: grid; place-items: end center; overflow: hidden; padding: 0 11% 7%; color: var(--ink); }
/* Къщата в разрез (без снимка в началото): дървеният скелет и перголата са в месинг, слънцето е точката */
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .ha-glow, .hero-art .ha-soft { fill: var(--brass-soft); }
.hero-art .ha-fill { fill: var(--bg); }
.hero-art .ha-brass { fill: var(--brass); }
.hero-art .ha-line, .hero-art .ha-frame { stroke: var(--brass); }
/* Пътят на слънцето — пунктир от точки (кръгли краища + празно 0 11) */
.hero-art .ha-path { stroke: var(--brass); stroke-width: 2.2; stroke-dasharray: 0 11; opacity: .75; }
.hero-art.hero-house { padding: 0 7% 6%; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 4 / 5; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--soft); }
.mosaic img:first-child { grid-row: span 2; border-radius: 50% 50% 18px 18px / 22% 22% 18px 18px; }

/* Печатът: името по окръжността се върти бавно, в средата е месинговата точка */
.hero-badge {
  position: absolute; left: -38px; bottom: 54px; z-index: 2;
  display: grid; place-items: center; width: clamp(108px, 11vw, 132px); aspect-ratio: 1;
  border-radius: 50%; background: var(--bg); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.hero-badge svg { grid-area: 1 / 1; width: 100%; height: 100%; animation: badge-spin 50s linear infinite; }
.hero-badge text { font-family: var(--font); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.hero-badge .badge-sep { fill: var(--brass); }
.hero-badge::before, .hero-badge::after { content: ""; grid-area: 1 / 1; aspect-ratio: 1; border-radius: 50%; }
.hero-badge::before { width: 50%; border: 1px solid rgba(176, 141, 87, .45); }
.hero-badge::after { width: 9%; background: var(--brass); }
@keyframes badge-spin { to { transform: rotate(360deg); } }

/* Лента с услугите под първия екран: бавен безкраен ход; второто копие е само за непрекъснатост */
.ticker {
  overflow: hidden; padding: clamp(16px, 2.2vw, 24px) 0; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker calc(var(--n, 6) * 7s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
/* Всяко копие е поне колкото екрана, иначе при малко услуги лентата би се „скъсала“ */
.ticker-group { display: flex; flex: none; min-width: 100vw; margin: 0; padding: 0; list-style: none; }
.ticker-group li {
  display: flex; flex: 1 0 auto; align-items: center; gap: 1.1em; padding-right: 1.1em;
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-style: italic; font-weight: 500; line-height: 1.25;
  color: var(--ink-2); white-space: nowrap; font-feature-settings: "locl" 1;
}
.ticker-group li::after { content: ""; flex: none; width: 6px; height: 6px; margin-inline: auto; border-radius: 50%; background: var(--brass); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Изречението за марката: детайлът и точността — с месингова точка и подпис със знака */
.manifesto { padding-block: clamp(64px, 9vw, 120px); text-align: center; }
.manifesto-in { max-width: 920px; margin: 0 auto; }
.manifesto-title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 500; line-height: 1.05; }
.manifesto-text { max-width: 50ch; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); }
.manifesto-sign { display: grid; justify-items: center; gap: 18px; margin: 30px 0 0; }
.manifesto-sign::before { content: ""; width: 1px; height: 40px; background: var(--line-strong); }
.manifesto .wordmark { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }

/* Категории: снимка 4:5, името със сериф и месингова линия при посочване, броят — с малки главни */
/* --n = брой категории: при малко категории картите запълват реда, но не стават по-широки от ~300px */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(24px, 3vw, 34px) clamp(14px, 2vw, 22px); max-width: calc(var(--n, 5) * 300px); }
.cat { display: grid; align-content: start; justify-items: start; text-decoration: none; color: inherit; }
.cat-img { position: relative; display: block; justify-self: stretch; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: var(--radius); background: var(--soft); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 20, 17, .3), rgba(23, 20, 17, 0) 55%); opacity: 0; transition: opacity .5s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat:hover .cat-img::after { opacity: 1; }
/* Без снимка: първата буква на категорията в месингов кръг */
.cat-initial {
  display: grid; place-items: center; height: 100%;
  background: radial-gradient(circle, var(--brass-soft) 0 32%, transparent 32.5%);
  font-family: var(--display); font-size: clamp(3rem, 5.4vw, 4.4rem); font-style: italic; font-weight: 500; line-height: 1;
  color: var(--brass-deep); font-feature-settings: "locl" 1;
}
.cat-name {
  padding-bottom: 4px; overflow-wrap: anywhere;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; font-feature-settings: "locl" 1;
  background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.cat:hover .cat-name { background-size: 100% 1px; }
.cat-count { margin-top: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Какво правим: заглавието вляво остава при превъртане, вдясно — номериран списък (и в „За нас“) */
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-head { position: sticky; top: 112px; }
.svc-head .h2 { margin-bottom: 16px; }
.svc-lead { max-width: 38ch; margin-bottom: 22px; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.service { position: relative; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); align-content: start; padding: 26px 0 30px; border-top: 1px solid var(--line); }
/* При посочване месингова линия изтегля горния ръб */
.service::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--brass); transition: width .6s var(--ease); }
.service:hover::before { width: 100%; }
.service-n { grid-row: span 2; font-family: var(--display); font-size: 1.9rem; font-style: italic; font-weight: 500; line-height: 1; color: var(--brass); font-variant-numeric: lining-nums; }
.service h3 { margin: 3px 0 8px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; font-feature-settings: "locl" 1; }
.service p { margin: 0; color: var(--muted); font-size: .96rem; }

/* От детайла до дома: четири мащаба от чертеж (М 1:1 → 1:100) върху една линийка.
   Месинговата точка расте с мащаба (--k = 0…3) — знакът „отдалечава“ поглед от мебелта към къщата. */
.dirs-lead { max-width: 54ch; margin: 14px 0 0; color: var(--muted); }
.dirs-list {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(18px, 2.4vw, 32px);
  margin: 0; padding: 0; list-style: none;
}
/* Линийката: основна линия, деление през 40px и по-късо през 8px */
.dirs-list::before {
  content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 11px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 40px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat;
}
.dir { position: relative; display: flex; flex-direction: column; }
.dir-scale {
  display: flex; align-items: center; gap: 10px; height: 24px; margin: 0 0 24px;
  font-family: var(--display); font-size: 1.2rem; font-style: italic; font-weight: 600; line-height: 1;
  color: var(--brass-deep); font-variant-numeric: lining-nums;
}
.dir-scale .dir-m { font-family: var(--font); font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
/* Надписът стои върху линийката — фонът я скрива под буквите */
.dir-sc { position: relative; z-index: 1; padding: 0 10px 0 2px; background: var(--bg); }
.dir-dot {
  position: relative; z-index: 1; flex: none; width: calc(7px + var(--k, 0) * 5px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #dcc193, var(--brass) 55%, var(--brass-deep));
  box-shadow: 0 0 0 5px var(--bg);
}
/* Рисунката: тънки линии върху едва видима милиметрова мрежа */
.dir-art {
  display: grid; place-items: center; aspect-ratio: 16 / 11; margin-bottom: 22px; padding: 9%;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  background: linear-gradient(rgba(163, 155, 143, .14) 1px, transparent 1px) -1px -1px / 16px 16px,
              linear-gradient(90deg, rgba(163, 155, 143, .14) 1px, transparent 1px) -1px -1px / 16px 16px, var(--card);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.dir-art svg { width: 100%; height: auto; overflow: visible; }
.dir-art .d-fill { fill: var(--card); }
.dir-art .d-soft { fill: var(--brass-soft); stroke: none; }
.dir-art .d-dot { fill: var(--brass); stroke: none; }
.dir-art .d-accent { stroke: var(--brass); }
.dir-art .d-thin { stroke-width: 1.2; }
.dir-art .d-dim { stroke: var(--brass); stroke-width: 1.1; }
.dir-art .d-base { opacity: .4; }
.dir:hover .dir-art { border-color: rgba(176, 141, 87, .55); box-shadow: var(--shadow); transform: translateY(-3px); }
.dir h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.12; letter-spacing: -.005em; font-feature-settings: "locl" 1; }
.dir > p { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.dir-tags li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .74rem; font-weight: 600; letter-spacing: .03em; }

/* Две конструкции: чертежи с номерирани бележки; номерата в текста отговарят на тези в рисунката */
.houses .sec-head { align-items: flex-end; }
.houses-lead { max-width: 46ch; margin: 0; color: var(--muted); }
.houses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.house-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.house-art {
  padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 36px) clamp(8px, 1.6vw, 18px); border-bottom: 1px solid var(--line); color: var(--ink);
  background: linear-gradient(rgba(163, 155, 143, .13) 1px, transparent 1px) -1px -1px / 20px 20px,
              linear-gradient(90deg, rgba(163, 155, 143, .13) 1px, transparent 1px) -1px -1px / 20px 20px, var(--bg);
}
.house-art svg { display: block; width: 100%; height: auto; }
.house-art .h-fill { fill: var(--card); }
.house-art .h-soft { fill: var(--brass-soft); }
.house-art .h-thin { stroke-width: 1.1; }
.house-art .h-insul { stroke: var(--brass); stroke-width: 1.3; }
.house-art .h-dot { fill: var(--brass-deep); stroke: none; }
.house-art .h-base { opacity: .35; }
.house-art .h-mk circle { fill: var(--brass-deep); stroke: var(--bg); stroke-width: 3; }
.house-art .h-mk text { fill: #fff; stroke: none; font-family: var(--font); font-size: 11px; font-weight: 700; text-anchor: middle; }
.house-body { padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 36px) clamp(26px, 3.4vw, 38px); }
.house-kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); }
.house-body h3 { margin: 0 0 20px; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; font-feature-settings: "locl" 1; }
.house-notes { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: hn; }
.house-notes li { position: relative; padding-left: 40px; color: var(--ink-2); font-size: .97rem; line-height: 1.5; counter-increment: hn; }
.house-notes li::before {
  content: counter(hn); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%;
  background: var(--brass-deep); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1;
}
.houses-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; margin: clamp(28px, 3.6vw, 42px) 0 0;
  font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; color: var(--ink-2); text-align: center;
}
.houses-foot .link-arrow { font-family: var(--font); font-size: .95rem; font-style: normal; }

@media (max-width: 1000px) {
  .dirs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* На два реда линийката е отделна за всяка карта — продължава вдясно от мащаба */
  .dirs-list::before { display: none; }
  .dir-scale::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
}
@media (max-width: 860px) {
  .houses-grid { grid-template-columns: minmax(0, 1fr); }
  .houses .sec-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .dirs-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dir-art { aspect-ratio: 16 / 10; }
  .house-notes li { font-size: .94rem; }
}

/* Как се поръчва: номерата в месингови кръгове, свързани с пунктир от точки */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 70px; right: -18px; height: 4px;
  background: radial-gradient(circle, var(--brass) 0 1.2px, transparent 1.7px) 0 50% / 9px 4px repeat-x;
  opacity: .8;
}
.steps span {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px;
  border: 1px solid var(--brass); border-radius: 50%;
  font-family: var(--display); font-size: 1.65rem; font-weight: 500; line-height: 1; color: var(--brass); font-variant-numeric: lining-nums;
}
.steps h3 { margin-bottom: 10px; font-family: var(--display); font-size: 1.55rem; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; font-feature-settings: "locl" 1; }
.steps p { max-width: 32ch; margin: 0; color: var(--on-dark-muted); font-size: .95rem; }

/* Проекти (и в „Проекти“): надписът със сериф, мястото с месингова точка; при посочване снимката се приближава */
.grid-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.project { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); color: var(--on-dark); text-decoration: none; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 20, 17, .74), rgba(23, 20, 17, .16) 46%, rgba(23, 20, 17, 0) 66%); }
.project:hover img { transform: scale(1.04); }
.project-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 4px; transition: transform .5s var(--ease); }
.project:hover .project-cap { transform: translateY(-3px); }
.project-cap strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.12; font-feature-settings: "locl" 1; }
.project-cap small { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 241, 232, .8); }
.project-cap small::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.grid-projects-all .project:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.grid-projects-all .project:first-child .project-cap strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Призив (и в „За нас“, „Проект“): тъмна карта с голяма месингова точка — знакът, увеличен и отрязан от ръба */
.cta {
  --em: var(--brass);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 26px 40px; flex-wrap: wrap;
  padding: clamp(34px, 6vw, 72px); border-radius: 28px; background: var(--dark); color: var(--on-dark);
}
.cta::before {
  content: ""; position: absolute; z-index: -1; top: -34%; right: -9%;
  width: clamp(260px, 36vw, 440px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(200deg, rgba(176, 141, 87, .22), rgba(176, 141, 87, .05));
  box-shadow: 0 0 0 28px var(--dark), 0 0 0 29px rgba(176, 141, 87, .32);
}
.cta > div:first-child { flex: 1 1 380px; max-width: 640px; }
.cta p { margin: 14px 0 0; color: var(--on-dark-muted); max-width: 52ch; }
.cta :focus-visible { outline-color: var(--brass); }
.cta-inline { margin-top: 40px; padding: clamp(26px, 4vw, 36px) clamp(24px, 4vw, 40px); border-radius: 22px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2n)::after { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-media { order: -1; justify-self: stretch; max-width: none; }
  .hero-img, .hero-art, .mosaic { aspect-ratio: 4 / 3; }
  .hero-img, .hero-art { border-radius: 20px; }
  .mosaic img, .mosaic img:first-child { border-radius: 14px; }
  .hero-art { padding: 0 20% 3%; }
  /* Къщата с пътя на слънцето е висока рисунка — на телефон кутията е квадратна, за да се побере цялата */
  .hero-art.hero-house { aspect-ratio: 1; padding: 0 6% 3%; }
  .hero-badge { left: auto; right: 18px; bottom: -40px; width: 100px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-head { position: static; }
  .grid-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-projects-all .project:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .hero-points { gap: 10px 20px; font-size: .9rem; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .cat-img { margin-bottom: 12px; }
  .cat-name { font-size: 1.25rem; }
  /* Стъпките една под друга: кръговете вляво, пунктирът продължава надолу */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; column-gap: 18px; }
  .steps span { grid-row: span 2; width: 48px; height: 48px; margin: 0; font-size: 1.4rem; }
  .steps h3 { margin: 10px 0 6px; font-size: 1.4rem; }
  .steps li:not(:last-child)::after {
    display: block; top: 58px; bottom: -20px; left: 22px; right: auto; width: 4px; height: auto;
    background: radial-gradient(circle, var(--brass) 0 1.2px, transparent 1.7px) 50% 0 / 4px 9px repeat-y;
  }
  .grid-projects { grid-template-columns: minmax(0, 1fr); }
  .project-cap strong { font-size: 1.35rem; }
  .cta .btn-row { width: 100%; }
}

/* Точката се „поставя“ последна: в заглавието при зареждане, в изречението при появата му */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .hero-title .stop-dot { animation: stop-in .7s var(--ease) .6s backwards; }
  .js .manifesto-in.is-in .stop-dot { animation: stop-in .7s var(--ease) .55s backwards; }
}
@keyframes stop-in { from { opacity: 0; scale: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-badge svg, .ticker-track { animation: none; }
}

/* ---------- Продукти ---------- */

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 20px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: .94rem; white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip small { color: var(--brass-deep); font-size: .76rem; font-weight: 600; }
.chip:hover { border-color: var(--brass); color: var(--ink); }
/* Избраната категория: тъмно копче с месингова точка */
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip.is-on::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.chip.is-on small { color: var(--on-dark-muted); }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.search, .select {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--muted);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search { flex: 1; max-width: 440px; }
.search:hover, .select:hover { border-color: var(--faint); }
.search:focus-within, .select:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.search input, .select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.select { margin-left: auto; padding-right: 16px; }
/* Собствена стрелка вместо системната — по-тиха и в тона на марката */
.select select {
  -webkit-appearance: none; appearance: none; padding-right: 24px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 15px;
}
.result-count { margin: 0 0 18px; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 22px; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard-img {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3;
  border-radius: var(--radius); background: var(--soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* Тънък вътрешен кант — ръбът на снимката остава ясен и при светли снимки */
.pcard-img::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29, 26, 22, .06); pointer-events: none; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s var(--ease); }
.section-soft .pcard-img { background: var(--soft-2); }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.pcard-cat { margin: 0 0 6px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); }
.pcard-title { margin-bottom: 14px; font-family: var(--display); font-size: 1.34rem; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; overflow-wrap: anywhere; }
/* Месингова черта, която се изтегля под името при посочване */
.pcard-title a { text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.pcard-title a:hover { background-size: 100% 1px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pcard-add {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.pcard-add:active { transform: scale(.94); }
.pcard-add.done { background: var(--brass); border-color: var(--brass); color: var(--ink); }
@media (hover: hover) {
  .pcard:hover .pcard-img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .pcard:hover .pcard-img img { transform: scale(1.04); }
  .pcard-add:hover { background: var(--ink); border-color: var(--ink); color: var(--brass); }
  .pcard-add.done:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0; font-weight: 700; font-size: 1.06rem; letter-spacing: -.005em; font-variant-numeric: lining-nums; }
.price s, .price-old { color: var(--muted); font-weight: 500; font-size: .86em; text-decoration-thickness: 1px; }
.price-ask { font-family: var(--display); font-size: 1.18rem; font-style: italic; font-weight: 500; line-height: 1.2; color: var(--ink-2); }
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .66rem; font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(29, 26, 22, .08);
}
/* Наличността се води от малка точка в своя цвят */
.tag-out::before, .tag-order::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-out { color: var(--danger); }
.tag-order { color: var(--brass-deep); }
.tag-sale { background: var(--brass); color: var(--ink); font-size: .74rem; letter-spacing: .02em; }
.pcard-img:has(.tag-out) img { opacity: .62; filter: saturate(.6); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); }
.noimg-lg { aspect-ratio: 4 / 3; }

.empty {
  display: grid; justify-items: center; gap: 4px; padding: clamp(44px, 8vw, 88px) 22px; text-align: center;
  border-radius: calc(var(--radius) + 4px); background: var(--soft); color: var(--muted);
}
.empty-ic {
  display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--brass-deep);
}
.empty h2 { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; font-feature-settings: "locl" 1; }
.empty .h2 { margin-bottom: 6px; color: var(--ink); }
.empty p { max-width: 44ch; margin-bottom: 20px; }
/* Голямо 404 с месингова точка накрая — като точката след името */
.big-404 { margin: 0; font-family: var(--display); font-size: clamp(6rem, 20vw, 10rem); font-weight: 600; line-height: .9; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.big-404::after { content: ""; display: inline-block; width: .14em; height: .14em; margin-left: .05em; border-radius: 50%; background: var(--brass); }
.empty .big-404 { max-width: none; margin: 0 0 10px; }

@media (min-width: 861px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 22px; padding: 0; }
}

@media (max-width: 600px) {
  .toolbar { flex-wrap: wrap; }
  .search { max-width: none; flex-basis: 100%; }
  .select { margin-left: 0; flex: 1; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pcard-body { padding-top: 12px; }
  .pcard-cat { margin-bottom: 4px; font-size: .62rem; letter-spacing: .12em; }
  .pcard-title { margin-bottom: 10px; font-size: 1.14rem; }
  .price { font-size: .96rem; }
  .price-ask { font-size: .98rem; }
  .pcard-add { width: 40px; height: 40px; }
  .tag { left: 8px; top: 8px; padding: 5px 8px; font-size: .6rem; }
  .tag-sale { font-size: .68rem; }
}

/* ---------- Продукт ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
/* min-width: 0 — дълъг ред миниатюри не бива да разширява колоната на телефон */
.gallery { position: sticky; top: 100px; min-width: 0; }
.gallery-main { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 4px); background: var(--soft); }
.gallery-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29, 26, 22, .06); pointer-events: none; }
.gallery-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open:focus-visible { outline-offset: -5px; border-radius: calc(var(--radius) + 4px); }
.gallery-open img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; }
/* Лупа в ъгъла — подсказва, че снимката се отваря на цял екран */
.gallery-zoom {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(29, 26, 22, .12);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.gallery-open:hover .gallery-zoom { background: var(--ink); color: var(--brass); transform: scale(1.05); }
.thumbs { display: flex; gap: 10px; margin: 8px -5px 0; padding: 5px 5px 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: none; width: 84px; height: 66px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); opacity: .72;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--line-strong); opacity: 1; }
.thumb.is-on { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); opacity: 1; }
.thumb:focus-visible { outline-offset: 2px; }

.pinfo { min-width: 0; }
.pinfo .h1 { margin-bottom: 18px; }
.pinfo-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.price-lg { font-family: var(--display); font-size: clamp(2.1rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.price-lg.price-ask { font-size: clamp(1.5rem, 2.4vw, 1.8rem); font-style: italic; font-weight: 500; color: var(--ink-2); }
.pinfo-price .price-old { font-size: 1.05rem; }
.avail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; }
/* Точка на наличността с мек ореол */
.avail .dot { position: relative; flex: none; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: currentColor; }
.avail .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .16; }
.avail-stock { color: var(--ok); }
.avail-order { color: var(--brass-deep); }
.avail-out { color: var(--danger); }
.avail .muted { font-weight: 500; }
.pinfo .lead { margin-bottom: 0; font-size: 1.04rem; }
.buy { display: flex; gap: 10px; margin-top: 26px; }
.qty {
  display: flex; align-items: center; height: 50px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.qty:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.qty button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; border-radius: 999px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.qty button:hover { background: var(--soft); color: var(--ink); }
.qty button:focus-visible { outline-offset: -3px; }
.qty input { width: 52px; height: 100%; border: 0; outline: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; font-size: 16px; }
.qty-with-unit input { width: 46px; text-align: right; padding-right: 4px; }
/* При разтегнато поле (телефон) числото и мярката остават заедно в средата */
.qty [data-step="-1"] { margin-right: auto; }
.qty [data-step="1"] { margin-left: auto; }
.qty-unit { padding-right: 4px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.qty-hint { margin: 10px 0 0; }
.price .unit { margin-left: 3px; font-size: .78em; font-weight: 500; color: var(--muted); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 42px; }
.qty-sm button { width: 40px; }
.qty-sm input { width: 44px; }
.qty-sm.qty-with-unit input { width: 40px; }

.note { display: flex; gap: 14px; margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); }
.note > .i { margin-top: 1px; color: var(--brass-deep); }
.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; color: var(--muted); font-size: .93rem; }
.note p + p { margin-top: 6px; }
.note-sm { padding: 14px 16px; margin-top: 18px; }

.specs-h { margin: 32px 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs { margin: 0; }
/* Точкова линия между името и стойността — като в каталог от ателие */
.specs div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.specs div::after {
  content: ""; order: 1; flex: 1 1 24px; min-width: 24px; height: 4px; opacity: .55;
  background: radial-gradient(circle, var(--brass) 1px, transparent 1.4px) 0 50% / 6px 4px repeat-x;
}
.specs dt { order: 0; flex: 0 1 auto; max-width: 55%; color: var(--muted); overflow-wrap: anywhere; }
.specs dd { order: 2; flex: 0 1 auto; max-width: 60%; margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* Ред без „Име: стойност“ — само текст, без точки */
.specs .specs-full::after, .specs-full dt { display: none; }
.specs .specs-full dd { flex: 1; max-width: none; font-weight: 500; text-align: left; }
.product-desc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 14px clamp(24px, 5vw, 72px);
  margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line);
}
.product-desc-h { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-feature-settings: "locl" 1; }
.product-desc .prose { font-size: 1.02rem; color: var(--ink-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 64px 16px calc(64px + env(safe-area-inset-bottom)); background: rgba(23, 20, 17, .95);
  animation: lb-in .25s var(--ease);
}
@keyframes lb-in { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid rgba(246, 241, 232, .2); border-radius: 50%; background: rgba(246, 241, 232, .08); color: var(--on-dark);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.lightbox :focus-visible { outline-color: var(--brass); }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.shot { display: block; padding: 0; border: 0; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--soft); cursor: zoom-in; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

@media (min-width: 861px) {
  /* На голям екран миниатюрите се пренасят на нов ред вместо скрит плъзгач */
  .thumbs { flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 601px) {
  /* Последната снимка без двойка заема целия ред — без празно място накрая */
  .shot:not(.shot-wide):last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .gallery { position: static; }
  .product-desc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .buy { flex-wrap: wrap; }
  .buy .btn-grow { flex-basis: 100%; }
  .buy .qty { flex: 1; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .shot, .shot-wide { aspect-ratio: 4 / 3; }
  /* На телефон стрелките слизат долу, за да не закриват снимката (има и плъзгане) */
  .lb-nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
}

/* ---------- За нас, контакти ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about > *, .contact > * { min-width: 0; }
/* Подпис под текста: името като знак, с месингова черта пред него */
.about-sign { display: flex; align-items: center; gap: 14px; margin: clamp(24px, 3vw, 34px) 0 0; font-size: 1.8rem; line-height: 1; color: var(--ink); }
.about-sign::before { content: ""; flex: none; width: 36px; height: 1px; background: var(--brass); }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) + 6px); outline: 1px solid rgba(255, 255, 255, .5); outline-offset: -16px; }
/* Месингова точка в ъгъла на снимката — „точката“ от името */
.about-photo::after { content: ""; position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 6px var(--bg); }
/* Цитат, когато няма снимка: голяма месингова кавичка и тънка вътрешна рамка като паспарту */
.about-card {
  position: relative; display: grid; align-content: end; gap: 22px; aspect-ratio: 4 / 4.6; margin: 0;
  padding: clamp(30px, 5vw, 52px); border-radius: calc(var(--radius) + 6px); background: var(--soft);
  outline: 1px solid rgba(176, 141, 87, .35); outline-offset: -14px;
}
.about-card::before { content: "\201C"; position: absolute; top: clamp(14px, 2.4vw, 26px); left: clamp(26px, 4vw, 46px); font-family: var(--display); font-size: clamp(7rem, 12vw, 9.5rem); line-height: 1; color: var(--brass); }
.about-quote { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-style: italic; font-weight: 500; line-height: 1.15; color: var(--ink); text-wrap: balance; font-feature-settings: "locl" 1; }
.about-quote p { margin: 0; }
.about-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.about-card figcaption::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--brass); }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.cinfo {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.cinfo:hover { border-color: var(--brass); box-shadow: var(--shadow); }
/* Иконата е в месингов кръг; при посочване кръгът се „налива“ */
.cinfo-ic {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brass-soft); color: var(--brass-deep);
  transition: background .2s var(--ease), color .2s var(--ease);
}
a.cinfo:hover .cinfo-ic { background: var(--brass); color: var(--card); }
.cinfo-txt { display: grid; gap: 2px; min-width: 0; }
.cinfo small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cinfo strong { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.cinfo strong.normal { font-weight: 500; }
.cinfo em { margin-top: 2px; font-style: normal; font-size: .84rem; font-weight: 600; color: var(--brass-deep); text-decoration: underline; text-decoration-color: var(--brass); }

/* ---------- Формуляри ---------- */

.form-card { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow); }
.form-card > .h3 { margin: 4px 0 18px; font-family: var(--display); font-size: clamp(1.55rem, 2.6vw, 1.85rem); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; font-feature-settings: "locl" 1; }
.form-card > .h3 ~ .h3 { margin-top: 34px; }
/* align-content: start — съседно поле с грешка под него не разтяга това поле на височина */
.field { display: grid; align-content: start; gap: 7px; margin-bottom: 18px; }
.field > span { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--faint); }
/* Фокус: месингов ръб и мек ореол */
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, .22); }
[aria-invalid="true"] input, input[aria-invalid="true"], textarea[aria-invalid="true"], fieldset[aria-invalid="true"] { border-color: var(--danger) !important; }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.field-err { margin: 0; color: var(--danger); font-size: .84rem; font-weight: 600; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border: 1px solid rgba(179, 38, 30, .16); border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .94rem; }
.alert::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; border-radius: 50%; background: currentColor; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; gap: 10px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.choice:hover { border-color: var(--faint); }
/* Избраният вариант: месингов ръб и лек топъл тон */
.choice:has(input:checked) { border-color: var(--brass); background: rgba(176, 141, 87, .07); box-shadow: inset 0 0 0 1px var(--brass); }
.choices[aria-invalid="true"] .choice { border-color: var(--danger); }
.choice input, .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brass-deep); flex: none; }
.choice span { display: grid; gap: 2px; }
.choice strong { font-weight: 600; }
.choice small { color: var(--muted); font-size: .88rem; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 6px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check a { color: var(--ink); text-decoration-color: var(--brass); }

.success { display: grid; justify-items: center; gap: 8px; padding: 28px 8px; text-align: center; }
.success-ic {
  position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px;
  border: 1px solid var(--brass); border-radius: 50%; background: var(--brass-soft); color: var(--brass-deep);
  box-shadow: 0 0 0 8px rgba(176, 141, 87, .1);
}
.success .h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.15; text-wrap: balance; font-feature-settings: "locl" 1; }
.success p { max-width: 52ch; }
/* „Поръчката е изпратена“: спокоен празничен детайл — точка, която пада накрая на заглавието, и кръг, който се разлива веднъж */
.success-page {
  padding: clamp(40px, 7vw, 76px) clamp(22px, 6vw, 64px); border-radius: calc(var(--radius) + 8px); background: var(--soft);
  outline: 1px solid rgba(176, 141, 87, .3); outline-offset: -12px;
}
.success-page .success-ic { width: 84px; height: 84px; margin-bottom: 18px; background: var(--card); }
.success-page .success-ic::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--brass); border-radius: 50%; opacity: 0; animation: done-ring 1.8s var(--ease) .35s; }
@keyframes done-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
.success-page .h1 { margin-bottom: 6px; }
.done-dot { display: inline-block; width: .16em; height: .16em; margin-left: .05em; border-radius: 50%; background: var(--brass); animation: done-dot .7s var(--ease) .6s both; }
@keyframes done-dot { from { transform: scale(0); } 60% { transform: scale(1.4); } }
.order-no { display: inline-block; padding: 1px 12px; border: 1px dashed var(--brass); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.success-page .btn-row { margin-top: 18px; }

.mini-product { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); text-decoration: none; transition: border-color .2s var(--ease); }
.mini-product:hover { border-color: var(--brass); }
.mini-product img { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.mini-product span { display: grid; min-width: 0; }
.mini-product small { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mini-product strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Количка, поръчка ---------- */

/* Количката и поръчката стоят върху пясъчна лента, а картите върху нея са „хартия“ */
.shop-band { background: var(--soft); }
.shop-band .empty { border: 1px solid var(--line); background: var(--card); }
.cart-loading { padding: 28px 0; }
.cart-grid, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(18px, 3vw, 32px); align-items: start; }
.cart-lines {
  margin: 0; padding: 4px clamp(18px, 3vw, 28px); list-style: none;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow);
}
.cline { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; }
.cline + .cline { border-top: 1px solid var(--line); }
.cline-img { display: block; width: 104px; height: 78px; overflow: hidden; border-radius: var(--radius-sm); background: var(--soft); }
.cline-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cline-img:hover img { transform: scale(1.04); }
.cline-name { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.cline-name:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.cline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cline-price { color: var(--muted); font-size: .9rem; }
.cline-end { display: grid; justify-items: end; gap: 6px; }
.cline-sum { font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; white-space: nowrap; font-variant-numeric: lining-nums; }
.cline-del { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: .84rem; transition: color .2s var(--ease); }
.cline-del:hover { color: var(--danger); }
.cline-warn { color: var(--danger); font-size: .86rem; font-weight: 600; }

.summary {
  position: sticky; top: 100px; padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow);
}
.summary .h3 { margin-bottom: 18px; font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; font-feature-settings: "locl" 1; }
.summary .btn-block { margin-top: 20px; }
/* Ред с точкова линия до сумата — като в разписка */
.summary-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 1rem; }
.summary-row::after { content: ""; order: 1; flex: 1 1 16px; min-width: 16px; height: 4px; opacity: .55; background: radial-gradient(circle, var(--brass) 1px, transparent 1.4px) 0 50% / 6px 4px repeat-x; }
.summary-row strong { order: 2; font-family: var(--display); font-size: 1.95rem; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.summary-total { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary .note { background: var(--soft); }
.sum-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sum-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .92rem; }
.sum-line img, .sum-line .sum-noimg { display: block; width: 56px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.sum-line strong { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sum-line small { color: var(--muted); }
.sum-line b { font-weight: 700; white-space: nowrap; }

/* Стъпките на поръчката с месингови номера: 01, 02 */
.checkout .form-card { counter-reset: step; }
.checkout .form-card > .h3 { display: flex; align-items: baseline; gap: 12px; }
.checkout .form-card > .h3::before { counter-increment: step; content: "0" counter(step); font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--brass-deep); }

@media (max-width: 1000px) {
  .cart-grid, .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 600px) {
  .cart-lines { padding: 2px 16px; }
  .cline { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; }
  .cline-img { width: 76px; height: 58px; }
  .cline-name { font-size: 1.14rem; }
  .cline-end { grid-column: 2; grid-auto-flow: column; align-items: center; justify-items: start; justify-content: space-between; }
  .cline-sum { font-size: 1.3rem; }
}

/* ---------- Известие, долна лента ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 9px 9px 9px 18px; border-radius: 999px; background: var(--dark); color: var(--on-dark);
  box-shadow: 0 0 0 1px rgba(176, 141, 87, .3), 0 18px 40px -14px rgba(23, 20, 17, .55);
  transform: translateX(-50%);
  animation: toast-in .35s var(--ease);
}
.toast::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: -4px; border-radius: 50%; background: var(--brass); }
.toast a {
  flex: none; padding: 8px 15px; border-radius: 999px; background: var(--brass); color: var(--dark);
  font-weight: 600; font-size: .9rem; text-decoration: none; transition: background-color .2s var(--ease);
}
.toast a:hover { background: var(--on-dark); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast span:last-child { padding: 4px 10px 4px 0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

.ftr {
  --em: var(--brass);
  overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 calc(22px + env(safe-area-inset-bottom));
  background: var(--dark); color: var(--on-dark-muted);
}
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr-tag {
  margin: 0 0 14px; font-family: var(--display); font-size: 1.85rem; font-style: italic; font-weight: 500;
  line-height: 1.15; color: var(--on-dark); font-feature-settings: "locl" 1;
}
.ftr-about { max-width: 36ch; margin: 0 0 24px; font-size: .94rem; line-height: 1.7; }
.ftr-h { margin-bottom: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.ftr-links, .ftr-contacts { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ftr a {
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease), border-color .2s var(--ease);
}
.ftr a:hover { color: var(--on-dark); text-decoration-color: var(--brass); }
.ftr :focus-visible { outline-color: var(--brass); }
.ftr-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.ftr-contacts a { overflow-wrap: anywhere; }
.ftr-contacts .i { margin-top: 3px; color: var(--brass); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(246, 241, 232, .2); border-radius: 50%; color: var(--on-dark); }
.social a:hover { border-color: var(--brass); color: var(--brass); }
/* Подписът: името през цялата ширина, буквите едва видими, точката в пълен месинг.
   --wm-len (брой букви, от _layout.php) нагажда размера, за да не излиза извън екрана */
/* overflow-x: clip — докато шрифтът се зарежда, по-широкият резервен шрифт не бива да разширява страницата */
.ftr-sign { margin-top: clamp(56px, 8vw, 100px); container-type: inline-size; user-select: none; overflow-x: clip; }
/* Това е първа оценка (за „DecorPoint“); site.js после го сверява с истинската ширина — винаги на един ред */
.ftr-sign .wordmark-xl { font-size: min(16rem, calc(100cqi / (var(--wm-len, 10) * .44 + .27))); white-space: nowrap; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ftr-sign .wordmark-xl {
    background: linear-gradient(180deg, rgba(246, 241, 232, .27), rgba(246, 241, 232, .05) 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.ftr-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(18px, 3vw, 32px); padding-top: 22px;
  font-size: .82rem; color: rgba(246, 241, 232, .5);
}
/* Линията е само над съдържанието, подравнена с колоните (не над полетата на .wrap) */
.ftr-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(246, 241, 232, .1); }

@media (max-width: 1000px) {
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .ftr-col-contacts { grid-column: 1 / -1; }
  .ftr-tag { font-size: 1.65rem; }
  .ftr-bottom { flex-direction: column; }
}

/* ---------- Колеги ---------- */

/* Лента за влезлия колега (над заглавната лента) */
.pbar { background: var(--dark); color: var(--on-dark-muted); font-size: .86rem; }
.pbar-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.pbar-hi::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--brass); vertical-align: .12em; }
.pbar strong { color: var(--on-dark); }
.pbar-links { display: flex; align-items: center; gap: 18px; }
.pbar-links a, .pbar-links button {
  padding: 0; border: 0; background: none; color: var(--on-dark); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(176, 141, 87, .7); text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.pbar-links a:hover, .pbar-links button:hover { color: var(--brass); }
.pbar :focus-visible { outline-color: var(--brass); }
.pbar-links form { margin: 0; }
.ftr-partner { color: rgba(246, 241, 232, .38); }
.ftr .ftr-partner:hover { color: var(--brass); }

.tag-partner { background: var(--ok); color: #fff; }
.price-partner, .price-partner span { color: var(--ok); }
.partner-note { margin: -4px 0 14px; color: var(--ok); font-weight: 600; font-size: .9rem; }
.partner-box, .ref-box { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; }
.partner-box { background: var(--ok-soft); color: var(--ok); }
.partner-box span, .ref-box span { flex: 1; }
.ref-box { background: var(--brass-soft); color: var(--ink-2); }
.ref-box > .i { color: var(--brass-deep); }
.ref-box button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--card); color: var(--muted); transition: color .2s var(--ease); }
.ref-box button:hover { color: var(--danger); }

.login-card { max-width: 460px; margin: 0 auto; }
/* Името като знак над входа */
.login-brand { margin: 0 0 22px; font-size: 2rem; line-height: 1; }
.login-card .h2 { margin-bottom: 10px; }
.login-card form { margin-top: 22px; }
.login-card .btn-block { margin: 6px 0 18px; }

.partner-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.pstat { display: grid; align-content: start; gap: 12px; min-width: 0; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow); }
.pstat > small { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pstat > small::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.pstat > strong { font-family: var(--display); font-size: clamp(3rem, 6vw, 4rem); font-weight: 600; line-height: 1; color: var(--ok); font-variant-numeric: lining-nums; }
.pstat p { margin: 0; }
.pstat .btn { justify-self: start; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.copy-row input:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.pstat-count { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.pstat-count .i { color: var(--brass-deep); }
.pstat-count strong { margin-left: auto; font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.partner-orders-h { margin-bottom: 14px; font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; font-feature-settings: "locl" 1; }
.porders { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.porders li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.porders li > span { display: grid; gap: 2px; }
.porders strong { letter-spacing: .03em; }
.porders small { color: var(--muted); }
.porders-end { justify-items: end; text-align: right; }
.st { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-new { color: #1f5fbf; }
.st-confirmed { color: var(--warn); }
.st-paid, .st-done { color: var(--ok); }
.st-cancelled { color: var(--danger); }

/* ---------- Адаптивност ---------- */

@media (max-width: 860px) {
  .product, .about, .contact, .partner-grid { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Движение ---------- */

/* data-reveal: плавно появяване при превъртане (site.js слага .is-in веднъж).
   Скрито е само с JS (html.js) и без „намалено движение“ — иначе всичко си е на място.
   Анимация с translate, за да не се бие с transform/transition на самия елемент. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; }
  .js [data-reveal].is-in { animation: reveal .7s var(--ease) backwards; }
  .js [data-reveal-delay="1"].is-in { animation-delay: .08s; }
  .js [data-reveal-delay="2"].is-in { animation-delay: .16s; }
  .js [data-reveal-delay="3"].is-in { animation-delay: .24s; }
  /* Подписът долу: точката „пада“ след името */
  .js .ftr-sign.is-in .wm-dot { animation: point-in .7s var(--ease) .45s backwards; }
}
@keyframes reveal { from { opacity: 0; translate: 0 16px; } }
@keyframes point-in { from { opacity: 0; scale: 0; } }

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