/* Modern Andromeda — proiker.sk
   Keeps the original theme's palette and its signature dashed-rule italic
   heading; replaces the 940px fixed shell with a fluid, responsive one and
   restyles the Drupal content markup rather than re-authoring every page. */

:root {
  --ink: #363636;          /* Andromeda body colour */
  --ink-strong: #222222;
  --paper: #F5F5F5;        /* Andromeda page background */
  --surface: #ffffff;
  --rule: #CCCCCC;         /* Andromeda dashed rules */
  --line: #e3e3e3;
  --muted: #7A7A7A;
  --nav-bg: #1a1c21;
  --nav-ink: #C0C0C0;      /* Andromeda nav link */
  --nav-hover: #111111;    /* Andromeda nav hover */
  --ft-bg: #0B0D12;        /* Andromeda footer */
  --ft-ink: #8f9198;
  --ft-dim: #5C5D5E;
  --wrap: 1180px;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pk-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* keyboard users shouldn't have to tab through the whole menu */
.pk-skip { position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--surface); color: var(--ink); padding: 12px 18px; border: 1px solid var(--ink); }
.pk-skip:focus { left: 12px; top: 12px; }

/* breadcrumbs — a 400-page catalogue needs them */
.pk-crumbs { border-bottom: 1px solid var(--line); background: var(--surface); }
.pk-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none;
  margin: 0; padding: 13px 0; font-size: 13px; color: var(--muted); }
