:root { color-scheme: light; font-family: system-ui, sans-serif; color: #202923; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
header, main { width: min(100% - 2rem, 54rem); margin: auto; }
header { padding: 1.5rem 0; }
header a { color: #174b39; font-weight: 700; }
main { margin-bottom: 3rem; }
h1 { font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.12; letter-spacing: -.035em; }
h2, h3 { line-height: 1.25; }
form, article { border: 1px solid #cbd6ce; background: #fff; border-radius: .65rem; padding: clamp(1.1rem, 4vw, 2rem); margin: 1rem 0; }
label { display: block; font-weight: 600; margin: 0 0 1rem; }
label small { font-weight: 400; }
input:not([type=checkbox]), select { display: block; width: 100%; padding: .7rem .8rem; margin-top: .35rem; border: 1px solid #87968c; border-radius: .35rem; font: inherit; font-weight: 400; text-transform: none; color: inherit; background: #fff; min-height: 2.85rem; }
button { border: 1px solid #174b39; border-radius: .35rem; background: #174b39; color: white; cursor: pointer; font: 500 1rem system-ui; padding: .75rem 1rem; }
button:disabled { opacity: .65; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #174b39; outline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .5rem 1.25rem; }
.total { padding: .85rem 1rem; background: #eef3ed; border-radius: .35rem; }
.status { font-weight: 650; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.candidate-row { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #d8ded9; }
[hidden] { display: none !important; }

fieldset { border: 1px solid #cbd6ce; border-radius: .5rem; padding: .75rem 1rem 0; margin: 1rem 0; }
legend { font-weight: 650; padding: 0 .35rem; }
.option-label { display: flex; align-items: baseline; gap: .6rem; font-weight: 400; }
.option-label input { flex-shrink: 0; }

.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.catalog article { display: flex; flex-direction: column; margin: 0; }
.catalog h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.catalog-price { margin: 0; font-weight: 650; }
.catalog-price small { display: block; font-weight: 400; }
.catalog-button { display: inline-block; padding: .7rem 1rem; border: 1px solid #174b39; border-radius: .35rem; background: #174b39; color: #fff; text-decoration: none; }
.catalog .catalog-button { margin-top: auto; align-self: flex-start; }
.catalog-secondary { color: #174b39; background: #fff; }

body[data-page="narocilo"] main { width: min(100% - 2rem, 68rem); }
.checkout-intro { margin: 2rem 0 1.25rem; }
.checkout-intro h1 { margin: 0; }
.checkout-intro p, .checkout-preview { margin: .65rem 0 0; }
.checkout-preview { border-radius: .45rem; background: #e8eee7; padding: .75rem 1rem; }
#order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .62fr); gap: 1rem 1.25rem; padding: 0; border: 0; background: transparent; align-items: start; }
.checkout-card { min-width: 0; padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid #cbd6ce; border-radius: .65rem; background: #fff; }
.checkout-card h2 { margin: 0 0 1.15rem; font-size: 1.25rem; }
.checkout-selection { grid-area: 1 / 1; }
.checkout-billing { grid-area: 2 / 1; }
.checkout-summary { grid-area: 1 / 2 / span 2; position: sticky; top: 1rem; }
.checkout-addons { border-top: 1px solid #d8ded9; padding-top: .75rem; }
.checkout-addons summary { cursor: pointer; padding: .5rem 0; font-weight: 600; }
.checkout-addons[open] summary { margin-bottom: .75rem; }
.checkout-addons .option-label { min-height: 2.5rem; }
#order select { min-height: 2.9rem; padding-right: 1.4rem; }
#order .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.checkout-line-title { font-weight: 600; margin: 0; }
.checkout-line-detail { margin: .2rem 0 .8rem; }
.checkout-amount { margin: 1rem 0 .7rem; background: #eef3ed; border-radius: .4rem; padding: .8rem 1rem; }
.checkout-amount span { display: block; font-size: 1.35rem; font-weight: 500; }
.checkout-payment, #order-consent, #tax-review { font-size: .9rem; color: #49574e; }
.checkout-payment { border-top: 1px solid #d8ded9; padding-top: .75rem; margin: 1rem 0 0; }
.checkout-billing button { width: 100%; }
@media (max-width: 760px) {
  #order { grid-template-columns: minmax(0, 1fr); }
  .checkout-selection, .checkout-summary, .checkout-billing { grid-area: auto; }
  .checkout-summary { position: static; }
}
#order .checkout-service-fields { grid-template-columns: minmax(0, 2.5fr) minmax(8rem, 1fr); }
@media (max-width: 600px) {
  #order .checkout-service-fields { grid-template-columns: minmax(0, 1fr); }
}

.checkout-note { margin: 1rem 0 .25rem; }
.checkout-note textarea { display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; border: 1px solid #87968c; border-radius: .35rem; font: inherit; font-weight: 400; color: inherit; resize: vertical; }
.checkout-note textarea:focus-visible { outline: 2px solid #174b39; outline-offset: 3px; }
#order-note-help { margin: 0; font-size: .9rem; color: #49574e; }
.order-note-display { white-space: pre-wrap; overflow-wrap: anywhere; }

.order-catalog main {
  width: min(100% - clamp(2rem, 8vw, 5rem), 68rem);
  padding-top: clamp(2.25rem, 5vw, 4.25rem);
}
.order-catalog main > h2 { margin: clamp(2rem, 4vw, 3rem) 0 1.25rem; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
}
.catalog-header { background: #fff; }
.order-catalog .catalog article, .order-catalog .custom-services, .checkout-summary { background: var(--soft, #f4f7f4); }
.catalog-header .site-header { width: 100%; }
.catalog-header .site-header a { font-weight: inherit; }
.order-catalog main > p, .catalog article > p:not(.catalog-price), .catalog details p, .custom-services > p { margin: .75rem 0 1rem; }
.order-catalog main > p a { text-decoration: underline; }
.order-catalog .custom-services-list { margin-bottom: 1.25rem; }
.catalog details { margin: 0 0 1rem; }
.catalog details summary { cursor: pointer; color: #174b39; font-weight: 600; }
.custom-services { margin-top: 1.75rem; }
.custom-services h2 { margin-top: 0; }
.custom-services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .9rem 1.5rem; padding: 0; list-style: none; }
.custom-services-list li { border-top: 1px solid #d8ded9; padding-top: .6rem; }
.custom-services-list p { margin: .2rem 0 0; }
