/* ==========================================================================
   Хоспис „Борис Дали“ — стилове
   Палитра: цветовете на hospis.carbonstealth.eu (amber · корал · кремав · кафяв).
   Всички двойки текст/фон са изчислени за WCAG 2.1 AA (≥4.5:1):
     кафяв #3A2E24 върху amber #E09030 = 5.1 · amber-ink #8F4F06 върху кремав = 6.2
     основен текст #3A302A върху кремав = 12.4 · кремав върху кафяв = 12.7
   Без външни заявки: шрифтовете са самохоствани, иконите са CSS маски.
   ========================================================================== */

/* 1. Шрифтове (SIL OFL) — само кирилица и латиница ------------------------- */
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-latin-wght-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: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-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;
}

/* 2. Токени ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  --cream: #FFFAF5;      /* фон */
  --paper: #FFFFFF;      /* карти */
  --tint: #FFF3EA;       /* топъл фон на секции */
  --peach: #FFE8D8;
  --line: #F0DCC8;       /* тънки разделители */
  --line-strong: #E4C9AC;

  --bark: #3A2E24;       /* тъмно кафяво: заглавия, футър */
  --bark-deep: #2B2119;
  --ink: #3A302A;        /* основен текст */
  --ink-2: #5A4A3E;      /* вторичен текст */

  --amber: #E09030;      /* марков цвят — само като запълване (с тъмен текст) */
  --amber-deep: #C87820;
  --amber-light: #F0B050;
  --amber-ink: #8F4F06;  /* amber за ТЕКСТ върху светъл фон (6.2:1) */
  --rose: #E07048;       /* корал — само декорация */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-1: 0 1px 2px rgba(58,46,36,.06), 0 6px 16px -6px rgba(58,46,36,.10);
  --shadow-2: 0 24px 48px -20px rgba(58,46,36,.38);
  --ease: cubic-bezier(.2,.7,.2,1);

  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4.5vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.75rem);
  --header-h: 76px;
}

/* 3. База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--bark); letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.07; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.14; }
h3 { font-size: 1.28rem; line-height: 1.3; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--amber-ink); text-underline-offset: .2em; text-decoration-thickness: .075em; transition: color .2s; }
a:hover { color: var(--bark); }
::selection { background: var(--amber-light); color: var(--bark); }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--amber-light); }
[hidden] { display: none !important; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; }
.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; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .75rem 1.2rem;
  background: var(--bark); color: #fff; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: clamp(1.14rem, 1.55vw, 1.3rem); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1rem;
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--amber); border-radius: 2px; flex: none; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 + p { margin-top: 1rem; }

/* 4. Икони (CSS маски — нула допълнителни заявки) ------------------------- */
.i {
  display: inline-block; flex: none; width: 1.25em; height: 1.25em; background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
:root {
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-mail-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v13H4z'/%3E%3Cpath d='m4 6 8 6 8-6'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
}
.i-phone { --i: var(--i-phone); }
.i-mail { --i: var(--i-mail); }
.i-pin { --i: var(--i-pin); }
.i-facebook { --i: var(--i-facebook); }
.i-arrow { --i: var(--i-arrow); }
.i-check { --i: var(--i-check); }
.i-menu { --i: var(--i-menu); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-copy { --i: var(--i-copy); }
.i-plus { --i: var(--i-plus); }
.i-mail-out { --i: var(--i-mail-out); }


.ic { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--tint); border: 1.5px solid var(--amber); color: var(--amber-ink); }
.ic .i { width: 1.3rem; height: 1.3rem; }
.pin-card .ic { width: 2.5rem; height: 2.5rem; background: var(--amber); color: var(--bark); }

/* 5. Бутони ---------------------------------------------------------------- */
.btn {
  --bg: var(--amber); --fg: var(--bark); --bd: var(--amber);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.55rem; border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { --bg: var(--amber-light); --bd: var(--amber-light); color: var(--bark); transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(143,79,6,.6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn--lg { min-height: 3.4rem; padding-inline: 2rem; font-size: 1.0625rem; }
.btn--ghost { --bg: transparent; --bd: var(--bark); --fg: var(--bark); }
.btn--ghost:hover { --bg: var(--bark); --bd: var(--bark); color: var(--cream); box-shadow: none; }
.btn--light { --bg: var(--cream); --bd: var(--cream); --fg: var(--bark); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--outline-light { --bg: transparent; --bd: rgba(255,250,245,.55); --fg: var(--cream); }
.btn--outline-light:hover { --bg: var(--cream); --bd: var(--cream); color: var(--bark); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* 6. Хедър и навигация ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,250,245,.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--bark); text-decoration: none; }
.brand:hover { color: var(--bark); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: grid; line-height: 1.12; }
.brand__name { font: 700 1.15rem/1.15 var(--serif); letter-spacing: -.01em; }
.brand__sub { font: 600 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--bark); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--tint); border-color: var(--amber); }
.nav-toggle .i { width: 1.45rem; height: 1.45rem; }
.nav-toggle[aria-expanded="true"] .i-menu { --i: var(--i-close); }

.nav-panel { display: flex; align-items: center; gap: .35rem; }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: .6rem .85rem; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; transition: color .2s, background-color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--bark); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--bark); }
.nav-phone { margin-left: .6rem; }
.nav-phone .btn { min-height: 2.75rem; padding: .5rem 1.2rem; font-size: .975rem; }
.nav-extra { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: .5rem var(--gutter) 1.75rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { display: block; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 1.05rem .25rem; font: 600 1.3rem/1.2 var(--serif); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--amber-ink); }
  .nav-phone { margin: 1.4rem 0 0; }
  .nav-phone .btn { width: 100%; min-height: 3.4rem; font-size: 1.1rem; }
  .nav-extra { display: block; margin-top: 1.1rem; color: var(--ink-2); font-size: .975rem; }
  .nav-extra a { color: var(--bark); font-weight: 600; }
}
@media (max-width: 420px) { .brand__sub { display: none; } .brand__name { font-size: 1.05rem; } }

