/* ==========================================================================
   Адвокат Гинка Стайкова — основен стил
   .ECOMM
   ========================================================================== */

/* --- Шрифтове (самостоятелно хоствани, без външни заявки) ----------------- */

@font-face {
  font-family: 'GS Head';
  src: url('../fonts/head-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GS Head';
  src: url('../fonts/head-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GS Body';
  src: url('../fonts/serif-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GS Body';
  src: url('../fonts/serif-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Променливи ---------------------------------------------------------- */

:root {
  --paper: #F6F5F2;
  --paper-2: #ECEAE4;
  --ink: #14181D;
  --accent: #16384C;
  --accent-soft: #3D6478;
  --muted: #67645E;
  --line: #D8D5CC;
  --field-line: #8F8B80;

  --head: 'GS Head', 'Segoe UI', system-ui, sans-serif;
  --body: 'GS Body', Georgia, 'Times New Roman', serif;

  --base: 1.125rem;      /* 18px — минимум за четимост */
  --measure: 68ch;
  --wrap: 1200px;
  --gap: clamp(5rem, 11vw, 10rem);
}

/* Режим за улеснено четене */
html.text-l  { font-size: 112.5%; }
html.text-xl { font-size: 125%; }

/* --- Основа -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--base);
  line-height: 1.78;
  font-feature-settings: 'locl' 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(22, 56, 76, 0.35);
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
}
a:hover { color: var(--accent-soft); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--head);
  text-wrap: balance;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); letter-spacing: -0.018em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.012em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.16em; line-height: 1.65; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.94rem; line-height: 1.6; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.8rem 1.2rem; z-index: 200;
}
.skip:focus { left: 0; }

/* --- Обвивки ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--gap); }
.section--tint { background: var(--paper-2); }

/* Двуколонно: заглавие вляво, съдържание вдясно */
.split { display: grid; gap: 2rem clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
  .split > .split__head { position: sticky; top: 6.5rem; align-self: start; }
}
.split__head h2 { margin-bottom: 0.35em; }
.split__head p { font-size: 0.96rem; color: var(--muted); }

/* Прекъсната линия — по мотив на пътната маркировка */
.rule {
  height: 2px; border: 0; margin: 0;
  background-image: linear-gradient(to right, var(--line) 0 2.5rem, transparent 2.5rem 4.5rem);
  background-size: 4.5rem 2px;
}

/* --- Шапка --------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 245, 242, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand {
  display: grid;
  justify-items: start;
  align-content: center;
  text-decoration: none;
  line-height: 1;
}
.brand__logo {
  display: block;
  height: 2.4rem;
  width: auto;
  transition: height 0.25s ease;
}


.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.97rem; padding-block: 0.3rem;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  background-image: linear-gradient(to right, var(--accent) 0 0.5rem, transparent 0.5rem 0.9rem);
  background-size: 0.9rem 2px;
  background-repeat: repeat-x;
  background-position: bottom left;
  padding-bottom: 0.2rem;
}

.call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.62rem 1.1rem; border-radius: 2px; font-weight: 600; font-size: 0.97rem;
  white-space: nowrap;
}
.call:hover { background: var(--accent-soft); color: #fff; }

.textsize { display: flex; gap: 0.25rem; }
.textsize button {
  font-family: var(--head); background: transparent; color: var(--muted);
  border: 1px solid var(--field-line); border-radius: 2px; cursor: pointer;
  width: 2.25rem; height: 2.25rem; line-height: 1; padding: 0;
}
.textsize button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.textsize button:nth-child(2) { font-size: 1.02rem; }
.textsize button:nth-child(3) { font-size: 1.2rem; }

.nav__links { display: contents; }

@media (max-width: 47.9375rem) {

  /* Решетка от два реда:
       ред 1 — име вляво, копчета за размер вдясно
       ред 2 — връзките, на цяла ширина
     Гъвкавата подредба не върши работа тук, защото връзките са вложени
     в <nav> и повличат целия блок на собствен ред. */

  .site-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'brand size'
      'links links';
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
  }

  .brand { grid-area: brand; }
  .brand__logo { height: 2rem; }

  /* nav изчезва като кутия, за да могат децата му да влязат в решетката */
  .nav { display: contents; }

  .textsize { grid-area: size; }
  .textsize button { width: 1.95rem; height: 1.95rem; border-color: var(--line); }
  .textsize button[aria-pressed='true'] { border-color: var(--accent); }

  .nav__links {
    grid-area: links;
    display: flex;
    gap: 1.3rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
  }
  .nav__links a { font-size: 0.93rem; white-space: nowrap; padding-block: 0.1rem; }

  /* Бутонът за обаждане в шапката е излишен: същото действие стои
     постоянно в долната лента. */
  .site-head .call { display: none; }

  /* На тесен екран текстът минава плътно зад шапката и полупрозрачността
     изглежда мръсно. Затова тук фонът е плътен. */
  .site-head {
    background: var(--paper);
    backdrop-filter: none;
  }
}

/* --- Начална секция ------------------------------------------------------ */

.hero {
  background: var(--paper-2);
  display: grid;
  grid-template-areas: 'stack';
  isolation: isolate;
}
.hero__media, .hero__text { grid-area: stack; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: 100%;
  min-height: clamp(21rem, 58vh, 38rem);
  object-fit: cover; object-position: center 62%;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(246,245,242,0.94) 0%,
      rgba(246,245,242,0.86) 28%,
      rgba(246,245,242,0.42) 52%,
      rgba(246,245,242,0.06) 78%,
      rgba(246,245,242,0) 100%),
    linear-gradient(to bottom,
      rgba(246,245,242,0.26) 0%,
      rgba(246,245,242,0.04) 38%,
      rgba(246,245,242,0.04) 72%,
      rgba(246,245,242,0.22) 100%);
}
.hero__text {
  z-index: 1;
  align-self: start;
  padding-block: clamp(2.2rem, 6vh, 4.5rem) clamp(2.5rem, 8vh, 6rem);
}
.hero h1 { margin-bottom: 0.3em; }
.hero__sub { font-size: clamp(1.05rem, 2.1vw, 1.3rem); max-width: 34ch; color: var(--ink); }
.hero__meta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hero__text > *:nth-child(2) { animation-delay: 0.1s; }
  .hero__text > *:nth-child(3) { animation-delay: 0.2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.7rem); } to { opacity: 1; transform: none; } }
}

