/* Servis Jakuc */

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/saira-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/saira-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Colours: a dark theme only ("asphalt").
 * Red, black and chrome come from the original logo.
 */
:root {
  color-scheme: dark;
  --red: #ff3a40;            /* accents, icons, eyebrow, links */
  --btn: #d4161e;            /* button background (white text) */
  --btn-hover: #a8101a;
  --heading: #f3f4f6;
  --text: #b5bac4;
  --muted: #8f96a2;
  --bg: #0b0c0f;
  --surface: #14161b;          /* cards, header */
  --surface-2: #1b1e24;        /* alternate sections, icon tiles */
  --border: #272b33;
  --border-strong: #3a3f4a;
  --nav-text: #e7e9ed;
  --logo-text: #f3f4f6;         /* fallback where background-clip: text is unsupported */
  --logo-chrome: linear-gradient(180deg, #fff 0%, #e9ecef 40%, #8d949f 52%, #d9dde2 70%, #fff 100%);
  --tile-bg: rgba(255, 58, 64, .12);
  --shadow: rgba(0, 0, 0, .5);
  --stripe: rgba(255, 58, 64, .07);
  --gauge-face: #121419;
  --gauge-ring: #2c3039;
  --gauge-track: #23262e;
  /* The tyre section, footer and dark bands */
  --dark: #0f1014;
  --dark-2: #17191f;
  --dark-text: #b8bdc7;
  --dark-heading: #f5f6f8;
  --radius: 6px;
  --container: 1200px;
  --section-space: clamp(64px, 8vw, 112px);
  --cut: 18px;    /* the cut corner of cards */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--heading); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Typography: uppercase, heavy and slanted like racing livery. Sizes scale with the viewport. */
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .55em; font-weight: 800; text-transform: uppercase; font-style: italic; }
h1 { font-size: clamp(38px, 1.4rem + 4vw, 74px); line-height: 1; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 1.2rem + 2.2vw, 48px); line-height: 1.04; letter-spacing: -.01em; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--red);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  margin: 0 0 14px;
}
.eyebrow::after { content: ""; width: 48px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.eyebrow-num { color: var(--heading); font-style: italic; letter-spacing: .04em; }

.hl { color: var(--red); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 600px) { .container { padding: 0 24px; } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Icons (inline SVG from inc/icons, sized and coloured here) */
.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; }

/* Icon in a tinted square tile */
.tile-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--tile-bg); color: var(--red);
}
.tile-icon .icon { width: 26px; height: 26px; }

/* Buttons: a slanted (parallelogram) background drawn by ::before, so the text stays upright
   and the focus outline isn't clipped. */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 28px;
  border: 0; background: none; cursor: pointer;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn); border: 2px solid transparent; border-radius: 3px;
  transform: skewX(-12deg);
  transition: background .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:hover::before { background: var(--btn-hover); }
