/* ============================================================================
   BLOCKS: the section system shared by the home page and every inner page.
   - Sections (.hp-sec) on a white, soft or dark background (.sec-white / .sec-soft / .sec-dark;
     the home page sets its own backgrounds per section in home.css).
   - Section heads, ruled lists, two- and three-column layouts, cards, step rows, the inquiry
     band and the contact strip, the seam rule between two light sections.
   - Background motifs: .deco--{name} on the .deco element (the base .deco is in theme.css).
   - Inner pages: hero, breadcrumbs, in-page navigation, FAQ, highlighted cards, checklists
     with a photo, the dark cross-link band.
   home.css holds what only the home page uses; form.css the inquiry form.
   ============================================================================ */

/* ---- type and section frame ---- */
.hp-h2{margin:16px 0 0;font-size:var(--fs-h2);font-weight:800;line-height:1.04;letter-spacing:-.005em;color:var(--ink)}
.hp-text{margin:20px 0 0;font-size:var(--fs-body);line-height:1.55}
.hp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:38px}
.hp-sec{padding:var(--sec-pad) 0}
.sec-white{background:var(--white)}
.sec-soft{background:var(--soft)}
.sec-dark{background:var(--dark);color:var(--text-on-dark);--focus:var(--red-on-dark)}
.sec-dark .eyebrow,.sec-dark .hp-h2{color:var(--white)}
.sec-dark .hp-head-note,.sec-dark .hp-text{color:var(--text-on-dark)}
.sec-dark .hp-col-title{color:var(--text-on-dark)}

/* ---- section heads ---- */
.hp-head{display:grid;grid-template-columns:1.4fr 1fr;gap:48px;align-items:end;margin-bottom:56px}
.hp-head--top{align-items:start}
.hp-head-note{margin:0;font-size:var(--fs-body);line-height:1.55;color:var(--text)}
.hp-head-note + .hp-head-note{margin-top:14px}

/* ---- column titles, ruled lists, columns, section actions ---- */
.hp-col-title{margin:0 0 6px;font-family:var(--ts-font-body);font-size:var(--fs-eyebrow);font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.hp-list{margin:0;padding:0;list-style:none}
.hp-list li{position:relative;padding:14px 0 14px 26px;border-top:1px solid var(--rule);font-size:var(--fs-card);line-height:1.45;color:var(--ink)}
.hp-list li::before{content:"";position:absolute;left:0;top:23px;width:10px;height:10px;border-radius:50%;background:var(--red)}
.hp-list li:last-child{border-bottom:1px solid var(--rule)}
.hp-list--dark li,.sec-dark .hp-list li{border-color:var(--rule-on-dark);color:var(--white)}
.sec-soft .hp-list li{border-color:var(--rule-2)}
.hp-sec-actions{display:flex;flex-wrap:wrap;gap:14px 18px;margin-top:48px}
.hp-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 64px}
.hp-cols--3{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 48px}
.hp-col-h{margin:0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.hp-col-p{margin:12px 0 0;font-size:var(--fs-card);line-height:1.6;color:var(--text)}
.hp-col-p + .hp-list{margin-top:18px}
.sec-dark .hp-col-h{color:var(--white)}
.sec-dark .hp-col-p{color:var(--text-on-dark)}
/* a column with a title of its own: a short red bar over it, as on the cards */
.hp-cols--ruled .hp-col{position:relative;padding-top:26px;border-top:2px solid var(--rule)}
.hp-cols--ruled .hp-col::before{content:"";position:absolute;left:0;top:-2px;width:32px;height:2px;background:var(--red)}
.sec-soft .hp-cols--ruled .hp-col{border-top-color:var(--rule-2)}

/* ---- cards: separate rounded cards with a soft shadow; on hover they lift 2 px and the red
   top bar (clipped to the corner) grows to the full width ---- */
.hp-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.hp-cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hp-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hp-card{position:relative;overflow:hidden;padding:32px 28px 34px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card);
  transition:transform .18s ease,box-shadow .18s ease}
.hp-card::before{content:"";position:absolute;left:0;top:0;width:48px;height:3px;background:var(--red);transition:width .18s ease}
/* only a card that is a link reacts to hover (none of the cards is one today) */
.hp-card.is-link:hover{transform:translateY(-2px);box-shadow:var(--shadow-card-hover)}
.hp-card.is-link:hover::before{width:100%}
.hp-card-title{margin:0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.hp-card-text{margin:14px 0 0;font-size:var(--fs-card);line-height:1.55;color:var(--text)}
.hp-card-tag{display:inline-block;margin:0 0 16px;padding:6px 10px;border-radius:var(--r-xs);background:var(--red);color:var(--white);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.hp-card-extra{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--rule)}
.hp-card-extra .hp-col-title{margin-bottom:6px}
.hp-card-extra p{margin:0;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
/* the highlighted card: dark, like the specialised tile on the home page */
.hp-card--dark{background:var(--dark);border-color:var(--dark);--focus:var(--red-on-dark)}
.hp-card--dark .hp-card-title{color:var(--white)}
.hp-card--dark .hp-card-text,.hp-card--dark .hp-card-extra p,.hp-card--dark .hp-col-title{color:var(--text-on-dark)}
.hp-card--dark .hp-card-extra{border-top-color:var(--rule-on-dark)}
.hp-card--dark::before{background:var(--red-on-dark)}
.hp-card--wide{grid-column:span 2}
/* a card with a photo header: the photo fills the top edge to edge, the red bar sits over it */
.hp-card.hp-card--photo{display:flex;flex-direction:column;padding:0}
.hp-card--photo::before{z-index:2}
.hp-card-photo{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--soft)}
.hp-card-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.hp-card--photo .hp-card-body{padding:26px 26px 32px}

/* ---- step rows ---- */
.hp-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 28px;margin:0;padding:0;list-style:none}
.hp-step{position:relative;padding-top:30px;border-top:2px solid var(--rule-2)}
.hp-step::before{content:"";position:absolute;left:0;top:-2px;width:32px;height:2px;background:var(--red)}
.hp-step-num{display:block;font-family:var(--ts-font-display);font-size:40px;font-weight:800;line-height:1;color:var(--red)}
.hp-step-title{margin:16px 0 0;font-size:21px;font-weight:800;line-height:1.2;color:var(--ink)}
.hp-step-text{margin:10px 0 0;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
.sec-white .hp-step{border-top-color:var(--rule)}

/* ---- a sub-page's strip: the other pages of its section (inc/nav.php ts_nav_siblings()). White:
   the soft enquiry band always follows it ---- */
.ip-sibs{padding:calc(var(--sec-pad) * .75) 0 calc(var(--sec-pad) * 5 / 6);background:var(--white);border-top:1px solid var(--rule)}
.ip-sibs-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px;margin-bottom:26px}
.ip-sibs-title{margin:0;font-family:var(--ts-font-display);font-size:clamp(24px,2.4vw,32px);font-weight:800;line-height:1.15;color:var(--ink)}
.ip-sibs-up{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:700;color:var(--ink)}
.ip-sibs-up:hover{color:var(--red-deep)}
.ip-sibs-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ip-sib{display:flex;align-items:center;justify-content:space-between;gap:14px;height:100%;min-height:76px;padding:18px 22px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);
  box-shadow:var(--shadow-card);font-family:var(--ts-font-display);font-size:18px;font-weight:700;line-height:1.3;color:var(--ink);transition:border-color .18s ease,color .18s ease,transform .18s ease}
a.ip-sib:hover{border-color:var(--red);color:var(--red-deep);transform:translateY(-2px)}
/* the page itself: in the row, but not a link */
.ip-sib.is-current{background:transparent;box-shadow:none;border:2px solid var(--red);color:var(--red-deep)}
@media (max-width:767px){.ip-sibs{padding:56px 0 60px}.ip-sibs-list{grid-template-columns:1fr}}
/* holding and privacy pages: the page title is the whole hero, so it fits a phone ("Информационен център" on one line) */
@media (max-width:767px){.ip--holding .ip-h1,.ip.lg .ip-h1{font-size:min(var(--fs-h1),8.2vw)}}
/* a long title (over 85 characters, an article's) keeps its last two words together (ts_keep_last_two());
   on phones it is set small enough for two long words on one line (12.6 em: "вътреобщностна доставка").
   A shorter title whose field joins its last two words with a no-break space gets the same, fitted to
   that pair (--ip-h1-fit, inc/inner.php) */
@media (max-width:767px){.ip-h1.ip-h1--long{font-size:min(var(--fs-h1),calc((100vw - 32px) / var(--ip-h1-fit,12.6)));line-height:1.06}}
@media (prefers-reduced-motion:reduce){.ip-sib{transition:none}a.ip-sib:hover{transform:none}}

/* ---- a legal page: the contact strip alone, in rows (inner.php ts_contact_band()): the phone and
   the two mailboxes, then the office and the office hours (two wide) ---- */
.ip-contact{padding:calc(var(--sec-pad) * .75) 0 calc(var(--sec-pad) * 5 / 6);background:var(--soft);border-top:1px solid var(--rule)}
.ip-contact .hp-contact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 0}
.ip-contact .hp-contact > div{padding:20px 32px;border-bottom:0;border-left:1px solid var(--rule)}
.ip-contact .hp-contact > div:nth-child(3n+1){border-left:0}
.ip-contact .hp-contact > div:nth-child(n+4){border-top:1px solid var(--rule)}
.ip-contact .hp-contact-hours{grid-column:span 2}
@media (max-width:1199px){
  .ip-contact .hp-contact{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
  .ip-contact .hp-contact > div:nth-child(even){border-left:1px solid var(--rule)}
  .ip-contact .hp-contact > div:nth-child(odd){border-left:0}
  .ip-contact .hp-contact > div:nth-child(n+3){border-top:1px solid var(--rule)}
  .ip-contact .hp-contact-hours{grid-column:1 / -1}
}
@media (max-width:767px){
  .ip-contact{padding:56px 0 60px}
  .ip-contact .hp-contact{grid-template-columns:1fr;padding:6px 22px}
  .ip-contact .hp-contact > div,.ip-contact .hp-contact > div:nth-child(n){padding:18px 0;border-left:0;border-top:0;border-bottom:1px solid var(--rule)}
  .ip-contact .hp-contact > div:last-child{border-bottom:0}
  .ip-contact .hp-contact-hours{grid-column:auto}
}

/* ---- inquiry band and contact strip ---- */
.hp-close{padding:var(--sec-pad) 0;background:var(--soft)}
.hp-close-in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:64px;align-items:start}
.hp-close .hp-h2{margin:0}
.hp-close .hp-text{margin-top:18px;color:var(--text)}
.hp-close .hp-text a{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hp-contact{position:relative;overflow:hidden;margin:0;padding:8px 28px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.hp-contact::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--red)}
.hp-contact > div{padding:18px 0;border-bottom:1px solid var(--rule)}
.hp-contact > div:last-child{border-bottom:0}
.hp-contact dt{margin:0 0 4px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hp-contact dd{margin:0;font-size:19px;line-height:1.4;color:var(--ink)}
.hp-contact a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.28);text-decoration-thickness:1px;text-underline-offset:4px}
.hp-contact a:hover{color:var(--red);text-decoration:underline;text-underline-offset:3px}
/* a department's contact (its section's pages): the person, the phone and the mailbox, one a line */
.hp-contact-dept dd > span{display:block}
.hp-contact-dept dd > span + span{margin-top:2px}
.hp-contact-person{font-weight:700}
/* what happens after sending: a short numbered list under the contact strip */
/* the column beside the inquiry form (contact strip, steps, photo; home and service pages) stays
   in view while the taller form scrolls past, under the compact header, and under the in-page bar
   where there is one; the photo only fills the desktop column (phones end with the steps) */
