/*
Theme Name: Simeonov Law Firm
Theme URI: https://sv-law.info/
Author: Simeonov Law Firm
Author URI: https://sv-law.info/
Description: Персонализирана тема за адвокатска кантора „Симеонов“ — двуезичен сайт (Polylang) с начална страница, сфери на дейност и контакти.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sv-law
Tags: custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* ============================================================
   Simeonov Law Firm — sv-law.info
   Дизайн-система · 2026
   Палитра: винено червено + тъмно синьо (от логото), топло бяло
   Шрифтове: Playfair Display (заглавия) · Sofia Sans (текст)
   ============================================================ */

:root {
  /* Цветове на марката (от логото) */
  --wine: #8e1d2c;
  --wine-bright: #a32236;
  --wine-deep: #6f1522;
  --navy: #232f5d;
  --navy-deep: #182043;
  --navy-night: #101631;

  /* Неутрални */
  --ink: #1b2036;
  --body: #4c5165;
  --muted: #63697f; /* ≥4.5:1 върху бяло и paper (WCAG AA) */
  --paper: #faf9f6;
  --ivory: #f2efe8;
  --sand: #e9e4d8;
  --line: #e3dfd4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --white: #ffffff;

  /* Типография */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;

  /* Ритъм */
  --radius: 6px;
  --container: 1200px;
  --header-h: clamp(84px, 2.22vw + 60px, 92px);
  --shadow-soft: 0 18px 45px -18px rgba(24, 32, 67, 0.18);
  --shadow-card: 0 10px 30px -12px rgba(24, 32, 67, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Базово ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--wine);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--wine-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1.1em; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
  /* Плътен фон, за да не прозира закотвената снимка на хероя през секциите. */
  background: var(--paper);
}

.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-night) 100%);
}

/* Малък надслов над заглавие */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 18px;
}

.overline::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section--navy .overline { color: #d8a9b0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.78); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .overline::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-wine {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(142, 29, 44, 0.55);
}

.btn-wine:hover {
  background: var(--wine-bright);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(27, 32, 54, 0.35);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(27, 32, 54, 0.04);
}

.btn-outline--light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-outline--light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 32, 54, 0.07);
  transition: box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(24, 32, 67, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  /* Всички размери в шапката се плъзгат плавно между 1080 и 1440 px ширина
     на екрана, със заковани минимум и максимум — без стъпала и без
     пренасяне или отрязване на надписи. */
  gap: clamp(10px, 4.45vw - 38px, 26px);
}

/* Логото никога не се свива: без flex: none гъвкавата кутия го стеснява,
   а глобалното img { max-width: 100% } му реже ширината при закована
   височина — тоест надписът се смачква. Мястото отстъпва менюто. */
.brand { display: inline-flex; align-items: center; flex: none; }

/* Логото е с прозрачен фон; multiply запазва същия слят вид върху хедъра. */
.brand img {
  height: clamp(44px, 2.78vw + 14px, 54px);
  width: auto;
  max-width: none;
  mix-blend-mode: multiply;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: inline-block;
  /* Страничният отстъп е променлива, за да следва и подчертаването. */
  --nav-pad: clamp(7px, 1.95vw - 14px, 14px);
  padding: 10px var(--nav-pad);
  font-size: clamp(0.8rem, 0.67vw + 5.6px, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: var(--nav-pad);
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--wine);
  transition: right 0.3s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: var(--nav-pad);
}

