/* popravimvse.si — Sebastjan Stjepanovic s.p. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --glaze: #F5F7F6;      /* page: white glazed tile */
  --tile: #FFFFFF;       /* tile face */
  --grout: #CBD3CF;      /* grout lines */
  --ink: #16232B;        /* text, slate */
  --ink-soft: #4B5A62;   /* secondary text */
  --green: #1D6A58;      /* glazed green tile */
  --green-deep: #124738;
  --level: #F2C21B;      /* spirit-level yellow, call actions only */
  --level-deep: #D9A900;
  --measure: 72ch;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--glaze);
  font-stretch: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: 116%;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; font-stretch: 108%; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.wrap { width: min(1180px, 100% - 2 * var(--gap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grout);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand b { font-stretch: 122%; font-weight: 850; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand span { font-size: 0.82rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: .5rem .8rem; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu ul { position: absolute; right: var(--gap); left: var(--gap); top: 4.6rem; list-style: none; margin: 0; padding: .5rem 0; background: var(--tile); border: 1px solid var(--grout); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(22, 35, 43, .14); }
.menu li { margin: 0; }
.menu a { display: block; padding: .8rem 1.1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--glaze); }

/* ---------- buttons ---------- */
.call {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--level); color: var(--ink);
  font-weight: 800; font-stretch: 110%; text-decoration: none;
  padding: .85rem 1.3rem; border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.05rem; white-space: nowrap;
}
.call:hover { background: var(--level-deep); color: var(--ink); text-decoration: none; }
.call:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.call svg { width: 1.2em; height: 1.2em; }
.call.small { padding: .55rem .9rem; font-size: .95rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-plain {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink); font-weight: 700; text-decoration: none;
  padding: .85rem 1.2rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tile);
}
.btn-plain:hover { background: var(--ink); color: #fff; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.4rem; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.promise {
  margin-top: 1.8rem;
  border-left: 6px solid var(--green);
  padding: .3rem 0 .3rem 1.2rem;
}
.promise .rate { font-stretch: 120%; font-weight: 850; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; display: block; }
.promise .rule { font-size: 1.15rem; font-weight: 600; display: block; margin-top: .35rem; }
.promise .small { color: var(--ink-soft); font-size: .98rem; display: block; margin-top: .3rem; }

/* tile wall: the signature element */
.tiles {
  list-style: none; margin: 0; padding: 5px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  background: var(--grout);
  border-radius: 2px;
  max-width: none;
}
.tiles li { margin: 0; }
.tiles a {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(.7rem, 1.4vw, 1rem);
  background: var(--tile);
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-stretch: 104%; font-size: clamp(.92rem, 1.25vw, 1.02rem); line-height: 1.18;
  border-radius: 1px;
  transition: background-color .15s ease, color .15s ease;
}
.tiles a svg { width: 2rem; height: 2rem; stroke: var(--green); }
.tiles a:hover { background: var(--green); color: #fff; text-decoration: none; }
.tiles a:hover svg { stroke: #fff; }
.tiles .tile-note { background: var(--green); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(.7rem, 1.4vw, 1rem); aspect-ratio: 1/1; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.tiles .tile-note b { font-stretch: 118%; font-size: 1.25rem; display: block; margin-bottom: .2rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.alt { background: var(--tile); border-block: 1px solid var(--grout); }
.section.dark { background: var(--ink); color: #E9EFEC; }
.section.dark a { color: var(--level); }
.section.dark h2 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section.dark .section-head p { color: #B9C6C1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: none; counter-reset: step; }
.steps li { margin: 0; counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 850; font-size: 2.6rem; line-height: 1; color: var(--green); margin-bottom: .6rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); margin: 0; }

.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.area h3 a { color: inherit; text-decoration: none; }
.area h3 a:hover { text-decoration: underline; }
.area p { font-size: .97rem; margin: 0; }
.section.dark .area p { color: #B9C6C1; }

.price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem; align-items: start; }
.price-big { font-stretch: 122%; font-weight: 850; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; margin: 0 0 .5rem; }
.price-big small { font-size: .35em; font-weight: 700; font-stretch: 110%; display: block; margin-top: .4em; color: var(--ink-soft); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; background: var(--green); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }

/* FAQ */
.faq details { border-top: 1px solid var(--grout); padding: 1rem 0; max-width: 78ch; }
.faq details:last-child { border-bottom: 1px solid var(--grout); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .7rem 0 0; color: var(--ink-soft); }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--grout); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; }
.page-head .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--grout); }
.crumbs a { color: var(--ink-soft); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); align-items: start; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 0 0 1.4em; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--grout); vertical-align: top; }
.prose th { font-weight: 700; background: var(--tile); }
.prose .note { background: var(--tile); border: 1px solid var(--grout); border-left: 6px solid var(--green); padding: 1rem 1.2rem; max-width: var(--measure); margin: 0 0 1.4em; }
.prose .note p:last-child { margin: 0; }

.aside { position: sticky; top: 5.5rem; display: grid; gap: 1.2rem; }
.card { background: var(--tile); border: 1px solid var(--grout); padding: 1.3rem; border-radius: var(--radius); }
.card h2, .card h3 { font-size: 1.15rem; font-stretch: 110%; margin-bottom: .5rem; }
.card p { font-size: .97rem; margin-bottom: .8rem; }
.card .rate { font-stretch: 120%; font-weight: 850; font-size: 1.9rem; line-height: 1; display: block; margin-bottom: .3rem; }
.card ul { list-style: none; padding: 0; margin: 0; font-size: .97rem; }
.card li { margin: 0; border-top: 1px solid var(--grout); }
.card li a { display: block; padding: .5rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.card li a:hover { color: var(--green); }
.card li a[aria-current="page"] { color: var(--green); }

.cta-band { background: var(--green); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #D7E8E2; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #C5D0CC; padding: 3rem 0 6rem; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { font-size: 1rem; font-stretch: 110%; color: #fff; margin-bottom: .7rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: #E9EFEC; text-decoration: none; }
.site-foot a:hover { color: var(--level); text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid #2E3E47; padding-top: 1.2rem; font-size: .85rem; color: #93A39D; }

/* mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .price-row { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 820px) {
  .nav ul, .nav .call { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .areas { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--ink); gap: .6rem;
  }
  .callbar a { flex: 1; justify-content: center; box-shadow: none; }
  .callbar .sms { flex: 0 0 auto; background: transparent; color: #fff; border-color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-head, .callbar, .cta-band, .aside { display: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tiles a.tile-ask { background: var(--glaze); color: var(--ink-soft); }
.tiles a.tile-ask:hover { background: var(--ink); color: #fff; }

/* author / E-E-A-T box */
.author { margin-top: 2.8rem; padding: 1.1rem 1.3rem; background: var(--tile); border: 1px solid var(--grout); border-left: 6px solid var(--ink); max-width: var(--measure); font-size: .97rem; }
.author p { margin: 0 0 .5rem; }
.author .updated { margin: 0; color: var(--ink-soft); font-size: .9rem; }