.btn .icon-inline { transition: transform .2s; }
.btn:hover .icon-inline:last-child { transform: translateX(3px); }
.btn.ghost { color: var(--heading); }
.btn.ghost::before { background: transparent; border-color: var(--border-strong); }
.btn.ghost:hover { color: var(--heading); }
.btn.ghost:hover::before { background: transparent; border-color: var(--red); }
.btn-big { font-size: 18px; padding: 17px 34px; }
.btn-big .icon { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
  transition: background-color .25s, box-shadow .25s;
}
/* A thin red line on top, like a racing stripe */
.site-header::before { content: ""; display: block; height: 3px; background: var(--btn); }
/* After scrolling: slightly translucent with a blur ("frosted glass"), plus a shadow to lift it off the page.
   Stays solid where blur isn't supported or the visitor asked for reduced transparency. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--border), 0 6px 20px var(--shadow); }
@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

/* Logo (inc/logo.php): shield + "Servis" in chrome and "Jakuc" in red, like the original logo.
   The chrome is a gradient clipped to the text; in light mode it turns graphite so it stays readable. */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: -.01em; white-space: nowrap; padding-right: .08em;
  color: var(--logo-text);
}
.logo-chrome, .logo-accent { -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Italic letters lean past their box and background-clip: text cuts the overhang off: pad it, keep the spacing. */
.logo-chrome { background-image: var(--logo-chrome); padding-right: .1em; margin-right: -.1em; }
.logo-accent { background-image: linear-gradient(180deg, #ff6a6e 0%, #ef1f27 45%, #b00d15 55%, #e3141c 100%); padding-right: .06em; }
.logo-tag { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logo-name { filter: drop-shadow(0 2px 0 #000); }

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--nav-text);
  font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--red); transform: skewX(-30deg); transition: width .25s;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--red); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { width: 100%; }
.main-nav .nav-cta-item { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { padding: 11px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--nav-text); margin: 5px 0; transform: skewX(-20deg); }
.nav-toggle span:nth-child(2) { width: 18px; margin-left: 8px; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); box-shadow: 0 12px 24px var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; max-width: var(--container); margin: 0 auto; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
}
@media (max-width: 767px) {
  .header-cta { display: none; }
  .main-nav .nav-cta-item { display: block; padding-top: 18px; }
  .main-nav .nav-cta-item a.btn { display: flex; border-bottom: 0; padding: 15px; color: #fff; }
}

/* Checkered strip (from the racing flags in the original logo) */
.checker {
  height: 20px;
  background: repeating-conic-gradient(var(--heading) 0 25%, var(--bg) 0 50%) 0 0 / 20px 20px;
  opacity: .9;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 75% at 80% 45%, var(--tile-bg), transparent 70%),
    var(--bg);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
}
/* Slanted speed stripes in the background */
.hero-stripes {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-62deg, transparent 0 46px, var(--stripe) 46px 54px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .hl { display: inline-block; }
.hero-lead { font-size: clamp(17px, 1rem + .3vw, 20px); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; }
.icon-check { width: 20px; height: 20px; color: var(--red); stroke-width: 3; }
.hero-visual { display: grid; place-items: center; }

/* Speedometer (inc/gauge.php) */
.gauge { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.gauge-face { fill: var(--gauge-face); stroke: var(--gauge-ring); stroke-width: 8; }
.gauge-track { fill: none; stroke: var(--gauge-track); stroke-width: 12; }
.gauge-red { fill: none; stroke: var(--btn); stroke-width: 12; }
.gauge-ticks path { stroke: var(--heading); stroke-linecap: round; }
.gauge-ticks .major { stroke-width: 4; }
.gauge-ticks .minor { stroke-width: 2; opacity: .55; }
.gauge-ticks .hot { stroke: var(--red); opacity: 1; }
.gauge-labels text { fill: var(--text); font: italic 700 21px "Saira", sans-serif; text-anchor: middle; }
.gauge-labels .hot { fill: var(--red); }
.gauge-value { fill: var(--heading); font: italic 800 50px "Saira", sans-serif; text-anchor: middle; }
.gauge-unit { fill: var(--muted); font: 700 14px "Saira", sans-serif; letter-spacing: .2em; text-anchor: middle; }
.gauge-needle { fill: var(--btn); transform-origin: 200px 200px; transform: rotate(108deg); animation: needle 1.8s cubic-bezier(.25, .8, .3, 1) .3s both; }
.gauge-cap { fill: var(--heading); }
.gauge-cap-dot { fill: var(--btn); }
@keyframes needle {
  0% { transform: rotate(-110deg); }
  65% { transform: rotate(116deg); }
  80% { transform: rotate(104deg); }
  100% { transform: rotate(108deg); }
}

/* Sections */
.section { padding: var(--section-space) 0; }
.section-alt { background: var(--surface-2); }
.sec-title { max-width: 720px; margin-bottom: 48px; }
.sec-title p:last-child { margin-bottom: 0; font-size: 18px; }

/* Cards with a cut top-right corner */
.service-card, .feature, .step, .contact-card, .tyre-types li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* Home: services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 36px 32px 32px;
  transition: border-color .25s;
}
.service-card::after {   /* red bar that grows on hover */
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: var(--btn); transition: width .35s;
}
.service-card:hover { border-color: var(--border-strong); }
.service-card:hover::after, .service-card:focus-within::after { width: 100%; }
.service-num {
  position: absolute; right: 26px; top: 14px;
  font-size: 64px; font-weight: 800; font-style: italic; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--border-strong);
}
.service-card .tile-icon { margin-bottom: 24px; }
.service-card h3 { font-size: 25px; }
.service-card h3 a { color: var(--heading); }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.service-card:hover h3 a { color: var(--red); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* Home: tyres */
.section-dark {
  background:
    repeating-linear-gradient(120deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 30px),
    var(--dark);
  color: var(--dark-text);
}
.section-dark h2, .section-dark h3 { color: var(--dark-heading); }
.section-dark .eyebrow { color: #ff4a50; }
.section-dark .eyebrow-num { color: var(--dark-heading); }
.tyres-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-bottom: 56px; }
.tyres-intro p { max-width: 620px; font-size: 18px; }
.big-wheel { width: clamp(140px, 18vw, 230px); height: auto; color: #e7e9ed; }
.big-wheel-rim { stroke: #ff3a40; }
.big-wheel-hub { fill: #ff3a40; }
@media (prefers-reduced-motion: no-preference) {
  .big-wheel { animation: spin 12s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.tyre-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tyre-types li { background: var(--dark-2); border-color: #2a2d35; padding: 28px; }
.tyre-types .tile-icon { background: rgba(255, 58, 64, .14); color: #ff4a50; margin-bottom: 18px; }
.tyre-types p { margin: 0; }

/* Steps, joined by a dashed "lane marking" line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-num { font-size: 40px; font-weight: 800; font-style: italic; line-height: 1; color: var(--red); }
.step p { margin: 0; }
@media (min-width: 992px) {
  .steps { position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 54px; height: 4px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 26px, transparent 26px 44px);
  }
}

/* Call-to-action band */
.cta-band {
  position: relative;
  background: linear-gradient(115deg, #b50f17 0%, #cc141c 55%, #d91c23 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta-band::before, .cta-band::after {   /* checkered edges */
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-conic-gradient(#0b0c0f 0 25%, #fff 0 50%) 0 0 / 12px 12px;
}
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 18px; margin-bottom: 0; color: #fff; }
.cta-band .eyebrow { color: #fff; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.cta-band .btn { color: #b50f17; font-size: clamp(22px, 1rem + 1.4vw, 32px); padding: 18px 38px; }
.cta-band .btn::before { background: #fff; }
.cta-band .btn:hover::before { background: #0f1014; }
.cta-band .btn:hover { color: #fff; }
.cta-band .btn .icon { width: 28px; height: 28px; }
.cta-mail { font-size: 17px; font-weight: 600; }
.cta-mail a, .cta-band .email { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-band .at { color: rgba(255, 255, 255, .8); }

/* Page title (sub pages) */
.page-title {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 64px);
  background:
    repeating-linear-gradient(-62deg, transparent 0 46px, var(--stripe) 46px 54px),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-title h1 { font-size: clamp(36px, 1.3rem + 3vw, 64px); margin: 0; }
.page-title-row { display: flex; align-items: center; gap: 18px; }
.page-title-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: var(--radius); background: var(--btn); color: #fff; transform: skewX(-8deg); }
.page-title-icon .icon { width: 34px; height: 34px; transform: skewX(8deg); }
.page-title .lead { margin: 20px 0 0; max-width: 720px; font-size: clamp(17px, 1rem + .3vw, 20px); }
.page-title .hero-actions { margin: 28px 0 0; }
.crumbs { color: var(--muted); margin-bottom: 14px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* Service pages */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 28px; }
.feature .tile-icon { margin-bottom: 18px; }
.feature p { margin: 0; }
.text-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(24px, 1rem + 1vw, 30px); margin-top: 1.4em; }
.text-blocks .prose h2 { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); }
.prose li strong, .prose p strong { color: var(--heading); font-weight: 600; }
.prose.narrow { max-width: 780px; }
.narrow-block { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 52px 22px 0; position: relative;
  color: var(--heading); font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%) skewX(-10deg);
  width: 32px; height: 32px; border-radius: 3px; background: var(--tile-bg);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 600; line-height: 1; color: var(--red);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0 0 22px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.related-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--heading); font-weight: 700; font-size: 18px; text-transform: uppercase; font-style: italic;
  transition: border-color .2s, color .2s;
}
.related-item:hover { border-color: var(--red); color: var(--red); }
.related-item .icon-arrow { margin-left: auto; color: var(--red); transition: transform .2s; }
.related-item:hover .icon-arrow { transform: translateX(4px); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-grid .contact-card-main { grid-row: span 2; justify-content: center; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 32px; color: var(--text); }
.contact-card .tile-icon { margin-bottom: 14px; }
.contact-label { color: var(--muted); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.contact-value { color: var(--heading); font-size: clamp(26px, 1rem + 1.6vw, 36px); font-weight: 800; font-style: italic; line-height: 1.15; overflow-wrap: anywhere; }
.contact-value-mail { font-size: clamp(18px, 1rem + .4vw, 22px); font-style: normal; font-weight: 700; }
.contact-value-small { font-size: clamp(20px, 1rem + .6vw, 24px); }
.contact-hint { font-size: 15px; }
.contact-card-main { background: var(--btn); border-color: var(--btn); color: #fff; transition: background .2s; }
.contact-card-main:hover { background: var(--btn-hover); color: #fff; }
.contact-card-main .tile-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.contact-card-main .contact-label, .contact-card-main .contact-value { color: #fff; }

/* Photos (photo() in inc/bootstrap.php) and their placeholders until the files exist */
.photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.photo-wide { aspect-ratio: 21 / 9; margin-top: 24px; }
.photo-slot {
  display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center;
  background:
    repeating-linear-gradient(-62deg, transparent 0 22px, var(--stripe) 22px 30px),
    var(--surface-2);
  border: 1px solid var(--border); color: var(--border-strong);
}
.section-alt .photo-slot { background-color: var(--surface); }
.photo-slot .icon { width: clamp(48px, 8vw, 72px); height: auto; stroke-width: 1.5; }
.photo-slot-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.photo-slot-note code { font-size: 12px; overflow-wrap: anywhere; }

/* Service page title with a photo on the right */
.page-title.has-photo .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 64px); }

/* Home: about + gallery */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.about-text p:last-of-type { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }

.info-card-photo { margin-bottom: 24px; }

/* Local landing page (/avtoservis-skofja-loka/) */
.local-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.local-intro .prose h2 { margin-top: 0; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--btn); border-radius: var(--radius); padding: 30px; }
.info-card-title { font-size: 26px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { color: var(--red); margin-top: 3px; }
.info-list strong { display: block; color: var(--heading); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* 404 */
.not-found { padding: var(--section-space) 0; text-align: center; }
.not-found .code { font-size: clamp(110px, 20vw, 200px); font-weight: 900; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 3px var(--red); }

/* Footer */
.site-footer { background: var(--dark); color: #a9afba; font-size: 16px; }
.footer-top { padding: 64px 0 48px; border-top: 4px solid var(--btn); }
.footer-top .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top h2 { font-size: 18px; color: #fff; margin-bottom: 16px; letter-spacing: .06em; }
.footer-top address { font-style: normal; line-height: 2; }
.footer-top a { color: #e3e6eb; }
.footer-top a:hover { color: #ff4a50; }
.footer-top .icon-inline { color: #ff4a50; }
.footer-brand p { max-width: 360px; }
.footer-logo { display: block; width: min(260px, 100%); margin-bottom: 18px; }
.footer-logo img { width: 100%; height: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom { background: #08090b; padding: 18px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-bottom a { color: #d0d5de; }
.footer-bottom a:hover { color: #ff4a50; }
.site-footer .at { color: #8f96a2; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px; }
.footer-bottom .made-by { display: inline-flex; align-items: center; gap: 7px; color: #9aa1ad; }
.made-by-icon { width: 22px; height: auto; color: #d0d5de; flex: none; }
.made-by-name { color: #d0d5de; letter-spacing: .02em; }
.footer-bottom .made-by:hover .made-by-name { color: #ff4a50; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 4px;
  background: var(--btn); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--btn-hover); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* Reveal on scroll (only when JS runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gauge-needle { animation: none; }
  html { scroll-behavior: auto; }
}

.at { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Responsive */
@media (max-width: 991px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual .gauge { max-width: min(360px, 100%); }
  .services-grid, .feature-grid, .steps, .tyre-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .text-blocks, .local-intro, .about, .page-title.has-photo .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .page-title.has-photo .photo { max-width: min(560px, 100%); }
  .cta-band .container { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-self: start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid .contact-card-main { grid-column: 1 / -1; grid-row: auto; }
  .footer-top .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services-grid, .feature-grid, .steps, .tyre-types, .contact-grid, .footer-top .container { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .gallery > :first-child { grid-column: 1 / -1; }
  .gallery-6 > :first-child { grid-column: auto; }   /* 6 photos: an even 2 × 3 grid */
  .photo-wide { aspect-ratio: 4 / 3; }
  .tyres-intro { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .site-header .container { gap: 12px; }
  .site-header .logo-icon { width: 46px; height: 46px; }
  .site-header .logo-name { font-size: 24px; }
  .site-header .logo-tag { display: none; }   /* too small to read on phones */
  .page-title-icon { width: 52px; height: 52px; }
  .page-title-icon .icon { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .site-header .logo { gap: 8px; }
  .site-header .logo-icon { width: 40px; height: 40px; }
  .site-header .logo-name { font-size: 20.5px; }
  .header-actions { gap: 8px; }
}