.lang-switch {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 8px clamp(10px, 1.12vw - 2px, 14px);
  border: 1px solid rgba(27, 32, 54, 0.22);
  border-radius: 100px;
  font-size: clamp(0.7rem, 0.36vw + 7.36px, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink) !important;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lang-switch:hover {
  border-color: var(--wine);
  color: var(--wine) !important;
  background: rgba(142, 29, 44, 0.05);
}

.lang-switch::after { display: none; }

.svp-login-link {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 8px clamp(10px, 1.12vw - 2px, 14px);
  border-radius: 100px;
  font-size: clamp(0.7rem, 0.36vw + 7.36px, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wine) !important;
  transition: color 0.25s ease, background 0.25s ease;
}

.svp-login-link:hover {
  background: rgba(142, 29, 44, 0.07);
  color: var(--wine-deep) !important;
}

.svp-login-link::after { display: none; }

.header-cta {
  padding: 12px clamp(16px, 1.67vw - 2px, 22px);
  font-size: clamp(0.72rem, 0.45vw + 6.66px, 0.82rem);
  margin-left: 6px;
}

/* Мобилно меню */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(27, 32, 54, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Надписите в шапката никога не се пренасят на нов ред и не се отрязват —
   размерите (лого, шрифтове, отстъпи) се плъзгат плавно с ширината на
   екрана чрез clamp(), със заковани минимум и максимум. Между максимума
   (широк екран) и минимума (1080 px, прагът на мобилното меню) всичко се
   побира с запас; под 1080 px менюто става бургер. */
.main-nav a,
.svp-login-link,
.lang-switch,
.lang-more > summary,
.header-cta {
  white-space: nowrap;
}

.main-nav ul {
  flex-wrap: nowrap;
}

@media (max-width: 1240px) {
  .main-nav { gap: 3px; }
  .main-nav ul { gap: 2px; }

  .lang-switch,
  .lang-more > summary,
  .svp-login-link { margin-left: 4px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }

  .brand img { height: 44px; }

  .main-nav {
    /* Бележка: backdrop-filter върху header-а го прави containing block
       за fixed елементи, затова височината е зададена изрично. */
    position: fixed;
    inset: var(--header-h) 0 auto;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    background: var(--paper);
    padding: 24px 24px 40px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    transform: translateX(100%);
    /* затвореното меню е и извън фокус-реда (visibility) */
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), visibility 0s 0.4s;
    z-index: 89;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s var(--ease-out);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-nav a {
    display: block;
    font-size: 1.12rem;
    padding: 15px 6px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after { display: none; }

  .lang-switch {
    margin: 22px 0 0;
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(27, 32, 54, 0.22) !important;
  }

  /* В бургер менюто входът застава под езиците, като реден елемент. */
  .svp-login-link {
    display: inline-flex;
    margin: 8px 0 0;
    align-self: flex-start;
    font-size: 1rem;
    padding: 10px 0;
  }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  body.nav-locked { overflow: hidden; }
}

/* ---------- Херо (начало) ---------- */
.hero {
  position: relative;
  /* Съзнателно БЕЗ isolation/z-index: така закотвената снимка (z-index: -2)
     и градиентът (z-index: -1) излизат зад целия документ, а интерактивното
     съдържание на хероя (бутони, връзки) остава в нормалния слой и е кликаемо.
     Плътният фон на секциите ги покрива при скрол. */
  min-height: max(620px, 88svh);
  margin-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

/* Закотвена (floating) снимка: остава спрямо екрана, докато текстът се плъзга
   над нея (position: fixed). Хероят е зад долните секции (.hero z-index: -1),
   а секциите имат плътен фон, за да не прозира снимката през тях.
   heroDrift връща предишния дискретен zoom-out при зареждане. */
.hero-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: -2;
  overflow: hidden;
  background: var(--navy-night);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: heroDrift 18s var(--ease-out) forwards;
}

@keyframes heroDrift {
  to { transform: scale(1); }
}

/* Панорамно движение настрани (за широки снимки) — избира се от Персонализиране. */
@keyframes heroPan {
  from { object-position: 0% 50%; }
  to   { object-position: 100% 50%; }
}

/* ---------- Слайдшоу в началото ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
}

/* При няколко снимки се вижда само активният слайд; преходите са по-долу. */
.hero-media--slides .hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-media--slides .hero-slide.is-active {
  opacity: 1;
}

/* Плъзгане настрани */
.hero-media--slides.fx-slide .hero-slide {
  transition: opacity 1.1s ease, transform 1.1s var(--ease-out);
  transform: translateX(6%);
}

.hero-media--slides.fx-slide .hero-slide.is-active {
  transform: translateX(0);
}

/* Преливане с приближаване */
.hero-media--slides.fx-zoom .hero-slide {
  transition: opacity 1.3s ease, transform 1.3s var(--ease-out);
  transform: scale(1.07);
}

.hero-media--slides.fx-zoom .hero-slide.is-active {
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(78deg, rgba(13, 18, 40, 0.9) 0%, rgba(19, 26, 56, 0.66) 48%, rgba(19, 26, 56, 0.24) 100%),
    linear-gradient(0deg, rgba(13, 18, 40, 0.6) 0%, rgba(13, 18, 40, 0) 46%);
}

.hero-inner {
  width: 100%;
  padding-top: clamp(48px, 7vw, 90px);
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e6b7be;
  margin-bottom: 22px;
}

.hero-overline::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  color: var(--white);
  max-width: 17ch;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: #e8bcc3;
}

.hero-sub {
  max-width: 600px;
  font-size: 1.13rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(48px, 7vw, 84px);
}

/* Лента с акценти под херото */
.hero-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 40, 0.35);
  backdrop-filter: blur(6px);
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 22px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat:first-child { border-left: 0; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.hero-stat span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat { padding: 16px 20px; }
}

/* На телефони закотвените фонове са ненадеждни (адресната лента мести кадъра) —
   връщаме снимката в хероя (движи се с него). */
@media (max-width: 780px) {
  .hero {
    z-index: auto;
    isolation: isolate;
  }
  .hero-media {
    position: absolute;
    top: auto;
    left: auto;
    inset: 0;
    width: auto;
    height: 100%;
  }
}

/* Постепенно разкриване на заглавието ред по ред */
.line-reveal .line {
  display: block;
  overflow: hidden;
}

.line-reveal .line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 0.9s var(--ease-out) forwards;
}