/* --- Ситуации ------------------------------------------------------------ */

.cases { display: grid; gap: 0; }
.case {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case h3 { margin-bottom: 0.35em; }
.case p { color: var(--muted); margin-bottom: 0.6em; }
.case a { font-size: 0.96rem; }

@media (min-width: 48rem) {
  .cases { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .case:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* --- Изображение на пълна ширина ----------------------------------------- */

.band img { width: 100%; height: clamp(13rem, 34vh, 24rem); object-fit: cover; }

/* --- Стъпки (истинска последователност — затова са номерирани) ------------ */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--head); font-size: 1.5rem; color: var(--accent-soft);
}
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 1.12rem; margin-bottom: 0.2em; }
.steps p { color: var(--muted); margin: 0; }

/* --- Въпроси и отговори --------------------------------------------------- */

.faq { max-width: var(--measure); }
.faq details {
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--head); font-size: 1.12rem; line-height: 1.45;
  display: flex; gap: 1rem; align-items: baseline; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.35rem; color: var(--accent-soft); flex: none; line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details > p { margin-top: 0.9rem; color: var(--muted); }

/* --- Списъци с услуги ----------------------------------------------------- */

.area { padding-block: 2.4rem; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area ul { margin: 0.4rem 0 0; padding-left: 1.15rem; max-width: var(--measure); }
.area li { margin-bottom: 0.42em; }
.area li::marker { color: var(--accent-soft); }

/* Действие непосредствено след списък с данни. */
.after-dl { margin-top: 2.6rem; }

/* --- Контакти ------------------------------------------------------------- */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 55rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.dl { margin: 0; }
.dl div { padding-block: 0.85rem; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.dl div:last-child { border-bottom: 1px solid var(--line); }
.dl dt { font-size: 0.87rem; color: var(--muted); }
.dl dd { margin: 0; font-size: 1.06rem; }
.dl dd a { text-decoration: none; }
.dl dd a:hover { text-decoration: underline; }

/* Карта с двуклик */
.map-consent {
  border: 1px solid var(--line); background: var(--paper-2);
  padding: 1.6rem; text-align: left;
}
.map-consent p { font-size: 0.95rem; color: var(--muted); }
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); }

