/*
Theme Name: СУ „Христо Ботев“ Арчар
Description: Тема за сайта на СУ „Христо Ботев“, с. Арчар. Работи със съществуващото съдържание, менюта и файлове. Менюто приема неограничен брой подбутони, а раздел „Защита на личните данни“ е достъпен от всяка страница.
Version: 2.3.4
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: suhb
*/

@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-serif-300-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-serif-300-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-serif-300-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-serif-300-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-serif-400-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-serif-400-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-serif-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-serif-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-200-800-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-200-800-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-200-800-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-200-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fdfdfd;
  --ink: #22222c;
  --ink-2: #3b3b48;
  --mut: #6a6a78;
  --line: rgba(34, 34, 44, .1);
  --line-2: rgba(34, 34, 44, .06);
  --card: #fff;
  /* Цветовете на досегашния сайт */
  --pink: #ef476f;
  --pink-d: #c92d55;
  --navy: #26547c;
  --green: #06ca75;
  --cyan: #00d8ff;
  --yellow: #eeee22;
  --mint: #05f3b3;
  --violet: #9600ff;
  --r: 18px;
  --r-s: 12px;
  --sh-1: 0 1px 2px rgba(34, 34, 44, .05), 0 10px 28px -14px rgba(34, 34, 44, .2);
  --sh-2: 0 2px 4px rgba(34, 34, 44, .04), 0 26px 60px -26px rgba(34, 34, 44, .32);
  --serif: "Roboto Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