.line-reveal .line:nth-child(2) > span { animation-delay: 0.12s; }
.line-reveal .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes lineUp {
  to { transform: translateY(0); }
}

/* ---------- „За нас“ ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.about-text p { font-size: 1.05rem; }

.founder-card {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: 12px;
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
}

.founder-card .overline { margin-bottom: 10px; }

.founder-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.founder-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.founder-card p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.founder-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.founder-facts li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 0.96rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.founder-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--wine);
  border-bottom: 2px solid var(--wine);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .founder-card { position: static; }
}

/* ---------- Сфери на дейност: плочки ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.practice-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.practice-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--wine);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.practice-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.practice-tile:hover::before { transform: scaleY(1); }

.practice-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  flex: none;
  width: 30px;
  transition: color 0.3s ease;
}

.practice-tile:hover .practice-num { color: var(--wine); }

.practice-tile h3 {
  font-size: 1.08rem;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.practice-tile .tile-arrow {
  flex: none;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.practice-tile:hover .tile-arrow {
  transform: translateX(4px);
  color: var(--wine);
}

@media (max-width: 980px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .practice-grid { grid-template-columns: 1fr; }
}

/* Списък сфери с описания (страница „Сфери на дейност“) */
.practice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.practice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--wine);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.practice-card:hover::before { transform: scaleY(1); }

.practice-card .practice-num {
  width: auto;
  margin-bottom: 14px;
}

.practice-card h2,
.practice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.practice-card h2 a,
.practice-card h3 a { color: inherit; }
.practice-card h2 a:hover,
.practice-card h3 a:hover { color: var(--wine); }

.practice-card p {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.practice-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.practice-link svg { transition: transform 0.3s var(--ease-out); }
.practice-card:hover .practice-link { color: var(--wine-bright); }
.practice-card:hover .practice-link svg { transform: translateX(5px); }

@media (max-width: 860px) {
  .practice-list { grid-template-columns: 1fr; }
}

/* ---------- Цитат-лента (тъмна) ---------- */
.quote-band blockquote {
  margin: 0;
  max-width: 800px;
}

.quote-band blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 26px;
}

.quote-band cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8a9b0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-dark);
}

.value-item .value-index {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: #d8a9b0;
  margin-bottom: 12px;
}

.value-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.value-item span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------- Ключови дела ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start; /* всяка карта — със собствена височина, без разтягане до най-високата */
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 10px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease,
    border-top-color 0.35s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-top-color: var(--wine);
}

.case-area {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  background: rgba(142, 29, 44, 0.08);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.case-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.case-card p {
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.case-result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
}

.case-result strong { color: var(--wine); }

.cases-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .cases-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .case-card:hover { transform: none; }
}

/* ---------- Отзиви ---------- */
/* Google рейтинг — значка над отзивите */
.google-rating {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  position: relative;
  /* Картите по-долу идват след значката в документа и иначе застъпват
     балона ѝ, анимацията им създава собствен слой. */
  z-index: 60;
}

