/* ============================================================
   webkartka.pl — strona główna (uzupełnia /assets/wk-site.css)
   ============================================================ */

/* ---------- Pierwszy ekran ---------- */
.h-hero { background: var(--spruce); color: var(--on-dark); }
.h-hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 64px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.h-hero h1 { margin: 0; color: #fff; font-size: clamp(46px, 6.4vw, 92px); line-height: .94; letter-spacing: -.03em; max-width: 11ch; }
.h-hero-lede { margin: 28px 0 0; max-width: 44ch; color: var(--on-dark-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.h-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.h-hero-work { border-left: 1px solid var(--rule-dark); padding-left: 40px; }
.h-hero-work-note { margin: 0 0 14px; color: var(--on-dark-2); font-size: 16px; }
.h-domains { list-style: none; margin: 0; padding: 0; }
.h-domains li + li { border-top: 1px solid var(--rule-dark); }
.h-domains a { display: grid; gap: 0; padding: 10px 0 12px; color: #fff; text-decoration: none; }
.h-domain { font-family: var(--display); font-size: clamp(30px, 3.3vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; white-space: nowrap; }
.h-kind { color: var(--on-dark-2); font-size: 15px; line-height: 1.3; }
.h-domains a:hover .h-domain { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.h-domains a:hover .h-kind { color: #fff; }
/* jednorazowe „wpisywanie” adresów przy wejściu na stronę */
.h-domain[data-typing]::after { content: ''; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--marker); animation: h-caret .9s steps(1) infinite; }
@keyframes h-caret { 50% { opacity: 0; } }

/* ---------- Pasek cen ---------- */
.h-prices { background: var(--marker); color: var(--ink); }
.h-prices-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-price { display: grid; gap: 4px; align-content: start; padding: 28px 28px 30px 0; color: var(--ink); text-decoration: none; }
.h-price + .h-price { padding-left: 28px; border-left: 1.5px solid rgba(16, 32, 28, .25); }
.h-price-what { font-weight: 700; font-size: 16px; }
.h-price-num { font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.h-price-note { font-size: 15px; line-height: 1.4; max-width: 30ch; }
.h-price:hover .h-price-num { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Branże ---------- */
.h-trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.h-trades li { padding: 28px 0 30px; border-top: 1.5px solid var(--ink); }
.h-trades h3 { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
.h-trades p { margin: 0 0 10px; max-width: 54ch; }
.h-trade-has { color: var(--muted); font-size: 15px; }
.h-trades a { font-weight: 700; color: var(--spruce-2); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.h-trades a:hover { color: var(--ink); text-decoration-color: var(--marker-2); }

/* ---------- Realizacje ---------- */
.h-shot { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--spruce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9.5 13.5 14.6 27 20 17.4 25.4 27l5.1-13.5' fill='none' stroke='%23FFE14D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px no-repeat; }
.h-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.h-work h3 { margin: 0 0 8px; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
.h-work h3 a { color: var(--ink); text-decoration: none; }
.h-work h3 a:hover { text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.h-work p { margin: 0; max-width: 56ch; }
.h-work-kind { margin: 18px 0 4px !important; color: var(--muted); font-size: 15px; font-weight: 600; }
.h-work-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: center; margin-bottom: 56px; }
.h-work-lead .h-work-kind { margin-top: 0 !important; }
.h-work-lead h3 { font-size: clamp(40px, 4.6vw, 64px); }
/* długie domeny (16+ znaków) — mniejszy krój, żeby nazwa nie wchodziła na zrzut */
.h-work-lead h3.is-long { font-size: clamp(34px, 3.8vw, 54px); }
.h-work-lead p { font-size: 18px; }
.h-work-lead.is-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.h-work-lead.is-rev .h-shot { order: 2; }
.h-work-more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--spruce-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.h-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }

/* ---------- Proces ---------- */
.h-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.h-steps li { counter-increment: step; padding-top: 18px; border-top: 1.5px solid var(--on-dark); }
.h-steps li::before { content: counter(step); display: block; margin-bottom: 14px; color: var(--marker); font-family: var(--display); font-size: 64px; font-weight: 700; line-height: .9; }
.h-steps h3 { margin: 0 0 4px; font-size: 26px; line-height: 1.1; }
.h-steps p { margin: 0; color: var(--on-dark-2); }
.h-steps .h-step-when { margin-bottom: 12px; color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- Cennik ---------- */
.h-note { margin: 18px 0 0; max-width: 90ch; color: var(--muted); font-size: 15px; }

.h-addons { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; align-items: start; }
.h-addons-head h3 { margin: 0 0 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -.02em; }
.h-addons-head p { margin: 0; max-width: 36ch; }
.h-addon-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.h-addon { border-bottom: 1px solid var(--rule); padding: 4px 0 10px; }
.h-addon label { display: flex; align-items: center; gap: 14px; padding: 12px 0 2px; cursor: pointer; }
.h-addon input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--spruce); cursor: pointer; }
.h-addon-t { flex: 1; color: var(--ink); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.15; }
.h-addon-p { font-family: var(--display); font-size: 23px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.h-addon-p small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); }
.h-addon input:checked ~ .h-addon-p { background: var(--marker); padding: 0 6px; border-radius: 3px; }
.h-addon details { margin-left: 38px; }
.h-addon summary { cursor: pointer; color: var(--muted); font-size: 15px; list-style: none; }
.h-addon summary::-webkit-details-marker { display: none; }
.h-addon summary::after { content: 'Więcej'; margin-left: 8px; color: var(--spruce-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.h-addon details[open] summary::after { content: 'Zwiń'; }
.h-addon details p { margin: 8px 0 4px; max-width: 64ch; font-size: 15px; }
.h-addon.is-off label { cursor: not-allowed; }
.h-addon.is-off .h-addon-t, .h-addon.is-off .h-addon-p { color: var(--muted); }
.h-addon-off { margin: 4px 0 0 38px; font-size: 14px; font-weight: 600; color: var(--spruce-2); }

.h-sum { grid-column: 2; position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 18px 16px 22px; background: var(--ink); color: var(--on-dark); border-radius: var(--r); }
.h-sum-line { flex: 1 1 100%; margin: 0; font-size: 15px; color: var(--on-dark-2); }
.h-sum-line strong { color: #fff; }
.h-sum-total { flex: 1 1 auto; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.h-sum-total > span { font-size: 15px; color: var(--on-dark-2); }
.h-sum-total .wk-price { color: var(--marker); font-size: 40px; }
.h-sum-total small { font-size: 15px; color: var(--on-dark-2); }
.h-sum .wk-btn { flex: none; }

/* ---------- Sklep (zajawka) ---------- */
.h-shop { background: var(--spruce-3); }
.h-shop-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: end; }
.h-shop-lede { margin: 24px 0 0; max-width: 54ch; color: var(--on-dark-2); font-size: 19px; }
.h-shop-facts { margin: 0; }
.h-shop-facts div { padding: 16px 0; border-top: 1px solid var(--rule-dark); }
.h-shop-facts div:last-child { border-bottom: 1px solid var(--rule-dark); }
.h-shop-facts dt { color: var(--on-dark-2); font-size: 15px; }
.h-shop-facts dd { margin: 4px 0 0; color: #fff; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.h-shop-facts .wk-mark { font-weight: 700; }

/* ---------- Pozostałe usługi ---------- */
.h-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-bottom: 1px solid var(--rule); }
.h-areas a { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--text); text-decoration: none; }
.h-areas strong { color: var(--ink); font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.1; }
.h-areas span { max-width: 52ch; }
.h-areas a:hover strong { text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.h-areas-all { margin: 32px 0 0; }

/* ---------- FAQ ---------- */
.h-faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.h-faq-side { position: sticky; top: 100px; }
.h-faq-side p { margin: 20px 0 0; max-width: 34ch; font-size: 18px; }
.h-faq-side a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Kontakt ---------- */
.h-contact-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 64px; align-items: start; }
.h-contact-lede { margin: 24px 0 0; max-width: 46ch; color: var(--on-dark-2); font-size: 19px; }
.h-contact-big { display: grid; gap: 2px; margin: 32px 0 0; }
.h-contact-big a { color: #fff; font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.15; text-decoration: none; overflow-wrap: anywhere; }
.h-contact-big a:hover { color: var(--marker); }
.h-contact-hours { margin: 10px 0 0; color: var(--on-dark-2); }
.h-form { padding: 28px; background: var(--spruce-2); border-radius: var(--r); }

/* ---------- Okno zamówienia ---------- */
.h-order { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--white); color: var(--text); box-shadow: 0 24px 80px rgba(10, 46, 40, .45); }
.h-order::backdrop { background: rgba(10, 46, 40, .72); }
.h-order-form { padding: 26px 28px 28px; }
.h-order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h-order-head h2 { margin: 0; font-size: 36px; line-height: 1; }
.h-order-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); font: 400 28px/1 var(--font); cursor: pointer; }
.h-order-x:hover { background: var(--sage-2); }
.h-order-sum { padding: 16px 18px; background: var(--sage); border-radius: var(--r); }
.h-order-pkg { margin: 0; color: var(--ink); font-weight: 700; }
.h-order-add { margin: 6px 0 0; padding-left: 20px; font-size: 15px; }
.h-order-add:empty { display: none; }
.h-order-total { margin: 10px 0 0; font-size: 15px; }
.h-order-total strong { font-family: var(--display); font-size: 26px; color: var(--ink); background: var(--marker); padding: 0 6px; border-radius: 3px; }
.h-order-change { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--spruce-2); font: 600 15px/1.4 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.h-order-lede { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .h-hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .h-hero h1 { max-width: 14ch; }
  .h-hero-work { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dark); padding-top: 24px; }
  .h-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .h-addons { grid-template-columns: 1fr; }
  .h-sum { grid-column: 1; }
}
@media (max-width: 900px) {
  .h-work-lead, .h-work-lead.is-rev { grid-template-columns: 1fr; }
  .h-work-lead.is-rev .h-shot { order: 0; }
  .h-shop-in, .h-faq-in, .h-contact-in { grid-template-columns: 1fr; }
  .h-faq-side { position: static; }
  .h-trades, .h-areas { grid-template-columns: 1fr; }
  .h-prices-in { grid-template-columns: 1fr; }
  .h-price, .h-price + .h-price { padding: 20px 0; border-left: 0; }
  .h-price + .h-price { border-top: 1.5px solid rgba(16, 32, 28, .25); }
}
@media (max-width: 640px) {
  .h-works, .h-steps { grid-template-columns: 1fr; }
  .h-domain { font-size: clamp(26px, 8.4vw, 36px); }
  .h-domains a { padding: 7px 0 9px; }
  .h-hero-actions .wk-btn { flex: 1 1 100%; }
  .h-addon label { flex-wrap: wrap; gap: 6px 14px; }
  .h-addon-t { flex: 1 1 calc(100% - 40px); font-size: 20px; }
  .h-addon-p { margin-left: 38px; font-size: 20px; }
  .h-sum { bottom: 8px; flex-wrap: nowrap; gap: 12px; padding: 10px 10px 10px 14px; }
  .h-sum-line, .h-sum-total > span { display: none; }
  .h-sum-total { gap: 0 6px; }
  .h-sum-total small { font-size: 13px; line-height: 1.2; }
  .h-sum-total .wk-price { font-size: 28px; white-space: nowrap; }
  .h-sum .wk-btn { min-height: 46px; padding: 10px 14px; font-size: 16px; }
  .h-form { padding: 20px 16px; }
  .h-order-form { padding: 20px 16px; }
  .h-order-head h2 { font-size: 30px; }
}

/* ---------- Strona w abonamencie (pas pod trzema pakietami) ---------- */
.h-choice { display: grid; gap: 28px; }
.wk-pkg.h-abo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px 44px; align-items: stretch; padding: 34px 32px 32px; background: var(--spruce); color: var(--on-dark); border: 1.5px solid var(--ink); border-radius: var(--r); scroll-margin-top: 90px; }
.h-abo h3 { color: #fff; }
.h-abo-kicker { margin: 0 0 12px; color: var(--marker); font-size: 17px; font-weight: 700; }
.h-abo-price { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; }
.h-abo-amt { display: flex; flex-direction: column; align-items: flex-start; }
.h-abo-price .wk-mark { font-family: var(--display); font-size: clamp(38px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.h-abo-price small { margin-top: 4px; color: var(--on-dark-2); font-size: 15px; }
.h-abo-plus { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; padding-top: .3em; color: #fff; }
.h-abo .wk-pkg-desc { margin: 16px 0 0; color: var(--on-dark-2); }
.h-abo ul { margin: 0; align-self: start; }
.h-abo li { border-top-color: var(--rule-dark); color: var(--on-dark); }
.h-abo li::before { color: var(--marker); }
.h-abo-act { display: flex; flex-direction: column; gap: 20px; }
.h-abo-terms { margin: 0; padding-top: 8px; border-top: 1px solid var(--rule-dark); color: var(--on-dark-2); font-size: 15px; line-height: 1.5; }
.h-abo .wk-pkg-pick { margin-top: auto; }
.wk-pkg.h-abo.is-on { box-shadow: inset 0 0 0 3px var(--marker); }
.h-abo .wk-pkg-pick[aria-checked="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.h-abo-own { margin: 14px 0 0; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--marker); }
.h-abo-terms a { color: #fff; font-weight: 700; }
/* Pakiet czy abonament? */
.h-vs { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 20px 40px; align-items: start; }
.h-vs h3 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -.02em; }
.h-vs-h { margin: 0 0 6px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.h-vs ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.45; }
.h-vs li { padding: 9px 0; border-top: 1px solid var(--rule); }
.h-vs-up { grid-column: 2 / -1; margin: 0; padding: 16px 20px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); font-size: 16px; }
@media (max-width: 1080px) {
  .wk-pkg.h-abo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-abo-main { grid-column: 1 / -1; }
  .h-vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-vs h3, .h-vs-up { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wk-pkg.h-abo { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px 24px; }
  .h-abo-plus { font-size: 30px; }
  .h-abo-own { font-size: 22px; }
  .h-vs { grid-template-columns: 1fr; margin-top: 44px; }
}
