/* Kontakt (page-templates/kontakt.php) */

/* hero: direct lines */
.lines{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line-2); }
.lines li{ display:grid; grid-template-columns:110px 1fr auto; align-items:center; gap:12px; padding:18px 4px; border-bottom:1px solid var(--line); }
.lines .mono{ color:var(--muted); }
.lines a.big, .lines span.big{ font-weight:600; color:#fff; font-size:clamp(18px,1.8vw,24px); letter-spacing:-.01em; transition:color .2s; }
.lines a.big:hover{ color:var(--cyan); }
.lines .act{
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  padding:8px 12px; border-radius:999px; border:1px solid var(--line-2); color:var(--ice);
  transition:background .25s, color .25s, border-color .25s;
}
.lines .act:hover{ background:#fff; color:var(--night); border-color:#fff; }
.lines .act.ok{ background:var(--cyan); color:var(--night); border-color:var(--cyan); }

/* form section */
.form-grid{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(24px,3vw,48px); align-items:start; }
.card{
  padding:clamp(22px,3vw,44px); border-radius:var(--radius); background:#fff;
  box-shadow:0 30px 60px -40px rgba(11,37,69,.45), 0 0 0 1px rgba(11,37,69,.06);
}
.step{ display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.step b{ font-family:var(--mono); font-weight:500; font-size:11px; letter-spacing:.1em; color:var(--cyan); }
.step span{ font-weight:600; font-size:18px; color:var(--white); letter-spacing:-.01em; }
.step::after{ content:""; flex:1; height:1px; background:var(--line); }
.block{ margin-bottom:34px; }

.picks{ display:flex; flex-wrap:wrap; gap:8px; }
.picks label{ position:relative; }
.picks input{ position:absolute; opacity:0; pointer-events:none; }
.picks span{
  display:inline-flex; align-items:center; gap:9px; padding:10px 15px; border-radius:999px; cursor:pointer;
  border:1px solid var(--line-2); font-size:14px; color:var(--text); background:#fff;
  transition:background .25s, border-color .25s, color .25s;
}
.picks span::before{ content:""; width:7px; height:7px; border-radius:50%; background:rgba(11,37,69,.18); transition:background .25s, box-shadow .25s; }
.picks label:hover span{ border-color:var(--cyan); }
.picks input:checked + span{ background:var(--cyan); border-color:var(--cyan); color:#fff; }
.picks input:checked + span::before{ background:#7fd3ff; box-shadow:0 0 8px #7fd3ff; }
.picks input:focus-visible + span{ outline:2px solid var(--cyan); outline-offset:2px; }

.fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fields .full{ grid-column:1 / -1; }
.f label{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.f label i{ font-style:normal; color:var(--cyan); }
.f input, .f select, .f textarea{
  width:100%; padding:13px 14px; border-radius:10px; font-size:15px; font-family:var(--font);
  background:#f6f8fb; border:1px solid var(--line-2); color:var(--white);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.f textarea{ min-height:130px; resize:vertical; line-height:1.55; }
.f input::placeholder, .f textarea::placeholder{ color:#97a3b4; }
.f input:focus, .f select:focus, .f textarea:focus{ outline:none; border-color:var(--cyan); background:#fff; box-shadow:0 0 0 4px rgba(0,87,164,.1); }
.f.err input, .f.err textarea{ border-color:#d0342c; background:#fff6f5; }
.f .msg{ display:none; margin-top:6px; font-size:13px; color:#d0342c; }
.f.err .msg{ display:block; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.consent{ display:flex; gap:12px; align-items:flex-start; font-size:14px; color:var(--muted); cursor:pointer; }
.consent input{ flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--brand); }
.consent.err{ color:#d0342c; }
.submit-row{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.submit-row .note{ font-size:13px; color:var(--muted); max-width:36ch; }
.light .btn-primary{ background:var(--brand); color:#fff; box-shadow:0 12px 30px -12px rgba(0,87,164,.7); }
.light .btn-primary:hover{ background:var(--navy); }

.done{ display:none; text-align:center; padding:clamp(30px,5vw,60px) 10px; }
.done.on{ display:block; }
.done .tick{ width:72px; height:72px; margin:0 auto 22px; border-radius:50%; display:grid; place-items:center; background:var(--brand); color:#fff; box-shadow:0 0 0 10px rgba(0,87,164,.1); }
.done h3{ margin:0 0 10px; font-size:clamp(26px,2.6vw,36px); color:var(--white); letter-spacing:-.02em; }
.done p{ margin:0 auto 24px; color:var(--muted); max-width:42ch; }

/* live work order */
.sheet-wrap{ position:sticky; top:calc(var(--head) + 24px); display:grid; gap:16px; }
.sheet{ aspect-ratio:auto; }
.sheet .stage-body{ position:relative; inset:auto; padding:58px 22px 22px; }
.sheet dl{ margin:0; }
.sheet .row{ display:grid; grid-template-columns:104px 1fr; gap:10px; padding:11px 0; border-bottom:1px dashed var(--line-2); align-items:baseline; }
.sheet dt{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.sheet dd{ margin:0; color:#fff; font-size:15px; font-weight:500; min-height:1.4em; overflow-wrap:anywhere; transition:color .3s; }
.sheet dd.empty{ color:rgba(143,163,191,.45); font-weight:400; }
.sheet dd.flash{ animation:flash .7s var(--ease); }
@keyframes flash{ 0%{ color:var(--cyan); text-shadow:0 0 14px var(--cyan); } 100%{ text-shadow:none; } }
.count{ display:flex; align-items:baseline; gap:8px; }
.count b{ font-size:30px; font-weight:300; letter-spacing:-.03em; color:#fff; line-height:1; }
.leds{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:4px; }
.leds span{ display:flex; flex-direction:column; align-items:center; gap:6px; font-family:var(--mono); font-size:9.5px; letter-spacing:.06em; color:var(--muted); text-align:center; }
.leds i{ width:100%; height:6px; border-radius:3px; background:rgba(169,208,245,.14); transition:background .3s, box-shadow .3s; }
.leds span.on{ color:#fff; }
.leds span.on i{ background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.ready{ margin-top:18px; }
.ready-top{ display:flex; justify-content:space-between; color:var(--muted); margin-bottom:8px; }
.ready-top b{ color:#fff; font-weight:500; }
.bar{ height:6px; border-radius:3px; background:rgba(169,208,245,.14); overflow:hidden; }
.bar i{ display:block; height:100%; width:0; border-radius:3px; background:linear-gradient(90deg,var(--brand),var(--cyan)); transition:width .6s var(--ease); }
.sheet.is-ready .bar i{ box-shadow:0 0 14px var(--cyan); }

.next{ padding:22px 24px; border-radius:var(--radius); background:#fff; box-shadow:0 0 0 1px rgba(11,37,69,.06); }
.next h3{ margin:0 0 12px; font-size:15px; color:var(--white); }
.next ol{ list-style:none; margin:0; padding:0; counter-reset:n; }
.next li{ counter-increment:n; display:grid; grid-template-columns:34px 1fr; gap:6px; padding:9px 0; border-top:1px solid var(--line); font-size:14px; color:var(--muted); }
.next li::before{ content:"0" counter(n); font-family:var(--mono); font-size:11px; color:var(--cyan); padding-top:2px; }
.next li b{ color:var(--white); font-weight:600; }

/* location */
.loc{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(32px,5vw,80px); align-items:center; }
.addr{ margin:32px 0 0; font-style:normal; font-size:clamp(20px,1.8vw,26px); line-height:1.4; color:var(--white); font-weight:600; letter-spacing:-.01em; }
.loc .lede{ margin-top:18px; }
.loc .actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:32px; }
.light .btn-ghost{ color:var(--white); border-color:var(--line-2); }
.light .btn-ghost:hover{ border-color:var(--white); }
.map svg{ width:100%; height:100%; display:block; }
.map .pin-ring{ transform-box:fill-box; transform-origin:center; animation:ring 2.4s ease-out infinite; }
.map .pin-ring.b{ animation-delay:1.2s; }
@keyframes ring{ from{ transform:scale(.4); opacity:.9; } to{ transform:scale(2.6); opacity:0; } }
.map-tag{ position:absolute; left:18px; bottom:14px; z-index:2; color:var(--muted); }


/* ---------- Responsive ---------- */
@media (max-width:960px){
  .form-grid, .loc{ grid-template-columns:1fr; }
  .sheet-wrap{ position:static; order:-1; }
}
@media (max-width:600px){
  .fields{ grid-template-columns:1fr; }
  .lines li{ grid-template-columns:1fr auto; }
  .lines li > .mono{ grid-column:1 / -1; }
  .map{ aspect-ratio:1/1; }
  .leds span{ font-size:8.5px; }
}
.next li strong{ color:var(--white); font-weight:600; }