.google-rating__box {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

a.google-rating__box:hover,
button.google-rating__box:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

button.google-rating__box {
  cursor: pointer;
  font: inherit;
}

/* Свързани сфери под статията на всяка сфера. */
.related-practices {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related-practices h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.related-practices ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-practices a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related-practices a:hover {
  border-color: var(--wine);
  background: rgba(142, 29, 44, 0.05);
}

/* Бележка на езика на посетителя най-отгоре на страницата за запазване. */
.svb-lang-note {
  margin: 0 0 26px;
  padding: 13px 18px;
  background: rgba(142, 29, 44, 0.06);
  border: 1px solid rgba(142, 29, 44, 0.18);
  border-radius: 10px;
  color: var(--wine);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Балонът с отзивите от Google, отваря се от значката. */
.greviews {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  z-index: 40;
}

.greviews::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.greviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
}

.greviews__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
}

.greviews__close:hover { color: var(--wine); }

.greviews__list {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
  max-height: 340px;
  overflow-y: auto;
}

.greviews__item {
  padding: 11px 0;
}

.greviews__item + .greviews__item {
  border-top: 1px solid var(--line);
}

.greviews__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.greviews__stars {
  font-size: 0.86rem;
  letter-spacing: 1.6px;
  background: linear-gradient(90deg, #f5b731 var(--pct, 100%), #dcd7cc var(--pct, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.greviews__date {
  font-size: 0.78rem;
  color: var(--muted);
}

.greviews__item p {
  margin: 7px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--body, var(--ink));
}

.greviews__all {
  display: block;
  padding: 11px 18px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
}

.greviews__all:hover { text-decoration: underline; }

.google-rating__logo {
  display: inline-flex;
  line-height: 0;
}

.google-rating__score {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.google-rating__stars {
  font-size: 1.02rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #f5b731 var(--pct, 100%), #dcd7cc var(--pct, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.google-rating__count {
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: start; /* всяка карта — със собствена височина */
}

.testimonial-card {
  position: relative;
  padding: 40px 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.testimonial-card::before {
  content: "„";
  position: absolute;
  top: 6px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 1;
  color: var(--wine);
  opacity: 0.16;
}

.testimonial-stars {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
  background: linear-gradient(90deg, #f5b731 var(--pct, 100%), #dcd7cc var(--pct, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Карта само с рейтинг (без текст): без декоративната кавичка, по-едри звезди */
.testimonial-card--rating::before {
  display: none;
}

.testimonial-card--rating .testimonial-stars {
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.testimonial-card blockquote {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.testimonial-author strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA лента ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--wine-deep), var(--wine) 60%, var(--wine-bright));
  border-radius: 16px;
  padding: clamp(44px, 6vw, 68px) clamp(28px, 6vw, 76px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  max-width: 560px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta-band .btn {
  background: var(--white);
  color: var(--wine-deep);
}

.cta-band .btn:hover {
  background: var(--ivory);
  color: var(--wine-deep);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white) !important;
}

/* ---------- Вътрешни страници: херо-лента ---------- */
.page-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: clamp(52px, 8vw, 92px) 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-night) 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.breadcrumbs a { color: rgba(255, 255, 255, 0.65); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li[aria-current] { color: #e6b7be; }
.breadcrumbs li + li::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 24ch;
  margin-bottom: 14px;
}

.page-hero .lead {
  max-width: 660px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ---------- Съдържателна страница + странична лента ---------- */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  margin-top: 1.9em;
  margin-bottom: 0.6em;
}

.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }

.prose h3,
.prose h4 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

.prose p { font-size: 1.03rem; }

.prose ul {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.prose ul li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid var(--line);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--wine);
  border-bottom: 2px solid var(--wine);
  transform: rotate(-45deg);
}

.prose ol { padding-left: 22px; }
.prose ol li { margin-bottom: 8px; }

.prose strong { color: var(--ink); }

.side-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.side-card-head {
  padding: 24px 26px 18px;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-night));
  color: var(--white);
}

.side-card-head h2,
.side-card-head h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.side-card-head p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.side-card-body { padding: 20px 26px 24px; }

.side-contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.side-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.95rem;
}

.side-contact svg {
  flex: none;
  margin-top: 3px;
  color: var(--wine);
}

.side-contact a { color: var(--ink); font-weight: 600; }
.side-contact a:hover { color: var(--wine); }
.side-contact span { display: block; color: var(--muted); font-size: 0.85rem; }

.side-card .btn { width: 100%; }

