/* TIMBA Elektro s.r.o. */
:root {
  --yellow: #ffc300;
  --yellow-2: #ffd84d;
  --green: #2f8f3a;
  --green-2: #4caf50;
  --ink: #111214;
  --ink-2: #1a1c1f;
  --ink-3: #26292d;
  --text: #1d1f22;
  --muted: #5c6269;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-soft: #f5f6f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --max: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--dark { background: var(--ink); color: #e9eaec; }
.section--soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--yellow); }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--dark .lead { color: #b9bdc3; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Hazard stripe */
.stripe { height: 10px; background: repeating-linear-gradient(-55deg, var(--ink) 0 14px, var(--yellow) 14px 28px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 18, 20, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.35rem; font-weight: 900; letter-spacing: .04em; color: var(--yellow); }
.brand-text span { font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--green-2); text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; color: #d6d8db; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--yellow); }
.nav-links .btn { padding: 10px 18px; margin-left: 8px; color: var(--ink); }
.nav-links .btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 12px 20px 24px; border-bottom: 3px solid var(--yellow); transform: translateY(-120%); transition: transform .25s ease; visibility: hidden; }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1.05rem; }
  .nav-links .btn { margin: 16px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("../img/rozvadzac.jpg") center 30% / cover no-repeat; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17, 18, 20, .96) 25%, rgba(17, 18, 20, .55) 65%, rgba(17, 18, 20, .25)); }
.hero-inner { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); max-width: 720px; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cfd2d6; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts div { display: flex; align-items: center; gap: 10px; color: #cfd2d6; font-weight: 600; font-size: .95rem; }
.hero-facts svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service { position: relative; display: flex; flex-direction: column; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #e9eaec; border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s ease, border-color .2s ease; }
.service:hover { transform: translateY(-4px); border-color: var(--yellow); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-icon { width: 46px; height: 46px; margin-top: -45px; margin-bottom: 14px; position: relative; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { color: #fff; }
.service p { color: #aeb3b9; margin-bottom: 16px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--yellow); font-size: .95rem; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .more svg { transform: translateX(4px); }

/* Why us */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.why-photo { position: relative; }
.why-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.why-badge { position: absolute; right: -14px; bottom: -18px; background: var(--yellow); color: var(--ink); padding: 18px 22px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow); max-width: 220px; line-height: 1.25; }
.why-badge small { display: block; font-weight: 600; font-size: .8rem; margin-top: 4px; }
.why-list { display: grid; gap: 22px; margin-top: 28px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.why-item .ic { width: 52px; height: 52px; border-radius: 12px; background: #e8f4e9; color: var(--green); display: grid; place-items: center; }
.why-item .ic svg { width: 26px; height: 26px; }
.why-item h3 { margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--ink-2); border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--yellow); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 2.2rem; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 14px; }
.step h3 { color: #fff; font-size: 1.1rem; }
.step p { color: #aeb3b9; margin: 0; font-size: .97rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .25s; }
.gallery a:hover::after { opacity: 1; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery { grid-auto-flow: dense; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 9, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 8px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 56px 28px 28px; border: 1px solid var(--line); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; left: 24px; font-size: 4.5rem; line-height: 1; color: var(--yellow); font-family: Georgia, serif; }
.quote p { font-size: 1.05rem; margin-bottom: 18px; }
.quote cite { font-style: normal; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.quote cite::before { content: ""; width: 18px; height: 3px; background: var(--green); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.company { background: var(--ink); color: #e9eaec; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.company::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-55deg, var(--ink) 0 12px, var(--yellow) 12px 24px); }
.company img { height: 84px; width: auto; margin-bottom: 18px; }
.company h3 { color: #fff; font-size: 1.4rem; }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; color: #cfd2d6; }
.info-row svg { width: 20px; height: 20px; color: var(--yellow); flex: none; margin-top: 3px; }
.info-row a { color: #fff; text-decoration: none; font-weight: 600; }
.info-row a:hover { color: var(--yellow); }
.people { display: grid; gap: 18px; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; letter-spacing: .02em; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.person .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.person .links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--text); }
.person .links a:hover { color: var(--green); }
.person .links svg { width: 18px; height: 18px; color: var(--green); }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA band */
.cta { background: var(--yellow); color: var(--ink); }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { margin: 0; font-weight: 500; }

/* Service subpage */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .4; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 18, 20, .95) 30%, rgba(17, 18, 20, .45)); }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 100px); }
.page-hero p { color: #cfd2d6; font-size: 1.15rem; max-width: 620px; margin-bottom: 28px; }
.crumbs { font-size: .9rem; color: #9ea3a9; margin-bottom: 18px; }
.crumbs a { color: #cfd2d6; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 18px; background: var(--bg-soft); border-radius: 10px; }
.checklist svg { width: 26px; height: 26px; color: var(--green); }
.aside-card { background: var(--ink); color: #e9eaec; border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.aside-card h3 { color: #fff; }
.aside-card p { color: #b9bdc3; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card .info-row { margin: 10px 0; }
.other-services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.other-services a { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s; }
.other-services a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.other-services svg { width: 26px; height: 26px; color: var(--green); }

/* Footer */
.site-footer { background: #0b0b0c; color: #9ea3a9; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 56px 20px 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd2d6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { height: 70px; width: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .other-services { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .why, .contact, .detail { grid-template-columns: 1fr; }
  .why-badge { right: 12px; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .aside-card { position: static; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .services, .steps { grid-template-columns: 1fr; }
  .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .wide { grid-column: span 2; }
.gallery { grid-auto-flow: dense; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .other-services { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: 1.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}
