﻿/* ═══════════════════════════════════════════════════════
   Lockopen — corporate blue (редизайн 2026-07)
   Палітра: #1A6FC4 акцент · #134F8C темний · #212A33 текст
   ═══════════════════════════════════════════════════════ */

:root {
  --blue:       #1A6FC4;
  --blue-dark:  #134F8C;
  --blue-tint:  #E8F1FB;
  --ink:        #212A33;
  --muted:      #5F6B77;
  --line:       #E1E7EE;
  --bg:         #FFFFFF;
  --bg-alt:     #F5F7FA;
  --ftr:        #1C2733;
  --radius:     8px;
  --radius-lg:  10px;
  --shadow:     0 18px 44px rgba(33, 42, 51, .14);
  --shadow-sm:  0 4px 14px rgba(33, 42, 51, .06);
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --font:       'Roboto', 'Roboto-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@font-face {
  font-family: 'Roboto-fallback';
  src: local('Arial');
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
  size-adjust: 100.3%;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 6px; border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  position: relative; overflow: hidden;
}
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn--blue {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 20px rgba(26, 111, 196, .25);
}
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn--white:hover { transform: translateY(-2px); }

.btn--outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline-blue:hover { background: var(--blue-tint); }

.btn--outline-white { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); }

/* shine-блік */
.btn--blue::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
  transform: skewX(-18deg) translateX(-130%);
  transition: transform .55s var(--ease);
}
.btn--blue:hover::after { transform: skewX(-18deg) translateX(230%); }