.side-links {
  list-style: none;
  margin: 0;
  padding: 10px 26px 20px;
  border-top: 1px solid var(--line);
}

.side-links li + li { border-top: 1px solid var(--line); }

.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.side-links a:hover { color: var(--wine); }
.side-links a[aria-current="page"] { color: var(--wine); }

@media (max-width: 980px) {
  .service-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

/* ---------- Контакти ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 18px;
}

.office-card h2,
.office-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.office-card h2 svg,
.office-card h3 svg { color: var(--wine); flex: none; }

.office-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.office-card li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.98rem;
}

.office-card li svg {
  flex: none;
  margin-top: 4px;
  color: var(--muted);
}

.office-card a { color: var(--ink); font-weight: 600; }
.office-card a:hover { color: var(--wine); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

.contact-form h2 { font-size: 1.6rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(35, 47, 93, 0.12);
}

.form-hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
}

.form-status--ok {
  background: #eaf4ec;
  border: 1px solid #bfdcc6;
  color: #1e5c2e;
}

.form-status--err {
  background: rgba(142, 29, 44, 0.07);
  border: 1px solid rgba(142, 29, 44, 0.3);
  color: var(--wine-deep);
}

.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: clamp(40px, 6vw, 60px);
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.map-frame figcaption {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-night);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(56px, 7vw, 84px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1.1fr;
  gap: clamp(28px, 3.5vw, 52px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

/* Логото върху светла плочка (оригиналният файл е със светъл фон) */
.footer-logo-plate {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 18px;
}

.footer-logo-plate img { height: 52px; width: auto; }

.footer-about p {
  margin: 20px 0 0;
  font-size: 0.97rem;
  max-width: 36ch;
}

.footer-col h2 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
}

.footer-col a:hover { color: var(--white); }

.footer-office {
  margin-bottom: 18px;
}

.footer-office strong {
  display: block;
  color: var(--white);
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.footer-office strong a {
  color: inherit;
  text-decoration: none;
}

.footer-office strong a:hover {
  text-decoration: underline;
}

.footer-office span {
  display: block;
  font-size: 0.93rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Дискретни анимации при скрол ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .line-reveal .line > span {
    transform: none;
    animation: none;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }

  /* Снимките продължават да се сменят, но само с плавно преливане —
     без плъзгане и приближаване. */
  .hero-media--slides .hero-slide,
  .hero-media--slides.fx-slide .hero-slide,
  .hero-media--slides.fx-zoom .hero-slide {
    transition: opacity 0.6s ease;
    transform: none;
  }

  .btn:hover,
  .practice-tile:hover,
  .practice-card:hover {
    transform: none;
  }
}

/* ---------- Достъпност ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

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

/* Върху тъмни фонове виненият контур е невидим — там фокусът е бял */
.site-footer :focus-visible,
.page-hero :focus-visible,
.section--navy :focus-visible,
.cta-band :focus-visible,
.hero :focus-visible,
.side-card-head :focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   WordPress — задължителни класове и съдържание от редактора
   ============================================================ */

/* ---------- Подравняване (класове на WordPress) ---------- */
.alignleft {
  float: left;
  margin: 0.4em 1.6em 1.2em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1.2em 1.6em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignnone {
  margin: 0 0 1.2em;
}

.alignwide,
.alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Плаващите изображения нямат смисъл на тесен екран */
@media (max-width: 640px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1.2em;
  }
}

.clearfix::after,
.entry-content::after,
.prose::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Само за екранни четци ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  clip: auto;
  clip-path: none;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
}

/* ---------- Забодена публикация ---------- */
.sticky {
  position: relative;
}