@media (min-width:981px){
  .hp-close .hp-close-aside{position:sticky;top:calc(var(--mh-compact,68px) + 24px)}
  .ip-hero--nav ~ .hp-close .hp-close-aside{top:calc(var(--mh-compact,68px) + var(--ip-nav-h) + 24px)}
  /* sticky needs an ancestor that clips without becoming a scroll container (as .ip-sec--faq-photo) */
  .hp-close.has-deco{overflow:clip}
}
@media (max-width:980px){
  .hp-close-photo{display:none}
}
.hp-after{margin-top:34px}
.hp-after ol{margin:10px 0 0;padding:0;list-style:none;counter-reset:after}
.hp-after li{position:relative;padding:12px 0 12px 40px;border-bottom:1px solid var(--rule-2);font-size:var(--fs-card);line-height:1.5;color:var(--text);counter-increment:after}
.hp-after li::before{content:counter(after);position:absolute;left:0;top:11px;font-family:var(--ts-font-display);font-size:20px;font-weight:800;line-height:1.2;color:var(--red)}

/* a thin rule where a light section follows another light section (since 2026-10-15 without the
   red segment: the red marks the tops of the cards) */
.hp-seam{position:relative}
.hp-seam::before{content:"";position:absolute;left:0;right:0;top:0;z-index:1;height:1px;background:var(--rule-2)}

/* ---- background motifs (one per section; base .deco in theme.css) ----
   Ink on the light sections, white on the dark ones; the placements match the home page. On the
   inner pages' light sections a motif is an accent (CLAUDE.md: at most one light section in three,
   never two in a row) and runs a third lighter than its own strength (--deco-k); the home page's
   sections are not .sec-white / .sec-soft and keep theirs. */