/* заглавната лента получава сянка при скрол — само CSS, без JS */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header { animation: header-on linear both; animation-timeline: scroll(root block); animation-range: 0 140px; }
    @keyframes header-on { to { border-bottom-color: var(--line); box-shadow: 0 10px 28px -18px rgba(58,46,36,.45); } }
  }
}

/* 7. Начало: hero ---------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.25rem, 5.5vw, 5rem) clamp(3rem, 7vw, 6.25rem); }
.hero::before {
  content: ""; position: absolute; top: -18%; right: -14%; width: min(68vw, 760px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240,176,80,.30), rgba(240,176,80,0) 72%);
}
.hero__grid { position: relative; display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero h1 { margin-bottom: 1.35rem; }
.hero .lead { max-width: 34rem; }
.hero .actions { margin-top: 2rem; }
.hero__facts { display: grid; gap: .65rem; margin: 2.25rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 34rem; }
.hero__facts li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; }
.hero__facts .i { color: var(--amber-ink); margin-top: .12em; }

.hero__visual { position: relative; width: min(100%, 27.5rem); margin-inline: auto; padding-bottom: 1.6rem; }
.hero__visual::before {
  content: ""; position: absolute; inset: 1.1rem -1rem 2.7rem 1rem; z-index: 0; border: 2px solid var(--amber);
  border-radius: 999px 999px var(--r-lg) var(--r-lg); opacity: .85;
}
.arch { position: relative; z-index: 1; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--peach); box-shadow: var(--shadow-2); }
.arch img { width: 100%; aspect-ratio: 11 / 12; object-fit: cover; }
.pin-card {
  position: absolute; z-index: 2; left: -1.25rem; bottom: 0; display: flex; align-items: center; gap: .85rem; max-width: 17.5rem;
  padding: .85rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2);
  color: var(--ink); font-size: .9375rem; line-height: 1.4; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s;
}
.pin-card:hover { transform: translateY(-3px); color: var(--ink); }
.pin-card strong { display: block; color: var(--bark); font-size: 1rem; }
@media (max-width: 520px) { .pin-card { left: .6rem; } .hero__visual::before { inset: 1.1rem -.4rem 2.7rem .4rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .arch img { animation: settle 1.4s var(--ease) both; }
  .hero__visual::before { animation: settle-line 1.1s var(--ease) .1s both; }
  @keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
  @keyframes settle-line { from { transform: translate(-14px, 14px); opacity: 0; } to { transform: none; opacity: .85; } }
}

/* 8. Редове с услуги ------------------------------------------------------- */
.rows { list-style: none; border-top: 1px solid var(--line-strong); }
.row {
  position: relative; display: grid; gap: .35rem 2rem; align-items: baseline; padding: clamp(1.4rem, 3vw, 2.1rem) .25rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: background-color .3s, padding .3s var(--ease);
}
@media (min-width: 760px) { .row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.55fr) 2.5rem; } }
.row:hover { background: var(--tint); padding-inline: 1.1rem; color: var(--ink); }
.row__num { font: 600 1.9rem/1 var(--serif); color: var(--amber-ink); }
.row h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.row p { color: var(--ink-2); margin: 0; }
.row__go { display: none; justify-self: end; align-self: center; color: var(--amber-ink); transition: transform .3s var(--ease); }
@media (min-width: 760px) { .row__go { display: block; } }
.row:hover .row__go { transform: translateX(6px); }

