:root {
  --dark: #2e353d;
  --dark-2: #232a31;
  --yellow: #f5b21a;
  --yellow-dark: #dc9c0b;
  --text: #2e353d;
  --muted: #5d6670;
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --line: #e2e5e8;
  --radius: 10px;
  --header-h: 76px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .2s;
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/rodinny-dum.jpg") center 40% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35,42,49,.88) 0%, rgba(35,42,49,.7) 45%, rgba(35,42,49,.15) 100%);
}
.hero-content { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 14em; }
.hero .eyebrow { color: var(--yellow); }
.hero-lead { max-width: 36em; font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover {
  border-color: var(--yellow);
  box-shadow: 0 10px 30px rgba(46,53,61,.08);
  transform: translateY(-3px);
}
.service p { color: var(--muted); margin: 0; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(245,178,26,.15);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(46,53,61,.15); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split-text > p { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 32px; }
.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e353d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 8px; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.steps p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--yellow); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn { font-size: 1.15rem; padding: 16px 32px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.person {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 8px 0 28px;
}
.person strong { font-family: var(--font-head); font-size: 1.15rem; }
.person span { color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 1.05rem; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; fill: var(--yellow-dark); }
.contact-list svg.stroke { fill: none; stroke: var(--yellow-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; }
.contact-list address a { font-weight: 500; font-size: .95rem; color: var(--muted); text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(46,53,61,.08);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd4d9;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 3px rgba(245,178,26,.25);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin: 12px 0 0; font-size: .95rem; font-weight: 500; min-height: 1.4em; }
.form-status.error { color: #c0392b; }
.form-status.ok { color: #1e7e34; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 48px 0; font-size: .95rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 44px; width: auto; }
.footer-text { text-align: right; }
.footer-text p { margin: 0 0 4px; }
.footer-text a { color: #fff; text-decoration: none; }
.footer-text a:hover { color: var(--yellow); }
.copy { opacity: .6; font-size: .85rem; margin-top: 10px !important; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Responsive */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li::after { display: none; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    padding: 8px 20px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-phone { margin-top: 16px; padding: 14px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .logo img { height: 36px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .services, .steps { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-bg { background-position: 50% 40%; }
  .hero-bg::after { background: rgba(35,42,49,.78); }
  .hero-actions .btn { width: 100%; }
  .field-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .cta-inner .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