.sec-white > .deco,.sec-soft > .deco{--deco-color:var(--ink);--deco-k:.67}
.sec-dark > .deco{--deco-color:var(--white)}
.deco--ring{--deco-img:url(../img/bg/bg-bearing-ring.svg);--deco-opacity:.14;--deco-size:900px 900px;--deco-pos:calc(100% + 270px) 50%;
  --deco-fade:linear-gradient(to left,#000 0,#000 540px,transparent 660px)}
/* the chart grid is drawn large and placed so its coordinate labels stay outside the section */
.deco--grid{--deco-img:url(../img/bg/bg-chart-grid.svg);--deco-opacity:.14;--deco-size:2400px auto;--deco-pos:calc(50% + 1000px) -380px;
  --deco-fade:linear-gradient(to left,#000 0,#000 48%,transparent 60%)}
.deco--contours{--deco-img:url(../img/bg/bg-contours-a.svg);--deco-opacity:.14;--deco-size:cover;--deco-pos:center;
  --deco-fade:radial-gradient(ellipse 80% 110% at 100% 50%,#000 0,#000 40%,transparent 95%)}
.deco--contours-b{--deco-img:url(../img/bg/bg-contours-b.svg);--deco-opacity:.14;--deco-size:1400px auto;--deco-pos:right bottom;
  --deco-fade:radial-gradient(ellipse 60% 95% at 100% 100%,#000 0,transparent 85%)}
.deco--arcs{--deco-img:url(../img/bg/bg-route-arcs.svg);--deco-opacity:.32;--deco-size:1700px auto;--deco-pos:left -300px top -230px;
  --deco-fade:radial-gradient(1500px 560px at 0 0,#000 0,#000 55%,transparent 100%)}
.deco--containers{--deco-img:url(../img/bg/bg-containers.svg);--deco-opacity:.14;--deco-size:1100px auto;--deco-pos:right -40px bottom 0;
  --deco-fade:radial-gradient(ellipse 75% 100% at 100% 100%,#000 0,#000 45%,transparent 95%)}
.deco--symbol{--deco-img:url(../img/bg/bg-symbol.svg);--deco-opacity:.12;--deco-size:820px 820px;--deco-pos:calc(100% + 220px) 50%;
  --deco-fade:linear-gradient(to left,#000 0,#000 520px,transparent 680px)}
.deco--dots{--deco-img:url(../img/bg/bg-dot-field.svg);--deco-opacity:.38;--deco-size:1200px auto;--deco-pos:right top;
  --deco-fade:radial-gradient(ellipse 65% 85% at 100% 0,#000 0,#000 30%,transparent 85%)}
.deco--waves{--deco-img:url(../img/bg/bg-waves.svg);--deco-opacity:.14;--deco-size:cover;--deco-pos:center bottom;
  --deco-fade:linear-gradient(to bottom,transparent 45%,#000 100%)}
/* registration crosses read like characters next to text, so they show only in the page margins */
.deco--marks{--deco-img:url(../img/bg/bg-reg-marks.svg);--deco-opacity:.22;--deco-size:cover;--deco-pos:center;
  --deco-fade:linear-gradient(to right,#000 0,#000 max(0px,calc((100% - var(--container)) / 2)),transparent max(16px,calc((100% - var(--container)) / 2 + var(--gutter))),transparent min(calc(100% - 16px),calc((100% + var(--container)) / 2 - var(--gutter))),#000 min(100%,calc((100% + var(--container)) / 2)))}
.deco--globe{--deco-img:url(../img/bg/bg-globe-slice.svg);--deco-opacity:.14;--deco-size:900px 900px;--deco-pos:calc(100% + 120px) calc(100% + 160px);
  --deco-fade:radial-gradient(ellipse 85% 85% at 100% 100%,#000 0,#000 50%,transparent 95%)}
/* the second set (2026-10-13), mainly for the transport, ferry, ОДВ, about and contact pages */
/* the top-left corner of a sea chart (graduated border, graticule, degree labels): its neatline
   just right of the middle, so the chart fills the right half */
.deco--graticule{--deco-img:url(../img/bg/bg-graticule.svg);--deco-opacity:.2;--deco-size:1600px auto;--deco-pos:calc(50% + 300px) -24px;
  --deco-fade:linear-gradient(to bottom,#000 0,#000 70%,transparent 100%)}
/* depth figures and dotted isobaths, deepening away from the top-left */
.deco--soundings{--deco-img:url(../img/bg/bg-soundings.svg);--deco-opacity:.22;--deco-size:1600px auto;--deco-pos:right top;
  --deco-fade:radial-gradient(ellipse 72% 100% at 100% 0,#000 0,#000 38%,transparent 92%)}
/* two tracks and a switch sweeping up from the bottom left */
.deco--rail{--deco-img:url(../img/bg/bg-rail.svg);--deco-opacity:.18;--deco-size:1700px auto;--deco-pos:right bottom -110px;
  --deco-fade:linear-gradient(to top,#000 0,#000 45%,transparent 85%)}
/* an isometric yard of 20 and 40 ft containers on a dotted floor grid */
.deco--iso{--deco-img:url(../img/bg/bg-iso-containers.svg);--deco-opacity:.18;--deco-size:1500px auto;--deco-pos:calc(100% + 420px) 20%;
  --deco-fade:radial-gradient(ellipse 46% 90% at 100% 35%,#000 0,#000 40%,transparent 95%)}
/* a quarter of a compass rose in the bottom-right corner */
.deco--rose{--deco-img:url(../img/bg/bg-rose-quarter.svg);--deco-opacity:.22;--deco-size:760px 760px;--deco-pos:right bottom}
/* the Black Sea, Varna and Batumi as rings and the ferry line. A map shows whole: inside its section,
   never past an edge and never faded out; as tall as the section allows, up to 520 px (the SVG is
   cropped to the map) */
.deco--blacksea{--deco-img:url(../img/bg/bg-black-sea.svg);--deco-opacity:.3;--deco-size:auto min(520px,calc(100% - 72px));--deco-pos:right 48px top 50%;
  --deco-fade:linear-gradient(#000,#000)}
/* a road in perspective, lane dashes shortening towards the horizon */
/* drawn small enough that the road, its lanes and the horizon read as one picture, bottom right */
.deco--road{--deco-img:url(../img/bg/bg-road.svg);--deco-opacity:.26;--deco-size:1100px auto;--deco-pos:calc(100% + 60px) calc(100% + 40px);
  --deco-fade:radial-gradient(ellipse 60% 80% at 100% 100%,#000 0,#000 55%,transparent 100%)}
/* the third set (2026-10-15), drawings from the trade in place of the wake, the signal flags and the
   manifest: the same thin single-weight line, with real detail */
/* guilloche: a rosette medallion (rope border, petal lattice, spirograph centre) right of the middle
   and a braided band across the lower part, as on banknotes and certificates (documents, declarations) */
.deco--guilloche{--deco-img:url(../img/bg/bg-guilloche.svg);--deco-opacity:.2;--deco-size:1400px auto;--deco-pos:calc(100% + 140px) 40%;
  --deco-fade:linear-gradient(to left,#000 0,#000 50%,transparent 82%)}
/* a chart of Varna Bay: the real shore (OpenStreetMap), waterlining, isobaths, soundings and the
   approach track, the sea on the right (port, sea, ship agency) */
.deco--varna{--deco-img:url(../img/bg/bg-varna-bay.svg);--deco-opacity:.22;--deco-size:1600px auto;--deco-pos:right -760px top -40px;
  --deco-fade:radial-gradient(ellipse 75% 100% at 100% 0,#000 0,#000 40%,transparent 92%)}
/* the door end of a container as a technical drawing, a detail circle of a cam on the left
   (containers, sea freight, seals) */
.deco--door{--deco-img:url(../img/bg/bg-container-door.svg);--deco-opacity:.16;--deco-size:1200px auto;--deco-pos:calc(100% + 40px) 50%;
  --deco-fade:linear-gradient(to left,#000 0,#000 55%,transparent 88%)}
/* a ship's lines plan: profile, body plan over midships, half-breadth plan (ships, lines, ОДВ) */
.deco--lines{--deco-img:url(../img/bg/bg-lines-plan.svg);--deco-opacity:.18;--deco-size:1500px auto;--deco-pos:calc(100% + 80px) calc(100% - 28px);
  --deco-fade:linear-gradient(to left,#000 0,#000 50%,transparent 88%)}
/* the impression of a round customs stamp, without a legend: ticks, a braid, beads and a guilloche
   centre (customs pages) */
.deco--seal{--deco-img:url(../img/bg/bg-customs-seal.svg);--deco-opacity:.16;--deco-size:820px 820px;--deco-pos:calc(100% + 200px) 50%;
  --deco-fade:linear-gradient(to left,#000 0,#000 540px,transparent 720px)}
/* the chart's OpenStreetMap credit (inc/inner.php ts_sec_open()): small and muted at the foot of
   the section, on the chart's side, level with the text column; shown only with the chart */
.deco-credit{position:absolute;bottom:14px;left:max(var(--gutter),calc((100% - var(--container)) / 2 + var(--gutter)));z-index:2;
  font-size:11px;line-height:1.3;color:var(--muted);text-decoration:none}
.deco-credit--r{left:auto;right:max(var(--gutter),calc((100% - var(--container)) / 2 + var(--gutter)))}
.deco-credit:hover{color:var(--ink);text-decoration:underline}
.sec-dark > .deco-credit{color:var(--muted-on-dark)}
.sec-dark > .deco-credit:hover{color:var(--white)}
.has-deco:not(.deco-on) > .deco-credit{display:none}
.sec-dark > .deco{--deco-opacity:.14}
.sec-dark > .deco--dots,.sec-dark > .deco--arcs{--deco-opacity:.24}
.sec-dark > .deco--soundings,.sec-dark > .deco--graticule,.sec-dark > .deco--rail,.sec-dark > .deco--rose,.sec-dark > .deco--varna,.sec-dark > .deco--lines{--deco-opacity:.18}
.sec-dark > .deco--blacksea{--deco-opacity:.24}
.deco-glow--tl{left:-320px;top:-280px;width:960px;height:600px;--glow-opacity:.65}
.deco-glow--br{right:-320px;bottom:-300px;width:960px;height:600px;--glow-opacity:.65}
/* the small grey labels have no contrast to spare: no motif directly under their line */
.has-deco .hp-col-title,.has-deco .hp-contact dt{--deco-under:0}
/* ---- motif positions (field motif_pos, ts_motif_classes()): each section places its motif in its
   emptier part, a corner (tl tr bl br), a side (l r) or the top or bottom edge (t b), fading out
   towards the content. The drawing's own corner is put at the anchor; a drawing without figures,
   lettering or a coastline is mirrored to reach the other side (deco--fx / deco--fy, the anchor
   class then being the mirrored one; theme.js mirrors the text guard with it). --dx / --dy push a
   drawing past the section edge, --fw / --fh size the fade. */
.deco--fx{transform:scaleX(-1)}
.deco--fy{transform:scaleY(-1)}
.deco--fx.deco--fy{transform:scale(-1)}
.deco--at-tl{--deco-pos:left calc(0px - var(--dx,0px)) top calc(0px - var(--dy,0px));
  --deco-fade:radial-gradient(var(--fw,1000px) var(--fh,760px) at 0 0,#000 0,#000 45%,transparent 100%)}
.deco--at-tr{--deco-pos:right calc(0px - var(--dx,0px)) top calc(0px - var(--dy,0px));
  --deco-fade:radial-gradient(var(--fw,1000px) var(--fh,760px) at 100% 0,#000 0,#000 45%,transparent 100%)}
.deco--at-bl{--deco-pos:left calc(0px - var(--dx,0px)) bottom calc(0px - var(--dy,0px));
  --deco-fade:radial-gradient(var(--fw,1000px) var(--fh,760px) at 0 100%,#000 0,#000 45%,transparent 100%)}
.deco--at-br{--deco-pos:right calc(0px - var(--dx,0px)) bottom calc(0px - var(--dy,0px));
  --deco-fade:radial-gradient(var(--fw,1000px) var(--fh,760px) at 100% 100%,#000 0,#000 45%,transparent 100%)}
.deco--at-l{--deco-pos:left calc(0px - var(--dx,0px)) top 50%;--deco-fade:linear-gradient(to right,#000 0,#000 calc(var(--fw,900px) * .5),transparent var(--fw,900px))}
.deco--at-r{--deco-pos:right calc(0px - var(--dx,0px)) top 50%;--deco-fade:linear-gradient(to left,#000 0,#000 calc(var(--fw,900px) * .5),transparent var(--fw,900px))}
.deco--at-t{--deco-pos:left 50% top calc(0px - var(--dy,0px));--deco-fade:linear-gradient(to bottom,#000 0,#000 calc(var(--fh,640px) * .5),transparent var(--fh,640px))}
.deco--at-b{--deco-pos:left 50% bottom calc(0px - var(--dy,0px));--deco-fade:linear-gradient(to top,#000 0,#000 calc(var(--fh,640px) * .5),transparent var(--fh,640px))}
/* at an anchor each drawing keeps its own size (blocks above); --dx / --dy: how far it runs past
   the edge, as in its own placement */
.deco--ring{--dx:270px;--dy:270px}
.deco--symbol{--dx:220px;--dy:160px}
.deco--seal{--dx:200px;--dy:200px}
.deco--guilloche{--dx:140px;--dy:40px}
.deco--door{--dx:40px}
.deco--lines{--dx:80px;--dy:28px}
.deco--road{--dx:60px;--dy:40px}
.deco--rail{--dy:110px}
.deco--containers{--dx:40px}
.deco--containers[class*="deco--at-"]{--dy:100px} /* the stacks rise from below the edge, clear of the text above */
.deco--globe{--dx:120px;--dy:160px}
.deco--arcs{--dx:300px;--dy:230px}
.deco--iso{--dx:420px}
/* the map at an anchor: inset from the edges, whole (no fade); beside a split's text at most 46 % wide */
.deco--blacksea[class*="deco--at-"]{--dx:-48px;--dy:-36px;--deco-fade:linear-gradient(#000,#000)}
.ip-sec--split > .deco--blacksea{--deco-size:min(680px,46%) auto}
/* beside an FAQ's card it fits round the heading, above the card (the card and the questions are opaque) */
.ip-sec--faq-card > .deco--blacksea{--deco-size:min(400px,32%) auto;--deco-opacity:.42}
/* the Varna chart has its shore and port on the left and open sea on the right, and is never mirrored:
   on the right it runs 760 px past the edge so that the bay, not the sea, comes into the section */
.deco--varna.deco--at-tr,.deco--varna.deco--at-r,.deco--varna.deco--at-br{--dx:760px}
.deco--graticule{--dy:24px}
/* the sea chart's left border (its graduated scale) is at about x = 500 of the 1600 px drawing: on the left
   the drawing is pushed out so that the corner comes to the section's left edge */
.deco--graticule.deco--at-tl,.deco--graticule.deco--at-l,.deco--graticule.deco--at-bl{--dx:480px}
/* the road's lanes are in the lower part of its drawing: at the top it is pushed up past the edge */
.deco--road.deco--at-tr,.deco--road.deco--at-t{--dy:260px}
/* plain text set straight on a light section (a split, steps, columns, checklists, the timeline):
   the motif keeps nearer to its corner, out of the text; behind cards, glass and photos it may run
   wider (the default above). An FAQ with the card column spreads it under the card and the
   questions, which are solid boxes */
.ip-sec--split > .deco[class*="deco--at-"],.ip-sec--steps > .deco[class*="deco--at-"],.ip-sec--columns > .deco[class*="deco--at-"],
.ip-sec--checklists > .deco[class*="deco--at-"],.ip-sec--timeline > .deco[class*="deco--at-"]{--fw:820px;--fh:620px}
.ip-sec--faq-card > .deco[class*="deco--at-"]{--fw:1200px;--fh:900px}
.ip-sec--split:has(> .container > .ip-split--solo) > .deco[class*="deco--at-"]{--fh:440px}

/* ============================================================================
   Inner pages
   ============================================================================ */

/* ---- hero: a photo under the same overlay as the home hero; the header sits over it. Compact on
   desktop (about 440 to 490 px, header included; it grows with a longer text), the same H1 scale
   as the home hero, a little smaller ---- */
.ip-hero{position:relative;display:flex;min-height:520px;overflow:hidden;background:var(--darker);color:var(--white);--focus:var(--red-on-dark)}
.ip-hero-media,.ip-hero-overlay{position:absolute;inset:0}
.ip-hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:62% 50%}
/* heavier than the home hero's on the text side: inner heroes use any photo, bright skies included */
.ip-hero-overlay{background:linear-gradient(90deg,rgba(var(--darker-rgb),.92) 0%,rgba(var(--darker-rgb),.84) 60%,rgba(var(--darker-rgb),.56) 85%,rgba(var(--darker-rgb),.42) 100%)}
.ip-hero-in{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;width:100%;padding-top:calc(var(--mh-h) + 36px);padding-bottom:64px}
.ip-hero-copy{min-width:0;max-width:800px}
.ip-hero .eyebrow{color:var(--white)}
.ip-h1{margin:18px 0 0;font-size:var(--fs-h1);font-weight:800;line-height:1.02;letter-spacing:-.01em;color:var(--white);overflow-wrap:break-word}
.ip-lead{max-width:660px;margin:22px 0 0;font-size:var(--fs-lead);line-height:1.55;color:var(--text-on-dark)}
/* an article's author and date under its lead, and the line of changes: quiet meta */
.ip-hero-meta{max-width:880px;margin:18px 0 0;font-size:14px;line-height:1.55;color:rgba(255,255,255,.7)}
.ip-hero-meta p{margin:0}
.ip-hero-meta-line span + span::before{content:"·";margin:0 10px;color:rgba(255,255,255,.45)}
.ip-hero-meta-changes{margin-top:4px !important}
@media (max-width:767px){.ip-hero-meta-line span{display:block}.ip-hero-meta-line span + span::before{content:none}.ip-hero-meta-changes{margin-top:8px !important}}
.ip-hero .hp-actions{margin-top:34px}
/* compact (no buttons, e.g. the quote page): only as tall as its text */
.ip-hero.ip-hero--compact{min-height:0}
.btn-phone svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}

/* ---- breadcrumbs ---- */
.ip-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;margin:0 0 26px;padding:0;list-style:none;font-size:15px;line-height:1.4;color:var(--text-on-dark)}
.ip-crumbs li{display:inline-flex;align-items:center}
.ip-crumbs li + li::before{content:"";flex:none;width:7px;height:7px;margin:0 14px 0 10px;border-top:2px solid var(--muted-on-dark);border-right:2px solid var(--muted-on-dark);transform:rotate(45deg)}
.ip-crumbs a{color:var(--white);text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:4px}
.ip-crumbs a:hover{text-decoration-color:var(--white)}

/* ---- in-page navigation (inc/inner.php ts_inpage_nav, theme.js) ----
   In the hero, along its bottom edge: a dark glass strip like the home facts strip. Once that strip
   has scrolled under the header, the same nav is fixed right under the compact header
   (.is-docked) in the header's colour and blur, so the two read as one block (the header drops
   its shadow, html.ip-docked); it slides out from behind the header (.is-shown, 200 ms). The
   current section's link is underlined in red. A label ("На тази страница") and a short divider come
   before the links (desktop and tablets; phones show only the list). The list scrolls sideways
   where it does not fit, its edges fading where there is more (--fl, --fr). Docked, a 1 px rule
   divides it from the header row and it is a touch darker than the header: the header's colour
   with 6 % black over it, and a little more opaque (95 % against 92 %), so a pale section behind
   it does not make it lighter than the header. Without JavaScript the strip stays in the hero. */
:root{--ip-nav-h:48px} /* the docked bar: anchors and sticky columns clear the header and it */
.ip-hero--nav{flex-direction:column}
.ip-hero--nav .ip-hero-in{flex:1}
.ip-nav{position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.22);background:rgba(var(--darker-rgb),.45);color:var(--white);--focus:var(--red-on-dark)}
.ip-nav-in{display:flex;align-items:center}
.ip-nav-label{flex:none;font-size:var(--fs-eyebrow);font-weight:700;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-on-dark);white-space:nowrap}
.ip-nav-sep{flex:none;width:1px;height:20px;margin:0 6px 0 22px;background:rgba(255,255,255,.22)}
.ip-nav-list{--fl:0px;--fr:28px;flex:1;min-width:0;display:flex;gap:2px;margin:0 -14px 0 0;padding:0;list-style:none;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%)}
.ip-nav-list::-webkit-scrollbar{display:none}
.ip-nav-list li{flex:none}
.ip-nav a{display:flex;align-items:center;min-height:56px;padding:0 14px;font-size:14px;font-weight:600;line-height:1.2;color:rgba(255,255,255,.82);white-space:nowrap;
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:8px;transition:color .18s ease,text-decoration-color .18s ease}
.ip-nav a:hover{color:var(--white);text-decoration-color:rgba(255,255,255,.4)}
.ip-nav a.is-active{color:var(--white);text-decoration-color:var(--red-on-dark)}
.ip-nav a:focus-visible{outline-offset:-6px;border-radius:var(--r-sm)}
/* docked under the header */
.js .ip-nav.is-docked{position:fixed;left:0;right:0;top:var(--mh-now,68px);z-index:95;border-top:1px solid var(--rule-on-dark);
  background:linear-gradient(rgba(0,0,0,.06),rgba(0,0,0,.06)),rgba(var(--darker-rgb),.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 30px -18px rgba(0,0,0,.65);
  transform:translateY(-100%);visibility:hidden;transition:transform .2s ease,visibility 0s linear .2s}
.js .ip-nav.is-docked.is-shown{transform:none;visibility:visible;transition:transform .2s ease,visibility 0s}
.ip-nav.is-docked a{min-height:calc(var(--ip-nav-h) - 1px)} /* the rule above it completes the height */
.ip-docked .mh{box-shadow:none}
@media (prefers-reduced-motion:reduce){.js .ip-nav.is-docked,.js .ip-nav.is-docked.is-shown{transition:none}}
/* sections reached from the navigation clear the compact header and the docked bar (the header
   is compact by the time they arrive) */
.ip-anchor{scroll-margin-top:calc(var(--mh-compact,68px) + var(--ip-nav-h))}

/* ---- FAQ: native details/summary ---- */
.ip-faq-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:64px;align-items:start}
.ip-faq-in .hp-head{display:block;margin:0}
.ip-faq-in .hp-head-note{margin-top:20px}
.ip-faq{display:grid;gap:12px;margin:0;padding:0;list-style:none;position:relative;z-index:1}
.sec-white .ip-faq{background:var(--white);box-shadow:0 0 0 12px var(--white)}
.sec-soft .ip-faq{background:var(--soft);box-shadow:0 0 0 12px var(--soft)}
.ip-faq-item{padding:0 26px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-sm);transition:border-color .18s ease}
.ip-faq-item[open]{border-color:var(--rule-2)}
.sec-soft .ip-faq-item{border-color:var(--rule-2)}
.ip-faq-item summary{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 0;cursor:pointer;list-style:none;font-family:var(--ts-font-display);font-size:21px;font-weight:700;line-height:1.3;color:var(--ink)}
.ip-faq-item summary::-webkit-details-marker{display:none}
.ip-faq-item summary:hover .ip-faq-q{color:var(--red)}
.ip-faq-item summary:focus-visible{outline-offset:4px}
.ip-faq-icon{position:relative;flex:none;width:30px;height:30px;margin-top:-1px;border:2px solid var(--ink);border-radius:50%}
.ip-faq-icon::before,.ip-faq-icon::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--ink);transition:transform .18s ease}
.ip-faq-icon::after{transform:rotate(90deg)}
.ip-faq-item[open] .ip-faq-icon{background:var(--ink)}
.ip-faq-item[open] .ip-faq-icon::before{background:var(--white)}
.ip-faq-item[open] .ip-faq-icon::after{transform:rotate(90deg) scaleX(0)}
.ip-faq-a{max-width:760px;padding:0 54px 24px 0;font-size:var(--fs-card);line-height:1.6;color:var(--text)}
.ip-faq-a p{margin:0}
.ip-faq-a p + p{margin-top:12px}

/* ---- checklists with a photo ---- */
.ip-docs-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:56px;align-items:center;margin-bottom:56px}
.ip-docs-head .hp-head{display:block;margin:0}
.ip-docs-head .hp-head-note{margin-top:20px}
.ip-photo{position:relative;overflow:hidden;margin:0;border-radius:var(--r-md)}
.ip-photo::before{content:"";position:absolute;left:0;right:0;top:0;z-index:1;height:3px;background:var(--red)}
.ip-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.ip-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 40px}
.ip-check{position:relative;padding-top:24px;border-top:2px solid var(--rule)}
.ip-check::before{content:"";position:absolute;left:0;top:-2px;width:32px;height:2px;background:var(--red)}
.ip-check-list{margin:14px 0 0;padding:0;list-style:none}
.ip-check-list li{position:relative;padding:9px 0 9px 32px;font-size:var(--fs-card);line-height:1.5;color:var(--ink)}
.ip-check-list li::before{content:"";position:absolute;left:0;top:13px;width:18px;height:18px;background:var(--red);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.ip-checks-note{max-width:820px;margin:40px 0 0;font-size:var(--fs-card);line-height:1.6;color:var(--text)}
.sec-soft .ip-check{border-top-color:var(--rule-2)}

/* ---- the documents block (checklists „Групите като карти“): a card per group with a document icon
   and a red line on top; white cards on a light section, glass with white ticks on a dark one ---- */
.ip-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ip-doc-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ip-doc-grid--1{grid-template-columns:minmax(0,1fr);max-width:640px}
.ip-doc{position:relative;overflow:hidden;padding:30px 28px 20px;border:1px solid var(--rule);border-radius:var(--r-md);background:var(--white);box-shadow:var(--shadow-card)}
.ip-doc::before{content:"";position:absolute;left:0;top:0;width:48px;height:3px;background:var(--red)}
.ip-doc-head{display:flex;align-items:center;gap:14px;margin:0 0 8px}
.ip-doc-ico{display:grid;flex:none;place-items:center;width:46px;height:46px;border-radius:var(--r-sm);background:rgba(var(--red-rgb),.08);color:var(--red)}
.ip-doc-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ip-doc-title{margin:0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.ip-doc .ip-check-list{margin:0}
.ip-doc .ip-check-list li + li{border-top:1px solid var(--rule)}
.sec-dark .ip-doc{background:rgba(255,255,255,.04);border-color:var(--rule-on-dark);box-shadow:none}
.sec-dark .ip-doc-ico{background:rgba(255,255,255,.08);color:var(--white)}
.sec-dark .ip-doc-title{color:var(--white)}
.sec-dark .ip-doc .ip-check-list li{color:var(--text-on-dark)}
.sec-dark .ip-doc .ip-check-list li + li{border-top-color:var(--rule-on-dark)}
.sec-dark .ip-doc .ip-check-list li::before{background:var(--white)}
@media (max-width:1199px){.ip-doc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.ip-doc-grid,.ip-doc-grid--2{grid-template-columns:minmax(0,1fr);gap:16px}.ip-doc{padding:26px 22px 16px}}
/* glass cards over a photo (glass with a photo): the frame of the steps over a photo */
.ip-gphoto{position:relative;overflow:hidden;background:var(--darker)}

/* ---- dark cross-link band ---- */
.ip-band-in{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:64px;align-items:center}
.ip-sec--band .hp-h2{margin-top:16px}
.ip-band-actions{display:flex;flex-direction:column;align-items:flex-start;gap:22px;padding:34px 36px;border:1px solid var(--rule-on-dark);border-radius:var(--r-md);background:rgba(var(--darker-rgb),.55)}
.ip-band-mail{display:flex;flex-direction:column;gap:4px}
.ip-band-mail a{color:var(--white);font-size:20px;font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;overflow-wrap:anywhere}
.ip-band-mail a:hover{color:var(--red-on-dark)}
.ip-band-mail small{font-size:15px;color:var(--text-on-dark)}
/* the band with a checklist: the list, then the mailbox as a button */
.ip-band-actions--list{gap:0}
.ip-band-list-title{margin:0 0 6px;font-family:var(--ts-font-display);font-size:20px;font-weight:800;line-height:1.25;color:var(--white)}
.ip-band-actions--list .ip-check-list{margin:0 0 26px}
.ip-band-actions--list .ip-check-list li{padding:7px 0 7px 32px;color:var(--text-on-dark)}
.ip-band-actions--list .ip-check-list li::before{top:11px;background:var(--red-on-dark)}
/* the split's link under its points */
.ip-split-more{margin:30px 0 0}
.ip-more-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.ip-more-link:hover{color:var(--red-deep)}
/* the tabs' footnote, right under the panel */
.ip-tabs-note{margin:22px 0 0;max-width:none}
/* links: the sub-pages' tiles in even rows (three or two across) */
.ip-links--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ip-links--2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){.ip-links--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.ip-links--3,.ip-links--2{grid-template-columns:1fr}}

/* ---- responsive ---- */
@media (min-width:768px){
  .ip-hero{min-height:440px}
  .ip-hero-in{padding-top:calc(var(--mh-h) + 20px);padding-bottom:40px}
  .ip-hero-copy{max-width:980px}
  .ip-h1{margin-top:10px}
  .ip-lead{max-width:min(880px,68vw);margin-top:14px}
  .ip-hero .hp-actions{margin-top:22px}
  .ip-crumbs ol{margin-bottom:14px}
  .ip-hero--compact .ip-hero-in{padding-top:calc(var(--mh-h) + 12px);padding-bottom:32px}
}
@media (max-width:980px){
  .hp-head{grid-template-columns:1fr;gap:20px;margin-bottom:40px}
  .hp-cards,.hp-cards--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px}
  .hp-close-in{grid-template-columns:1fr;gap:44px}
  .hp-cols--3{grid-template-columns:1fr 1fr}
  .ip-faq-in,.ip-docs-head,.ip-band-in{grid-template-columns:1fr;gap:36px}
  .ip-checks{grid-template-columns:1fr 1fr}
  .ip-hero-overlay{background:var(--hero-overlay-sm)}
  .deco--ring{--deco-size:640px 640px}
  .deco--ring:not([class*="deco--at-"]){--deco-pos:calc(100% + 200px) 50%;--deco-fade:linear-gradient(to left,#000 0,#000 380px,transparent 460px)}
  .deco--grid:not([class*="deco--at-"]){--deco-fade:radial-gradient(ellipse 70% 900px at 100% 0,#000 0,#000 50%,transparent 100%)}
}
@media (min-width:981px) and (max-width:1199px){
  .hp-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}
  /* four cards would be 160-210px wide here: a three-word title ("Контейнерни линии и корабни агенции") left one word alone */
  .hp-cards:not(.hp-cards--2):not(.hp-cards--3){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .hp-sec{padding:64px 0}
  .hp-close{padding:64px 0}
  .hp-close .btn{flex:1 1 100%}
  .hp-cols,.hp-cols--3{grid-template-columns:1fr;gap:28px}
  .hp-cards,.hp-cards--2,.hp-cards--3{grid-template-columns:1fr}
  .hp-card--wide{grid-column:auto}
  .hp-card{padding:26px 22px 28px}
  .hp-card--photo .hp-card-body{padding:22px 22px 26px}
  .hp-cards{gap:16px}
  .hp-contact{padding:6px 22px}
  .ip-faq-item{padding:0 20px}
  .hp-steps{grid-template-columns:1fr;gap:28px}
  .hp-step{padding-top:22px}
  .hp-step-num{font-size:32px}
  .hp-sec-actions{margin-top:36px}
  .hp-sec-actions .btn{flex:1 1 100%}
  .ip-hero{min-height:0}
  .ip-hero-in{padding-top:calc(var(--mh-h) + 28px);padding-bottom:44px}
  .ip-lead{font-size:18px}
  .ip-hero .hp-actions .btn{flex:1 1 100%}
  .ip-nav .container{padding:0}
  .ip-nav-label,.ip-nav-sep{display:none}
  .ip-nav-list{margin:0;padding:0 6px}
  .ip-nav a{padding:0 10px}
  .ip-faq-item summary{font-size:19px;gap:18px}
  .ip-faq-a{padding-right:0}
  .ip-checks{grid-template-columns:1fr}
  .ip-band-actions{padding:26px 22px}
}
/* phones: the motifs shrink towards the edges; the ring, the containers and the globe would
   fill the single text column, so they go */
@media (max-width:600px){
  .deco--ring,.deco--containers,.deco--globe,.deco--seal{display:none}
  .deco--grid{--deco-size:800px auto;--deco-pos:calc(50% + 300px) -150px;--deco-fade:radial-gradient(420px 360px at 100% 0,#000 0,transparent 100%)}
  .deco--arcs{--deco-size:1000px auto;--deco-pos:left -230px top -150px;--deco-fade:radial-gradient(420px 260px at 0 0,#000 0,transparent 100%)}
  .deco--symbol{--deco-size:440px 440px;--deco-pos:calc(100% + 220px) 100%;--deco-fade:linear-gradient(to left,rgba(0,0,0,.5) 0,transparent 240px)}
  .deco--dots{--deco-size:560px auto;--deco-fade:radial-gradient(360px 300px at 100% 0,#000 0,transparent 100%)}
  .deco--contours-b{--deco-size:900px auto}
  .deco--iso,.deco--blacksea{display:none}
  .deco--graticule{--deco-size:900px auto;--deco-pos:calc(100% + 380px) -14px}
  .deco--soundings{--deco-size:900px auto;--deco-fade:radial-gradient(380px 340px at 100% 0,#000 0,transparent 100%)}
  .deco--rail,.deco--road{--deco-size:1000px auto}
  .deco--rose{--deco-size:460px 460px}
  .deco--guilloche,.deco--lines{--deco-size:900px auto}
  .deco--varna{--deco-size:900px auto;--deco-pos:right -420px top -20px}
  .deco--door{--deco-size:760px auto}
  /* at an anchor: the drawing at its corner or edge, fading out within the first 300-400 px */
  .deco[class*="deco--at-"]{--dx:0px;--dy:0px}
  .deco--guilloche[class*="deco--at-"],.deco--varna[class*="deco--at-"],.deco--lines[class*="deco--at-"],.deco--graticule[class*="deco--at-"],.deco--soundings[class*="deco--at-"],.deco--arcs[class*="deco--at-"],
  .deco--rail[class*="deco--at-"],.deco--contours[class*="deco--at-"],.deco--contours-b[class*="deco--at-"]{--deco-size:900px auto}
  .deco--road[class*="deco--at-"],.deco--dots[class*="deco--at-"],.deco--door[class*="deco--at-"]{--deco-size:700px auto}
  .deco--rose[class*="deco--at-"]{--deco-size:420px 420px}
  .deco--symbol[class*="deco--at-"]{--deco-size:440px 440px}
  .deco--guilloche[class*="deco--at-"]{--dx:120px;--dy:20px}
  .deco--varna.deco--at-tr,.deco--varna.deco--at-r,.deco--varna.deco--at-br{--dx:420px}
  .deco--graticule.deco--at-tl,.deco--graticule.deco--at-l,.deco--graticule.deco--at-bl{--dx:270px}
  .deco--road.deco--at-tr,.deco--road.deco--at-t{--dy:160px}
  /* (the motifs' own phone placements above would otherwise win: the positions are repeated) */
  .deco--at-tl{--deco-pos:left calc(0px - var(--dx)) top calc(0px - var(--dy));--deco-fade:radial-gradient(420px 360px at 0 0,#000 0,transparent 100%)}
  .deco--at-tr{--deco-pos:right calc(0px - var(--dx)) top calc(0px - var(--dy));--deco-fade:radial-gradient(420px 360px at 100% 0,#000 0,transparent 100%)}
  .deco--at-bl{--deco-pos:left calc(0px - var(--dx)) bottom calc(0px - var(--dy));--deco-fade:radial-gradient(420px 360px at 0 100%,#000 0,transparent 100%)}
  .deco--at-br{--deco-pos:right calc(0px - var(--dx)) bottom calc(0px - var(--dy));--deco-fade:radial-gradient(420px 360px at 100% 100%,#000 0,transparent 100%)}
  .deco--at-l{--deco-pos:left calc(0px - var(--dx)) top 50%;--deco-fade:linear-gradient(to right,rgba(0,0,0,.7) 0,transparent 220px)}
  .deco--at-r{--deco-pos:right calc(0px - var(--dx)) top 50%;--deco-fade:linear-gradient(to left,rgba(0,0,0,.7) 0,transparent 220px)}
  .deco--at-t{--deco-pos:left 50% top calc(0px - var(--dy));--deco-fade:linear-gradient(to bottom,#000 0,transparent 300px)}
  .deco--at-b{--deco-pos:left 50% bottom calc(0px - var(--dy));--deco-fade:linear-gradient(to top,#000 0,transparent 300px)}
  .deco-glow--tl{left:-240px;top:-200px;width:600px;height:400px}
  .deco-glow--br{right:-240px;bottom:-200px;width:600px;height:400px}
}
@media (prefers-reduced-motion:reduce){
  .hp-card,.hp-card::before,.ip-faq-icon::before,.ip-faq-icon::after{transition:none}
  .hp-card.is-link:hover{transform:none}
}

/* ============================================================================
   Photo and layout blocks (service pages, inc/inner.php): split with photo, glass cards on a
   dark band, image break, tabs, bento grid, steps over a photo, contained dark card, FAQ with
   a sticky photo. Same radius scale, shadows and motifs as the rest of the system.
   ============================================================================ */

/* ---- photo grade (.ts-grade on the frame of a section photo; inc/brand.php 'photo_grade'):
   one treatment so the stock photos read as one shoot. A little less saturation, and a layer of
   the look's dark colour in soft light at low strength (it deepens the mid-tones slightly and
   leans them toward that colour; a colour blend washed the photos out). Heroes, image breaks and
   videos are under overlays and never get it. Before the blocks, so a frame's own position
   (sticky for the FAQ photo) wins. ---- */
.ts-grade{position:relative;isolation:isolate}
.ts-grade img{filter:saturate(.85)}
.ts-grade::after{content:"";position:absolute;inset:0;pointer-events:none;background:rgb(var(--darker-rgb));mix-blend-mode:soft-light;opacity:.2}

/* ---- split with photo: the text beside a rounded photo, a fact card over its corner ---- */
.ip-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:88px;align-items:start}
.ip-split--solo{grid-template-columns:minmax(0,1fr)}
.ip-split--left{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.ip-split--left .ip-split-media{order:-1}
.ip-split--short{align-items:center}
/* a split without a photo: the head (the heading beside the note) above the points, laid out in a
   row on wide screens, each under its own rule; the link under them */
.ip-split--solo .hp-head{margin-bottom:44px}
.ip-points--row{margin-top:0}
@media (min-width:981px){
  .ip-points--row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 48px}
  .ip-points--row.ip-points--2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ip-points--row.ip-points--4{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 36px}
  .ip-points.ip-points--row li,.ip-points.ip-points--row li:last-child{padding:24px 0 0 30px;border-bottom:0}
  .ip-points.ip-points--row li::before{top:32px}
  /* a text longer than the photo scrolls past it: the photo stays in view under the header and
     the section links (sticky needs an ancestor that clips without becoming a scroll container) */
  .ip-sec--split .ip-split:not(.ip-split--short) .ip-split-media{position:sticky;top:calc(var(--mh-compact,68px) + var(--ip-nav-h) + 28px)}
  .ip-sec--split.has-deco{overflow:clip}
}
.ip-split .hp-h2,.ip-dcard .hp-h2{text-wrap:balance}
.ip-split .hp-text{max-width:640px;color:var(--text)}
.ip-points{margin:36px 0 0;padding:0;list-style:none}
.ip-points li{position:relative;padding:20px 0 20px 30px;border-top:1px solid var(--rule)}
.ip-points li:last-child{border-bottom:1px solid var(--rule)}
.ip-points li::before{content:"";position:absolute;left:0;top:28px;width:10px;height:10px;border-radius:50%;background:var(--red)}
.sec-soft .ip-points li{border-color:var(--rule-2)}
.ip-point-title{margin:0;font-size:20px;font-weight:800;line-height:1.25;color:var(--ink)}
.ip-point-text{margin:6px 0 0;font-size:var(--fs-card);line-height:1.55;color:var(--text)}
.ip-split-media{position:relative}
.ip-split-photo{overflow:hidden;border-radius:var(--r-lg);box-shadow:0 32px 64px -40px rgba(var(--ink-rgb),.5)}
.ip-split-photo img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
/* the fact card: white, rounded, over the photo's lower corner on the text side */
.ip-fact{position:absolute;left:-40px;bottom:44px;z-index:2;display:flex;flex-direction:column;gap:6px;max-width:280px;margin:0;padding:22px 26px 22px;overflow:hidden;
  background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:0 24px 48px -22px rgba(var(--ink-rgb),.38),0 2px 6px rgba(var(--ink-rgb),.06)}
.ip-fact::before{content:"";position:absolute;left:0;top:0;width:48px;height:3px;background:var(--red)}
.ip-split--left .ip-fact{left:auto;right:-40px}
.ip-fact-value{font-family:var(--ts-font-display);font-size:28px;font-weight:800;line-height:1.1;color:var(--ink)}
.ip-fact-label{font-size:16px;line-height:1.4;color:var(--text)}

/* ---- glass cards on a dark band: translucent, a fine border; the highlighted one has a red top bar
   and a red badge ---- */
.ip-glass{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ip-glass--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ip-glass--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ip-glass-card{position:relative;overflow:hidden;padding:32px 30px 34px;background:rgba(255,255,255,.04);border:1px solid var(--rule-on-dark);border-radius:var(--r-md);
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease}
.ip-glass-card.is-link:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.24);background-color:rgba(255,255,255,.06)}
.ip-glass-card--wide{grid-column:span 2}
.ip-glass-card.is-hl{background-color:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2)}
.ip-glass-card.is-hl::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--red)}
.ip-glass-tag{display:inline-block;margin:0 0 18px;padding:6px 11px;border:1px solid var(--rule-on-dark);border-radius:var(--r-xs);color:var(--white);font-size:13px;font-weight:700;line-height:1.2;letter-spacing:.1em;text-transform:uppercase}
.is-hl .ip-glass-tag{background:var(--red);border-color:var(--red)}
.ip-glass-title{margin:0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--white)}
.ip-glass-text{margin:14px 0 0;font-size:var(--fs-card);line-height:1.55;color:var(--text-on-dark)}
.ip-glass-card--wide .ip-glass-text{max-width:640px}
.ip-glass-list{margin-top:18px}
.ip-glass-title + .ip-glass-list{margin-top:20px}
.ip-glass-extra{margin:22px 0 0;padding-top:16px;border-top:1px solid var(--rule-on-dark)}
.ip-glass-extra p{margin:0;font-size:var(--fs-small);line-height:1.55;color:var(--text-on-dark)}
.ip-glass-extra .hp-col-title{margin-bottom:6px}
/* a glass card that leads to a page: the whole card is the link, "Научете повече" at its foot */
.ip-glass-card.is-link{display:flex;flex-direction:column}
.ip-glass-card.is-link .ip-glass-tag{align-self:flex-start}
.ip-glass-card .hp-card-a:focus-visible{outline:none}
.ip-glass-card.is-link:focus-within{outline:2px solid var(--red-on-dark);outline-offset:3px}
.ip-glass-card.is-link:hover .ip-glass-title{color:var(--red-on-dark)}
.ip-glass-card .hp-card-more.ip-glass-more{color:var(--white)}
.ip-glass-card.is-link:hover .hp-card-more .hp-arrow{transform:translateX(3px)}
/* the link under a tab panel */
.ip-tab-more{margin:18px 0 0}

/* ---- image break: a full-width photo band, the dark overlay, one statement ---- */
.ip-break{position:relative;display:flex;align-items:center;min-height:clamp(420px,33vw,480px);overflow:hidden;background:var(--darker);color:var(--white);--focus:var(--red-on-dark)}
.ip-break-media,.ip-break-overlay{position:absolute;inset:0}
.ip-break-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.ip-break-overlay{background:linear-gradient(90deg,rgba(var(--darker-rgb),.88) 0%,rgba(var(--darker-rgb),.80) 50%,rgba(var(--darker-rgb),.58) 100%)}
.ip-break-in{position:relative;z-index:1;width:100%;padding-top:calc(var(--sec-pad) * 5 / 6);padding-bottom:calc(var(--sec-pad) * 5 / 6)}
.ip-break .eyebrow{color:var(--white)}
.ip-break-text{max-width:960px;margin:16px 0 0;font-family:var(--ts-font-display);font-size:var(--fs-h2);font-weight:800;line-height:1.1;letter-spacing:-.005em;color:var(--white);text-wrap:balance}
.ip-break-in > .ip-break-text:first-child{margin-top:0}
/* the photo is taller than the band and drifts with the scroll (theme.js) */
@media (min-width:768px) and (prefers-reduced-motion:no-preference){
  .ip-break-media[data-parallax]{top:-64px;bottom:-64px;will-change:transform}
}

/* ---- tabs: a pill bar over one panel at a time; without JavaScript every panel shows ---- */
.ip-tabs-wrap{display:grid;gap:40px}
.ip-tabs-wrap.has-photo{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:48px;align-items:start}
.ip-tabs-wrap--left.has-photo{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
.ip-tabs-wrap--left .ip-tabs-media{order:-1}
.ip-tabs{min-width:0}
.ip-tabs-bar{display:none}
.js .ip-tabs-bar{display:flex;width:max-content;max-width:100%;gap:4px;margin:0 0 18px;padding:5px;overflow-x:auto;scrollbar-width:none;
  background:var(--white);border:1px solid var(--rule-2);border-radius:var(--pill);box-shadow:var(--shadow-card)}
.ip-tabs-bar::-webkit-scrollbar{display:none}
.ip-tab{flex:none;min-height:48px;margin:0;padding:0 26px;border:0;border-radius:var(--pill);background:transparent;color:var(--ink);
  font-family:var(--ts-font-display);font-size:17px;font-weight:700;line-height:1.2;cursor:pointer;transition:background-color .18s ease,color .18s ease}
.ip-tab:hover{background:var(--soft)}
.ip-tab[aria-selected="true"]{background:var(--ink);color:var(--white)}
.ip-tab:focus-visible{outline-offset:2px}
.ip-tab-panels{display:grid;gap:20px}
.js .ip-tab-panel:not(.is-active){display:none}
.ip-tab-panel{padding:30px 36px 32px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-lg);box-shadow:var(--shadow-card)}
.ip-tab-panel:focus-visible{outline-offset:3px}
.ip-tab-h{margin:0 0 10px;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.js .ip-tab-h{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.ip-tab-text{margin:0 0 12px;font-size:var(--fs-card);line-height:1.55;color:var(--text)}
.ip-tab-panel .ip-check-list{margin:0}
.ip-check-list--2{columns:2;column-gap:44px}
.ip-check-list--2 li{break-inside:avoid}
.ip-tabs-media{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:var(--r-lg);box-shadow:0 32px 64px -40px rgba(var(--ink-rgb),.5)}
.ip-tabs-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.sec-soft .ip-tab-panel{border-color:var(--rule-2)}

/* ---- bento grid: three columns, a wide card, a full-row card and one tall photo card ---- */
.ip-bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row dense;gap:20px;margin:0;padding:0;list-style:none}
.ip-bento-card--wide{grid-column:span 2}
.ip-bento-card--full{grid-column:1/-1}
.ip-bento-card--wide .hp-card-text{max-width:600px;font-size:var(--fs-card)}
.ip-bento-card--full.has-list{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:20px 56px;align-items:start}
.ip-bento-card.has-list .hp-list{margin-top:22px}
.ip-bento-card--full.has-list .hp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;margin-top:0}
.ip-bento-card--full.has-list .hp-list li:nth-last-child(2){border-bottom:1px solid var(--rule)}
.ip-bento-card .hp-list li{padding-top:12px;padding-bottom:12px;font-size:var(--fs-card)}
.ip-bento-card .hp-list li::before{top:21px}
.ip-bento-photo{position:relative;grid-row:span 2;min-height:440px;overflow:hidden;border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.ip-bento--photo-right .ip-bento-photo{grid-column:3;grid-row:1/span 2}
.ip-bento--photo-left .ip-bento-photo{grid-column:1;grid-row:1/span 2}
.ip-bento-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}

/* ---- steps over a photo: a heavy overlay, the steps in glass cards with large red numbers, one
   thin line through the numbers on wide screens ---- */
.ip-psteps{position:relative;overflow:hidden;background:var(--darker)}
.ip-psteps-media,.ip-psteps-overlay{position:absolute;inset:0}
.ip-psteps-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.ip-psteps-overlay{background:linear-gradient(180deg,rgba(var(--darker-rgb),.92) 0%,rgba(var(--darker-rgb),.84) 45%,rgba(var(--darker-rgb),.90) 100%)}
.ip-psteps-in{position:relative;z-index:1}
.ip-psteps-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ip-psteps-list--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ip-psteps-list--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ip-psteps-list--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ip-pstep{position:relative;padding:26px 20px 28px;background:rgba(255,255,255,.05);border:1px solid var(--rule-on-dark);border-radius:var(--r-md)}
.ip-pstep-num{display:flex;align-items:center;gap:14px;font-family:var(--ts-font-display);font-size:44px;font-weight:800;line-height:1;color:var(--red-on-dark)}
.ip-pstep-title{margin:18px 0 0;font-size:19px;font-weight:800;line-height:1.25;color:var(--white)}
.ip-pstep-text{margin:10px 0 0;font-size:var(--fs-small);line-height:1.5;color:var(--text-on-dark)}
.ip-psteps .hp-sec-actions{margin-top:44px}

/* ---- contained dark card: a rounded panel inside the container, a video or photo under the overlay ---- */
.ip-dcard{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--r-lg);background:var(--darker);color:var(--text-on-dark);--focus:var(--red-on-dark);
  box-shadow:0 40px 80px -48px rgba(var(--ink-rgb),.6)}
.ip-dcard-media,.ip-dcard-overlay{position:absolute;inset:0}
.ip-dcard-media > img,.ip-dcard-media > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* a photo (ts_photo() prints <picture>) fills the card the same way */
.ip-dcard-media > picture{position:absolute;inset:0}
.ip-dcard-media > picture > img{display:block;width:100%;height:100%;object-fit:cover}
/* a long button label in the band or card box wraps on a phone instead of running out of the box */
@media (max-width:600px){.ip-band-actions .btn{max-width:100%;white-space:normal;text-align:left}}
.ip-dcard-overlay{background:linear-gradient(90deg,rgba(var(--darker-rgb),.90) 0%,rgba(var(--darker-rgb),.76) 55%,rgba(var(--darker-rgb),.46) 100%)}
.ip-dcard-in{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:56px;align-items:center;padding:76px 64px}
.ip-dcard .eyebrow,.ip-dcard .hp-h2{color:var(--white)}
.ip-dcard .hp-text{max-width:640px;color:var(--text-on-dark)}
.ip-dcard-actions{background:rgba(var(--darker-rgb),.72)}

/* ---- FAQ with a photo: the questions on the left, the photo sticky beside them ---- */
.ip-faq-in--photo{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:72px}
.ip-faq-main{min-width:0}
.ip-faq-main .hp-head{margin:0 0 40px}
.ip-faq-media{align-self:stretch}
.ip-faq-sticky{position:sticky;top:calc(var(--mh-compact,68px) + var(--ip-nav-h) + 28px);overflow:hidden;border-radius:var(--r-lg);box-shadow:0 32px 64px -40px rgba(var(--ink-rgb),.5)}
.ip-faq-sticky img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:30% 50%}
/* sticky needs an ancestor that clips without becoming a scroll container */
.ip-sec--faq-photo.has-deco,.ip-sec--faq-card.has-deco{overflow:clip}

/* ---- FAQ without a photo: the head and a card to the matching article or service page in a
   column that stays in view while the questions scroll; on narrow screens the card follows the
   questions. With no card either, the head above the questions across the full width ---- */
.ip-faq-side{display:grid;gap:40px;align-content:start}
.ip-faq-side .hp-head{display:block;margin:0}
.ip-link-card{padding:30px 28px 32px}
.ip-link-card .hp-card-title{font-size:21px;line-height:1.25;text-wrap:balance}
.ip-link-card .hp-card-text{font-size:var(--fs-small)}
.ip-link-card-tag{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text)}
@media (min-width:981px){
  .ip-faq-side{position:sticky;top:calc(var(--mh-compact,68px) + var(--ip-nav-h) + 28px)}
}
@media (max-width:980px){
  .ip-faq-side{display:contents}
  .ip-faq-card{order:2}
}
.ip-faq-in--wide{grid-template-columns:minmax(0,1fr);gap:0}
.ip-faq-in--wide .hp-head{display:grid;margin:0 0 48px}

/* a line from the number on to the card's inner edge, on every card (the last one too) at every
   width; it stays inside its own card (the padding keeps it clear of the border) */
.ip-pstep-num::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.3)}
@media (max-width:1199px){
  .ip-psteps-list,.ip-psteps-list--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ip-psteps-list--3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ip-split{gap:56px}
  .ip-fact{left:-24px}
  .ip-split--left .ip-fact{right:-24px}
}
@media (max-width:980px){
  .ip-split,.ip-split--left{grid-template-columns:minmax(0,1fr);gap:64px}
  .ip-split-media{order:-1;max-width:640px}
  .ip-split-photo img{aspect-ratio:4/3}
  .ip-fact,.ip-split--left .ip-fact{left:20px;right:auto;bottom:-32px}
  .ip-glass,.ip-glass--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ip-tabs-wrap.has-photo,.ip-tabs-wrap--left.has-photo{grid-template-columns:minmax(0,1fr);gap:28px}
  .ip-tabs-media{order:-1;aspect-ratio:16/7}
  .ip-bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ip-bento--photo-right .ip-bento-photo,.ip-bento--photo-left .ip-bento-photo{grid-column:2;grid-row:2/span 2}
  .ip-bento-card--full.has-list{grid-template-columns:minmax(0,1fr)}
  .ip-dcard-in{grid-template-columns:minmax(0,1fr);gap:36px;padding:56px 44px}
  .ip-faq-in--photo{grid-template-columns:minmax(0,1fr)}
  .ip-faq-media{display:none}
}
@media (max-width:767px){
  .ip-split{gap:60px}
  .ip-split-photo img{aspect-ratio:4/3}
  .ip-fact{padding:16px 20px;max-width:calc(100% - 40px)}
  .ip-fact-value{font-size:23px}
  .ip-fact-label{font-size:15px}
  .ip-point-title{font-size:19px}
  .ip-glass,.ip-glass--2,.ip-glass--3{grid-template-columns:minmax(0,1fr);gap:16px}
  .ip-glass-card--wide{grid-column:auto}
  .ip-glass-card{padding:26px 22px 28px}
  .ip-break{min-height:0}
  .ip-break-in{padding-top:72px;padding-bottom:72px}
  .ip-break-text{font-size:clamp(28px,7.4vw,36px);line-height:1.14}
  .ip-break-overlay{background:linear-gradient(180deg,rgba(var(--darker-rgb),.82) 0%,rgba(var(--darker-rgb),.86) 100%)}
  .ip-tab{padding:0 20px;font-size:16px}
  .ip-tab-panel{padding:22px 20px 24px}
  .ip-check-list--2{columns:1}
  .ip-tabs-media{aspect-ratio:16/9}
  .ip-bento{grid-template-columns:minmax(0,1fr);gap:16px}
  .ip-bento-card--wide,.ip-bento-card--full{grid-column:auto}
  .ip-bento--photo-right .ip-bento-photo,.ip-bento--photo-left .ip-bento-photo{grid-column:auto;grid-row:auto;min-height:0;aspect-ratio:4/3}
  .ip-bento-card--full.has-list .hp-list{grid-template-columns:minmax(0,1fr)}
  .ip-bento-card--full.has-list .hp-list li:nth-last-child(2){border-bottom:0}
  .ip-psteps-list,.ip-psteps-list--4,.ip-psteps-list--3,.ip-psteps-list--2{grid-template-columns:minmax(0,1fr);gap:14px}
  .ip-pstep{padding:22px 22px 24px}
  .ip-pstep-num{font-size:36px}
  .ip-pstep-title{margin-top:14px}
  .ip-psteps-overlay{background:rgba(var(--darker-rgb),.9)}
  .ip-dcard{border-radius:var(--r-md)}
  .ip-dcard-in{padding:40px 22px 26px}
  .ip-dcard-overlay{background:linear-gradient(180deg,rgba(var(--darker-rgb),.90) 0%,rgba(var(--darker-rgb),.84) 100%)}
}
@media (prefers-reduced-motion:reduce){
  .ip-glass-card,.ip-tab{transition:none}
  .ip-glass-card.is-link:hover{transform:none}
}

/* ============================================================================
   Blocks added with the transport, ferry, ОДВ, about and contact pages (2026-10-13)
   ============================================================================ */

/* ---- the hero's mailbox button (ens@ on the ОДВ page), as the phone button ---- */
.btn-mail svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}

/* ---- a mailbox shown over the inquiry form (ens@ on the ОДВ page), its label above it in the
   contact card's label style (.hp-contact dt) ---- */
.ip-inq-mail{display:flex;flex-direction:column;gap:4px;margin:24px 0 0;padding:16px 20px 18px;border-left:4px solid var(--red);border-radius:var(--r-sm);background:var(--soft)}
.ip-inq-mail a{font-family:var(--ts-font-display);font-size:24px;font-weight:800;line-height:1.25;color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;overflow-wrap:anywhere}
.ip-inq-mail a:hover{color:var(--red)}
.ip-inq-mail small{font-size:13px;font-weight:700;line-height:1.45;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ip-inq-mail + .ts-inquiry{margin-top:28px}

/* ---- a card that leads to a page: the whole card is the link (the link in the title, stretched
   over it), "Научете повече" at its foot; hover lifts it and runs the red bar across ---- */
.hp-card.is-link{display:flex;flex-direction:column}
.hp-card.is-link .hp-card-tag{align-self:flex-start}
.hp-card-a{color:inherit;text-decoration:none}
.hp-card-a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.hp-card-a:focus-visible{outline:none}
.hp-card.is-link:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.hp-card.is-link:hover .hp-card-title{color:var(--red)}
.hp-card--dark.is-link:hover .hp-card-title{color:var(--red-on-dark)}
.hp-card-more{display:inline-flex;align-items:center;gap:8px;margin:auto 0 0;padding-top:22px;font-size:var(--fs-card);font-weight:700;color:var(--ink)}
.hp-card--dark .hp-card-more{color:var(--white)}
.hp-card-more .hp-arrow{transition:transform .2s ease}
.hp-card.is-link:hover .hp-card-more .hp-arrow{transform:translateX(3px)}

/* ---- the dark card with the corridor map: the map on the right, the copy on the left ---- */
.ip-dcard-media > .ip-dcard-map{left:auto;width:72%;object-fit:cover;object-position:60% 50%;
  -webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent 96%);mask-image:linear-gradient(to bottom,#000 62%,transparent 96%)}
.ip-dcard-overlay--map{background:linear-gradient(90deg,rgba(var(--darker-rgb),1) 0%,rgba(var(--darker-rgb),.94) 36%,rgba(var(--darker-rgb),.4) 62%,rgba(var(--darker-rgb),.1) 100%)}
/* the button under the copy, so the map on the right stays clear */
.ip-dcard--map .ip-dcard-in{grid-template-columns:minmax(0,560px) minmax(0,1fr);row-gap:32px}
.ip-dcard--map .ip-dcard-actions{grid-column:1;padding:0;border:0;background:none}

/* ---- timeline: the years on one line across (a rule through the dots), each item under its dot;
   the last can be a word ("Днес"), its dot filled. On phones the line runs down the left. ---- */
.ip-tl{position:relative;display:grid;grid-template-columns:repeat(var(--tl-n,5),minmax(0,1fr));gap:0 32px;margin:8px 0 0;padding:0;list-style:none}
.ip-tl--3{--tl-n:3}.ip-tl--4{--tl-n:4}.ip-tl--5{--tl-n:5}.ip-tl--6{--tl-n:6}
.ip-tl-item{position:relative;padding-top:44px}
/* the line runs from each dot to the next one, and ends at the last */
.ip-tl-item:not(:last-child)::after{content:"";position:absolute;left:16px;right:-32px;top:9px;height:2px;background:var(--rule-2)}
.sec-dark .ip-tl-item::after{background:var(--rule-on-dark)}
.ip-tl-dot{position:absolute;left:0;top:2px;width:16px;height:16px;border:3px solid var(--red);border-radius:50%;background:var(--white)}
.sec-soft .ip-tl-dot{background:var(--soft)}
.sec-dark .ip-tl-dot{background:var(--dark);border-color:var(--red-on-dark)}
.ip-tl-item--now .ip-tl-dot{background:var(--red);box-shadow:0 0 0 6px rgba(var(--red-rgb),.16)}
.ip-tl-year{margin:0;font-family:var(--ts-font-display);font-size:40px;font-weight:800;line-height:1;color:var(--red)}
.sec-dark .ip-tl-year{color:var(--red-on-dark)}
.ip-tl-title{margin:14px 0 0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.sec-dark .ip-tl-title{color:var(--white)}
.ip-tl-text{margin:10px 0 0;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
.sec-dark .ip-tl-text{color:var(--text-on-dark)}
/* an undated final item ("Днес"): a narrow empty column before it, so the dashed segment from the
   last dated year runs a little longer than the others (gap 32 + 40 + gap 32) */
.ip-tl--open.ip-tl--3{grid-template-columns:repeat(2,minmax(0,1fr)) 40px minmax(0,1fr)}
.ip-tl--open.ip-tl--4{grid-template-columns:repeat(3,minmax(0,1fr)) 40px minmax(0,1fr)}
.ip-tl--open.ip-tl--5{grid-template-columns:repeat(4,minmax(0,1fr)) 40px minmax(0,1fr)}
.ip-tl--open.ip-tl--6{grid-template-columns:repeat(5,minmax(0,1fr)) 40px minmax(0,1fr)}
.ip-tl--open .ip-tl-item:last-child{grid-column:-2/-1}
.ip-tl-item.ip-tl-item--gap::after{right:-104px;background:repeating-linear-gradient(to right,var(--rule-2) 0 8px,transparent 8px 15px)}
.sec-dark .ip-tl-item.ip-tl-item--gap::after{background:repeating-linear-gradient(to right,var(--rule-on-dark) 0 8px,transparent 8px 15px)}

/* ---- numbered steps: four (or three) fill the row on wide screens ---- */
@media (min-width:1200px){
  .hp-steps--4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hp-steps--3{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---- the corridor map in a section of its own (always dark) ---- */
.ip-map{margin-top:4px}

/* ---- contact: the phone and the two mailboxes, the office and the hours, the departments, then
   the company details beside a map of the office ---- */
/* from 1360 px three cards in a row and the office and the hours, wide, under them; below that two
   by two, the hours across; on phones one under another */
.ip-ct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ip-ct-card--hours{grid-column:1 / -1}
@media (min-width:1360px){
  .ip-ct{grid-template-columns:repeat(6,minmax(0,1fr))}
  .ip-ct-card{grid-column:span 2}
  .ip-ct-card.ip-ct-card--wide{grid-column:span 3}
}
.ip-ct-card{position:relative;display:flex;flex-direction:column;padding:30px 26px 30px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.ip-ct-card::before{content:"";position:absolute;left:0;top:0;width:48px;height:3px;background:var(--red)}
.ip-ct-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(var(--red-rgb),.1);color:var(--red)}
.ip-ct-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ip-ct-label{margin:20px 0 0;font-size:13px;font-weight:700;letter-spacing:.08em;line-height:1.3;text-transform:uppercase;color:var(--muted)}
.ip-ct-value{margin:8px 0 0;font-size:19px;font-weight:700;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.ip-ct-value a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.3);text-decoration-thickness:1px;text-underline-offset:4px}
.ip-ct-value a:hover{color:var(--red);text-decoration-color:currentColor}
.ip-ct-text{margin:12px 0 0;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
.ip-ct-map{margin:auto 0 0;padding-top:16px;font-size:var(--fs-small);font-weight:700}
.ip-ct-map a{display:inline-flex;align-items:center;gap:6px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.ip-ct-map a:hover{color:var(--red)}
.ip-ext{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ip-ct-foot{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}
.ip-ct-foot.has-map{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:stretch}
.ip-ct-details{padding:32px 32px 30px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.sec-white .ip-ct-details{background:var(--soft);box-shadow:none}
.ip-ct-h{margin:0;font-size:var(--fs-h3);font-weight:800;line-height:1.2;color:var(--ink)}
.ip-ct-dl{margin:14px 0 0}
.ip-ct-dl > div{padding:14px 0;border-bottom:1px solid var(--rule)}
.ip-ct-dl > div:last-child{border-bottom:0;padding-bottom:0}
.ip-ct-dl dt{margin:0 0 4px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ip-ct-dl dd{margin:0;font-size:18px;line-height:1.45;color:var(--ink)}
.has-deco .ip-ct-label,.has-deco .ip-ct-dl dt{--deco-under:0}
/* the office map (ts_office_map): the drawing (assets/img/office-map.svg, OpenStreetMap) fills the
   box edge to edge, cropped and never stretched (slice); beside the company details it takes their
   height. The places, the pin and the terminal's name sit over it in px, from the same projection:
   --x and --y in drawing units, --w and --h the drawing's size, --k the px per unit the slice gives.
   The whole map is one link to Google Maps; the OSM credit is a link of its own in the corner. Only
   the button is inside the link (its spoken name starts with the button's text); the places, the
   pin and the terminal's name come after it and let the pointer through to it. */
.ip-omap{--om-land:#F7F6F3;--om-water:#D3DCE2;--om-shore:#A6B4BF;--om-town:#ECE9E4;--om-road:#D8D3CB;--om-motorway:#CBC5BB;--om-grat:#ECEAE6;
  position:relative;min-height:300px;overflow:hidden;container-type:size;background:var(--om-land);border:1px solid var(--rule);border-radius:var(--r-md)}
.ip-omap-link{position:absolute;inset:0;display:block;color:var(--ink);text-decoration:none}
.ip-omap-link:focus-visible{outline-offset:-5px;border-radius:var(--r-md)}
.ip-omap-svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.ip-omap-svg path{fill:none;vector-effect:non-scaling-stroke}
.ip-omap-svg .om-grat{stroke:var(--om-grat);stroke-width:1}
.ip-omap-svg .om-town{fill:var(--om-town)}
.ip-omap-svg .om-primary{stroke:var(--om-road);stroke-width:1}
.ip-omap-svg .om-water{fill:var(--om-water);stroke:var(--om-shore);stroke-width:1}
.ip-omap-svg .om-trunk{stroke:var(--om-road);stroke-width:1.6}
.ip-omap-svg .om-motorway{stroke:var(--om-motorway);stroke-width:2}
.ip-omap-at{position:absolute;pointer-events:none;--k:max(100cqw / var(--w), 100cqh / var(--h));
  left:calc(50% + (var(--x) - var(--w) / 2) * var(--k));top:calc(50% + (var(--y) - var(--h) / 2) * var(--k))}
/* a place: a dot and its name beside it (to the east, or to the west with --w) */
.ip-omap-place{display:flex;align-items:center;gap:7px;transform:translate(-4px,-50%);font-size:14px;font-weight:700;line-height:1;letter-spacing:.01em;color:var(--ink);white-space:nowrap;
  text-shadow:0 0 2px var(--om-land),0 0 3px var(--om-land),0 0 6px var(--om-land)}
.ip-omap-place::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2px var(--white)}
.ip-omap-place--west{flex-direction:row-reverse;transform:translate(calc(-100% + 4px),-50%)}
/* the pin, its tip on the point; the terminal's name under it, on the land side */
.ip-omap-pin{width:30px;height:40px;color:var(--red);transform:translate(-50%,-100%);filter:drop-shadow(0 3px 3px rgba(var(--ink-rgb),.3))}
.ip-omap-pin svg{display:block;width:100%;height:100%}
.ip-omap-term{transform:translate(-14px,10px);padding:5px 9px;font-size:14px;font-weight:700;line-height:1.25;color:var(--ink);white-space:nowrap;
  background:var(--white);border-radius:var(--r-xs);box-shadow:0 1px 2px rgba(var(--ink-rgb),.12),0 4px 12px -4px rgba(var(--ink-rgb),.22)}
.ip-omap-btn{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;gap:7px;padding:8px 13px 8px 15px;font-size:14px;font-weight:700;line-height:1.2;
  color:var(--ink);background:var(--white);border-radius:var(--pill);box-shadow:0 1px 2px rgba(var(--ink-rgb),.12),0 6px 16px -6px rgba(var(--ink-rgb),.3);transition:background .2s,color .2s}
.ip-omap-btn .ip-ext{width:14px;height:14px}
.ip-omap-link:hover .ip-omap-btn,.ip-omap-link:focus-visible .ip-omap-btn{color:var(--white);background:var(--red)}
.ip-omap-credit{position:absolute;left:0;bottom:0;z-index:1;padding:4px 9px 4px 10px;font-size:11px;line-height:1.3;color:var(--muted);text-decoration:none;
  background:rgba(255,255,255,.78);border-top-right-radius:var(--r-xs)}
.ip-omap-credit:hover{color:var(--ink);text-decoration:underline}
/* the departments: a card each, two to a row; the name and what it does, the person, phone and
   mailbox at the foot */
.ip-depts{margin-top:56px}
.ip-dept-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 0;padding:0;list-style:none}
.ip-dept{position:relative;display:flex;flex-direction:column;padding:30px 30px 28px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.ip-dept::before{content:"";position:absolute;left:0;top:0;width:48px;height:3px;background:var(--red)}
.ip-dept-name{margin:0;font-size:20px;font-weight:800;line-height:1.3;color:var(--ink)}
.ip-dept-text{margin:10px 0 22px;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
.ip-dept-who{margin-top:auto;padding-top:18px;border-top:1px solid var(--rule)}
.ip-dept-person{margin:0 0 6px;font-size:18px;font-weight:700;line-height:1.35;color:var(--ink)}
.ip-dept-line{display:flex;align-items:flex-start;gap:10px;margin:6px 0 0;font-size:17px;line-height:1.4;color:var(--ink)}
.ip-dept-ic{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:3px;color:var(--red)}
.ip-dept-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ip-dept-line a{min-width:0;color:var(--ink);text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.3);text-decoration-thickness:1px;text-underline-offset:4px}
.ip-dept-line a:hover{color:var(--red);text-decoration-color:currentColor}
.has-deco .ip-dept-name,.has-deco .ip-dept-text{--deco-under:0}

/* ---- the team (ts_flex_team, За нас): the heading with its line under it, then a card per
   person, people first: the portrait, or a round monogram with the initials until it arrives; the
   name, the department and its line; the phone and email at the foot, level across a row. Four in
   a row from 1200 px, two by two below, one column on phones. ---- */
.hp-head--stack{display:block;max-width:760px}
.hp-head--stack .hp-head-note{margin-top:18px}
.ip-people{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ip-person{display:flex;flex-direction:column;padding:32px 26px 26px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.ip-person-pic{display:grid;place-items:center;flex:none;width:120px;height:120px;margin:0 0 26px;overflow:hidden;border-radius:50%;background:var(--dark);box-shadow:0 0 0 4px var(--white),0 0 0 5px var(--rule)}
.ip-person-pic picture,.ip-person-img{display:block;width:100%;height:100%}
.ip-person-img{object-fit:cover}
.ip-person-mono{font-family:var(--ts-font-display);font-size:40px;font-weight:700;line-height:1;letter-spacing:.04em;color:var(--white)}
.ip-person-mono::after{content:"";display:block;width:22px;height:3px;margin:9px auto 0;background:var(--red)}
.ip-person-name{margin:0;font-size:24px;font-weight:800;line-height:1.2;color:var(--ink)}
.ip-person-dept{margin:8px 0 0;font-size:var(--fs-small);font-weight:700;line-height:1.4;color:var(--red-deep)}
.ip-person-text{margin:12px 0 24px;font-size:var(--fs-small);line-height:1.55;color:var(--text)}
.ip-person-foot{margin-top:auto;padding-top:18px;border-top:1px solid var(--rule)}
.ip-person-foot .ip-dept-line:first-child{margin-top:0}

/* the timeline across needs the full desktop width; below it runs down the left */
@media (max-width:1199px){
  .ip-people{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ip-tl{grid-template-columns:minmax(0,1fr);gap:0;max-width:720px}
  .ip-tl-item:not(:last-child)::after{left:7px;right:auto;top:20px;bottom:-4px;width:2px;height:auto}
  .ip-tl-item{padding:0 0 32px 44px}
  .ip-tl-item:last-child{padding-bottom:0}
  .ip-tl-dot{top:4px}
  .ip-tl-year{font-size:32px}
  /* the open end runs down the left too: dashed, with a little more room before "Днес" */
  .ip-tl.ip-tl--open{grid-template-columns:minmax(0,1fr)}
  .ip-tl--open .ip-tl-item:last-child{grid-column:auto}
  .ip-tl-item.ip-tl-item--gap{padding-bottom:56px}
  .ip-tl-item.ip-tl-item--gap::after{right:auto;background:repeating-linear-gradient(to bottom,var(--rule-2) 0 8px,transparent 8px 15px)}
  .sec-dark .ip-tl-item.ip-tl-item--gap::after{background:repeating-linear-gradient(to bottom,var(--rule-on-dark) 0 8px,transparent 8px 15px)}
}
@media (max-width:980px){
  .ip-ct-foot.has-map{grid-template-columns:minmax(0,1fr)}
  .ip-omap{min-height:0;aspect-ratio:16/9}
  .ip-dcard-media > .ip-dcard-map{width:100%;opacity:.55}
  .ip-dcard--map .ip-dcard-in{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){
  .ip-ct{grid-template-columns:minmax(0,1fr);gap:16px}
  .ip-ct-card{padding:24px 22px 26px}
  .ip-depts{margin-top:44px}
  .ip-dept-list{grid-template-columns:minmax(0,1fr);gap:16px}
  .ip-dept{padding:24px 22px 24px}
  .ip-dept-name{font-size:19px}
  .ip-people{grid-template-columns:minmax(0,1fr);gap:16px}
  .ip-person{padding:26px 22px 24px}
  .ip-person-top{display:flex;align-items:center;gap:18px}
  .ip-person-pic{width:84px;height:84px;margin:0}
  .ip-person-mono{font-size:29px}
  .ip-person-mono::after{width:18px;margin-top:7px}
  .ip-person-id{min-width:0}
  .ip-person-name{font-size:22px}
  .ip-person-text{margin-top:18px}
  .ip-ct-details{padding:24px 22px 24px}
  .ip-inq-mail a{font-size:21px}
  /* on phones the map under the details, the whole drawing in view */
  .ip-omap{aspect-ratio:1000 / 640}
  .ip-omap-place,.ip-omap-term{font-size:13px}
  .ip-omap-pin{width:24px;height:32px}
  .ip-omap-term{padding:4px 8px;transform:translate(-12px,8px)}
  .ip-omap-btn{top:10px;right:10px;padding:6px 11px 6px 12px;font-size:13px}
  .ip-omap-credit{font-size:10px;padding:3px 8px}
}
/* the narrowest phones: the portrait above the name again (beside it the name and the department
   have too little room); the contact cards' values and the mailbox over the form a size smaller,
   so office@ and ens@ stay on one line inside their box */
@media (max-width:379px){
  .ip-person{padding:24px 20px 22px}
  .ip-person-top{display:block}
  .ip-person-pic{margin:0 0 20px}
  .ip-ct-value{font-size:18px}
  .ip-inq-mail{padding:16px 16px 18px}
  .ip-inq-mail a{font-size:18px}
}
@media (prefers-reduced-motion:reduce){
  .hp-card-more .hp-arrow{transition:none}
  .hp-card.is-link:hover .hp-card-more .hp-arrow{transform:none}
}

/* ---- article: information-centre articles and legal pages (ts_flex_article, inc/inner.php) ----
   A reading column (about 70 characters) with the related pages beside it on wide screens. The
   privacy policy uses the same layout (page-privacy-policy.php). */
.ip-article{display:grid;grid-template-columns:minmax(0,1fr);gap:48px}
.ip-article.has-aside{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
.ip-article-main{max-width:760px;font-size:17px;line-height:1.72;color:var(--ink-2)}
.ip-article-main p{margin:0 0 16px}
.ip-article-main h2{margin:40px 0 14px;font-size:clamp(22px,2.4vw,28px);font-weight:800;line-height:1.22;letter-spacing:-.01em;color:var(--ink)}
.ip-article-main ul{margin:0 0 18px;padding:0;list-style:none}
.ip-article-main li{position:relative;margin-bottom:9px;padding-left:24px}
.ip-article-main ul li::before{content:"";position:absolute;left:3px;top:11px;width:7px;height:7px;border-radius:50%;background:var(--red)}
.ip-article-main .lg-draft{margin:0 0 24px;padding:14px 18px;border-left:4px solid var(--red);border-radius:0 var(--r-sm,8px) var(--r-sm,8px) 0;background:var(--soft);font-weight:700;color:var(--ink)}
.ip-article-sum{margin:0 0 8px;padding:24px 28px;background:var(--soft);border:1px solid var(--rule);border-radius:var(--r-md)}
.ip-article-main .ip-article-sum-title,.ip-article-main .ip-article-title{margin:0 0 12px;font-size:20px;font-weight:800;line-height:1.25;color:var(--ink)}
.ip-article-main .ip-article-title{font-size:clamp(22px,2.4vw,28px)}
.ip-article-sum ul{margin:0}
.ip-article-sum li:last-child{margin-bottom:0}
/* the end of the text: the date (legal pages; an information-centre article has it in its head) and the notes */
.ip-article-end{margin-top:36px;padding-top:18px;border-top:1px solid var(--rule)}
.ip-article-updated{font-size:15px;font-weight:600;color:var(--ink)}
.ip-article-changes{margin-top:-8px !important;font-size:15px;color:var(--ink)}
.ip-article-note{font-size:15px;color:var(--text)}
/* the sources under the closing note (field sources): a small heading and a quiet list */
.ip-article-sources{margin:20px 0 18px}
.ip-article-main .ip-article-sources-title{margin:0 0 8px;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:0;color:var(--ink)}
.ip-article-sources ul{margin:0}
.ip-article-main .ip-article-sources li{margin-bottom:6px;padding-left:20px;font-size:14.5px;line-height:1.55;color:var(--text)}
.ip-article-main .ip-article-sources li::before{left:4px;top:9px;width:5px;height:5px}
/* a quoted passage in the text ("> "): a sample contract clause, set apart on the light grey with the red rule */
.ip-article-quote{margin:6px 0 24px;padding:18px 22px;border-left:3px solid var(--red);border-radius:0 var(--r-sm,8px) var(--r-sm,8px) 0;background:var(--soft);font-size:16px;line-height:1.66;color:var(--ink)}
.ip-article-main .ip-article-quote p{margin:0}
/* a subheading under a subheading, links, and numbered steps inside the text (the site's steps: the red
   numeral and the rule with its red start, one under another in the reading column) */
.ip-article-main h3{margin:30px 0 10px;font-size:19px;font-weight:800;line-height:1.3;color:var(--ink)}
.ip-article-main h2 + h3{margin-top:22px}
.ip-article-main a:not(.ip-sib){color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:rgba(var(--ink-rgb),.35);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .15s,text-decoration-color .15s}
.ip-article-main a:not(.ip-sib):hover{color:var(--red);text-decoration-color:currentColor}
.ip-article-main a .ip-ext{width:14px;height:14px;margin-left:4px;vertical-align:-1px}
.ip-article-steps{margin:22px 0 24px;padding:0;list-style:none}
.ip-article-main .ip-article-step{display:grid;grid-template-columns:56px minmax(0,1fr);gap:0 18px;margin:0;padding:22px 0 8px;border-top:2px solid var(--rule)}
.ip-article-step::before{content:"";position:absolute;left:0;top:-2px;width:32px;height:2px;background:var(--red)}
.ip-article-step-num{font-family:var(--ts-font-display);font-size:34px;font-weight:800;line-height:1;color:var(--red)}
.ip-article-main .ip-article-step-title{margin:3px 0 8px;font-size:19px}
.ip-article-step p{margin:0 0 12px;font-size:16px;line-height:1.65}
.ip-article-aside{position:sticky;top:calc(var(--mh-compact,72px) + 24px)}
.ip-article-aside-title{margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text)}
.ip-article-links{grid-template-columns:1fr;gap:12px}
.ip-article-links .ip-sib{min-height:64px;padding:14px 18px;font-size:16px}
@media (max-width:980px){.ip-article.has-aside{grid-template-columns:minmax(0,1fr)}.ip-article-aside{position:static}}
@media (max-width:767px){.ip-article-main{font-size:16.5px}.ip-article-sum{padding:20px}.ip-article-main .ip-article-step{grid-template-columns:40px minmax(0,1fr);gap:0 14px;padding-top:18px}.ip-article-step-num{font-size:27px}.ip-article-main .ip-article-step-title{margin-top:1px;font-size:18px}.ip-article-quote{padding:16px 18px;font-size:15.5px}}
/* narrow phones: the number above its step, so the title has the whole column; subheadings a step smaller */
@media (max-width:379px){.ip-article-main .ip-article-step{grid-template-columns:minmax(0,1fr)}.ip-article-step-num{margin-bottom:10px;font-size:26px}.ip-article-main h3,.ip-article-main .ip-article-step-title{font-size:17px}}