/* --- Форма ---------------------------------------------------------------- */

.notice {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin-bottom: 2rem;
  font-size: 0.97rem; color: var(--muted);
}
.notice p { max-width: none; }

.field { margin-bottom: 1.4rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.97rem; font-weight: 600; }
.field .hint { display: block; font-size: 0.87rem; color: var(--muted); font-weight: 400; margin-top: 0.1rem; }

input[type="text"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1.02rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 2px;
  padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8C3A2A; border-width: 2px; }
textarea { min-height: 9rem; resize: vertical; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; }
.check input { margin-top: 0.42rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 2px;
  padding: 0.78rem 1.7rem;
}
.btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
a.btn { text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.8rem; font-size: 0.99rem; }
.msg--ok { background: #E7EDEA; border: 1px solid #B9CCC3; }
.msg--err { background: #F2E9E4; border: 1px solid #D9C3B4; }

/* --- Подвал --------------------------------------------------------------- */

.site-foot {
  background: var(--accent); color: #E6EAED;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.97rem;
}
.site-foot a { color: #fff; text-decoration-color: rgba(255,255,255,0.45); }
.site-foot a:hover { color: #fff; }
.site-foot h2 { color: #fff; font-size: 1.25rem; margin-bottom: 0.7em; }
.foot-grid { display: grid; gap: 2.4rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.45em; }
.foot-note {
  margin-top: 2.8rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.88rem; color: #C3CBD2; max-width: 80ch;
}
.foot-note p { max-width: none; }

/* --- Правен текст --------------------------------------------------------- */

.legal { max-width: 72ch; }
.legal h2 { margin-top: 2.4rem; }
.legal h3 { margin-top: 1.8rem; }
.legal ul { padding-left: 1.15rem; }
.legal li { margin-bottom: 0.4em; max-width: 68ch; }

/* --- Грешки във формата --------------------------------------------------- */

.err {
  margin: 0.4rem 0 0;
  font-size: 0.93rem;
  color: #8C3A2A;
  max-width: var(--measure);
}

/* --- Заместител на липсващо изображение ----------------------------------- */

.img-placeholder {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.hero__media.img-placeholder { min-height: clamp(21rem, 58vh, 38rem); }
.band.img-placeholder { height: clamp(13rem, 34vh, 24rem); }

/* --- Страница за периода на изработка ------------------------------------- */

body.holding {
  display: flex;
  min-height: 100vh;
  align-items: center;
}
.holding__inner { width: 100%; padding-block: clamp(3rem, 10vh, 7rem); }
.holding__inner .wrap { max-width: 44rem; }
.holding__label {
  font-size: 0.95rem;
  color: var(--muted);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
  background-image: linear-gradient(to right, var(--line) 0 2.5rem, transparent 2.5rem 4.5rem);
  background-size: 4.5rem 2px;
  background-repeat: repeat-x;
  background-position: bottom left;
}
.holding h1 { margin-bottom: 0.4em; }

/* ==========================================================================
   Спокоен начален екран
   Само име, един ред и телефон. Празнотата върши работата.
   ========================================================================== */

.hero { min-height: min(88vh, 54rem); }
.hero__media img { min-height: min(88vh, 54rem); }
.hero__media.img-placeholder { min-height: min(88vh, 54rem); background: #1B242C; }

.hero__text {
  align-self: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}
.hero h1 { margin-bottom: 0.5em; }
.hero__sub {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--ink);
}
.hero__meta { margin-top: clamp(2rem, 5vh, 3.4rem); gap: 1rem 1.8rem; }

/* ==========================================================================
   Печат на вписването
   Проверимият факт, поднесен като реквизит върху документ, не като ред.
   ========================================================================== */

.seal {
  display: inline-grid;
  gap: 0.15rem;
  padding: 1.15rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.5);
  max-width: 27rem;
}
.seal__label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.seal__main {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
}
.seal__meta { font-size: 0.95rem; color: var(--muted); }
.seal__meta b { font-weight: 400; color: var(--ink); }

/* ==========================================================================
   Дишане при скролване
   Шест пиксела и две десети от секундата. Не анимация.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(6px); }
  .rise.seen {
    opacity: 1; transform: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .rise.seen:nth-child(2) { transition-delay: 0.06s; }
  .rise.seen:nth-child(3) { transition-delay: 0.12s; }
}

/* ==========================================================================
   Дребни поправки на ритъма
   ========================================================================== */

.split__head h2 {
  margin-bottom: 0.45em;
  /* Дългите съставни думи в лявата колона трябва да се пренасят,
     иначе излизат върху основния текст. */
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.008em;
  /* Разчитаме на меките преноси в текста. Разкъсването където дойде
     остава само като последна мярка. */
  hyphens: manual;
  overflow-wrap: break-word;
}
.case { padding-block: 2rem; }
.cases { column-gap: 4rem; }
.faq details { padding-block: 1.35rem; }
.dl div { padding-block: 1rem; }
.band img { height: clamp(15rem, 42vh, 30rem); }


/* ==========================================================================
   Лента за свързване — само на телефон
   ========================================================================== */

.actionbar { display: none; }

@media (max-width: 47.9375rem) {

  .actionbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(246, 245, 242, 0.97);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -6px 24px rgba(20, 24, 29, 0.07);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .actionbar__item {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    padding: 0.6rem 0.2rem 0.55rem;
    text-decoration: none;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .actionbar__item + .actionbar__item { border-left: 1px solid var(--line); }

  .actionbar__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--accent);
    transition: background 0.16s ease, color 0.16s ease;
  }
  .actionbar__icon svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }

  /* Обаждането е основното действие и носи плътния цвят. */
  .actionbar__item:first-child .actionbar__icon {
    background: var(--accent);
    color: #fff;
  }

  .actionbar__item:active .actionbar__icon { background: var(--accent-soft); color: #fff; }

  .actionbar__label {
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
  }

  /* Лентата не бива да покрива последния ред на страницата. */
  body { padding-bottom: 5.1rem; }

  /* При въвеждане във формата се скрива, за да не закрива полето. */
  body.typing .actionbar { transform: translateY(110%); }
  .actionbar { transition: transform 0.22s ease; }
}

@media (max-width: 22.5rem) {
  .actionbar__label { font-size: 0.62rem; letter-spacing: 0.04em; }
  .actionbar__icon { width: 2.2rem; height: 2.2rem; }
}

/* ==========================================================================
   Поправки за телефон
   ========================================================================== */

@media (max-width: 47.9375rem) {

  /* На тесен екран горната част на снимката остава чиста, а текстът
     сяда долу върху плавно сгъстяващо се було. Така снимката се вижда,
     а текстът пак се чете. */
  .hero__media::after {
    background:
      linear-gradient(to bottom,
        rgba(246,245,242,0.06) 0%,
        rgba(246,245,242,0.10) 26%,
        rgba(246,245,242,0.55) 42%,
        rgba(246,245,242,0.88) 56%,
        rgba(246,245,242,0.96) 72%,
        rgba(246,245,242,0.98) 100%);
  }

  .hero__text { align-self: end; padding-block: 0 clamp(2rem, 5vh, 3rem); }

  .hero { min-height: min(86vh, 46rem); }
  .hero__media img,
  .hero__media.img-placeholder { min-height: min(86vh, 46rem); }
  /* Тесният екран реже снимката отстрани, не отгоре. Левият край
     дава колонадата в перспектива, без светлия прозорец. */
  .hero__media img { object-position: 10% center; }

  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); }
  .hero__sub { max-width: 34ch; font-size: 1.05rem; line-height: 1.5; }
  .hero__meta { margin-top: 2rem; }

  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .seal { max-width: 100%; padding: 1rem 1.2rem; }
  .cases { column-gap: 0; }
}

/* ==========================================================================
   Тъмна рамка
   Шапка, лента за свързване и подвал в петролния цвят. Съдържанието
   остава светло — рамката дава характера, текстът остава четим.
   ========================================================================== */

.site-head {
  background: var(--accent);
  border-bottom: 0;
  backdrop-filter: none;
  color: #E9EDF0;
}

.nav__links a { color: #DDE4E9; }
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] {
  color: #fff;
  background-image: linear-gradient(to right, #fff 0 0.5rem, transparent 0.5rem 0.9rem);
}

.textsize button { border-color: rgba(255, 255, 255, 0.32); color: #C3CED6; }
.textsize button:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.textsize button[aria-pressed="true"] { border-color: #fff; color: #fff; }

.site-head .call {
  background: #fff; color: var(--accent);
  border: 1px solid #fff;
}
.site-head .call:hover { background: transparent; color: #fff; }

.site-head :focus-visible { outline-color: #fff; }

/* Пълните и съкратените надписи в менюто */
.nav-short { display: none; }

/* ==========================================================================
   Лента за свързване в тъмно
   ========================================================================== */

@media (max-width: 47.9375rem) {

  .actionbar {
    background: var(--accent);
    backdrop-filter: none;
    border-top: 0;
    box-shadow: 0 -8px 26px rgba(20, 24, 29, 0.18);
  }
  .actionbar__item { color: #E9EDF0; }
  .actionbar__item + .actionbar__item { border-left-color: rgba(255, 255, 255, 0.16); }
  .actionbar__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .actionbar__item:first-child .actionbar__icon { background: #fff; color: var(--accent); }
  .actionbar__item:active .actionbar__icon { background: rgba(255, 255, 255, 0.28); color: #fff; }
  .actionbar__label { color: #DDE4E9; }
  .actionbar :focus-visible { outline-color: #fff; }

  /* На тесен екран менюто показва съкратените надписи */
  .nav-full { display: none; }
  .nav-short { display: inline; }

  .site-head { background: var(--accent); }
  .nav__links { border-top-color: rgba(255, 255, 255, 0.18); }
}

/* ==========================================================================
   Вариант с копче за меню
   ========================================================================== */

.burger { display: none; }

@media (max-width: 47.9375rem) {
  body.nav-hamburger .site-head__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: 'brand size burger';
  }
  body.nav-hamburger .burger {
    grid-area: burger;
    display: grid;
    gap: 4px;
    align-content: center;
    width: 2.6rem; height: 2.4rem;
    padding: 0.45rem 0.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 2px;
    cursor: pointer;
  }
  body.nav-hamburger .burger span {
    display: block; height: 2px; background: #fff; border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  body.nav-hamburger .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-hamburger .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  body.nav-hamburger .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body.nav-hamburger .nav__links {
    grid-area: auto;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 0;
  }
  body.nav-hamburger .nav__links.open { display: flex; }
  body.nav-hamburger .nav__links a {
    padding-block: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
  }
  body.nav-hamburger .nav-full { display: inline; }
  body.nav-hamburger .nav-short { display: none; }
}

/* ==========================================================================
   Тънка линия за прогрес
   ========================================================================== */

.progress {
  position: fixed; inset-inline: 0; top: 0; height: 2px;
  z-index: 130; pointer-events: none;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: #fff;
  opacity: 0.55;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Шапка: широка най-горе, свита при скролване (само широк екран)
   ========================================================================== */

.site-head { position: sticky; transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-head__inner { transition: padding-block 0.25s ease; }

.head-extra { display: none; }

@media (min-width: 48rem) {

  /* Редът виси ПОД шапката, извън потока. Така свиването му не променя
     височината на документа. Иначе съдържанието подскача нагоре, прагът
     се пресича обратно и шапката започва да трепти. */
  /* Кутията е на цяла ширина и носи фона.
     Съдържанието вътре е в колоната на страницата. */
  .head-extra {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: block;
    background: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.26s ease;
  }
  .head-extra__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.8rem;
    align-items: center;
    font-size: 0.86rem;
    color: #A9BAC6;
    padding-block: 0.6rem;
  }
  .head-extra a { color: #C8D3DB; text-decoration-color: rgba(255, 255, 255, 0.3); }
  .head-extra a:hover { color: #fff; }

  /* Постоянна височина на реда. Свиването променя само вида на нещата
     вътре, не и мястото, което шапката заема. Така съдържанието под нея
     не подскача в момента на свиването. */
  .site-head__inner { padding-block: 0.7rem; min-height: 4.3rem; }

  /* Логото се смалява вътре в поле с постоянна височина, за да не
     променя изобщо мястото, което шапката заема. */
  .brand { height: 3.2rem; align-content: center; }
  

  /* Свито състояние */
  body.is-scrolled .head-extra {
    opacity: 0;
    transform: translateY(-0.4rem);
    pointer-events: none;
  }
  body.is-scrolled .brand__logo { height: 2.05rem; }
  body.is-scrolled .site-head {
    background: rgba(22, 56, 76, 0.93);
    backdrop-filter: saturate(150%) blur(10px);
    box-shadow: 0 2px 18px rgba(20, 24, 29, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-head, .site-head__inner, .head-extra, .brand, .progress span { transition: none; }
}

/* ==========================================================================
   Лента долу за широк екран
   ========================================================================== */

.footrail { display: none; }

@media (min-width: 48rem) {

  .footrail {
    display: block;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 110;
    background: rgba(246, 245, 242, 0.94);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .footrail.show { transform: none; }

  .footrail__inner {
    display: flex; align-items: center; gap: 1.4rem;
    padding-block: 0.6rem;
    font-size: 0.95rem;
  }
  .footrail__name { font-family: var(--head); font-weight: 600; color: var(--ink); }
  .footrail__sep { flex: 1 1 auto; height: 1px; background: var(--line); }
  .footrail a { text-decoration: none; color: var(--accent); }
  .footrail a:hover { text-decoration: underline; }
  .footrail__cta { padding: 0.42rem 1rem; font-size: 0.92rem; }

  .totop {
    flex: none;
    width: 2.2rem; height: 2.2rem;
    display: grid; place-items: center;
    background: transparent; color: var(--accent);
    border: 1px solid var(--field-line); border-radius: 2px;
    cursor: pointer;
  }
  .totop svg { width: 1.05rem; height: 1.05rem; }
  .totop:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .footrail { transition: none; }
}

/* ==========================================================================
   Маркиран текст
   ========================================================================== */

::selection { background: rgba(22, 56, 76, 0.92); color: #F6F5F2; }

/* ==========================================================================
   Печат
   Страницата излиза като документ на кантората: бланка с реквизитите
   най-горе, номерация и адрес на източника най-долу.
   ========================================================================== */

@media print {

  @page { margin: 18mm 16mm 20mm; }

  html.text-l, html.text-xl { font-size: 100%; }

  body {
    background: #fff !important;
    background-image: none !important;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
    padding-bottom: 0 !important;
    overflow: visible;
  }

  /* Интерфейсът не се печата. */
  .site-head, .progress, .actionbar, .footrail, .textsize,
  .map-consent, .map-frame, form, .skip, .call, .btn, .nav { display: none !important; }

  /* Бланка най-горе на първата страница. */
  main::before {
    content: 'Адвокат Гинка Стайкова · Адвокатска колегия – Русе · личен номер 1200006570\A гр. Русе 7002, ул. „Ниш“ № 20, вх. 2, ет. 2 · 0888 81 84 85 · ginka_staikova@mail.bg';
    white-space: pre-line;
    display: block;
    font-size: 9pt;
    line-height: 1.45;
    padding-bottom: 6pt;
    margin-bottom: 14pt;
    border-bottom: 0.5pt solid #000;
  }

  .hero, .band, .img-placeholder { display: none !important; }
  .section { padding-block: 0 14pt !important; }
  .section--tint { background: none !important; border: 0 !important; }

  .split { display: block !important; }
  .split__head { position: static !important; }
  .split__head h2 { font-size: 13pt; margin-bottom: 2pt; }
  .split__head p { font-size: 9pt; margin-bottom: 8pt; }

  h1 { font-size: 17pt; }
  h2 { font-size: 13pt; }
  h3 { font-size: 11pt; }
  p, li { max-width: none; orphans: 3; widows: 3; }

  .rise { opacity: 1 !important; transform: none !important; }
  .cases { display: block !important; }
  .case, .area, .faq details { break-inside: avoid; }
  .faq details { display: block; }
  .faq details > p { display: block !important; }
  .faq summary::after { content: '' !important; }

  .seal { border: 0.5pt solid #000; background: none; padding: 6pt 8pt; }

  a { color: #000; text-decoration: none; }
  /* Адресът на връзката се изписва, за да има смисъл на хартия. */
  .legal a[href^="http"]::after,
  main a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 8.5pt; }

  .site-foot {
    background: none !important;
    color: #000 !important;
    padding: 10pt 0 0 !important;
    border-top: 0.5pt solid #000;
  }
  .site-foot h2, .site-foot a { color: #000 !important; }
  .foot-grid { display: block !important; }
  .foot-grid ul { display: none; }
  .foot-note { border-top: 0; color: #000; font-size: 8.5pt; }
}

/* ==========================================================================
   Тъмен вариант на началния екран
   Черно-бяла снимка, затъмнена, със светъл текст. Затваря рамката между
   тъмната шапка и тъмния подвал.
   ========================================================================== */

.hero { background: #10161C; }

.hero__media::after {
  background:
    linear-gradient(to right,
      rgba(11, 16, 21, 0.72) 0%,
      rgba(11, 16, 21, 0.50) 30%,
      rgba(11, 16, 21, 0.18) 60%,
      rgba(11, 16, 21, 0.04) 100%),
    linear-gradient(to bottom,
      rgba(11, 16, 21, 0.26) 0%,
      rgba(11, 16, 21, 0.02) 40%,
      rgba(11, 16, 21, 0.20) 100%);
}

.hero h1 { color: #FFFFFF; }
.hero__sub { color: #E4E9ED; }
.hero__meta .muted { color: #B4C0C9; }

.hero .call {
  background: #fff; color: var(--accent); border: 1px solid #fff;
}
.hero .call:hover { background: transparent; color: #fff; }
.hero :focus-visible { outline-color: #fff; }

@media (max-width: 47.9375rem) {
  .hero__media::after {
    background:
      linear-gradient(to bottom,
        rgba(11, 16, 21, 0.12) 0%,
        rgba(11, 16, 21, 0.10) 28%,
        rgba(11, 16, 21, 0.46) 50%,
        rgba(11, 16, 21, 0.74) 68%,
        rgba(11, 16, 21, 0.84) 100%);
  }
}

/* ==========================================================================
   Лента с мисъл
   Снимката потъва под петролен филтър, за да остане само текстът.
   ========================================================================== */

.band--quote {
  position: relative;
  display: grid;
  grid-template-areas: 'stack';
  margin: 0;
  isolation: isolate;
}
.band--quote > * { grid-area: stack; }

.band__media img {
  width: 100%;
  height: clamp(17rem, 46vh, 32rem);
  object-fit: cover;
}
.band__media.img-placeholder { min-height: clamp(17rem, 46vh, 32rem); background: #1B242C; }

.band--quote::after {
  content: '';
  grid-area: stack;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(22, 56, 76, 0.88) 0%,
      rgba(22, 56, 76, 0.78) 50%,
      rgba(22, 56, 76, 0.90) 100%);
}

.band__quote {
  z-index: 2;
  margin: 0;
  align-self: center;
  justify-self: center;
  width: min(100% - 3rem, 46rem);
  text-align: center;
  padding-block: 2rem;
}

.band__bg {
  margin: 0 auto 1.1rem;
  max-width: 30ch;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(1.28rem, 2.6vw, 2rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: #FFFFFF;
  text-wrap: balance;
}

.band__la {
  margin: 0 auto 0.9rem;
  max-width: 44ch;
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
  line-height: 1.5;
  color: #DCE5EA;
  text-wrap: balance;
}

.band__src {
  display: block;
  font-family: var(--head);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #D2DDE4;
}

/* Тънка линия над източника — същият мотив като в сайта */
.band__src::before {
  content: '';
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0 auto 0.85rem;
  background: rgba(255, 255, 255, 0.34);
}

@media (max-width: 47.9375rem) {
  .band__media img,
  .band__media.img-placeholder { height: clamp(19rem, 52vh, 26rem); min-height: 0; }
  .band__quote { padding-block: 1.6rem; }
  .band__bg { max-width: 22ch; }
  .band__la { max-width: 34ch; }
}

@media print {
  .band--quote { display: none !important; }
}

/* ==========================================================================
   Застъпени листове
   Тонираната секция лежи под съседната. Сянката е къса и бързо гасне,
   както при истинска хартия — дълга и мека сянка изглежда като екран,
   не като лист.
   ========================================================================== */

.section--tint {
  position: relative;
  isolation: isolate;
}

/* Сянка, хвърлена от горния лист */
.section--tint::before,
.section--tint::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 14px;
  pointer-events: none;
  z-index: 1;
}

.section--tint::before {
  top: 0;
  background:
    linear-gradient(to bottom,
      rgba(20, 24, 29, 0.085) 0,
      rgba(20, 24, 29, 0.035) 4px,
      rgba(20, 24, 29, 0.012) 9px,
      rgba(20, 24, 29, 0) 14px);
  border-top: 1px solid rgba(20, 24, 29, 0.07);
}

.section--tint::after {
  bottom: 0;
  transform: scaleY(-1);
  background:
    linear-gradient(to bottom,
      rgba(20, 24, 29, 0.055) 0,
      rgba(20, 24, 29, 0.022) 4px,
      rgba(20, 24, 29, 0.008) 9px,
      rgba(20, 24, 29, 0) 14px);
}

/* Лентите с мисъл също лежат върху страницата */
.band--quote { box-shadow: 0 0 0 1px rgba(20, 24, 29, 0.10); }

/* ==========================================================================
   Ситуациите: тих отклик при посочване
   ========================================================================== */

.case {
  position: relative;
  transition: background-color 0.2s ease;
}
.case::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.case:hover::before { opacity: 1; transform: none; }

@media (max-width: 47.9375rem) {
  .case::before { display: none; }
}

/* ==========================================================================
   Преход между страниците
   Браузърите, които го поддържат, сменят страниците с плавно преливане,
   вместо с бяло премигване. Останалите работят както досега.
   ========================================================================== */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.26s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Шапката и лентите остават на място, докато страницата се сменя */
.site-head { view-transition-name: head; }
.actionbar { view-transition-name: bar; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .case::before { transition: none; }
}

/* ==========================================================================
   Изплуване на по-дълга редица
   ========================================================================== */

.rise.seen:nth-child(4) { transition-delay: 0.18s; }
.rise.seen:nth-child(5) { transition-delay: 0.24s; }
.rise.seen:nth-child(6) { transition-delay: 0.30s; }
.rise.seen:nth-child(7) { transition-delay: 0.36s; }
.rise.seen:nth-child(8) { transition-delay: 0.42s; }

@media print {
  .section--tint::before, .section--tint::after { display: none; }
  .band--quote { box-shadow: none; }
}

/* ==========================================================================
   Собствена мисъл, на челно място
   Без снимка — плътно петролно поле веднага след началния екран.
   ========================================================================== */

.motto {
  background: var(--accent);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.motto__quote { margin: 0; text-align: center; }
.motto__quote p {
  margin: 0 auto 1.2rem;
  max-width: 28ch;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(1.32rem, 3vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: #FFFFFF;
  text-wrap: balance;
}
.motto__quote cite {
  display: block;
  font-family: var(--head);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #D2DDE4;
}
.motto__quote cite::before {
  content: '';
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0 auto 0.9rem;
  background: rgba(255, 255, 255, 0.34);
}

/* Кратък вариант на стъпките, за страницата с контактите */
.steps--compact li { padding-bottom: 1.1rem; padding-left: 2.9rem; }
.steps--compact li::before { font-size: 1.25rem; }

@media print {
  .motto { display: none; }
}

/* Фактите под „За мен“: един списък за всичко, без отделно каре */
.facts { margin-top: 2.6rem; }

/* „Сподели“ е бутон, не връзка — изравняваме го с останалите в лентата */
.actionbar__share {
  font: inherit;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

/* Минимална цел за докосване 24 px (WCAG 2.2, 2.5.8) за връзките в текста */
.case a,
.dl dd a,
.foot-grid a,
.head-extra a,
.foot-note a,
.legal a {
  display: inline-block;
  padding-block: 0.16rem;
}

/* Връзката към адвокатския регистър: дребна, но подчертана, за да личи,
   че е връзка (WCAG 2.2, 1.4.1) */
.dl dd a.small,
.foot-grid p.small a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