.pk-crumbs li + li::before { content: "/"; padding-right: 8px; color: #bdbdbd; }
.pk-crumbs a { color: var(--muted); }
.pk-crumbs li:last-child { color: var(--ink); }

/* a business page should let you act */
.pk-cta { border-top: 1px dashed var(--rule); margin: 58px auto 0; padding: 32px 0 4px;
  text-align: center; max-width: 62ch; }
.pk-cta__q { font: italic 400 23px/1.4 var(--serif); color: var(--ink); margin: 0 0 6px; max-width: none; }
.pk-cta__a { font-size: 15px; color: var(--muted); margin: 0 0 22px; max-width: none; }
.pk-cta p:last-child { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: none; }
.pk-btn--ghost { border-color: #c9c9c9; color: var(--muted); }
.pk-btn--ghost:hover { background: var(--muted); border-color: var(--muted); color: #fff; }

/* ---------- header ---------- */
.pk-hd { background: var(--nav-bg); position: sticky; top: 0; z-index: 200; }
.pk-hd__in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 76px; }
.pk-logo { display: block; flex-shrink: 0; }
.pk-logo:hover { text-decoration: none; }
.pk-logo b { display: block; font: 400 21px/1.1 var(--serif); letter-spacing: .14em; color: #f2f2f2; white-space: nowrap; }
.pk-logo i { display: block; font: 300 10px/1 var(--disp); font-style: normal; letter-spacing: .42em; color: #7d7f86; margin-top: 3px; }
.pk-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.pk-nav a { color: var(--nav-ink); font-size: 14px; line-height: 30px; padding: 5px 13px; border-radius: 5px; white-space: nowrap; }
.pk-nav a:hover, .pk-nav a:focus { background: var(--nav-hover); color: #fff; text-decoration: none; }
.pk-nav a[aria-current="page"] { color: #fff; }
.pk-nav .pk-tel { border: 1px solid #4a4d55; margin-left: 8px; }
.pk-burger { display: none; width: 46px; height: 46px; background: none; border: 1px solid #3a3d44;
  border-radius: 5px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.pk-burger span { display: block; width: 19px; height: 1px; background: var(--nav-ink); }
#pk-menu { position: absolute; opacity: 0; pointer-events: none; }

/* submenu */
.pk-nav li { list-style: none; }
.pk-sub { position: relative; }
.pk-sub > ul { display: none; position: absolute; left: 0; top: 100%; background: var(--nav-hover);
  min-width: 260px; margin: 0; padding: 8px 0; border-radius: 0 5px 5px 5px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.pk-sub:hover > ul, .pk-sub:focus-within > ul { display: block; }
.pk-sub > ul a { display: block; border-radius: 0; padding: 8px 18px; font-size: 14px; }

/* ---------- hero slider (front page) ----------
   The archive's largest slide is 940x400 - the old theme was 940px wide - so
   the picture is served at its own size and the section, not the image, is what
   spans the page. Stretching a 560px derivative across 1400px is what made the
   old hero look soft. */
.pk-hero { position: relative; background: var(--nav-bg); overflow: hidden; }
.pk-slider { position: relative; }
.pk-slides { display: flex; margin: 0; padding: 0; list-style: none; max-width: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pk-slides::-webkit-scrollbar { display: none; }
.pk-slides > li { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.pk-slides img { width: 100%; height: 560px; object-fit: cover; display: block; opacity: .82; }

.pk-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 68px; border: 0; cursor: pointer; color: #fff; padding: 0;
  background: rgba(12,13,17,.42); font: 300 30px/1 var(--disp);
  transition: background .16s ease; }
.pk-slider__nav:hover { background: rgba(12,13,17,.72); }
.pk-slider__prev { left: 0; }
.pk-slider__next { right: 0; }

.pk-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3; }
.pk-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .16s ease; }
.pk-dots button[aria-selected="true"] { background: #ffffff; }

/* the caption sits over the picture but must not swallow swipes or clicks */
.pk-hero__c { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(12,13,17,.74) 0%, rgba(12,13,17,.3) 62%, rgba(12,13,17,0) 100%); }
.pk-hero__c > div { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; }
.pk-hero__c a { pointer-events: auto; }
.pk-kicker { font: 300 12px/1 var(--disp); letter-spacing: .3em; text-transform: uppercase;
  color: #cfd0d4; margin: 0 0 18px; max-width: none; }
.pk-hero h2 { font: 100 54px/1.14 var(--disp); color: #fff; margin: 0 0 22px; max-width: 15ch; }
.pk-hero p { font-size: 17px; line-height: 1.7; color: #dcdde0; margin: 0 0 32px; max-width: 46ch; }
.pk-btn { display: inline-block; font: 300 13px/1 var(--disp); letter-spacing: .18em;
  text-transform: uppercase; padding: 15px 30px; border: 1px solid var(--ink);
  color: var(--ink); transition: background .16s, color .16s; }
.pk-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.pk-btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.pk-btn--light:hover { background: #fff; color: var(--nav-bg); }

/* ---------- the signature: dashed-rule italic serif heading ---------- */
.pk-head { border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  padding: 18px 0; margin: 54px 0 40px; text-align: center; }
.pk-head h1 { font: italic 400 30px/1.25 var(--serif); color: var(--ink); margin: 0; }
body.pk-front .pk-head { margin-top: 58px; }

/* ---------- content ---------- */
.pk-main { padding-bottom: 76px; }
.pk-content { font-size: 16px; line-height: 1.75; }
/* A 1180px column with a 74ch paragraph in it reads as "everything is on the
   left", so plain prose gets a centred measure.

   :not([class]) matters. Every classed element inside the content region is one
   of ours - a card, a note, a category panel - and this rule outranks a single
   class selector, so without the guard it silently re-centres and re-measures
   components that set their own. That is what put the grid at two thirds width
   and pushed the category bullets off the left edge. */
.pk-content p:not([class]), .pk-content ul:not([class]), .pk-content ol:not([class]),
.pk-content h2:not([class]), .pk-content h3:not([class]), .pk-content table,
.pk-content blockquote:not([class]), .pk-content .field-label-inline {
  max-width: 72ch; margin-left: auto; margin-right: auto; }
.pk-content > .region-content > * { margin-left: auto; margin-right: auto; }
.pk-content h2:not([class]) { font: 300 28px/1.25 var(--disp); color: var(--ink-strong); margin: 42px 0 14px; }
.pk-content h3:not([class]) { font: 300 22px/1.3 var(--disp); color: var(--ink-strong); margin: 32px 0 10px; }
.pk-content p:not([class]) { margin: 0 0 18px; }
.pk-content table { border-collapse: collapse; width: 100%; }
.pk-content td, .pk-content th { border-bottom: 1px dashed var(--rule); padding: 10px 12px; text-align: left; }

/* The home page's opening block: a centred column so the intro does not sit in
   the left third of a 1180px page. */
.pk-intro { max-width: 70ch; margin: 0 auto; }
.pk-intro .pk-lede { text-align: center; max-width: none; margin-bottom: 26px; }
.pk-intro p { max-width: none; }

/* Lede: the first paragraph carries the page. */
.pk-lede { font-size: 20px; line-height: 1.62; color: #2c2c2c;
  max-width: 66ch; margin-left: auto; margin-right: auto; }
.pk-lede b, .pk-lede strong { font-weight: 600; }

/* Pull-quote — the theme's own motif, reused for the line the owners
   themselves put first on the page. */
.pk-pull { border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  margin: 40px auto; padding: 24px 0; max-width: 62ch; text-align: center; }
.pk-pull p { font: italic 400 24px/1.6 var(--serif); color: var(--ink); margin: 0; max-width: none; }

/* Drupal field rows -> spec list */
.field-label-inline { display: flex; flex-wrap: wrap; gap: 8px 14px;
  border-bottom: 1px dashed var(--rule); padding: 11px 0; }
.field-label-inline .field-label { color: var(--muted); font-weight: 400; min-width: 12ch; }
.field-label-inline .field-items, .field-label-inline .field-item { margin: 0; }
.field-label { font-weight: 600; }

/* THE listing pattern — build/theme.py normalises every Drupal listing
   (grid tables, nested field divs, media galleries) into this one shape. */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px 28px; list-style: none; margin: 10px 0; padding: 0; max-width: none; }

.pk-card { margin: 0; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; }
.pk-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.13); }
.pk-card > a { display: block; }
.pk-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: #f2f2f2; }
/* Catalogue renders only ever existed at 220-280px. Upscaling them into the
   box is what reads as blurry, so they sit at their own size on white. */
.pk-card img[data-fit] { object-fit: scale-down; background: #ffffff; padding: 16px; }
.pk-cap { display: block; padding: 13px 16px 15px; border-top: 1px solid var(--line);
  font: 300 16px/1.4 var(--disp); color: var(--ink-strong); }
.pk-card:hover .pk-cap { text-decoration: underline; }
.pk-content img[data-fit] { object-fit: scale-down; background: #fff; }

/* Project sets — realizacie is 39 separate jobs. Each gets a band: the lead
   photograph large, the rest as a strip beneath it, and the description in its
   own column where it can actually be read. Alternating sides gives 39 of them
   a rhythm; the dashed rule between is the theme's own separator. */
.pk-sets { margin: 4px 0 0; }
.pk-set { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px;
  align-items: start; padding: 54px 0; border-top: 1px dashed var(--rule); }
.pk-set:first-child { border-top: 0; padding-top: 24px; }
.pk-set--flip .pk-set__media { order: 2; }

.pk-set__lead a { display: block; }
.pk-set__lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border: 1px solid var(--line); background: #f2f2f2;
  transition: transform .18s ease, box-shadow .18s ease; }
.pk-set__lead a:hover img { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.13); }
.pk-set__lead img[data-fit] { object-fit: scale-down; background: #fff; padding: 14px; }

.pk-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; max-width: none; }
.pk-strip li { margin: 0; }
.pk-strip a { display: block; }
.pk-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border: 1px solid var(--line); background: #f2f2f2; transition: opacity .16s ease; }
.pk-strip a:hover img { opacity: .82; }
.pk-strip img[data-fit] { object-fit: scale-down; background: #fff; padding: 8px; }

.pk-set__meta { font: 300 11px/1 var(--disp); letter-spacing: .26em; text-transform: uppercase;
  color: #9a9a9a; margin: 2px 0 13px; max-width: none; }
.pk-set__note { font-size: 16px; line-height: 1.75; color: #4a4a4a;
  margin: 0 0 16px; max-width: 46ch; text-align: left; }
.pk-set__count { font-size: 13px; color: var(--muted); margin: 0; max-width: none; }

.pk-set--nophoto { display: block; max-width: 62ch; margin: 0 auto; text-align: center; }
.pk-set--nophoto .pk-set__note { max-width: none; text-align: center; }
.pk-set--nophoto .pk-set__count { font-style: italic; color: #9a9a9a; }

@media (max-width: 860px) {
  .pk-set { grid-template-columns: 1fr; gap: 20px; padding: 38px 0; }
  .pk-set--flip .pk-set__media { order: 0; }
  .pk-set__note { max-width: none; }
}

/* Product overview — the six categories as panels, matching the card system
   used on every listing, each pointing at the page that actually holds it. */
.pk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px; margin: 6px 0 44px; max-width: none; }
.pk-cat { background: var(--surface); border: 1px solid var(--line);
  padding: 26px 26px 22px; display: flex; flex-direction: column; }
.pk-cat__title { font: 300 23px/1.25 var(--disp); color: var(--ink-strong);
  margin: 0 0 10px; max-width: none; }
.pk-cat__lead { font-size: 15px; line-height: 1.65; color: #4a4a4a; margin: 0 0 14px; max-width: none; }
.pk-cat__list { list-style: none; margin: 0 0 18px; padding: 0; max-width: none;
  font-size: 14px; line-height: 1.7; color: var(--muted); text-align: left; }
.pk-cat__list li { padding-left: 16px; position: relative; }
.pk-cat__list li::before { content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 1px; background: #c4c4c4; }
.pk-cat__more { margin: auto 0 0; max-width: none; }
.pk-cat__more a { font: 300 12px/1 var(--disp); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); border-bottom: 1px solid #cfcfcf;
  padding-bottom: 5px; display: inline-block; }
.pk-cat__more a:hover { border-color: var(--ink); text-decoration: none; }

/* Contact — two offices as panels, each complete on its own: address, phone,
   e-mail, map. The page used to run them together as loose paragraphs. */
.pk-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin: 8px 0 0; max-width: none; }
.pk-office { background: var(--surface); border: 1px solid var(--line);
  padding: 32px 30px 28px; display: flex; flex-direction: column; }
.pk-office__city { font: 300 27px/1.2 var(--disp); color: var(--ink-strong);
  margin: 0 0 6px; max-width: none; }
.pk-office__role { font-size: 13px; line-height: 1.6; color: var(--muted);
  margin: 0 0 22px; max-width: none; }
.pk-office__addr { font-style: normal; font-size: 16px; line-height: 1.85;
  display: block; margin: 0 0 18px; }
.pk-office__lines { font-size: 18px; line-height: 1.8; margin: 0 0 24px; max-width: none; }
.pk-office__lines a { border-bottom: 1px solid #dcdcdc; }
.pk-office__lines a:hover { border-color: var(--ink); text-decoration: none; }
.pk-office__map { margin: auto 0 0; max-width: none; }

.pk-close { margin: 40px auto 0; max-width: 56ch; text-align: center;
  font: italic 400 23px/1.5 var(--serif); color: var(--ink);
  border-top: 1px dashed var(--rule); padding-top: 30px; }
.pk-close__by { display: block; margin-top: 14px; font: 300 12px/1 var(--disp);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.pk-thanks { margin: 46px auto 0; max-width: 60ch; text-align: center;
  font-size: 15px; line-height: 1.75; color: var(--muted);
  border-top: 1px dashed var(--rule); padding-top: 26px; }
.pk-thanks__by { display: block; margin-top: 10px; font-family: var(--serif);
  font-style: italic; color: var(--ink); }

/* Video — was hard-coded to 420x315. Now it fills the column and keeps 16:9. */
.pk-video { position: relative; aspect-ratio: 16 / 9; margin: 8px auto 6px;
  max-width: 900px; background: #000; border: 1px solid var(--line); }
.pk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the old maps.google.sk embeds were dead and http-only; a link works */
.pk-map { margin: 14px 0 26px; max-width: none; }

/* C. Prices are shown, not sold: no cart, just a clear number. */
.field-name-field-cena { display: block; max-width: none; margin: 18px 0 6px; }
.field-name-field-cena .field-label { display: block; font: 300 11px/1 var(--disp);
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field-name-field-cena .field-items,
.field-name-field-cena .field-item { font: 300 34px/1.1 var(--disp); color: var(--ink-strong); }
.pk-price { font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.pk-cap .pk-price { display: inline-block; margin-top: 2px; }

/* pager */
.item-list .pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 40px 0 0; margin: 0; list-style: none; }
.item-list .pager li { list-style: none; margin: 0; }
.item-list .pager a, .item-list .pager .pager-current {
  display: inline-block; min-width: 40px; text-align: center; padding: 9px 12px;
  border: 1px solid #d8d8d8; background: var(--surface); font-size: 14px; }
.item-list .pager .pager-current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.pk-ft { background: var(--ft-bg); color: var(--ft-dim); font-size: 13px; }
.pk-ft a { color: var(--ft-ink); }
.pk-ft a:hover { color: #fff; }
.pk-ft__in { max-width: var(--wrap); margin: 0 auto; padding: 52px 24px 34px; }
.pk-ft__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.pk-ft b { display: block; font: 400 19px/1.1 var(--serif); letter-spacing: .14em; color: #e8e8e8; }
.pk-ft .since { font: 300 10px/1 var(--disp); letter-spacing: .42em; color: var(--ft-dim); margin: 4px 0 18px; }
.pk-ft h3 { font: 300 12px/1 var(--disp); letter-spacing: .22em; text-transform: uppercase; color: #e8e8e8; margin: 0 0 16px; }
.pk-ft p { line-height: 1.8; margin: 0; color: var(--ft-ink); }
.pk-ft__bar { border-top: 1px solid #1c1f26; margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .media-gallery, .view-content, .field-type-image .field-items { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .pk-lede { font-size: 18px; }
  .pk-pull p { font-size: 20px; }
  .pk-burger { display: flex; }
  .pk-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  #pk-menu:checked ~ .pk-nav { display: flex; }
  .pk-hd__in { flex-wrap: wrap; padding-top: 12px; padding-bottom: 0; }
  .pk-nav a { padding: 12px 10px; line-height: 24px; min-height: 44px; }
  .pk-sub > ul { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 0 14px; min-width: 0; }
  .pk-slides img { height: 340px; }
  .pk-slider__nav { width: 40px; height: 56px; font-size: 24px; }
  .pk-hero h2 { font-size: 32px; }
  .pk-head h1 { font-size: 24px; }
  .pk-ft__cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .media-gallery, .view-content, .field-type-image .field-items { grid-template-columns: 1fr; }
  .pk-wrap, .pk-hd__in, .pk-ft__in { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* nav is a list */
ul.pk-nav { margin: 0; padding: 0; }
ul.pk-nav > li { position: relative; }