* { font-feature-settings: "locl" 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 30px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.500px/1.62 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
/* Акцентната дума: наклонена и оцветена, с обикновените форми на буквите. */
h1 em, h2 em, h3 em, .ft__q em { font-style: italic; color: var(--pink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.ic { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }
.skip { position: absolute; left: 8px; top: -70px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* ---------- Бутони ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 22px; border-radius: 999px; font: 600 15.500px/1.2 var(--sans); text-decoration: none; color: #fff; background: linear-gradient(180deg, #f6648a 0%, #e93e69 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 20px -10px rgba(239, 71, 111, .8); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 26px -10px rgba(239, 71, 111, .85); }
.btn .ic { width: 18px; height: 18px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { filter: none; box-shadow: var(--sh-1); border-color: rgba(34, 34, 44, .28); }
.btn--ghost .ic { color: var(--pink); }
.btn--onink { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .34); box-shadow: none; }
.btn--onink:hover { background: rgba(255, 255, 255, .1); box-shadow: none; filter: none; }
.ib { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; border-radius: 999px; }
.ib:hover { background: rgba(34, 34, 44, .06); }

/* ---------- Лента с контакти най-горе ---------- */
.tb { font-size: 13.500px; color: var(--mut); }
.tb__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tb__l { display: flex; gap: 20px; min-width: 0; }
.tb__l li, .tb__p { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb .ic { width: 15px; height: 15px; }
.tb a { text-decoration: none; }
.tb a:hover { color: var(--ink); }
.tb__mail { display: none !important; }
.tb__p { font-weight: 700; color: var(--ink); }
.tb__p .ic { color: var(--pink); }

/* ---------- Плаваща лента с името и менюто ---------- */
.hdw { position: sticky; top: 0; z-index: 60; padding: 8px 0; transition: transform .3s ease; }
.hdw.is-hid { transform: translateY(-110%); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--bar); padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--sh-1); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__m { height: 40px; width: auto; flex: none; }
.brand__t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__t b { font: 400 18px/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.brand__t small { font-size: 11px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; }
.bar__r { display: flex; align-items: center; gap: 2px; flex: none; }
.ib--menu { padding: 0 16px 0 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.500px; }
.ib--menu:hover { background: #000; }
.nav { display: none; }
.ib--srch { display: none; }
.hd2 { display: none; }
.mn__s { padding: 14px 0 10px; }

/* ---------- Панели: меню на телефон и търсене ---------- */
.ov { position: fixed; inset: 0; z-index: 100; background: rgba(34, 34, 44, .42); display: flex; justify-content: flex-end; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ov__p { background: #fff; width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; animation: ovin .28s ease; }
.ov__p--srch { height: auto; width: 100%; align-self: flex-start; animation-name: ovdown; border-radius: 0 0 24px 24px; }
@keyframes ovin { from { transform: translateX(36px); opacity: 0; } }
@keyframes ovdown { from { transform: translateY(-18px); opacity: 0; } }
.ov__h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.ov__h b { font: 400 22px/1 var(--serif); letter-spacing: -.02em; }
.ov__b { padding: 6px 20px 30px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.ov__p--srch .ov__b { padding: 20px; max-width: 760px; width: 100%; margin: 0 auto; }
body.is-lock { overflow: hidden; }

.mn > li { border-bottom: 1px solid var(--line); }
.mn a, .mn summary, .mn__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 0; font-weight: 600; font-size: 17.500px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.mn summary { list-style: none; }
.mn summary::-webkit-details-marker { display: none; }
.mn summary .ic { transition: transform .2s; color: var(--pink); }
.mn details[open] > summary .ic { transform: rotate(180deg); }
.mn a[aria-current] { color: var(--pink-d); }
.mn--1, .mn--2, .mn--3 { margin: 0 0 12px; padding-left: 14px; border-left: 2px solid var(--line); }
.mn--1 > li, .mn--2 > li, .mn--3 > li { border: 0; }
.mn--1 a, .mn--1 summary, .mn--1 .mn__h, .mn--2 a, .mn--2 summary, .mn--3 a { font-size: 15.500px; font-weight: 500; min-height: 44px; padding: 8px 0; color: var(--ink-2); }
.mn__p { display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.mn__p .ic { color: #ff8eaa; }

/* ---------- Контакти ---------- */
.clist { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.clist li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.clist__i { width: 40px; height: 40px; border-radius: 12px; background: rgba(239, 71, 111, .1); color: var(--pink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.clist li:nth-child(4n+2) .clist__i { background: rgba(38, 84, 124, .1); color: var(--navy); }
.clist li:nth-child(4n+3) .clist__i { background: rgba(6, 202, 117, .13); color: #06985a; }
.clist li:nth-child(4n+4) .clist__i { background: rgba(0, 216, 255, .16); color: #0a8fa8; }
.clist__b { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; font-size: 15.500px; }
.clist__b small { font-size: 11.500px; text-transform: uppercase; letter-spacing: .14em; color: var(--mut); font-weight: 700; margin-bottom: 2px; }
.clist a { text-decoration: none; font-weight: 600; }
.clist a:hover { color: var(--pink-d); }
.clist--grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); text-align: left; }
.clist--menu { margin-top: 6px; }
.mn + .clist--menu { margin-top: 24px; }

/* ---------- Цветни ореоли ---------- */
.aura { position: absolute; pointer-events: none; z-index: 0; filter: blur(34px); }
.aura--arch { inset: -4% -12% -10% -12%; border-radius: 46% 46% 10% 10% / 60% 60% 10% 10%; background: radial-gradient(ellipse 64% 34% at 50% 100%, rgba(150, 0, 255, .34), rgba(0, 216, 255, .3) 55%, rgba(0, 216, 255, 0) 100%), radial-gradient(ellipse 70% 62% at 50% 44%, #fff 0, #fff 22%, #f6f37c 44%, #ef476f 78%, rgba(239, 71, 111, .2) 100%); animation: breathe 9s ease-in-out infinite alternate; }
.aura--side { width: 620px; height: 520px; right: -200px; top: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 0, 255, .26), rgba(239, 71, 111, .2) 55%, rgba(239, 71, 111, 0)); filter: blur(46px); }
.aura--low { width: 560px; height: 420px; left: -180px; bottom: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 216, 255, .24), rgba(5, 243, 179, .16) 60%, rgba(5, 243, 179, 0)); filter: blur(46px); }
.aura--sun { left: 50%; top: -20px; width: min(1100px, 150%); height: 560px; transform: translateX(-50%); border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(ellipse 20% 30% at 12% 86%, rgba(0, 216, 255, .55), rgba(0, 216, 255, 0)), radial-gradient(ellipse 20% 30% at 88% 86%, rgba(150, 0, 255, .32), rgba(150, 0, 255, 0)), radial-gradient(ellipse 58% 66% at 50% 36%, #fff 0, #fdfbc4 26%, #f6f37c 44%, rgba(239, 71, 111, .8) 76%, rgba(239, 71, 111, 0) 94%); filter: blur(40px); }
.aura--ph { width: 520px; height: 300px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 243, 124, .8), rgba(239, 71, 111, .3) 55%, rgba(0, 216, 255, 0)); filter: blur(44px); }
@keyframes breathe { from { transform: scale(1); opacity: .92; } to { transform: scale(1.04); opacity: 1; } }

/* ---------- Начало ---------- */
.hero { position: relative; padding: 26px 0 0; overflow: hidden; }
.hero__in { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero__t { position: relative; z-index: 2; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.chip b { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12.500px; font-weight: 700; line-height: 1.3; }
.chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; color: var(--mut); }
.eye { font-size: 12.500px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--mut); margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 10.600vw, 70px); line-height: 1; letter-spacing: -.03em; }
.hero__l { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 20px 0 0; max-width: 30em; }
.hero__b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__v { position: relative; padding: 50px 0 64px; min-width: 0; }
.frame { position: relative; z-index: 1; margin: 0; background: #fff; padding: 7px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.frame img { display: block; width: 100%; height: auto; border-radius: 14px; }
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.facts li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; min-width: 0; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { font: 300 40px/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; min-width: 2.300em; }
.facts span { font-size: 15px; color: var(--mut); min-width: 0; }
.facts--in { margin: 0 0 24px; border-bottom: 1px solid var(--line); }

.sec { position: relative; padding: 54px 0; }
.sec--clip { overflow: hidden; }
.sec > .wrap { position: relative; z-index: 1; }
.sh { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-items: end; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.sh h2 { font-size: clamp(30px, 7.800vw, 44px); }
.sh__d { margin: 0; color: var(--mut); font-size: 15.500px; line-height: 1.5; max-width: 30em; }
.sh__a { display: inline-flex; align-items: center; gap: 8px; align-self: center; justify-self: start; min-height: 42px; padding: 6px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font-weight: 600; font-size: 14.500px; text-decoration: none; transition: border-color .2s; }
.sh__a:hover { border-color: rgba(34, 34, 44, .28); }
.sh__a .ic { width: 16px; height: 16px; color: var(--pink); transition: transform .2s; }
.sh__a:hover .ic { transform: translateX(3px); }

.quick { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.quick a { --c: var(--pink); --ct: rgba(239, 71, 111, .1); display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-1); text-decoration: none; font-weight: 600; line-height: 1.3; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.quick li:nth-child(6n+2) a { --c: var(--navy); --ct: rgba(38, 84, 124, .1); }
.quick li:nth-child(6n+3) a { --c: #06985a; --ct: rgba(6, 202, 117, .13); }
.quick li:nth-child(6n+4) a { --c: #0a8fa8; --ct: rgba(0, 216, 255, .16); }
.quick li:nth-child(6n+5) a { --c: #7a00d1; --ct: rgba(150, 0, 255, .09); }
.quick li:nth-child(6n+6) a { --c: #8d8a00; --ct: rgba(238, 238, 34, .3); }
.quick__i { width: 42px; height: 42px; border-radius: 13px; background: var(--ct); color: var(--c); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.quick__t { min-width: 0; }
.quick a > .ic { margin-left: auto; width: 18px; height: 18px; color: var(--mut); transition: transform .2s, color .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: rgba(34, 34, 44, .16); }
.quick a:hover > .ic { transform: translateX(3px); color: var(--c); }

/* Новини: списък в бяла карта */
.split { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.split__t h2 { font-size: clamp(32px, 8.400vw, 48px); }
.split__t p { color: var(--mut); margin: 16px 0 22px; max-width: 26em; }
.list { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); overflow: hidden; min-width: 0; }
.list__h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.list__h .ic { color: var(--pink); width: 18px; height: 18px; }
.row + .row, .list__h + .row { border-top: 1px solid var(--line); }
.row__a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 4px; padding: 16px 18px; text-decoration: none; transition: background .2s; }
.row__a:hover { background: #fafafc; }
.row__d { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.row__t { grid-column: 1; font: 600 16.500px/1.32 var(--sans); letter-spacing: -.005em; overflow-wrap: anywhere; }
.row__x { grid-column: 1; margin: 2px 0 0; color: var(--mut); font-size: 14.500px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__go { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--mut); transition: color .2s, border-color .2s, transform .2s; }
.row__go .ic { width: 16px; height: 16px; }
.row__a:hover .row__go { color: var(--pink); border-color: var(--pink); transform: translateX(2px); }

/* Проекти: тъмен раздел */
.dark { position: relative; color: #fff; padding: 64px 0 76px; background: linear-gradient(180deg, #171925 0%, #1a1f33 38%, #26547c 82%, #4f93c4 100%); overflow: hidden; }
.dark .eye { color: rgba(255, 255, 255, .6); }
.dark h2 { font-size: clamp(32px, 8.400vw, 50px); }
.dark h2 em { color: #ff7f9e; }
.dark__top { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); margin-bottom: 26px; }
.dark__top p { margin: 0 0 16px; color: rgba(255, 255, 255, .82); max-width: 28em; }
.proj { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.proj a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; height: 100%; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .06); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.proj a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.proj__k { grid-column: 1; font-size: 11.500px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .62); overflow-wrap: anywhere; }
.proj__t { grid-column: 1; font-weight: 600; font-size: 16.500px; line-height: 1.3; margin-top: 4px; }
.proj__go { grid-column: 2; grid-row: 1 / span 2; color: #ff9bb4; display: inline-flex; transition: transform .2s; }
.proj a:hover .proj__go { transform: translateX(3px); }

/* Снимки: редове, които запълват цялата ширина (скриптът смята точните размери; без него редовете пак се разтягат докрай). */
.mas { display: flex; flex-wrap: wrap; gap: 8px; }
.mas a { --r: 1.333; position: relative; flex: var(--r) 1 calc(var(--r) * 130px); height: 150px; border-radius: 14px; overflow: hidden; background: #f1f1f4; cursor: zoom-in; }
.mas img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mas a:hover img { transform: scale(1.04); }
.mas.is-set a { flex: none; }
.gal { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.200em; }
.gal a, .gal > img { display: block; border-radius: 14px; overflow: hidden; background: #f1f1f4; }
.gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; transition: transform .4s ease; }
.gal a:hover img { transform: scale(1.03); }
.gal a { cursor: zoom-in; }
/* Снимка, по-малка от мястото си, не се разтяга: остава рязка в естествения си размер. */
.gal a.is-small { display: flex; align-items: center; justify-content: center; }
.gal a.is-small img { width: auto; max-width: 100%; aspect-ratio: auto; border-radius: 0; }

/* Връзка с училището */
.cta { position: relative; padding: 70px 0 60px; overflow: hidden; text-align: center; }
.cta > .wrap { position: relative; z-index: 1; }
.cta__i { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: linear-gradient(180deg, #f6648a, #e93e69); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 34px -14px rgba(239, 71, 111, .9); }
.cta__i .ic { width: 32px; height: 32px; }
.cta h2 { font-size: clamp(32px, 8.400vw, 50px); }
.cta__l { color: var(--ink-2); margin: 14px auto 26px; max-width: 30em; }
.cta__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- Вътрешни страници ---------- */
.ph { position: relative; padding: 22px 0 26px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ph > .wrap { position: relative; z-index: 1; }
.ph h1 { font-size: clamp(32px, 8.400vw, 56px); letter-spacing: -.028em; overflow-wrap: anywhere; }
.ph__d { margin: 12px 0 0; color: var(--mut); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.500px; color: var(--mut); margin-bottom: 12px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pink-d); }

.sn { padding-top: 18px; }
.pg { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 60px; }
.pg__m { min-width: 0; }
.pg__a { display: none; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); padding: 20px; min-width: 0; }
.acard__h { font: 400 20px/1.2 var(--serif); letter-spacing: -.02em; margin: 0 0 8px; }
.acard__l li + li { border-top: 1px solid var(--line); }
.acard__l a { display: block; padding: 11px 0; text-decoration: none; }
.acard__l small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 2px; }
.acard__l span { display: block; font-weight: 600; font-size: 14.500px; line-height: 1.38; overflow-wrap: anywhere; transition: color .2s; }
.acard__l a:hover span { color: var(--pink-d); }
.acard__a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--pink-d); text-decoration: none; }
.acard__a .ic { width: 16px; height: 16px; transition: transform .2s; }
.acard__a:hover .ic { transform: translateX(3px); }
.acard .clist { margin-top: 6px; }
.clist--ft .clist__ph, .clist--side .clist__ph, .clist--menu .clist__ph { white-space: nowrap; }
.pg__h { font-size: 28px; margin: 40px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.empty { color: var(--mut); font-size: 17px; }

.snav { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-1); }
.snav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.snav summary::-webkit-details-marker { display: none; }
.snav summary .ic { color: var(--pink); transition: transform .2s; }
.snav[open] summary .ic { transform: rotate(180deg); }
.snav__l { padding: 0 8px 10px; }
.snav__l a, .snav__l .sub__h { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; text-decoration: none; line-height: 1.3; font-weight: 500; font-size: 15.500px; color: var(--ink-2); }
.snav__l .sub__h { color: var(--mut); }
.snav__l a:hover { background: #f5f5f8; color: var(--ink); }
.snav__l a[aria-current], .snav__l li.is-cur > a { background: rgba(239, 71, 111, .1); color: var(--pink-d); font-weight: 700; }
.snav__l .sub__n { margin: 0 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--line); }
.snav__l .sub__n a { font-size: 14.500px; }
.snav__l .ic { width: 14px; height: 14px; opacity: .6; }

.cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.card { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; min-height: 62px; padding: 14px 16px 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--sh-1); text-decoration: none; font-weight: 600; line-height: 1.32; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: rgba(34, 34, 44, .16); }
.card__t { min-width: 0; overflow-wrap: anywhere; }
.card__go { color: var(--pink); flex: none; display: inline-flex; transition: transform .2s; }
.card__go .ic { width: 18px; height: 18px; }
.card:hover .card__go { transform: translateX(3px); }

/* ---------- Текст в страниците ---------- */
.entry { font-size: 16.500px; line-height: 1.72; color: var(--ink-2); overflow-wrap: anywhere; }
.entry > *:first-child, .entry .kr:first-child > .kc > *:first-child { margin-top: 0; }
.entry h2 { font: 400 27px/1.18 var(--serif); letter-spacing: -.02em; color: var(--ink); margin: 1.700em 0 .600em; }
.entry h3 { font: 400 22px/1.22 var(--serif); letter-spacing: -.015em; color: var(--ink); margin: 1.600em 0 .500em; }
.entry h4, .entry h5, .entry h6 { font: 700 17px/1.3 var(--sans); letter-spacing: 0; color: var(--ink); margin: 1.500em 0 .500em; }
.entry strong, .entry b { color: var(--ink); font-weight: 700; }
.entry a { color: var(--pink-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry ul, .entry ol { margin: 0 0 1.100em; padding-left: 1.300em; }
.entry ul { list-style: none; }
.entry ul > li { position: relative; }
.entry ul > li::before { content: ""; position: absolute; left: -1.050em; top: .720em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.entry ol { list-style: decimal; }
.entry ul.clist, .entry ul.facts, .entry ul.cards { padding-left: 0; }
.entry ul.clist > li::before, .entry ul.facts > li::before, .entry ul.cards > li::before { display: none; }
.entry ul.clist > li, .entry ul.facts > li { margin: 0; }
.entry .clist a { color: inherit; text-decoration: none; }
.entry .clist a:hover { color: var(--pink-d); }
.entry li { margin: .300em 0; }
.entry img { border-radius: 14px; }
.entry figure { margin: 0 0 1.200em; }
.entry figcaption, .entry .wp-caption-text { font-size: 13.500px; color: var(--mut); margin-top: 6px; }
.entry .wp-caption { max-width: 100%; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 1.800em 0; }
.entry blockquote { margin: 1.400em 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--pink); font: 300 21px/1.4 var(--serif); color: var(--ink); }
.entry iframe { width: 100%; border: 0; border-radius: 14px; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .lead { font-size: 20px; color: var(--ink); }
.tbl { overflow-x: auto; margin: 0 0 1.200em; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.entry table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.entry th, .entry td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry tr > *:last-child { border-right: 0; }
.entry tr:last-child > * { border-bottom: 0; }
.entry th, .entry thead td, .tbl--head tr:first-child > * { background: #f7f7fa; font-weight: 700; color: var(--ink); }
.tbl table { overflow-wrap: normal; word-break: normal; }
.tbl--scroll table { min-width: 680px; }
.kr { display: flex; flex-wrap: wrap; gap: 0 28px; }
.kr + .kr { margin-top: 8px; }
.kc { flex: 1 1 100%; min-width: 0; }
.kimg img { display: block; }
/* Галерия, вмъкната от „Добавяне на медия → Създаване на галерия“ */
.entry .gallery { columns: 2; column-gap: 10px; margin: 0 0 1.400em; }
.entry .gallery .gallery-item { margin: 0 0 10px; break-inside: avoid; }
.entry .gallery .gallery-icon a { display: block; border-radius: 14px; overflow: hidden; background: #f1f1f4; cursor: zoom-in; }
.entry .gallery img { display: block; width: 100%; height: auto; border-radius: 0; transition: transform .5s ease; }
.entry .gallery a:hover img { transform: scale(1.03); }
.entry .gallery br { display: none; }

/* Таблиците на телефон стават карти */
@media (max-width: 699px) {
  .tbl--stack { border: 0; border-radius: 0; overflow: visible; background: none; }
  .tbl--stack table, .tbl--stack tbody, .tbl--stack thead, .tbl--stack tr, .tbl--stack td, .tbl--stack th { display: block; width: auto !important; height: auto !important; }
  .tbl--stack tr:first-child { display: none; }
  .tbl--stack tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; background: #fff; box-shadow: var(--sh-1); }
  .tbl--stack td, .tbl--stack th { border: 0 !important; padding: 4px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; background: none; font-weight: 400; }
  .tbl--stack td::before, .tbl--stack th::before { content: attr(data-label); font-size: 12.500px; line-height: 1.6; color: var(--mut); font-weight: 700; overflow-wrap: normal; }
  .tbl--stack td.is-main { font-weight: 700; font-size: 16.500px; color: var(--ink); }
  .tbl--stack td.is-num { display: none; }
}

/* Файлове за изтегляне */
.entry a.doc { display: inline-flex; align-items: flex-start; gap: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.entry a.doc:hover { color: var(--pink-d); }
.entry a.doc .doc__i { flex: none; margin-top: 2px; min-width: 44px; height: 24px; padding: 0 7px; border-radius: 7px; background: rgba(239, 71, 111, .11); color: var(--pink-d); font-size: 11px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; }
.entry ul.docs { padding: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); overflow: hidden; }
.entry ul.docs > li { margin: 0; }
.entry ul.docs > li + li { border-top: 1px solid var(--line); }
.entry ul.docs > li::before { display: none; }
.entry ul.docs a.doc { display: flex; align-items: center; gap: 12px; padding: 13px 16px; line-height: 1.38; transition: background .2s; }
.entry ul.docs a.doc:hover { background: #fafafc; color: var(--ink); }
.entry ul.docs a.doc .doc__i { margin-top: 0; }
.entry ul.docs > li > a.doc + a.doc { border-top: 1px solid var(--line); }
.entry ul.docs > li.docs__x { padding: 13px 16px; }
.entry ul.docs > li.docs__x > ul { margin: 8px 0 0; }
/* Списък в списък: една карта, не карта в карта. */
.entry ul.docs ul.docs { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.entry ul.docs > li.docs__x:has(> ul.docs) { padding: 0; }
.entry ul.docs > li.docs__x:has(> ul.docs) > br { display: none; }
.entry ul.ul-wrap { padding-left: 0; }
.entry li.li-wrap::before { display: none; }
.entry li.li-wrap > br { display: none; }
/* Файл в обикновен списък: без точка отпред, значката е достатъчна. */
.entry ul:not(.docs) > li:has(> a.doc:first-child) { margin-left: -1.300em; }
.entry ul:not(.docs) > li:has(> a.doc:first-child)::before { display: none; }
.entry ul.docs a.doc::after { content: ""; margin-left: auto; flex: none; width: 18px; height: 18px; background: var(--mut); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M6 11l6 6 6-6M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M6 11l6 6 6-6M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: background .2s; }
.entry ul.docs a.doc:hover::after { background: var(--pink); }
.entry ul.docs a.doc--link::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.entry a.doc--link .doc__i { background: rgba(38, 84, 124, .1); color: var(--navy); }

/* Раздели в карти (Защита на личните данни) */
.pcards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pintro { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 44em; }
.pintro > *:last-child { margin-bottom: 0; }
.pcard { border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; background: #fff; box-shadow: var(--sh-1); min-width: 0; }
.pcard h2 { font: 400 22px/1.2 var(--serif); margin: 0 0 14px; }
.pcard > *:last-child { margin-bottom: 0; }
.pcard p { line-height: 1.8; }
.pcard--docs { background: linear-gradient(135deg, rgba(246, 243, 124, .3), rgba(239, 71, 111, .1) 55%, rgba(0, 216, 255, .1)), #fff; }

/* Карта */
/* Преди да се зареди истинската карта, полето е рисувана карта с адреса и бутоните: не стои празно. */
.map { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #eef1f6; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; text-align: center; margin: 0 0 1.200em; }
.map__bg { position: absolute; inset: 0; z-index: -1; }
.map__bg svg { display: block; width: 100%; height: 100%; }
.map__c { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 20px 20px; background: rgba(255, 255, 255, .93); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-2); }
.map__pin { position: relative; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #f6648a, #e93e69); box-shadow: 0 10px 22px -10px rgba(239, 71, 111, .9); }
.map__pin svg { width: 26px; height: 26px; }
.map__pin::before, .map__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(239, 71, 111, .5); animation: mappulse 2.600s ease-out infinite; }
.map__pin::after { animation-delay: 1.300s; }
@keyframes mappulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.100); opacity: 0; } }
.map__t { font: 400 23px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.map__a { color: var(--ink-2); font-size: 15.500px; line-height: 1.5; }
.map__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.map__b .btn { cursor: pointer; border: 0; }
.map__b .btn--ghost { border: 1px solid var(--line); }
.map__n { margin: 10px 0 0; font-size: 13px; color: var(--mut); }
@media (max-width: 899px) {
  .map { padding: 44px 16px; margin-top: 22px; }
}
.map.is-on { padding: 0; border: 0; display: block; min-height: 0; background: none; }
.map.is-on iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--r); }

/* Форми */
.sf { display: flex; gap: 8px; flex-wrap: wrap; }
.sf input { flex: 1 1 200px; }
.sf input, .cform input:not([type=submit]):not([type=checkbox]):not([type=radio]), .cform textarea, .cform select { width: 100%; min-width: 0; min-height: 50px; padding: 12px 18px; border: 1px solid transparent; border-radius: 16px; font: inherit; font-size: 16px; background: #efeff2; color: var(--ink); transition: background .2s, border-color .2s, box-shadow .2s; }
.sf input { border-radius: 999px; padding-left: 22px; }
.sf input:focus, .cform input:focus, .cform textarea:focus { outline: 0; background: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(239, 71, 111, .14); }
.srchbox { margin-bottom: 22px; max-width: 620px; }
.cform { max-width: 620px; }
.cform p { margin: 0 0 12px; }
.cform label { font-weight: 600; font-size: 15px; }
.cform textarea { min-height: 150px; resize: vertical; }
.cform input[type=submit] { -webkit-appearance: none; appearance: none; min-height: 48px; padding: 10px 26px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #f6648a, #e93e69); color: #fff; font: 600 15.500px var(--sans); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 20px -10px rgba(239, 71, 111, .8); }
.cform .wpcf7-form-control-wrap { display: block; margin-bottom: 10px; }
.cform br { display: none; }
.cform__n { font-size: 13px; line-height: 1.5; color: var(--mut); margin: 14px 0 0 !important; }
/* Значката на reCAPTCHA е скрита, защото текстът за нея стои под формата. */
.grecaptcha-badge { visibility: hidden !important; }
.cform .wpcf7-not-valid-tip { color: var(--pink-d); font-size: 14px; margin-top: 4px; }
.cform .wpcf7-response-output { margin: 12px 0 0 !important; border-radius: 12px; padding: 12px 14px !important; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: var(--pink); color: var(--pink-d); }
.pn { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 36px 0 22px; }
.pn__a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--sh-1); text-decoration: none; line-height: 1.35; }
.pn__a small { color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11.500px; }
.pn__a span { font-weight: 600; }
.pn__a:hover { border-color: rgba(34, 34, 44, .2); }

/* ---------- Долна част ---------- */
.ft { position: relative; background: #fff; border-top: 1px solid var(--line); border-radius: 28px 28px 0 0; overflow: hidden; font-size: 15px; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--pink-d); }
.ft__g { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 30px; }
.ft__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ft__brand img { height: 56px; width: auto; flex: none; }
.ft__brand b { display: block; font: 400 26px/1.05 var(--serif); letter-spacing: -.025em; }
.ft__brand small { display: block; font-size: 11.500px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-top: 5px; }
.ft__h { font: 700 11.500px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--mut); margin: 0 0 12px; }
.ft__l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ft__l a { display: inline-flex; min-height: 38px; align-items: center; font-weight: 500; }
.ft__c--priv p { margin: 0 0 16px; color: var(--mut); max-width: 28em; }
/* Долната част е на редове по цялата ширина: име и лични данни, контакти, раздели. */
.ft__top { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 28px; }
.ft__top .ft__brand { margin-bottom: 0; }
.ft__priv p { margin: 0 0 14px; color: var(--mut); max-width: 30em; }
.ft__row, .ft__nav { position: relative; padding-top: 24px; padding-bottom: 24px; }
.ft__nav .ft__h { margin-bottom: 8px; }
.ft__b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 18px; font-size: 13.500px; color: var(--mut); position: relative; }
.ft__b::before, .ft__row::before, .ft__nav::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; border-top: 1px solid var(--line); }
.ft__b p { margin: 0; }
.ft__b a { color: var(--ink); font-weight: 600; }
.ft__q { position: relative; margin: 0; padding: 54px 0 60px; text-align: center; background: radial-gradient(ellipse 60% 120% at 50% 118%, #f6f37c 0, rgba(246, 243, 124, .7) 30%, rgba(246, 243, 124, 0) 62%), radial-gradient(ellipse 50% 110% at 0% 100%, rgba(239, 71, 111, .62), rgba(239, 71, 111, 0) 70%), radial-gradient(ellipse 50% 110% at 100% 100%, rgba(239, 71, 111, .72), rgba(239, 71, 111, 0) 70%), linear-gradient(180deg, #fff 0, #fff5f7 100%); }
.ft__q p { margin: 0 auto; font: 300 clamp(25px, 6.400vw, 48px)/1.12 var(--serif); letter-spacing: -.025em; max-width: 17em; text-wrap: balance; }
.ft__q cite { display: block; margin-top: 16px; font: 700 12px/1.3 var(--sans); font-style: normal; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-2); }

/* ---------- Преглед на снимка ---------- */
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(20, 20, 28, .94); display: flex; align-items: center; justify-content: center; padding: 60px 8px; }
.lb__i { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lb .ib { position: absolute; color: #fff; background: rgba(255, 255, 255, .14); width: 46px; height: 46px; }
.lb .ib:hover { background: var(--pink); }
.lb__x { top: 8px; right: 8px; }
.lb__a--p { left: 8px; bottom: 6px; transform: scaleX(-1); }
.lb__a--n { right: 8px; bottom: 6px; }

.ft__t { margin: 0; color: var(--mut); max-width: 30em; line-height: 1.6; }

/* ---------- Ефекти (работят и на телефон; изключват се при „намалено движение“) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* Поява при превъртане */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv--z { transform: scale(.94); }
.rv.is-in { opacity: 1; transform: none; }

/* Началото се подрежда елемент по елемент */
.hero__t > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__t > *:nth-child(2) { animation-delay: .09s; }
.hero__t > *:nth-child(3) { animation-delay: .18s; }
.hero__t > *:nth-child(4) { animation-delay: .27s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero .frame { animation: framein 1.100s .15s cubic-bezier(.2, .7, .2, 1) both; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--fy, 0px)); transition: transform .25s ease-out; will-change: transform; }
@keyframes framein { from { opacity: 0; transform: perspective(1200px) translateY(34px) scale(.95); } }
.hero .aura--arch { animation: breathe 9s ease-in-out infinite alternate, aurain 1.600s ease both; }
@keyframes aurain { from { opacity: 0; } }

/* Ореолите бавно се движат и леко изостават при превъртане */
.aura--side { animation: drift1 16s ease-in-out infinite alternate; }
.aura--low { animation: drift2 19s ease-in-out infinite alternate; }
.aura--sun { animation: sun 11s ease-in-out infinite alternate; }
.aura--ph { animation: drift2 14s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.120); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(50px, -30px, 0) scale(1.100); } }
@keyframes sun { from { transform: translateX(-50%) scale(1); opacity: .9; } to { transform: translateX(-50%) scale(1.060); opacity: 1; } }

/* Оцветената дума преливa между два цвята */
h1 em, h2 em { background: linear-gradient(100deg, var(--pink) 0%, #c23fd0 45%, var(--pink) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sheen 7s ease-in-out infinite alternate; padding-right: .06em; }
.dark h2 em { background-image: linear-gradient(100deg, #ff7f9e 0%, #ffd36b 50%, #ff7f9e 100%); }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Блясък по основния бутон и пулс на значката „Ново“ */
.btn { position: relative; overflow: hidden; }
.btn:not(.btn--ghost):not(.btn--onink)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: shine 4.500s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.chip b { animation: pulse 2.600s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 71, 111, .45); } 50% { box-shadow: 0 0 0 7px rgba(239, 71, 111, 0); } }

/* Тъмният раздел: две светлини, които бавно обикалят зад картите */
.dark::before, .dark::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.dark::before { width: 460px; height: 460px; right: -120px; top: -140px; background: rgba(239, 71, 111, .34); animation: drift1 15s ease-in-out infinite alternate; }
.dark::after { width: 520px; height: 520px; left: -160px; bottom: -220px; background: rgba(0, 216, 255, .26); animation: drift2 18s ease-in-out infinite alternate; }
.dark > .wrap { position: relative; z-index: 1; }

/* Иконите в картите подскачат леко при посочване или докосване */
.quick a:hover .quick__i, .quick a:active .quick__i { animation: hop .5s ease; }
@keyframes hop { 40% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }
.row__a:active, .card:active, .quick a:active, .proj a:active { transform: scale(.985); }

/* Линия за напредъка при превъртане */
.prog { position: fixed; left: 0; top: 0; z-index: 90; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--pink), #f1ee4e 50%, var(--cyan)); pointer-events: none; }

/* Плаващото меню става по-плътно, когато страницата е превъртяна */
.hdw.is-stuck .bar { background: rgba(255, 255, 255, .96); box-shadow: 0 2px 6px rgba(34, 34, 44, .06), 0 18px 40px -18px rgba(34, 34, 44, .34); }

/* Много тесни телефони */
@media (max-width: 379px) {
  .brand { gap: 8px; }
  .brand__m { height: 36px; }
  .brand__t b { font-size: 16px; }
  .brand__t small { font-size: 10px; letter-spacing: .12em; }
  .ib--menu { padding: 0 12px 0 10px; }
  .tb { font-size: 12.500px; }
  .tb__in { gap: 8px; }
}

/* ============ От 600 px ============ */
@media (min-width: 600px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .ft__b::before, .ft__row::before, .ft__nav::before { left: 24px; right: 24px; }
  .clist--ft { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .tb__mail { display: inline-flex !important; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clist--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { flex-direction: column; gap: 6px; padding: 20px 20px 22px 0; }
  .facts li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 22px; }
  .facts b { font-size: 50px; min-width: 0; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry .alignleft { float: left; margin: 4px 22px 14px 0; max-width: 46%; }
  .entry .alignright { float: right; margin: 4px 0 14px 22px; max-width: 46%; }
  .entry::after { content: ""; display: block; clear: both; }
  .kc--part { flex: 1 1 calc(var(--w) - 28px); }
  .lb__a--p { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%) scaleX(-1); }
  .lb__a--n { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .sh { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; }
  .sh__d { text-align: right; }
  .sh__a { justify-self: end; }
}

@media (min-width: 700px) {
  .mas { gap: 12px; }
  .mas a { flex-basis: calc(var(--r) * 210px); height: 240px; border-radius: 16px; }
  .entry .gallery { columns: 3; column-gap: 14px; }
  .entry .gallery .gallery-item { margin-bottom: 14px; }
}

/* ============ От 900 px ============ */
@media (min-width: 900px) {
  .hero { padding-top: 20px; }
  /* Снимката е голямата част от началото, а ореолът зад нея излиза далеч извън рамката. */
  .hero__in { grid-template-columns: minmax(0, .760fr) minmax(0, 1.240fr); gap: 28px; }
  .hero h1 { font-size: clamp(36px, 3.300vw, 58px); }
  .hero__l { font-size: 18.500px; }
  .hero__v { padding: 150px 18px 110px; }
  .aura--arch { inset: -2% -16% -6% -16%; border-radius: 50% 50% 10% 10% / 70% 70% 10% 10%; filter: blur(46px); }
  .frame { padding: 10px; border-radius: 26px; }
  .frame img { border-radius: 17px; }
  .frame { padding: 9px; border-radius: 24px; }
  .frame img { border-radius: 16px; }
  .sec { padding: 88px 0; }
  .sh { margin-bottom: 34px; padding-top: 28px; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .quick a { flex-direction: column; align-items: flex-start; min-height: 156px; padding: 20px; font-size: 17px; }
  .quick a > .ic { margin: auto 0 0; }
  .split { grid-template-columns: minmax(0, .780fr) minmax(0, 1.220fr); gap: 64px; }
  .split__t { position: sticky; top: 110px; padding-top: 8px; }
  .row__a { padding: 20px 24px; }
  .list__h { padding: 16px 24px; }
  .dark { padding: 104px 0 120px; }
  .dark__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-bottom: 36px; margin-bottom: 34px; }
  .dark__top > div:last-child { text-align: right; }
  .proj { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .proj a { padding: 22px; min-height: 124px; align-items: start; }
  .proj__go { grid-row: 1; }
  .clist--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .entry .clist--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 110px 0 96px; }
  .ph { padding: 40px 0 44px; }
  .pg { padding-top: 44px; padding-bottom: 96px; }
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pintro, .pcard--docs { grid-column: 1 / -1; }
  .pcard { padding: 26px 24px; }
  .pcard--docs { padding: 30px; }
  /* На широк екран файловете се подреждат в колони и запълват реда докрай (последният ред се разтяга, не остава празна клетка). */
  .pg--full .entry ul.docs { display: flex; flex-wrap: wrap; gap: 1px; background: #e8e8ec; }
  .pg--full .entry ul.docs > li { flex: 1 1 380px; min-width: 0; background: #fff; display: flex; flex-direction: column; }
  .pg--full .entry ul.docs > li + li { border-top: 0; }
  .pg--full .entry ul.docs > li > a.doc { flex: 1; }
  .pg--full .entry ul.docs > li.docs__x { flex-basis: 100%; }
  .pg--full .entry ul.docs ul.docs { background: #e8e8ec; }
  /* Решетките запълват последния си ред, за да няма празни клетки. */
  .proj, .cards, .quick, .clist--grid { display: flex; flex-wrap: wrap; }
  .proj > li, .cards > li, .quick > li { display: flex; min-width: 0; }
  .proj > li { flex: 1 1 270px; }
  .proj > li > a, .cards > li > a, .quick > li > a { flex: 1; min-width: 0; }
  .cards > li { flex: 1 1 300px; }
  /* по четири на ред (по три на по-тесен екран); непълният последен ред се разтяга */
  .quick > li { flex: 1 1 calc(25% - 11px); min-width: 230px; }
  /* контактите: по две на ред, а от 1280 px всички на един ред с еднаква ширина (никога три и една отдолу) */
  .clist--grid > li, .entry .clist--grid > li { flex: 1 1 40%; }
  /* Картата е висока колкото формата до нея. */
  .kr { align-items: stretch; }
  .kc:has(> .map) { display: flex; flex-direction: column; }
  .kc > .map { flex: 1; margin-bottom: 0; }
  .kc > .map.is-on { display: flex; }
  .kc > .map.is-on iframe { flex: 1; height: auto; min-height: 380px; }
  .clist--ft { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .ft__top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 34px; }
  .ft__priv { display: flex; align-items: center; gap: 22px; }
  .ft__priv p { margin: 0; max-width: 24em; font-size: 14px; }
  .ft__priv .btn { flex: none; }
  .ft__nav { display: flex; align-items: baseline; gap: 30px; }
  .ft__nav .ft__h { margin: 0; flex: none; }
  .ft__nav .ft__l { display: flex; flex-wrap: wrap; gap: 0 28px; }
  .ft { border-radius: 36px 36px 0 0; }
  .ft__g { grid-template-columns: minmax(0, 1.300fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 44px; }
  .ft__q { padding: 90px 0 100px; }
}


/* ============ От 1024 px: странична колона ============ */
@media (min-width: 1024px) {
  /* Връзките на раздела са ред от „хапчета“ под заглавието, вместо висока колона отстрани. */
  .sn { padding-top: 26px; }
  .snav { border: 0; border-radius: 0; box-shadow: none; background: none; }
  .snav summary { display: none; }
  .snav__l { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
  .snav__l li { display: contents; }
  .snav__l a, .snav__l .sub__h { display: inline-block; max-width: 340px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--sh-1); font-size: 14.500px; font-weight: 600; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, color .2s, background .2s; }
  .snav__l a:hover { background: #fff; border-color: rgba(34, 34, 44, .32); color: var(--ink); }
  .snav__l li.is-act > a { background: rgba(239, 71, 111, .1); border-color: rgba(239, 71, 111, .32); color: var(--pink-d); font-weight: 600; }
  .snav__l li > a[aria-current], .snav__l li.is-cur > a { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
  .snav__l .sub__n { display: none; }
  .snav__l li.is-act > .sub__n { order: 9; display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; margin: 4px 0 0; padding: 12px 0 0; border: 0; border-top: 1px dashed rgba(34, 34, 44, .16); }
  .snav__l .sub__n a { font-size: 13.500px; padding: 7px 14px; box-shadow: none; background: #f5f5f8; }
  .snav__l .ic { display: none; }
  .pg { padding-top: 32px; }
  /* Дълъг текст: вдясно стои колона с новини и контакти, която следва превъртането. */
  .pg--read { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .pg--read .pg__a { display: grid; gap: 16px; position: sticky; top: 92px; }
}

/* ============ От 1180 px: името е горе, а менюто е плаващо „хапче“ под него ============ */
@media (min-width: 1180px) {
  :root { --bar: 58px; }
  .tb { display: none; }
  .hd2 { display: block; padding-top: 22px; }
  .hd2__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .hd2 .brand__m { height: 58px; }
  .hd2 .brand__t b { font-size: 27px; }
  .hd2 .brand__t small { font-size: 11.500px; margin-top: 5px; }
  .hd2__r { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--mut); }
  .hd2__r li, .hd2__c { display: inline-flex; align-items: center; gap: 7px; }
  .hd2__c { gap: 22px; }
  .hd2__r a { text-decoration: none; }
  .hd2__r a:hover { color: var(--ink); }
  .hd2__r .ic { width: 16px; height: 16px; }
  .hd2__p { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); font-weight: 600; }
  .hd2__p .ic { color: var(--pink); }
  .hd2__p:hover { border-color: rgba(34, 34, 44, .28); }
  .hdw { padding: 14px 0 10px; }
  .ib--menu { display: none; }
  .ib--srch { display: inline-flex; }
  .bar { width: -moz-fit-content; width: fit-content; max-width: 100%; margin: 0 auto; padding: 7px 8px 7px 10px; gap: 4px; }
  /* В плаващото меню няма знак и име: те са в реда над него. */
  .bar .brand { display: none; }
  .nav { display: block; min-width: 0; }
  .nav__l { display: flex; align-items: center; gap: 0; }
  /* Сивото поле при посочване е на целия бутон (името + стрелката), за да не остава стрелката извън него. */
  .nav__i { position: relative; display: flex; align-items: center; border-radius: 999px; transition: background .15s; }
  .nav__a { display: inline-flex; align-items: center; gap: 3px; height: 42px; padding: 0 11px; border-radius: 999px; font-weight: 600; font-size: 14.400px; text-decoration: none; white-space: nowrap; color: var(--ink-2); transition: background .15s, color .15s; }
  .nav__a .ic, .nav__t .ic { width: 15px; height: 15px; color: var(--mut); transition: transform .2s; }
  .nav__t { height: 42px; width: 20px; margin: 0 8px 0 -9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
  .nav__i:hover, .nav__i.is-open { background: rgba(34, 34, 44, .06); }
  .nav__i:hover > .nav__a, .nav__i.is-open > .nav__a { color: var(--ink); }
  .nav__i.is-act > .nav__a { color: var(--pink-d); }
  .nav__i:hover .nav__a .ic, .nav__i:hover .nav__t .ic, .nav__i.is-open .ic { transform: rotate(180deg); }
  .nav__i.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }

  /* Подменю: побира колкото искате подбутони. При повече от шест става на две колони, а при много дълъг списък се превърта. */
  .sub { position: absolute; top: calc(100% + 14px); left: -8px; z-index: 70; min-width: 290px; max-width: min(92vw, 380px); width: max-content; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
  .sub--wide { width: min(92vw, 680px); max-width: none; }
  .sub--wide .sub__l { columns: 2; column-gap: 10px; }
  .sub--wide .sub__l > li { break-inside: avoid; }
  .nav__i:nth-last-child(-n+3) > .sub, .sub.is-right { left: auto; right: -8px; }
  .nav__i:hover > .sub, .nav__i:focus-within > .sub, .nav__i.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
  .nav.is-closing .sub { opacity: 0 !important; visibility: hidden !important; }
  .sub a, .sub__h { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 11px; text-decoration: none; font-weight: 600; font-size: 14.500px; line-height: 1.35; color: var(--ink-2); }
  .sub__h { color: var(--mut); text-transform: uppercase; letter-spacing: .12em; font-size: 11.500px; font-weight: 700; }
  .sub a:hover { background: rgba(239, 71, 111, .09); color: var(--pink-d); }
  .sub li.is-act > a { color: var(--pink-d); }
  .sub .ic { width: 14px; height: 14px; opacity: .6; }
  .sub__n { margin: 0 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--line); }
  .sub__n a { font-weight: 500; font-size: 14px; padding: 7px 10px; }
}
@media (min-width: 1400px) {
  .wrap { max-width: 1280px; }
  .nav__a { padding: 0 14px; font-size: 15px; }
  .nav__t { margin: 0 11px 0 -11px; }
}
/* На много широк екран съдържанието става по-широко, за да не остават големи празни полета отстрани. */
@media (min-width: 1600px) {
  .wrap { max-width: 1440px; }
  .nav__a { padding: 0 16px; font-size: 15.500px; }
  .nav__t { margin: 0 13px 0 -12px; }
  .hero__in { gap: 44px; }
}

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

@media print {
  .tb, .hdw, .ft, .ov, .lb, .pg__s, .crumbs, .aura { display: none !important; }
  body { font-size: 12pt; }
  .rv { opacity: 1; transform: none; }
}

/* На компютър връзките към подстраниците вече са в реда под заглавието; картите под текста биха ги повторили. */
@media (min-width: 1024px) {
  .pg__dup { display: none; }
}

/* Новините на началната страница: две колони в една карта; последният ред се разтяга, ако броят е нечетен. */
@media (min-width: 900px) {
  .list--2 { display: flex; flex-wrap: wrap; gap: 1px; background: #e8e8ec; }
  .list--2 .row { flex: 1 1 460px; min-width: 0; background: #fff; display: flex; }
  .list--2 .row + .row { border-top: 0; }
  .list--2 .row__a { flex: 1; align-content: center; grid-auto-rows: max-content; }
}

/* ---------- Страница от събития със снимки (Галерия): всяко събитие е карта със заглавие, текст и снимки ---------- */
.evs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ev { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); padding: 20px 18px; min-width: 0; }
.ev--lead { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.entry .ev h2 { font: 400 24px/1.16 var(--serif); letter-spacing: -.02em; margin: 0 0 12px; }
.ev__x { color: var(--ink-2); }
.ev__x > *:last-child { margin-bottom: 0; }
.ev__x p { margin: 0 0 .700em; }
.entry .ev__x ul { margin: 0 0 .700em; }
.ev .mas { margin-top: 16px; }
.ev--lead .mas, .ev__t:empty + .mas { margin-top: 0; }
.ev__one { margin: 16px 0 0; }
/* рамката е колкото снимката: без ленти отстрани, каквато и да е формата ѝ */
.ev__one a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.ev__one img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(640px, 80vh); border-radius: 0; }
.ev__more { margin: 14px 0 0; }
@media (min-width: 900px) {
  .evs { gap: 22px; }
  .ev { padding: 32px 34px; border-radius: 26px; }
  .entry .ev h2 { font-size: 30px; margin-bottom: 14px; }
  .ev .mas { margin-top: 22px; }
  /* дълъг текст или списък се подрежда в две колони, за да запълни ширината */
  .ev__x--cols { columns: 2; column-gap: 48px; }
  .ev__x--cols > * { break-inside: avoid; }
  /* събитие с една снимка: текстът е вляво, снимката вдясно */
  /* колоната на снимката следва формата ѝ (--ar = ширина / височина): изправената е тясна, легналата е широка */
  .ev--one { --ih: 440px; --ic: min(calc(var(--ih) * var(--ar, 1.333)), 56%, var(--iw, 9999px)); display: grid; grid-template-columns: minmax(0, 1fr) var(--ic); gap: 44px; align-items: center; }
  .ev--one .ev__one { margin: 0; }
  .ev--one .ev__one a { width: 100%; }
  .ev--one .ev__one img { width: 100%; max-height: none; }
  .ev--one.ev--flip { grid-template-columns: var(--ic) minmax(0, 1fr); }
  .ev--one.ev--flip .ev__one { order: -1; }
  .entry .ev--one .ev__t > h2:only-child { line-height: 1.12; margin: 0; }
  /* събитие само със заглавие и снимка: по-ниска снимка и мек цветен ореол зад заглавието, за да не стои полето голо */
  .ev--solo { --ih: 400px; background:
    radial-gradient(46% 78% at 0% 100%, rgba(239, 71, 111, .13), transparent 68%),
    radial-gradient(40% 70% at 26% 0%, rgba(238, 238, 34, .16), transparent 70%),
    radial-gradient(34% 60% at 46% 100%, rgba(0, 216, 255, .10), transparent 70%), #fff; }
  .ev--solo.ev--flip { background:
    radial-gradient(46% 78% at 100% 100%, rgba(239, 71, 111, .13), transparent 68%),
    radial-gradient(40% 70% at 74% 0%, rgba(238, 238, 34, .16), transparent 70%),
    radial-gradient(34% 60% at 54% 100%, rgba(0, 216, 255, .10), transparent 70%), #fff; }
  .ev--one .ev__x--cols { columns: 1; }
}

/* Събития: доизпипване */
.ev.ev--lead { padding: 0; }
.ev__cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 14px 0 0 !important; }
.entry .ev__x ul.ev__cols { padding-left: 1.300em; }
.ev__cols > li { break-inside: avoid; }
@media (min-width: 600px) {
  .entry .ev__x ul.ev__cols { columns: 2; column-gap: 40px; }
}
@media (min-width: 900px) {
  /* списъкът се разлива в колони под увода, а не до него */
  .ev__x--cols { columns: 1; }
  .ev__x--text { columns: 2; column-gap: 48px; }
  .ev__x--text > * { break-inside: avoid; }
  .ev--one .ev__x--text { columns: 1; }
  /* две поредни малки събития стоят едно до друго, със снимката отгоре */
  .evs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev { grid-column: 1 / -1; }
  .ev.ev--half { grid-column: auto; display: flex; flex-direction: column; }
  /* снимката поема разликата във височината на двете карти, за да не остава празно под по-късия текст */
  .ev--half .ev__t { flex: none; }
  .ev--half .ev__one { order: -1; flex: 1 1 360px; min-height: 360px; margin: 0 0 22px; position: relative; }
  .ev--half .ev__one a { position: absolute; inset: 0; width: auto; max-width: none; margin: 0; }
  .ev--half .ev__one img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
}
@media (min-width: 1200px) {
  .entry .ev--one .ev__t > h2:only-child { font-size: 38px; }
}
@media (min-width: 1280px) {
  .clist--grid { flex-wrap: nowrap; gap: 12px; }
  .clist--grid > li, .entry .clist--grid > li { flex: 1 1 0; padding: 16px 14px; }
  /* при шест и повече карти остават на няколко реда */
  .clist--grid:has(> li:nth-child(6)) { flex-wrap: wrap; }
  .clist--grid:has(> li:nth-child(6)) > li { flex: 1 1 30%; }
}
@media (min-width: 1400px) {
  .ev--one { --ih: 480px; gap: 56px; }
  .ev--solo { --ih: 420px; }
  .entry .ev--one .ev__t > h2:only-child { font-size: 44px; }
}
@media (min-width: 1200px) {
  .entry .ev__x ul.ev__cols { columns: 3; }
}

/* Бутон в текста не е подчертана връзка. */
.entry a.btn, .entry a.btn:hover { text-decoration: none; color: #fff; }
.entry a.btn.btn--ghost, .entry a.btn.btn--ghost:hover { color: var(--ink); }

/* Заглавие с много дълга дума („Здравноосигурителни“) е по-малко на телефон, за да не се пречупи думата. */
@media (max-width: 599px) {
  .ph h1.h1--long { font-size: clamp(25px, 7.200vw, 34px); }
}

/* Кодът на проекта минава на нов ред цял, вместо да се пречупи по средата. */
.proj__c { display: inline-block; }

/* Празните редове в таблиците (например в „Екип“) не се показват. */
.entry tr.is-blank { display: none !important; }
@media (max-width: 699px) {
  /* В картите на телефон името е заглавие на картата, без надпис пред него; празните полета не се показват. */
  .tbl--stack td.is-main { display: block; padding: 2px 0 8px; }
  .tbl--stack td.is-main::before { display: none; }
  .tbl--stack td.is-blank { display: none; }
}

/* Когато подстраниците са показани като карти, вторият ред бутони над тях ги повтаря. */
@media (min-width: 1024px) {
  .snav--nosub .snav__l li:has(> a[aria-current]) > .sub__n { display: none; }
}

/* Полето за съобщение на телефон не заема цял екран. */
@media (max-width: 899px) {
  .cform textarea { height: 170px; min-height: 120px; }
}

/* Цветният ореол в началото на страницата не се отрязва с права линия под менюто: продължава нагоре зад менюто и избледнява.
   Встрани и отдолу остава изрязан както досега. Горните редове (телефон, имейл, име) стоят над него. */
.hero, .ph { overflow: visible; overflow-x: clip; clip-path: inset(-480px 0 0 0); }
.tb, .hd2 { position: relative; z-index: 2; }

/* Лицето на Ботев в плаващото меню води към началната страница. */
@media (min-width: 1180px) {
  .bar .brand { display: inline-flex; flex: none; align-items: center; height: 42px; padding: 0 7px 0 4px; margin-right: 2px; border-radius: 999px; }
  .bar .brand__t { display: none; }
  .bar .brand__m { height: 32px; transition: transform .25s ease; }
  .bar .brand:hover .brand__m { transform: scale(1.08) rotate(-4deg); }
}
@media (min-width: 1180px) and (max-width: 1399px) {
  .nav__a { padding: 0 10px; }
}

/* В колоната с текст (вдясно са новините) контактите са две по две. */
@media (min-width: 1024px) {
  .pg--read .clist--grid { flex-wrap: wrap; }
  .pg--read .clist--grid > li, .pg--read .entry .clist--grid > li { flex: 1 1 40%; }
}

/* Числата в текста на страница („За нас“): всички на един ред, колкото и да са, без празно място до последното. */
@media (min-width: 600px) {
  .facts--in { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