.post-password-form input[type="password"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

/* ---------- Надписи под изображения ---------- */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.wp-caption img,
.wp-caption a img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.wp-caption-text,
.wp-caption p.wp-caption-text,
.prose figcaption,
.prose .wp-element-caption {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------- Галерия ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 1.8em;
}

.gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.gallery-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .gallery,
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Съдържание от редактора вътре в .prose ---------- */
.prose img,
.prose iframe,
.prose video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.prose figure {
  margin: 0 0 1.8em;
}

.prose figure img {
  width: 100%;
}

.prose .wp-block-image {
  margin: 0 0 1.8em;
}

.prose .wp-block-image img {
  border-radius: 10px;
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--wine);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Таблиците в дълъг текст се скролват хоризонтално на тесен екран */
.prose .wp-block-table,
.prose figure.wp-block-table {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  margin: 0 0 1.8em;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.prose table th,
.prose table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose table th {
  background: var(--ivory);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
}

.prose table tbody tr:nth-child(even) td {
  background: rgba(242, 239, 232, 0.5);
}

.prose table caption {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.prose hr,
.prose .wp-block-separator {
  height: 1px;
  margin: 2.2em 0;
  border: 0;
  background: var(--line);
}

.prose pre,
.prose .wp-block-code {
  overflow-x: auto;
  margin: 0 0 1.8em;
  padding: 16px 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
}

.prose code {
  padding: 2px 6px;
  background: var(--ivory);
  border-radius: 4px;
  font-size: 0.92em;
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose .wp-block-button__link {
  display: inline-block;
  padding: 14px 26px;
  background: var(--wine);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
}

.prose .wp-block-button__link:hover {
  background: var(--wine-bright);
  color: var(--white);
}

/* ---------- Лента на администратора над фиксирания header ---------- */
body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .side-card {
  top: calc(var(--header-h) + 32px + 24px);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .side-card {
    top: calc(var(--header-h) + 46px + 24px);
  }
}

/* ---------- Плащания (Stripe) — карти и ленти ---------- */
.sv-pay-grid {
		display: grid;
		/* авто-побиране: 3 карти → 3 колони, 4+ се пренареждат сами */
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 24px;
		margin-top: 32px;
		align-items: start;
	}
	.sv-pay-card {
		display: flex;
		flex-direction: column;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow-card);
		padding: 28px;
	}
	.sv-pay-card h3 {
		color: var(--navy);
		margin: 0 0 12px;
	}
	.sv-pay-price {
		color: var(--navy);
		font-size: 1.9rem;
		font-weight: 700;
		line-height: 1.2;
		margin: 0 0 6px;
	}
	.sv-pay-price small {
		font-size: 0.95rem;
		font-weight: 400;
	}
	.sv-pay-old {
		color: #8a8577;
		text-decoration: line-through;
		font-size: 1.05rem;
		font-weight: 400;
		margin-right: 8px;
	}
	.sv-pay-save {
		color: var(--wine);
		font-weight: 600;
		margin: 0 0 10px;
	}
	.sv-pay-note {
		color: #5d594d;
		margin: 0 0 18px;
	}
	.sv-pay-action { margin-top: auto; }
	.sv-pay-badge {
		display: inline-block;
		background: var(--paper);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		color: #5d594d;
		padding: 10px 14px;
	}
	.sv-pay-band {
		border: 1px solid var(--line);
		border-radius: var(--radius);
		margin: 0 0 24px;
		padding: 14px 18px;
	}
	.sv-pay-band--ok {
		background: #e9f6ec;
		border-color: #bfe3c6;
		color: #1e5b2a;
	}
	.sv-pay-band--off {
		background: var(--paper);
		color: #5d594d;
	}
	.sv-pay-band--test {
		background: #fff7de;
		border-color: #eedf9f;
		color: #7a5c00;
	}
	.sv-pay-secure {
		color: #5d594d;
		font-size: 0.9rem;
		margin-top: 20px;
	}

/* Самостоятелна карта от шорткода [sv_pay_consult] */
.sv-pay-card--solo {
  max-width: 420px;
  margin: 28px 0;
}

/* Полета в картата „Сума по избор“ (плащане на хонорар) */
.sv-pay-field {
  margin: 0 0 12px;
}
.sv-pay-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.sv-pay-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
}
.sv-pay-field input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

/* ---------- Банер за бисквитките ---------- */
.sv-cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--navy-night);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -8px 30px -12px rgba(16, 22, 49, 0.5);
}

.sv-cookie-bar p {
  margin: 0;
  font-size: 0.92rem;
}

.sv-cookie-bar a {
  color: #d8a9b0;
  text-decoration: underline;
}

.sv-cookie-bar .btn {
  padding: 9px 20px;
  font-size: 0.75rem;
}

/* Кутия с общите условия на страницата за приемане */
.sv-terms-box {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px 22px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.sv-accept-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
}

.sv-accept-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--wine);
}

/* Балонче при неотметнато поле — вместо вграденото съобщение на браузъра */
.sv-accept-check {
  flex-wrap: wrap;
}