/* 9. Разделени секции (текст + снимки) ------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--flip > :first-child { order: 2; } }
.split__text > * + * { margin-top: 1.1rem; }
.split__text h2 { margin-bottom: .35rem; }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-1); aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { margin-top: .65rem; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.figure--arch img { border-radius: 999px 999px var(--r) var(--r); aspect-ratio: 5 / 6; box-shadow: var(--shadow-2); }
.figure--tall img { aspect-ratio: 2 / 3; }

.duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: end; }
.duo .figure:first-child img { aspect-ratio: 4 / 5; }
.duo .figure:last-child img { aspect-ratio: 4 / 5; }
.duo .figure:last-child { margin-bottom: 2.25rem; }

/* три колони с кратки факти */
.col { padding-top: 1.4rem; border-top: 1px solid var(--line-strong); position: relative; }
.col::before { content: ""; position: absolute; top: -2px; left: 0; width: 3rem; height: 3px; background: var(--amber); border-radius: 3px; }
.col h3 { margin-bottom: .65rem; }
.col p { color: var(--ink-2); }

.stack-cols { display: grid; gap: 1.75rem; margin-top: 2rem; }
.stack-cols .col { padding-top: 1.25rem; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.collage .figure { position: relative; }
.collage .figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage .tall { grid-row: span 2; }
.collage .tall img { aspect-ratio: auto; }
.collage figcaption {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 2.2rem .9rem .75rem; border-radius: 0 0 var(--r) var(--r);
  color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35; background: linear-gradient(180deg, transparent, rgba(43,33,25,.88) 2rem);
}

.trio { display: grid; gap: 1rem; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* списъци */
.ticks { display: grid; gap: .7rem; list-style: none; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; background-color: var(--amber-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}

/* 10. ЧЗВ (native details) ------------------------------------------------- */
.faq-layout { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem .25rem;
  font: 600 1.15rem/1.35 var(--serif); color: var(--bark); cursor: pointer; list-style: none; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem; background-color: var(--amber-ink);
  -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--amber-ink); }
.faq .faq__a { padding: 0 3rem 1.5rem .25rem; color: var(--ink-2); }

/* 11. CTA лента (тъмна) ---------------------------------------------------- */
.band { background: var(--bark); color: var(--cream); position: relative; overflow: clip; }
.band::before {
  content: ""; position: absolute; right: -6%; bottom: -55%; width: min(46vw, 520px); aspect-ratio: 1 / 1.1; pointer-events: none;
  border: 2px solid rgba(240,176,80,.35); border-radius: 999px 999px 0 0;
}
.band__grid { position: relative; display: grid; gap: 2rem 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 860px) { .band__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.band h2 { color: var(--cream); }
.band p { color: #E6D9CB; margin-top: .9rem; max-width: 34rem; }
.band .actions { margin-top: 1.75rem; }
.phones { display: grid; gap: .55rem; list-style: none; }
.phones a {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1.2rem; border: 1px solid rgba(255,250,245,.22); border-radius: var(--r);
  color: var(--cream); font: 600 1.35rem/1.2 var(--serif); text-decoration: none; transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.phones a:hover { background: rgba(255,250,245,.08); border-color: var(--amber-light); color: #fff; transform: translateX(4px); }
.phones .i { color: var(--amber-light); }

/* 12. Вътрешни страници: заглавие ------------------------------------------ */
.page-head { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.page-head::after {
  content: ""; position: absolute; right: clamp(-4rem, -2vw, 0rem); top: 50%; width: clamp(9rem, 22vw, 17rem); aspect-ratio: 1 / 1.15;
  border: 2px solid var(--amber); border-radius: 999px 999px var(--r) var(--r); opacity: .55; transform: translateY(-50%); pointer-events: none;
}
.crumbs { margin: 0 0 1.4rem; font-size: .9rem; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--amber-ink); }
.page-head h1 { max-width: 15ch; }
.page-head .lead { margin-top: 1.25rem; max-width: 40rem; }

/* 13. „Накратко“ (dl) ------------------------------------------------------- */
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; gap: .15rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.facts dt { font: 700 .8125rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
.facts dd { margin: 0; }
.facts a { color: var(--bark); font-weight: 600; }

.lede { font: 500 clamp(1.4rem, 2.6vw, 1.95rem)/1.4 var(--serif); color: var(--bark); text-wrap: pretty; }

/* 14. Услуги: подробно ----------------------------------------------------- */
.svc { scroll-margin-top: calc(var(--header-h) + 1rem); }
.svc__num { display: block; margin-bottom: .6rem; font: 600 1.1rem/1 var(--serif); color: var(--amber-ink); letter-spacing: .08em; }
.svc .lead { margin-top: .6rem; }
.svc .ticks { margin-top: 1.5rem; }
.svc + .svc { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* 15. Екип ----------------------------------------------------------------- */
.roster-group + .roster-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.roster-group h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.roster { display: grid; gap: .9rem; list-style: none; }
@media (min-width: 560px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--amber); }
.person__mono {
  display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50% 50% 14px 14px;
  background: var(--tint); border: 1.5px solid var(--amber); font: 600 1.15rem/1 var(--serif); color: var(--amber-ink);
}
.person__name { display: block; font: 600 1.08rem/1.3 var(--serif); color: var(--bark); }
.person__role { display: block; color: var(--ink-2); font-size: .94rem; }

/* 16. Галерия ------------------------------------------------------------- */
.gallery-group + .gallery-group { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.gallery-group h2 { font-size: 1.55rem; margin-bottom: 1.25rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (max-width: 459px) { .gallery { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery--2 .shot { aspect-ratio: 16 / 10; }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--peach); box-shadow: var(--shadow-1); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 2.6rem 1rem .85rem; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(43,33,25,.88) 2.2rem); opacity: 0; transform: translateY(.5rem); transition: opacity .35s, transform .35s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .shot::after { opacity: 1; transform: none; } }

.lightbox {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow: hidden;
}
.lightbox::backdrop { background: rgba(33,25,19,.94); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 1rem; width: min(100% - 2rem, 62rem); padding: 4rem 0 5.5rem; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); border-radius: var(--r-sm); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: var(--bark); }
.lightbox__cap { text-align: center; max-width: 40rem; font-size: 1.02rem; line-height: 1.5; }
.lightbox__count { display: block; margin-top: .25rem; color: #CDBBA8; font-size: .85rem; letter-spacing: .08em; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border: 1.5px solid rgba(255,250,245,.4);
  border-radius: 50%; background: rgba(255,250,245,.08); color: var(--cream); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s;
}
.lightbox__btn:hover { background: var(--amber); border-color: var(--amber); color: var(--bark); }
.lightbox__btn .i { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } }

/* 17. Контакти ------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.contact-list { display: grid; gap: 1.35rem; list-style: none; margin: 1.75rem 0 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list b { display: block; font: 700 .8125rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
.contact-list a { color: var(--bark); font-weight: 600; text-decoration-color: var(--amber); }
.contact-list address { font-style: normal; }
.contact-list .phone-list { display: grid; gap: .15rem; }
.contact-list .phone-list a { width: fit-content; }

.map-card { margin-top: 2rem; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-1); }
.map-card__body { display: grid; gap: .85rem; padding: 1.5rem; background:
  radial-gradient(circle at 85% 20%, rgba(240,176,80,.22), transparent 55%),
  repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px),
  repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px), var(--tint); min-height: 14.5rem; align-content: end; }
.map-card__body h3 { font-size: 1.15rem; }
.map-card__body p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.map-card iframe { display: block; width: 100%; height: 22rem; border: 0; }

.form-card { padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.form-card h2 { font-size: 1.7rem; }
.form-card > p { margin-top: .6rem; color: var(--ink-2); }
.form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--bark); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--amber); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--bark); background: #fff; box-shadow: 0 0 0 4px rgba(240,176,80,.4); }
.field [aria-invalid="true"] { border-color: #A63A12; background: #FFF4EF; }
.field .err { display: none; color: #A63A12; font-size: .9rem; font-weight: 600; }
.field [aria-invalid="true"] ~ .err { display: block; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-hint { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.form-note { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.form-status { margin: 0; min-height: 0; font-weight: 600; color: var(--amber-ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.js-only[hidden] { display: none; }

/* 18. Правни страници ------------------------------------------------------ */
.doc { max-width: 48rem; }
.doc h2 { font-size: 1.6rem; margin: 2.75rem 0 .9rem; }
.doc h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.doc ul { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 0 0 1.1em; }
.doc li::marker { color: var(--amber-deep); }
.doc a { word-break: break-word; }
.toc { padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); }
.toc strong { font-family: var(--serif); font-size: 1.1rem; color: var(--bark); }
.toc ol { margin-top: .7rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.note { padding: 1rem 1.25rem; background: var(--tint); border-left: 4px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; color: var(--ink-2); }

/* 19. Футър ---------------------------------------------------------------- */
.site-footer { background: var(--bark); color: #E6D9CB; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: var(--cream); } .site-footer .brand__sub { color: #CDBBA8; }
.site-footer .brand:hover { color: #fff; }
.footer-about { margin-top: 1.1rem; max-width: 22rem; color: #CDBBA8; font-size: .975rem; }
.site-footer h2 { margin-bottom: 1rem; font: 700 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-light); }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: #E6D9CB; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber-light); text-decoration: underline; text-underline-offset: .2em; }
.site-footer address { font-style: normal; display: grid; gap: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,250,245,.14); font-size: .875rem; color: #B9A592; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-bottom a { color: #CDBBA8; }

/* 20. Благодарност/404 ----------------------------------------------------- */
.error-page { min-height: 62vh; display: grid; align-items: center; padding-block: 4rem; }
.error-code { margin: 0 0 .1em; font: 600 clamp(5rem, 16vw, 9rem)/1 var(--serif); color: var(--amber-deep); letter-spacing: -.04em; }

/* 21. Ефект при скрол (само CSS; браузър без поддръжка просто показва всичко) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* 22. Печат (контактите на хартия) ---------------------------------------- */
@media print {
  .site-header, .nav-toggle, .skip, .band, .hero__visual, .actions, .site-footer ul, .form-card, .map-card, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; } a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .section { padding-block: 1.2rem; }
}

/* 23. Принудителни цветове / по-малко движение ----------------------------- */
@media (forced-colors: active) {
  .btn, .person, .row { border: 1px solid CanvasText; }
  .i, .ticks li::before, .faq summary::after { forced-color-adjust: none; background-color: ButtonText; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