/* ── Topbar ──────────────────────────────────────── */
.topbar { background: var(--blue-dark); color: #DCECFB; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 20px; }
.topbar-line { display: inline-flex; align-items: center; gap: 7px; }
.topbar-phone { font-weight: 700; color: #fff; white-space: nowrap; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(33, 42, 51, .1); }

.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.header-logo { flex-shrink: 0; display: block; }
.header-logo svg { display: block; height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 14px; border-radius: 6px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--blue-tint); color: var(--blue-dark); }
.nav__link--active { color: var(--blue); font-weight: 700; }

.nav-has-sub { position: relative; }
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub-link {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.nav-sub-link:hover { background: var(--blue-tint); color: var(--blue-dark); }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px; color: var(--blue-dark); white-space: nowrap;
}
.header-phone svg { color: var(--blue); }

.nav-toggle { display: none; }
.nav-panel-head { display: none; }

/* ── Nav icons ───────────────────────────────────── */
.nav-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue);
  margin-right: 4px; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.nav-link:hover .nav-ico, .nav-sub-link:hover .nav-ico { background: var(--blue); color: #fff; }
.nav-ico--sub { width: 28px; height: 28px; margin-right: 8px; }
.nav-sub-link { display: flex; align-items: center; }

/* ── Cross-card icons ────────────────────────────── */
.cross-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue); flex-shrink: 0;
  transition: background .22s, color .22s;
}
.cross-card { justify-content: flex-start; }
.cross-card .cross-title { flex: 1; }
.cross-card:hover .cross-ico { background: var(--blue); color: #fff; }

/* ── Footer service icons ────────────────────────── */
.pf-svc-ico { color: #6EB1EE; flex-shrink: 0; display: inline-flex; margin-top: 1px; }

/* ── Lang switch ─────────────────────────────────── */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.lang-flag { border-radius: 2.5px; box-shadow: 0 1px 3px rgba(33, 42, 51, .25); flex-shrink: 0; }
.lang-link { color: var(--muted); padding: 3px 4px; border-radius: 5px; transition: color .18s; }
.lang-link:hover { color: var(--blue-dark); }
.lang-link--active { color: var(--blue); }
.lang-sep { color: var(--line); font-weight: 400; }
.nav-panel-extra { display: none; }

.lang-switch--top { font-size: 13px; }
.lang-switch--top .lang-link { color: #9CC4EC; }
.lang-switch--top .lang-link:hover { color: #fff; }
.lang-switch--top .lang-link--active { color: #fff; }
.lang-switch--top .lang-sep { color: rgba(255, 255, 255, .3); }

/* ── Hero (home) ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover; background-position: center;
}
@media (max-width: 700px) {
  .hero-bg { background-image: url('/assets/img/hero-bg-mob.jpg'); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(19, 79, 140, .68), rgba(19, 79, 140, .58));
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding-top: 88px; padding-bottom: 88px; max-width: 900px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; margin-bottom: 16px; }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); opacity: .92; max-width: 680px;
  margin: 0 auto 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.hero-ticks {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  font-size: 14.5px; font-weight: 500;
}
.hero-ticks li::before { content: "✓"; font-weight: 900; margin-right: 8px; color: #7FD8A5; }

/* ── Page hero (внутрішні) ───────────────────────── */
.page-hero {
  background: linear-gradient(120deg, var(--blue-tint), #F5F9FE 65%);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
}
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.page-h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 900; margin-bottom: 12px; }
.page-sub { font-size: 17px; color: var(--muted); max-width: 680px; margin-bottom: 24px; }
.page-hero .hero-btns { justify-content: flex-start; margin-bottom: 0; }

/* ── Stats band ──────────────────────────────────── */
.stats-band { background: var(--blue); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 26px; padding-bottom: 26px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 34px; font-weight: 900; line-height: 1; display: block; }
.stat-num sup { font-size: 16px; font-weight: 700; }
.stat-lbl { font-size: 13.5px; color: #F2F7FD; margin-top: 6px; display: block; }

/* ── Sections ────────────────────────────────────── */
.section { padding: 68px 0; }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 12px;
}
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.section-head .section-eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--blue); }
.section-title { font-size: clamp(25px, 3.2vw, 36px); font-weight: 900; margin-bottom: 10px; }
.section-title--left { text-align: left; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
.section-sub--left { margin: 0 0 24px; }

/* ── Services grid ───────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(26, 111, 196, .16); }
.service-card-link { display: flex; flex-direction: column; height: 100%; }
.service-card-img { aspect-ratio: 16/10; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card-title { font-size: 18.5px; font-weight: 700; }
.service-card-price { color: var(--blue); font-weight: 700; font-size: 16px; }
.service-card-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; color: var(--muted);
  transition: color .2s, gap .2s var(--ease);
}
.service-card:hover .service-card-cta { color: var(--blue); gap: 12px; }

/* ── Benefits ────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefits-grid--two { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(26, 111, 196, .14); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 16px;
}
.benefit-title { font-size: 17px; margin-bottom: 8px; }
.benefit-text { font-size: 14.5px; color: var(--muted); }

/* ── Steps ───────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px 24px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 900; font-size: 17px;
  margin-bottom: 14px;
}
.step-title { font-size: 16.5px; margin-bottom: 7px; }
.step-text { font-size: 14px; color: var(--muted); }

/* ── About ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.about-text { color: var(--muted); margin: 14px 0 22px; font-size: 16.5px; }
.about-quote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 28px; display: flex; gap: 18px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.about-quote::after {
  content: "”"; position: absolute; right: 14px; top: -18px;
  font-size: 110px; font-weight: 900; line-height: 1;
  color: var(--blue-tint); pointer-events: none;
}
.about-quote-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-dark), #3A8DE0);
  color: #fff; font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 111, 196, .3);
}
.about-quote-body { position: relative; z-index: 1; }
.about-quote-text { font-size: 16px; font-style: italic; margin-bottom: 10px; }
.about-quote-name { font-weight: 700; }
.about-quote-role { font-size: 13.5px; color: var(--muted); }

/* ── Geo ─────────────────────────────────────────── */
.geo-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.geo-chip {
  padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.geo-chip:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ── Price list ──────────────────────────────────── */
.price-list {
  max-width: 780px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(odd) { background: #FAFCFE; }
.price-row b { font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-note { max-width: 780px; margin: 14px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
.price-more { text-align: center; margin-top: 26px; }

/* ── Reviews ─────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
  display: flex; flex-direction: column;
}
.review-stars { color: #F5A623; letter-spacing: 3px; margin-bottom: 12px; font-size: 15px; }
.review-text { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-name { font-weight: 700; font-size: 14.5px; }
.review-source { font-size: 12.5px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-q {
  cursor: pointer; list-style: none; position: relative;
  padding: 17px 52px 17px 22px; font-weight: 700; font-size: 15.5px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--blue);
  transition: transform .25s var(--ease);
}
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

/* ── Service photos ──────────────────────────────── */
.service-photo { margin: 0 0 24px; }
.service-photo img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.service-photo--secondary { margin-top: 24px; }

/* ── Reviews actions ─────────────────────────────── */
.reviews-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* ── Service page layout ─────────────────────────── */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px;
}
.aside-heading { font-weight: 700; font-size: 16.5px; margin-bottom: 14px; }
.aside-prices li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.aside-prices li:last-child { border-bottom: none; }
.aside-prices b { color: var(--blue); white-space: nowrap; }
.aside-note { font-size: 12px; color: var(--muted); margin: 10px 0 16px; }
.aside-card--dark { background: var(--blue-dark); color: #fff; border: none; text-align: center; }
.aside-247 { font-size: 38px; font-weight: 900; }
.aside-247-text { font-size: 13.5px; opacity: .85; margin: 8px 0 14px; }
.aside-phone { font-size: 19px; font-weight: 900; color: #fff; display: block; }
.aside-phone:hover { text-decoration: underline; }

/* ── Cross links ─────────────────────────────────── */
.cross-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cross-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 18px 22px;
  font-weight: 700; font-size: 15px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), color .2s;
}
.cross-card svg { color: var(--blue); flex-shrink: 0; }
.cross-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26, 111, 196, .15); color: var(--blue-dark); }

/* ── SEO text ────────────────────────────────────── */
.seo-text h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 16px; }
.seo-text h3 { font-size: 19px; margin: 24px 0 10px; }
.service-main h2 { font-size: 20px; margin: 24px 0 12px; }
.seo-text p { color: var(--muted); margin-bottom: 14px; }
.seo-text strong { color: var(--ink); }

/* ── Photo CTA (фото в месенджер) ────────────────── */
.photo-cta {
  display: flex; gap: 22px; align-items: flex-start;
  background: linear-gradient(120deg, var(--blue-tint), #F5FAFF);
  border: 1px solid #C9DEF5; border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.photo-cta-icon {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 14px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(26, 111, 196, .3);
}
.photo-cta-title { font-size: 20px; margin-bottom: 6px; }
.photo-cta-text { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.photo-cta-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-cta-lbl { font-size: 13.5px; font-weight: 700; color: var(--blue-dark); }
.msg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; color: #fff;
  font-size: 13.5px; font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.msg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(33, 42, 51, .2); }
.msg-btn--tg { background: #0077B5; }
.msg-btn--wa { background: #0E7A45; }
.msg-btn--vb { background: #5546A6; }
@media (max-width: 640px) {
  .photo-cta { flex-direction: column; }
}

/* ── Zamky довідник ──────────────────────────────── */
.zamky-table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow-x: auto;
}
.zamky-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.zamky-table th {
  text-align: left; padding: 14px 20px; background: var(--blue-tint);
  color: var(--blue-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.zamky-table td { padding: 13px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.zamky-name { display: block; font-weight: 700; }
.zamky-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.zamky-stars { color: #F5A623; font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
.zamky-stars-off { color: var(--line); }
.zamky-price { font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ── Map embed (Leaflet) ─────────────────────────── */
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
#loMap { height: 400px; background: var(--blue-tint); position: relative; z-index: 1; }
.lo-marker { position: relative; }
.lo-marker-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(19, 79, 140, .45);
  display: flex; align-items: center; justify-content: center;
}
.lo-marker-dot svg { display: block; }
.lo-marker-pulse {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(26, 111, 196, .35);
  animation: lo-pulse 2s infinite var(--ease);
}
@keyframes lo-pulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
.lo-dot-wrap { position: relative; cursor: pointer; }
.lo-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--blue); border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(19, 79, 140, .45);
}
.lo-dot-pulse {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(26, 111, 196, .4);
  animation: lo-pulse 2.2s infinite var(--ease);
}
.lo-popup { font-family: var(--font); font-size: 13.5px; line-height: 1.5; }
.lo-popup b { font-size: 15px; }
.lo-popup a.lo-popup-phone { color: var(--blue); font-weight: 700; display: inline-block; margin: 4px 0; }
.lo-popup a.lo-popup-route {
  display: inline-block; margin-top: 6px; padding: 7px 14px; border-radius: 6px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
}

/* ── CTA section ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; text-align: center; padding: 58px 20px;
}
.cta-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 10px; }
.cta-sub { opacity: .88; margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Pre-footer / footer ─────────────────────────── */
.pre-footer {
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(26, 111, 196, .30), transparent 62%),
    radial-gradient(520px 300px at 6% 108%, rgba(26, 111, 196, .18), transparent 60%),
    linear-gradient(160deg, #16202B 0%, #14273A 48%, #103158 100%);
  color: #C8D2DC; padding: 38px 0 26px; font-size: 13.5px;
}
.pre-footer-grid { display: grid; grid-template-columns: 1fr 1.6fr 1.1fr; gap: 30px; }

.pf-logo { display: inline-block; margin-bottom: 10px; }
.pf-logo svg { display: block; height: 44px; width: auto; }

.pf-locks { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 30px; }
.pf-locks-line { flex: 1; max-width: 260px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22)); }
.pf-locks-line:last-child { background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent); }
.pf-lock { color: #5A6B7C; overflow: visible; animation: pf-lock-glow 4.2s infinite var(--ease); }
.pf-shackle { transform-origin: 30px 20px; animation: pf-unlock 4.2s infinite var(--ease); }
.pf-lock:nth-of-type(1), .pf-lock:nth-of-type(1) .pf-shackle { animation-delay: 0s; }
.pf-lock:nth-of-type(2), .pf-lock:nth-of-type(2) .pf-shackle { animation-delay: 1.4s; }
.pf-lock:nth-of-type(3), .pf-lock:nth-of-type(3) .pf-shackle { animation-delay: 2.8s; }
@keyframes pf-unlock {
  0%, 42%  { transform: rotate(0); }
  52%, 78% { transform: rotate(30deg) translateY(-1.5px); }
  90%, 100% { transform: rotate(0); }
}
@keyframes pf-lock-glow {
  0%, 42%  { color: #5A6B7C; }
  52%, 78% { color: #5AA2E8; }
  90%, 100% { color: #5A6B7C; }
}

.pf-geo { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pf-geo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-geo-chip {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(110, 177, 238, .1); border: 1px solid rgba(110, 177, 238, .3);
  color: #BBD8F6; font-size: 13px; font-weight: 500;
  animation: pf-float 3.6s ease-in-out infinite alternate;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pf-geo-chip:nth-child(3n)  { animation-delay: -1.2s; }
.pf-geo-chip:nth-child(3n+1){ animation-delay: -2.4s; }
.pf-geo-chip:nth-child(4n)  { animation-duration: 4.4s; }
.pf-geo-chip:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateY(-3px); animation-play-state: paused;
}
@keyframes pf-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
.pf-brand { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.pf-brand span { color: #6EB1EE; }
.pf-about { opacity: .75; max-width: 260px; }
.pf-schedule-line { margin-top: 12px; color: #fff; font-weight: 500; opacity: .85; }
.pf-heading { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 12px; }
.pf-list--two { columns: 2; column-gap: 20px; }
.pf-list--two li { break-inside: avoid; margin-bottom: 7px; }
.pf-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.pf-icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: #6EB1EE; }
.pf-link { opacity: .8; transition: opacity .2s, color .2s; }
.pf-link:hover { opacity: 1; color: #fff; }
.pf-link--phone { font-weight: 700; font-size: 15.5px; color: #fff; opacity: 1; }
.pf-text { opacity: .8; }
.pf-schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pf-schedule-val { color: #fff; font-weight: 500; }

.site-footer { background: linear-gradient(160deg, #103158 0%, #0C2038 100%); border-top: 1px solid rgba(255, 255, 255, .07); color: #8A97A5; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.footer-dev { margin: 0; }
.footer-dev-link { color: #B9C6D2; font-weight: 700; transition: color .18s; }
.footer-dev-link:hover { color: #fff; }

/* ── FAB stack: месенджери + дзвінок ─────────────── */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab-msg {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 20px rgba(33, 42, 51, .25);
  transition: transform .2s var(--ease);
}
.fab-msg:hover { transform: translateY(-3px) scale(1.06); }
.fab-msg--tg { background: #2AABEE; }
.fab-msg--wa { background: #25D366; }
.fab-msg--vb { background: #7360F2; }
.fab-call {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(26, 111, 196, .4);
  animation: fab-pulse 2.4s infinite;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(26, 111, 196, .4), 0 0 0 0 rgba(26, 111, 196, .35); }
  50%      { box-shadow: 0 12px 30px rgba(26, 111, 196, .4), 0 0 0 14px rgba(26, 111, 196, 0); }
}

/* ── Responsive ──────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1240px) {
  .header-inner { gap: 14px; }
  .nav-list { gap: 0; }
  .nav-link { padding: 10px 9px; font-size: 14.5px; }
  .nav-list > li > .nav-link > .nav-ico { display: none; }
  .header-logo svg { height: 40px; }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 46px; height: 46px; border: 2px solid var(--blue-tint); border-radius: 12px;
    background: var(--blue-tint); cursor: pointer; margin-left: auto;
    transition: background .25s var(--ease), border-color .25s, box-shadow .25s;
  }
  .nav-toggle:hover { border-color: var(--blue); }
  .nav-toggle span {
    width: 20px; height: 2.6px; background: var(--blue); border-radius: 2px;
    transition: transform .32s var(--ease), opacity .2s, width .32s var(--ease), background .25s;
  }
  .nav-toggle span:nth-child(2) { width: 14px; align-self: flex-end; margin-right: 13px; }
  .nav-toggle.open { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 20px rgba(26, 111, 196, .35); }
  .nav-toggle.open span { background: #fff; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    background: linear-gradient(180deg, #fff 0%, #F3F8FE 100%);
    box-shadow: -24px 0 60px rgba(19, 79, 140, .25);
    transform: translateX(105%); transition: transform .34s var(--ease);
    padding: 16px 20px 28px; overflow-y: auto; margin-left: 0; z-index: 55;
    display: flex; flex-direction: column;
    border-left: 1px solid var(--blue-tint);
  }
  .nav-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 2px 14px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-panel-brand { font-size: 21px; font-weight: 900; color: var(--ink); }
  .nav-panel-brand span { color: var(--blue); }
  .nav-close {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: var(--blue-tint); color: var(--blue-dark); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, transform .25s var(--ease);
  }
  .nav-close:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }
  .main-nav.nav-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li { opacity: 0; transform: translateX(26px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .main-nav.nav-open .nav-list > li { opacity: 1; transform: translateX(0); }
  .main-nav.nav-open .nav-list > li:nth-child(1) { transition-delay: .06s; }
  .main-nav.nav-open .nav-list > li:nth-child(2) { transition-delay: .12s; }
  .main-nav.nav-open .nav-list > li:nth-child(3) { transition-delay: .18s; }
  .main-nav.nav-open .nav-list > li:nth-child(4) { transition-delay: .24s; }
  .nav-link { padding: 12px 14px; font-size: 16.5px; font-weight: 700; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--blue-tint);
    border-radius: 0; padding: 0 0 6px 12px; margin-left: 14px; min-width: 0;
  }
  .nav-sub-link { padding: 9px 12px; font-size: 14.5px; }
  .nav-link--drop svg { display: none; }

  .nav-panel-extra {
    display: block; margin-top: auto; padding-top: 18px;
    border-top: 1px solid var(--line);
    opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease) .28s, transform .35s var(--ease) .28s;
  }
  .main-nav.nav-open .nav-panel-extra { opacity: 1; transform: translateY(0); }
  .nav-panel-call { font-size: 17px; }
  .nav-panel-note { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 14px; }
  .lang-switch--panel { justify-content: center; width: 100%; font-size: 15px; gap: 9px; }

  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-layout { grid-template-columns: 1fr; }
  .pre-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .hero-ticks { flex-direction: column; gap: 10px; align-items: center; }
  .services-grid, .reviews-grid, .benefits-grid, .steps-grid, .benefits-grid--two { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pre-footer-grid { grid-template-columns: 1fr; }
  .topbar-line { font-size: 12px; }
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
  .hero-btns .btn { width: 100%; }
  .page-hero .hero-btns .btn { width: auto; }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ── Contacts page ───────────────────────────────── */
.page-hero--contact { background: linear-gradient(120deg, var(--blue-tint), #EDF5FE 60%, #F5F9FE); }

.ct-grid {
  display: grid; gap: 18px; margin-bottom: 34px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.ct-card {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ct-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--blue), #4E9BE8);
  opacity: 0; transition: opacity .25s var(--ease);
}
.ct-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9DEF5; }
.ct-card:hover::before { opacity: 1; }
.ct-ico {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue);
}
.ct-card:hover .ct-ico { background: var(--blue); color: #fff; }
.ct-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ct-val { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; word-break: break-word; }
a.ct-val:hover { color: var(--blue); }
.ct-note { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.ct-msg {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px;
  background: linear-gradient(120deg, #F7FAFE, var(--blue-tint));
}
.ct-msg-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.ct-msg-text { font-size: 14.5px; color: var(--muted); max-width: 520px; }
.ct-msg-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.ct-map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px;
}
.ct-map-note { font-size: 14.5px; color: var(--muted); max-width: 620px; }

.ct-why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.ct-why-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ct-why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ct-why-ico {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), #3E8FE0); color: #fff;
}
.ct-why-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.ct-why-text { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 700px) {
  .ct-card { padding: 20px 18px; }
  .ct-msg { padding: 20px; }
  .ct-msg-btns { width: 100%; }
  .ct-msg-btns .msg-btn { flex: 1 1 auto; justify-content: center; }
}


/* ── Blog ────────────────────────────────────────── */
.blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.blog-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--bg-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.blog-card-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-lead { font-size: 14.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-more { font-size: 14.5px; font-weight: 700; color: var(--blue); margin-top: 2px; }
.blog-card-more:hover { text-decoration: underline; }

.page-hero--article { background: linear-gradient(120deg, var(--blue-tint), #F7FAFE 70%); }
.art-meta { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.art-hero {
  width: 100%; height: auto; aspect-ratio: 41 / 21; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 26px;
}
.art-body h2 { font-size: 22px; font-weight: 800; margin: 28px 0 10px; }
.art-body h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }
.art-body p { margin-bottom: 12px; }
.art-body ul, .art-body ol { margin: 0 0 14px 22px; }
.art-body li { margin-bottom: 6px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.art-body th { background: var(--blue-tint); color: var(--blue-dark); font-weight: 700; }

.art-faq { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.art-faq-h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }

.art-offer {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 34px;
  border: 1px solid #C9DEF5; border-radius: var(--radius-lg); padding: 26px 26px 24px;
  background: linear-gradient(125deg, #F7FAFE, var(--blue-tint));
}
.art-offer-ico {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), #3E8FE0); color: #fff;
}
.art-offer-title { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.art-offer-text { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.art-offer-list { margin: 0 0 16px 18px; font-size: 15px; }
.art-offer-list li { margin-bottom: 4px; }
.art-offer-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.art-more { margin-top: 38px; }
.art-more-h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.art-more-list { display: grid; gap: 10px; margin-bottom: 16px; }
.art-more-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.art-more-item:hover { border-color: #C9DEF5; background: #F7FAFE; }
.art-more-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.art-more-date { font-size: 13px; color: var(--muted); white-space: nowrap; }

@media (max-width: 700px) {
  .art-offer { flex-direction: column; padding: 20px; }
  .art-body h2 { font-size: 20px; }
  .art-more-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Форма заявки ────────────────────────────────── */
.lead { background: var(--bg-alt); padding: 46px 0; }
.lead-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 30px;
}
.lead-title { font-size: clamp(21px, 2.4vw, 27px); font-weight: 900; margin-bottom: 6px; color: var(--ink); }
.lead-sub { color: var(--muted); margin-bottom: 20px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lead-row > * { min-width: 0; }
.lead-field { margin-bottom: 14px; }
.lead-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.lead-req { color: #C0392B; }
.lead-input {
  width: 100%; max-width: 100%; box-sizing: border-box;
  font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.lead-input::placeholder { color: #97A2AE; }
.lead-input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 196, .16);
}
.lead-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.lead-input[aria-invalid="true"] { border-color: #C0392B; }
.lead-textarea { resize: vertical; min-height: 80px; }
.lead-submit { margin-top: 4px; }
.lead-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.lead-alt { font-size: 14px; color: var(--muted); margin-top: 8px; }
.lead-phone { color: var(--blue); font-weight: 700; text-decoration: none; }
.lead-phone:hover { text-decoration: underline; }
.lead-msg { padding: 11px 14px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 500; }
.lead-msg--ok  { background: #E7F5EC; color: #1E6B3A; border: 1px solid #BFE3CD; }
.lead-msg--err { background: #FCEBEA; color: #9C2C21; border: 1px solid #F0C7C3; }
.lead-msg--err a { color: #9C2C21; font-weight: 700; }
/* honeypot: приховане поле для ботів, для людей і скрінрідерів невидиме */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 700px) {
  .lead { padding: 32px 0; }
  .lead-card { padding: 20px; }
  .lead-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* §43: плаваюча кнопка дзвінка перекривала хвіст номера в цьому рядку —
     резервуємо під неї місце, інакше частина посилання не тапається */
  .lead-alt { padding-right: 68px; }
}

/* ══════════ PHOTO MODAL (кнопка «надіслати фото» + модалка) ══════════ */
.fab-msg--photo {
  background: #F59E0B; border: 0; cursor: pointer; padding: 0;
  animation: fab-photo-pop 2.8s infinite;
}
@keyframes fab-photo-pop {
  0%, 100% { box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
  50%      { box-shadow: 0 8px 26px rgba(245, 158, 11, .65); }
}
@media (prefers-reduced-motion: reduce) { .fab-msg--photo { animation: none; } }

.pmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pmodal[hidden] { display: none; }
.pmodal-lay { position: absolute; inset: 0; background: rgba(18, 26, 34, .55); backdrop-filter: blur(3px); }
.pmodal-card {
  position: relative; width: 100%; max-width: 430px; max-height: calc(100vh - 32px);
  overflow-y: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 25, 35, .35); padding: 26px 24px 22px;
  animation: pmodal-in .25s var(--ease);
}
@keyframes pmodal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pmodal-x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #F1F4F7; color: #5A6774;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pmodal-x:hover { background: #E4E9EE; color: #212A33; }
.pmodal-head { text-align: center; margin-bottom: 16px; }
.pmodal-ico {
  width: 52px; height: 52px; border-radius: 50%; background: #FEF3C7; color: #B45309;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.pmodal-title { font-size: 21px; font-weight: 800; margin: 0 0 6px; color: var(--dark, #212A33); }
.pmodal-sub { font-size: 14px; color: #5A6774; margin: 0; line-height: 1.5; }
.pmodal-form .lead-field { margin-bottom: 13px; }
.pm-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px dashed #C4CDD6; border-radius: 10px; padding: 16px 12px;
  cursor: pointer; color: #5A6774; text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pm-drop:hover { border-color: var(--blue, #1A6FC4); background: #F6FAFE; }
.pm-drop.has { border-style: solid; border-color: var(--blue, #1A6FC4); background: #F6FAFE; }
.pm-drop-txt { font-weight: 600; font-size: 14px; color: var(--dark, #212A33); }
.pm-drop-hint { font-size: 12px; color: #8A97A5; }
.pm-preview { max-height: 110px; border-radius: 8px; margin-top: 6px; max-width: 100%; }
.pm-turnstile { min-height: 0; }
.pmodal-submit { width: 100%; margin-top: 2px; }
.pmodal-msg { margin: 0 0 12px; padding: 11px 13px; border-radius: 9px; font-size: 14px; }
.pmodal-msg--ok { background: #E8F6EC; color: #1E7A38; border: 1px solid #BFE5CB; }
.pmodal-msg--err { background: #FDEEEC; color: #B3261E; border: 1px solid #F3CFCA; }
.pmodal-msg--err a { color: inherit; font-weight: 700; }
body.pmodal-open { overflow: hidden; }
@media (max-width: 480px) {
  .pmodal { padding: 10px; align-items: flex-end; }
  .pmodal-card { max-width: 100%; border-radius: 14px 14px 8px 8px; padding: 22px 18px 18px; }
}

/* ══════════ ОНЛАЙН-АСИСТЕНТ (чат) ══════════
   Кнопка й панель — зліва внизу: праворуч уже стоїть fab-стек із п'яти кнопок,
   і шоста на телефоні займала б пів екрана. */
.chat-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%; padding: 0; cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(19, 79, 140, .42);
  transition: transform .2s var(--ease), background .2s var(--ease);
  /* Заливка темно-синя, а не акцентна, і білий обідок: на сторінці є смуга
     статистики кольору --blue, і кнопка того ж кольору на ній зникала —
     лишався тільки контур зі значком. */
  background: var(--blue-dark);
  border: 3px solid #fff;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab-x { display: none; }
.chat-fab.is-open { background: var(--ink); }
.chat-fab.is-open .chat-fab-ico { display: none; }
.chat-fab.is-open .chat-fab-x { display: block; }
.chat-fab.is-open .chat-fab-dot { display: none; }
.chat-fab-dot {
  position: absolute; top: 3px; right: 3px; width: 13px; height: 13px;
  border-radius: 50%; background: #22C55E; border: 2.5px solid #fff;
  animation: chat-dot 2.4s infinite;
}
@keyframes chat-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  60%      { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .chat-fab-dot { animation: none; } }

.chat-panel {
  position: fixed; left: 20px; bottom: 88px; z-index: 96;
  width: 372px; max-width: calc(100vw - 40px); max-height: calc(100vh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 25, 35, .28);
  animation: chat-in .22s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px;
  background: var(--blue); color: #fff; flex: 0 0 auto;
}
.chat-ava {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
}
.chat-head-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.chat-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.chat-status { font-size: 11.5px; opacity: .85; line-height: 1.3; }
.chat-head-call, .chat-x {
  width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.chat-head-call:hover, .chat-x:hover { background: rgba(255, 255, 255, .3); }

.chat-body {
  flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 4px;
  background: var(--bg-alt); display: flex; flex-direction: column; gap: 9px;
  min-height: 150px;
}
.chat-msg {
  max-width: 88%; padding: 10px 13px; border-radius: 13px; font-size: 14px; line-height: 1.5;
  word-wrap: break-word; overflow-wrap: break-word;
}
.chat-msg--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg--me  { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.chat-msg--me a { color: #fff; }
.chat-list { margin: 7px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-list li { font-size: 13.5px; line-height: 1.45; padding-left: 13px; position: relative; }
.chat-list li::before { content: '·'; position: absolute; left: 3px; color: var(--blue); font-weight: 900; }
.chat-note { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.4; }

.chat-typing { display: flex; gap: 4px; align-items: center; padding: 13px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA7B4; animation: chat-blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .2s; }
.chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-typing i { animation: none; } }

.chat-chips {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px; background: var(--bg-alt); border-top: 1px solid var(--line);
}
.chat-chip {
  font-family: var(--font); font-size: 12.5px; font-weight: 600; line-height: 1.3;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--blue); border: 1px solid #C7DDF3;
  transition: background .18s, border-color .18s;
}
.chat-chip:hover { background: var(--blue-tint); border-color: var(--blue); }
.chat-chip--go { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-chip--go:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.chat-lead { flex: 0 0 auto; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-lead[hidden] { display: none; }
.chat-lead-h { font-size: 13px; line-height: 1.45; color: var(--muted); margin-bottom: 9px; }
.chat-lead-h b { color: var(--ink); font-size: 14.5px; }
.chat-lead-row { display: flex; gap: 7px; }
.chat-lead-btn {
  flex: 0 0 auto; font-family: var(--font); font-size: 13.5px; font-weight: 700;
  padding: 0 15px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--blue); color: #fff; transition: background .18s;
}
.chat-lead-btn:hover { background: var(--blue-dark); }
.chat-lead-btn:disabled { opacity: .6; cursor: default; }
.chat-turnstile:not(:empty) { margin-top: 9px; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chat-ask { flex: 0 0 auto; display: flex; gap: 7px; padding: 11px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-input {
  flex: 1 1 auto; min-width: 0; font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .18s;
}
.chat-input::placeholder { color: #9AA7B4; }
.chat-input:focus { outline: none; border-color: var(--blue); }
.chat-input[aria-invalid="true"] { border-color: #D93025; }
.chat-send {
  flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 8px; padding: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .18s;
}
.chat-send:hover { background: var(--blue-dark); }

@media (max-width: 560px) {
  /* На телефоні панель — на весь екран: 372px збоку не влазять, а читати
     прайс у колонці шириною 60% екрана неможливо. */
  .chat-fab { left: 16px; bottom: 16px; width: 52px; height: 52px; }
  .chat-panel {
    left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%;
    height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0;
  }
  .chat-body { min-height: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .fab-stack, body.chat-open .chat-fab { display: none; }
}
@supports not (height: 100dvh) {
  @media (max-width: 560px) { .chat-panel { height: 100vh; max-height: 100vh; } }
}