.sv-accept-check > span:first-of-type {
  flex: 1 1 0;
  min-width: 0;
}

.sv-accept-check.is-invalid input {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.sv-accept-bubble {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding-left: 30px;
  margin-top: 10px;
}

.sv-accept-bubble > span {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: var(--wine);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.sv-accept-bubble > span::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 14px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--wine);
}

.sv-cookie-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Правните страници (ОУ, поверителност, бисквитки, приемане):
   текстът не се маркира — защита от копиране, дублирана и в main.js. */
body.sv-noselect main {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* ---------- Общите условия като документ ----------
   Единно оформление без разлики: Arial Narrow 12pt за целия текст —
   заглавия, абзаци и списъци. Разграничават се само с получер шрифт.
   Важи и за текста на ОУ, вграден в страницата „Преглед и приемане“. */
/* Телефоните (iOS/Android) нямат Arial Narrow. За да няма разлика в
   оформлението между устройствата, темата носи свой тесен шрифт с
   кирилица — ползва се само там, където Arial Narrow липсва. */
@font-face {
  font-family: "SV Narrow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ptsansnarrow-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "SV Narrow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ptsansnarrow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "SV Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ptsansnarrow-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "SV Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ptsansnarrow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

body.sv-legal-doc .prose,
.sv-terms-box {
  font-family: "Arial Narrow", "SV Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", Arial, sans-serif;
  font-stretch: condensed;
  font-size: 12pt;
  line-height: 1.5;
}

body.sv-legal-doc .prose h1,
body.sv-legal-doc .prose h2,
body.sv-legal-doc .prose h3,
body.sv-legal-doc .prose h4,
body.sv-legal-doc .prose p,
body.sv-legal-doc .prose li,
body.sv-legal-doc .prose td,
body.sv-legal-doc .prose th,
.sv-terms-box h1,
.sv-terms-box h2,
.sv-terms-box h3,
.sv-terms-box h4,
.sv-terms-box p,
.sv-terms-box li {
  font-family: inherit;
  font-size: 12pt;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

body.sv-legal-doc .prose h2,
body.sv-legal-doc .prose h3,
body.sv-legal-doc .prose h4,
.sv-terms-box h2,
.sv-terms-box h3,
.sv-terms-box h4 {
  font-weight: 700;
  margin: 1.15em 0 0.35em;
}

/* Без маркери: алинеите се четат като абзаци на члена, а подточките
   носят собствените си букви „а) б) в)“ в самия текст. */
body.sv-legal-doc .prose ol,
.sv-terms-box ol {
  list-style: none;
  margin: 0.35em 0 0.7em;
  padding-left: 0;
}

body.sv-legal-doc .prose ul,
.sv-terms-box ul {
  list-style: none;
  margin: 0.35em 0 0.7em;
  padding-left: 1.4em;
}

body.sv-legal-doc .prose li,
.sv-terms-box li {
  margin-bottom: 0.25em;
  /* Без разделителните черти на общия .prose ul li: в документа
     подточките са алинеи, не списък с редове. */
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
}

body.sv-legal-doc .prose li::before,
.sv-terms-box li::before { content: none; }

/* ============================================================
   Запазване на час (booking календар)
   ============================================================ */

.svb-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 22px;
}

.svb-aside {
  background: var(--navy-deep);
  color: var(--white);
  padding: 28px 24px;
}

.svb-aside h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin: 14px 0 18px;
}

.svb-logo {
  max-width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
}

.svb-types {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.svb-types li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  display: block;
}

.svb-types li strong {
  display: block;
  font-size: 0.98rem;
}

.svb-type-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 2px;
}

.svb-type-note {
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 2px;
}

.svb-note {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
  border-left: 3px solid var(--wine-bright);
  padding-left: 10px;
}

.svb-main {
  padding: 26px 28px;
  min-width: 0;
}

/* Стъпките */
.svb-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.svb-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svb-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.svb-steps .is-now {
  color: var(--ink);
  font-weight: 600;
}

.svb-steps .is-now span {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.svb-steps .is-done span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Календарната решетка */
.svb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.svb-cal-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: capitalize;
}

