/* =========================================================
   Delow — contact page (/kontakti/): steps + form in the first screen,
   tap-friendly contact cards, map and the office photo.
   Loads after service.css (breadcrumb, glow) and components.css (form card, map).
   ========================================================= */

/* ---------- Hero: words and steps, the form beside them (phone: right after the steps) ---------- */
.chero { position: relative; padding: 16px 0 56px; overflow: clip; }
.chero__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.chero .crumbs { margin-bottom: 20px; }
.chero__title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -.045em; font-weight: 650; }
.chero__lead { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

.csteps { position: relative; display: grid; gap: 18px; margin-top: 28px; }
.csteps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 11px); }
.csteps__item { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.csteps__item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); }
.csteps__item > span:last-child { color: var(--ink-2); font-size: 1rem; line-height: 1.5; padding-top: 7px; }
.csteps__num { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; box-shadow: 0 0 0 6px #fff; }
.csteps__num--accent { background: var(--accent); }

.chero__form { position: relative; }
.cform__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 6px; }
.chero__form .form__title { font-family: var(--font-text); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--muted); }

@media (max-width: 959px) {
  .chero__form { margin-top: 0 !important; }
  .csteps { gap: 14px; margin-top: 24px; }
  .csteps__item strong { font-size: 1.0625rem; }
}
@media (min-width: 960px) {
  .chero { padding: 32px 0 96px; }
  .chero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 72px; align-items: start; }
  .chero__copy { padding-top: 8px; }
  .csteps { margin-top: 40px; gap: 24px; }
}

/* Load choreography (JS only) */
html.js .chero__copy > *, html.js .chero__form { opacity: 0; transform: translateY(16px); }
html.js.is-loaded .chero__copy > *, html.js.is-loaded .chero__form { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s var(--ease-out); }
html.js.is-loaded .chero__copy > :nth-child(2) { transition-delay: .06s; }
html.js.is-loaded .chero__copy > :nth-child(3) { transition-delay: .12s; }
html.js.is-loaded .chero__copy > :nth-child(4) { transition-delay: .18s; }
html.js.is-loaded .chero__form { transition-delay: .16s; }

/* ---------- Contact cards (tap targets on phones) ---------- */
.cnap { padding-top: 0; }
.cnap__grid { display: grid; gap: 10px; }
.cnap__card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
  min-height: 76px; padding: 14px 56px 14px 14px; border-radius: 20px; background: var(--surface); color: var(--ink);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s ease;
}
.cnap__card:active { transform: scale(.98); }
.cnap__icon { position: relative; grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--ink); transition: background-color .25s ease, color .25s ease, transform .35s var(--ease-out); }
.cnap__icon .ico { width: 22px; height: 22px; }
.cnap__label { font-size: .875rem; color: var(--muted); }
.cnap__value { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.cnap__go { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out), background-color .25s ease, color .25s ease; }
.cnap__go .ico { width: 16px; height: 16px; }
.cnap__card--static { padding-right: 14px; }
.cnap__card--call .cnap__icon { background: #16a34a; color: #fff; }
.cnap__pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(22,163,74,.45); animation: cnap-pulse 2.4s var(--ease-out) infinite; pointer-events: none; }
@keyframes cnap-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(22,163,74,0); } }
@media (hover: hover) and (pointer: fine) {
  a.cnap__card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
  a.cnap__card:hover .cnap__go { background: var(--ink); color: #fff; transform: rotate(45deg); }
  a.cnap__card:not(.cnap__card--call):hover .cnap__icon { background: var(--accent); color: #fff; }
}
.cnap__note { margin-top: 22px; color: var(--ink-2); max-width: 64ch; }
.cnap__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cnap__note a:hover { text-decoration-color: var(--accent); }
@media (min-width: 640px) { .cnap__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .cnap__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cnap__card { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 6px; min-height: 196px; padding: 22px; }
  .cnap__icon { grid-row: auto; margin-bottom: 18px; }
  .cnap__go { top: 22px; translate: none; }
  .cnap__value { font-size: 1.125rem; }
}

/* ---------- How to find us: words, map, office photo ---------- */
.cfind { padding-top: 0; }
.cfind__grid { display: grid; gap: 20px; }
.cfind__text { margin-top: 18px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.6; max-width: 44ch; }
.cfind__dir { margin-top: 28px; }
.cfind__map { margin-top: 0; min-height: 280px; background: var(--surface); }
.cfind__map .map__placeholder { background: var(--surface); }
.cfind__photo { aspect-ratio: 4 / 3; }
html.js .cfind__map.is-in .map__pin { animation: cfind-drop .8s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
@keyframes cfind-drop { from { opacity: 0; transform: translateY(-28px); } }
@media (max-width: 559px) { .cfind__dir { width: 100%; justify-content: space-between; } }
@media (min-width: 1024px) {
  .cfind__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy photo" "map photo"; column-gap: 56px; row-gap: 32px; }
  .cfind__copy { grid-area: copy; align-self: end; }
  .cfind__map { grid-area: map; min-height: 320px; }
  .cfind__photo { grid-area: photo; aspect-ratio: auto; height: 100%; min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .cnap__pulse { animation: none; }
  html.js .cfind__map.is-in .map__pin { animation: none; }
}
