/* =========================================================
   Malermeisterbetrieb Gattung – Webseite (Demo)
   Modernes, responsives Design · reines HTML/CSS/JS
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --brand:        #01619e;   /* Markenblau */
  --brand-dark:   #024a78;
  --brand-darker: #023355;
  --brand-light:  #e9f2f9;
  --accent:       #f6a700;   /* warmer Akzent für CTAs/Highlights */
  --accent-dark:  #e08e00;

  --ink:     #1a2533;
  --body:    #4a5a6a;
  --muted:   #7a8a99;
  --line:    #e6ecf1;
  --bg:      #ffffff;
  --bg-soft: #f5f8fb;
  --bg-soft2:#eef3f8;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:    0 10px 30px rgba(2, 51, 85, .08);
  --shadow-lg: 0 24px 60px rgba(2, 51, 85, .16);
  --shadow-sm: 0 4px 14px rgba(2, 51, 85, .07);

  --container: 1180px;
  --header-h: 116px;

  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Poppins", var(--ff-body);

  --t: .3s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; font-weight: 700; }
section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 70px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head);
  font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 16px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
h2.headline { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.01em; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(1,97,158,.28); }
.btn--primary:hover { background: var(--brand-dark); color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(1,97,158,.36); }
.btn--accent { background: var(--accent); color: #2a1d00; box-shadow: 0 8px 20px rgba(246,167,0,.32); }
.btn--accent:hover { background: var(--accent-dark); color:#2a1d00; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn--outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.topbar {
  background: var(--brand-darker);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  transition: margin var(--t), height var(--t), opacity var(--t);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 18px; }
.topbar__contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__contact li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact a { color: rgba(255,255,255,.9); }
.topbar__contact a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .75; }
.topbar__social { display: flex; gap: 10px; }
.topbar__social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background var(--t), transform var(--t);
}
.topbar__social a:hover { background: var(--accent); color:#2a1d00; transform: translateY(-2px); }
.topbar__social svg { width: 16px; height: 16px; opacity: 1; }

.navbar { background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow var(--t), padding var(--t); }
.navbar__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { height: 46px; width: auto; transition: height var(--t); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--ff-head); font-weight: 600; font-size: 15px;
  color: var(--ink); padding: 10px 16px; border-radius: 999px; position: relative;
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-light); }
.nav__cta { margin-left: 8px; }

/* sticky shrink state */
.site-header.scrolled .topbar { height: 0; min-height: 0; overflow: hidden; opacity: 0; }
.site-header.scrolled .navbar { box-shadow: var(--shadow-sm); }
.site-header.scrolled .brand img { height: 40px; }

/* mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px auto; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: var(--header-h);
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(2,42,72,.92) 0%, rgba(2,51,85,.78) 42%, rgba(1,97,158,.30) 100%);
}
.hero__inner { padding: 90px 0; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.015em; margin-bottom: 22px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 26px;
  font-family: var(--ff-head);
}
.hero__badge svg { width: 18px; height: 18px; color: var(--accent); }

/* hero quick facts bar */
.hero-bar { background: var(--brand); color: #fff; }
.hero-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-bar__item {
  display: flex; align-items: center; gap: 14px; padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.hero-bar__item:last-child { border-right: none; }
.hero-bar__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.hero-bar__icon svg { width: 24px; height: 24px; color: #fff; }
.hero-bar__t { font-family: var(--ff-head); font-weight: 700; font-size: 16px; line-height: 1.3; }
.hero-bar__s { font-size: 13.5px; color: rgba(255,255,255,.8); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__icon {
  position: absolute; left: 18px; bottom: -22px;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(1,97,158,.4); border: 3px solid #fff;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__body { padding: 34px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { font-size: 19px; margin-bottom: 10px; }
.service-card__body p { font-size: 14.5px; color: var(--body); margin-bottom: 16px; flex: 1; }
.service-card__more { font-family: var(--ff-head); font-weight: 600; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.service-card__more svg { width: 16px; height: 16px; transition: transform var(--t); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* ---------- Why us / Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 15px; }

/* ---------- Stats ---------- */
.stats { background: var(--brand-darker); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(36px, 5vw, 52px); color: #fff; line-height: 1; }
.stat__num span { color: var(--accent); }
.stat__label { color: rgba(255,255,255,.78); font-size: 15px; margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-media__badge {
  position: absolute; right: -18px; bottom: -22px;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  padding: 20px 24px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-media__badge b { font-family: var(--ff-head); font-size: 34px; display: block; line-height: 1; }
.about-media__badge span { font-size: 13px; color: rgba(255,255,255,.85); }
.about-list { display: grid; gap: 18px; margin-top: 26px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.about-list .tick svg { width: 15px; height: 15px; }
.about-list b { color: var(--ink); font-family: var(--ff-head); }

/* ---------- Quote / Testimonial ---------- */
.quote-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 56px clamp(28px, 6vw, 80px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.quote-band::before { content: "\201C"; position: absolute; top: -30px; left: 24px; font-size: 220px; font-family: Georgia, serif; color: rgba(255,255,255,.1); line-height: 1; }
.quote-band p { font-family: var(--ff-head); font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.5; color: #fff; position: relative; }
.quote-author { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.quote-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); }
.quote-author b { display: block; font-family: var(--ff-head); font-size: 17px; }
.quote-author span { color: rgba(255,255,255,.8); font-size: 14px; }

/* ---------- References / Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); cursor: pointer;
  background: var(--bg-soft2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,42,72,.85), rgba(2,42,72,0) 55%);
  opacity: 0; transition: opacity var(--t);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2;
  color: #fff; transform: translateY(10px); opacity: 0; transition: var(--t);
}
.gallery__item:hover .gallery__cap { transform: translateY(0); opacity: 1; }
.gallery__cap b { font-family: var(--ff-head); font-size: 18px; display: block; }
.gallery__cap span { font-size: 13px; color: rgba(255,255,255,.85); }
.gallery__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); color: var(--brand); font-family: var(--ff-head); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 999px; }

/* filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--ff-head); font-weight: 600; font-size: 14px; color: var(--body);
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  transition: var(--t);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery__item.is-hidden { display: none; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 50px; }
.partners img { height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: var(--t); }
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: var(--brand-darker);
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta__inner { position: relative; z-index: 1; padding: 84px 0; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.cta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { margin-top: var(--header-h); background: var(--brand-darker); color: #fff; position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(2,42,72,.85), rgba(1,97,158,.45)); }
.page-hero__inner { position: relative; z-index: 1; padding: 76px 0; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 10px; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.8); font-family: var(--ff-head); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.svc-row + .svc-row { margin-top: 86px; }
.svc-row--rev .svc-row__media { order: 2; }
.svc-row__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.svc-row__num { font-family: var(--ff-head); font-weight: 800; color: var(--brand-light); font-size: 64px; line-height: .8; }
.svc-row h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 14px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { background: var(--bg-soft2); color: var(--brand-dark); font-size: 13px; font-weight: 600; font-family: var(--ff-head); padding: 6px 14px; border-radius: 999px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.contact-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card b { font-family: var(--ff-head); color: var(--ink); display: block; font-size: 15px; }
.contact-card a, .contact-card span { color: var(--body); font-size: 15px; }
.contact-card a:hover { color: var(--brand); }

.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(1,97,158,.1); }
.field textarea { resize: vertical; min-height: 130px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; }
.form-consent input { margin-top: 4px; }
.form-note { display: none; align-items: center; gap: 10px; background: #e6f6ec; color: #1c7a43; border: 1px solid #b6e3c6; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; margin-top: 16px; }
.form-note.show { display: flex; }
.form-note svg { width: 20px; height: 20px; flex: none; }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Legal text ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p { margin-bottom: 14px; }
.legal a { word-break: break-word; }
.legal ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal ul.bullets li { margin-bottom: 6px; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.news-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; transition: var(--t); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16/9; overflow:hidden; }
.news-card__media img { width:100%; height:100%; object-fit:cover; }
.news-card__body { padding: 26px; }
.news-card__date { font-size:13px; color:var(--muted); font-family:var(--ff-head); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.news-card__body h3 { font-size:20px; margin:8px 0 10px; }

/* ---------- Footer ---------- */
.footer { background: #0f1c29; color: rgba(255,255,255,.66); padding-top: 72px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; letter-spacing: .02em; }
.footer__logo { height: 44px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer p { font-size: 14.5px; line-height: 1.8; }
.footer ul.links li { margin-bottom: 11px; }
.footer ul.links a { color: rgba(255,255,255,.66); display: inline-flex; align-items: center; gap: 8px; }
.footer ul.links a:hover { color: #fff; padding-left: 4px; }
.footer ul.links svg { width: 14px; height: 14px; color: var(--brand); }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer__contact a { color: rgba(255,255,255,.66); }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color:#fff; display:grid; place-items:center; transition: var(--t); }
.footer__social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13.5px; }
.footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__bar a { color: rgba(255,255,255,.66); }
.footer__bar a:hover { color: #fff; }
.footer__bar .sep { color: rgba(255,255,255,.3); margin: 0 8px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100;
  max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 13.5px; flex: 1 1 240px; margin: 0; }
.cookie a { font-weight: 600; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(8,20,32,.9); display: none; place-items: center; padding: 30px; }
.lightbox.show { display: grid; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__close svg { width: 24px; height: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .hero-bar__item:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .nav__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; width: min(320px, 84vw);
    height: calc(100vh - var(--header-h)); background: #fff; flex-direction: column;
    padding: 24px; gap: 6px; box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform .35s ease; margin-left: 0;
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .features, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 480px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 26px; }
  .svc-row--rev .svc-row__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .news-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services-grid, .gallery, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero-bar__inner { grid-template-columns: 1fr; }
  .hero-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-bar__item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .about-media__badge { right: 16px; }
  .hero__cta .btn, .cta__row .btn { width: 100%; justify-content: center; }
  .section { padding: 58px 0; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