.svb-nav {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  width: 38px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.svb-nav:hover:not(:disabled) {
  border-color: var(--wine);
  color: var(--wine);
}

.svb-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.svb-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.svb-wd {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 0;
}

.svb-day {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.svb-day.has-slots {
  background: var(--ivory);
  border-color: var(--sand);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.svb-day.has-slots:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.svb-day.is-sel {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.svb-day.is-sel:hover {
  color: var(--white);
}

.svb-day:disabled {
  opacity: 0.45;
}

.svb-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* Часовете за избрания ден */
.svb-slots {
  margin-top: 16px;
}

.svb-slots-title {
  font-weight: 600;
  margin: 0 0 10px;
}

.svb-slot {
  display: inline-block;
  border: 1px solid var(--wine);
  color: var(--wine);
  background: var(--white);
  border-radius: var(--radius);
  padding: 9px 16px;
  margin: 0 8px 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.svb-slot:hover {
  background: var(--wine);
  color: var(--white);
}

/* Формата */
.svb-picked {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.svb-change {
  border: 0;
  background: none;
  color: var(--wine);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.88rem;
}

.svb-typepick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 14px;
}

.svb-typepick legend {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 6px;
}

.svb-typepick label {
  display: block;
  padding: 6px 0;
  cursor: pointer;
}

.svb-typepick input {
  accent-color: var(--wine);
  margin-right: 6px;
}

.svb-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  resize: vertical;
}

.svb-payinfo {
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--wine);
  padding-left: 10px;
}

/* Скритото поле-капан */
.svb-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Съобщения и статус */
.svb-banner {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.svb-ok {
  background: #eef6ee;
  border: 1px solid #cfe4cf;
  color: #24532c;
}

p.svb-warn {
  background: #fbf1ee;
  border: 1px solid #ecd5cd;
  color: var(--wine-deep);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.svb-status-card .svb-ok,
.svb-status-card p.svb-warn {
  padding: 10px 14px;
}

.svb-count {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .svb-wrap {
    grid-template-columns: 1fr;
  }

  .svb-aside {
    padding: 22px 20px;
  }

  .svb-main {
    padding: 20px 16px;
  }

  .svb-day {
    font-size: 0.85rem;
  }
}


/* Отметките спират под плаващия хедър при скок към невалидна (не зад него) */
.sv-accept-check {
  scroll-margin-top: calc(var(--header-h) + 24px);
}



/* ============================================================
   Избор на език: БГ | EN | Други езици
   Бутонът „Други езици“ е същото хапче като превключвателя,
   а падащият списък повтаря неговия стил.
   ============================================================ */

.lang-menu {
  display: inline-flex;
  align-items: center;
  gap: 2pt;
}

/* Естествената ширина на хапчетата; разстоянието идва само от gap.
   Надписът и иконата стоят точно в средата — водоравно и отвесно. */
.lang-menu .lang-switch {
  display: inline-flex;
  margin-left: 0;
  align-items: center;
  justify-content: center;
  /* Редът е висок точно колкото иконата — така трите хапчета
     са с еднаква височина, а съдържанието им е в средата. */
  line-height: 17px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.lang-menu .lang-switch.is-current {
  opacity: 0.5;
  pointer-events: none;
}

/* Кълбото — знакът за друг език; същото хапче, само по-тясно.
   Нулевият знак пази същата текстова височина като БГ/EN. */
.lang-globe {
  padding-left: 11px;
  padding-right: 11px;
  gap: 0;
}

/* Иконата е самостоятелен елемент, центриран от самото хапче. */
.lang-globe svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* Надписът на кълбото е за машините и екранните четци, не за екрана.
   Класът нарочно НЕ съдържа „hidden“: екстракторите на търсачките и
   AI асистентите режат елементите с такива имена. */
.globe-note {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lang-more {
  position: relative;
  margin-left: 8px;
}

.lang-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(27, 32, 54, 0.22);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lang-more > summary::-webkit-details-marker {
  display: none;
}

.lang-more > summary::marker {
  content: "";
}

.lang-more > summary:hover,
.lang-more[open] > summary {
  border-color: var(--wine);
  color: var(--wine);
  background: rgba(142, 29, 44, 0.05);
}

.lang-more ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.lang-more ul a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(27, 32, 54, 0.22);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lang-more ul a:hover {
  border-color: var(--wine);
  color: var(--wine) !important;
  background: rgba(142, 29, 44, 0.05);
}

.lang-more ul a[aria-current="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 960px) {
  .lang-more ul {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 10px 0 0;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
