/* ===== БЛОГ ===== */

/* -- Шапка внутренних страниц -- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 2rem 4rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #143d6b 100%);
  color: #fff;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 1rem 0;
  max-width: 900px;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 640px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.breadcrumbs a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs [aria-current] {
  color: rgba(255,255,255,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}

/* -- Фильтры-чипы -- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.chip {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.chip:hover { background: rgba(255,255,255,0.16); color: #fff; }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 24px var(--orange-glow); }
.chip-light {
  color: var(--blue);
  background: var(--blue-pale);
  border-color: rgba(21, 101, 160, 0.12);
}
.chip-light:hover { background: var(--blue); color: #fff; }

/* -- Сетка карточек -- */
.blog-list, .blog-home, .blog-related { background: var(--surface); }
.blog-list { padding-top: 4rem; }

.post-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 160, 0.15);
  box-shadow: 0 20px 60px rgba(13, 40, 71, 0.1);
}
.post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy), #143d6b);
  overflow: hidden;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  color: rgba(255,255,255,0.12);
}
.post-card-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Unbounded', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.7rem;
}
.post-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0.7rem 0 0.5rem;
}
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.post-more {
  margin-top: auto;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.post-more span { display: inline-block; transition: transform 0.3s; }
.post-more:hover span { transform: translateX(4px); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-cat {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  text-decoration: none;
}
.post-cat:hover { color: var(--orange); }
.post-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.post-address::before { content: '📍 '; }

.blog-home-more { text-align: center; margin-top: 3rem; }
.blog-empty { text-align: center; color: var(--text-muted); }
.blog-empty p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* -- Пагинация -- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}
.pager-num, .pager-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.08);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager-num.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* -- Статья -- */
.post-hero { padding-bottom: 5rem; }
.post-hero.has-cover { padding-bottom: 9rem; }
.post-hero .post-meta { margin-top: 1.5rem; color: rgba(255,255,255,0.6); }
.post-hero .post-cat { color: var(--orange); }
.post-hero .post-address { color: rgba(255,255,255,0.7); font-size: 1rem; }

.post {
  padding: 0 2rem 4rem;
  background: var(--white);
}
.post-cover {
  max-width: 1100px;
  margin: -6rem auto 3rem;
  position: relative;
  z-index: 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(9, 28, 54, 0.25);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero:not(.has-cover) + .post { padding-top: 3.5rem; }

.post-content, .ba, .post-gallery, .post-tags {
  max-width: 780px;
  margin: 0 auto;
}
.post-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--orange);
}

.prose { font-size: 1.07rem; line-height: 1.8; color: #243b5a; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2, .prose h3 {
  font-family: 'Unbounded', sans-serif;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 2.5rem;
}
.prose h2 { font-size: 1.5rem; font-weight: 800; }
.prose h3 { font-size: 1.2rem; font-weight: 600; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose ul li::marker { color: var(--orange); }
.prose blockquote {
  padding: 1.2rem 1.5rem;
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
}
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* -- Было / стало -- */
.ba, .post-gallery { margin-top: 4rem; max-width: 1000px; }
.ba h2, .post-gallery h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 2rem;
  user-select: none;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  pointer-events: none;
}
.ba-handle::after {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.ba-slider input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
}
.ba-label-before { left: 1rem; background: rgba(9, 28, 54, 0.75); }
.ba-label-after { right: 1rem; background: var(--orange); }

.ba-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ba-col {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(13, 40, 71, 0.06);
}
.ba-col-after { background: linear-gradient(180deg, #fff6ec 0%, var(--white) 60%); border-color: rgba(232, 135, 30, 0.2); }
.ba-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.ba-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.ba-col-after .ba-dot { background: var(--orange); box-shadow: 0 0 12px var(--orange-glow); }
.ba-col p { color: #243b5a; line-height: 1.7; margin-bottom: 1.2rem; }

/* -- Сетки фото -- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.photo-grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.photo-grid a {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.photo-grid-lg a { aspect-ratio: 4 / 3; border-radius: 14px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-grid a:hover img { transform: scale(1.06); }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }

/* -- Лайтбокс -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 15, 30, 0.94);
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: calc(100vw - 8rem);
  max-height: calc(100vh - 6rem);
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox button:hover { background: var(--orange); }
.lightbox button[hidden] { display: none; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* -- Адаптив -- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 7rem 1.2rem 3rem; }
  .post-hero.has-cover { padding-bottom: 6rem; }
  .post { padding: 0 1.2rem 3rem; }
  .post-cover { margin-top: -4rem; border-radius: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .ba-cols { grid-template-columns: 1fr; }
  .lightbox img { max-width: 100vw; max-height: 80vh; border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .breadcrumbs [aria-current] { max-width: 24ch; }
}

/* ===== ЗАЯВКА ===== */
.lead-section { background: var(--surface); }
.lead-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.lead-info h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}
.lead-info > p { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; margin-bottom: 1.5rem; }
.lead-points { list-style: none; margin-bottom: 2rem; }
.lead-points li {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  color: var(--navy);
  font-weight: 500;
}
.lead-points li::before { content: '✓'; color: var(--orange); font-weight: 700; }
.lead-phone {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue);
  text-decoration: none;
}
.lead-phone:hover { color: var(--orange); }

.lead-form {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  border-top: 4px solid var(--orange);
  box-shadow: 0 30px 80px rgba(13, 40, 71, 0.12);
  display: grid;
  gap: 1rem;
}
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.field b { color: var(--orange); }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 40, 71, 0.15);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 160, 0.12);
}
.lead-form .invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important; }
.lead-form em { font-style: normal; font-size: 0.8rem; color: #dc2626; min-height: 0; }
.lead-form em:empty { display: none; }

.captcha-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 0.5rem; align-items: stretch; }
.captcha-q {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.captcha-row input { text-align: center; font-weight: 600; letter-spacing: 1px; }
.captcha-refresh {
  border: 1px solid rgba(13, 40, 71, 0.15);
  background: var(--white);
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--blue);
  cursor: pointer;
}
.captcha-refresh:hover { border-color: var(--blue); }

.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange); }
.consent a { color: var(--blue); }

.lead-submit { justify-content: center; width: 100%; padding: 1.05rem; font-size: 1.05rem; }
.lead-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.lead-msg:empty { display: none; }
.lead-msg { padding: 0.9rem 1.1rem; border-radius: 12px; font-weight: 500; }
.lead-msg.ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.lead-msg.err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* ===== ДОКУМЕНТЫ ===== */
.doc { padding-top: 3.5rem; }
.doc .prose h2 { font-size: 1.25rem; }
.doc .prose h3 { font-size: 1.05rem; }

.footer-docs {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
}
.footer-docs a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-docs a:hover { color: var(--orange); }

/* ===== COOKIE ===== */
.cookie-bar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 440px;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(9, 28, 54, 0.96);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--orange); }
.cookie-bar .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; flex-shrink: 0; }

@media (max-width: 900px) {
  .lead-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .lead-form { padding: 1.6rem 1.2rem; }
  .lead-row { grid-template-columns: 1fr; }
  .captcha-row { grid-template-columns: 1fr 90px 44px; }
  .cookie-bar { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; flex-direction: column; align-items: stretch; }
}

/* ===== ЛИЦЕНЗИИ ===== */
.licenses { padding-top: 4rem; }
.lic-group { max-width: 1200px; margin: 0 auto 4rem; scroll-margin-top: 100px; }
.lic-group:last-child { margin-bottom: 0; }
.lic-group h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.lic-group h2::before { content: ''; width: 6px; height: 1.4em; border-radius: 3px; background: var(--orange); }
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.lic-card {
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s, box-shadow 0.4s;
}
.lic-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(13, 40, 71, 0.1); }
.lic-preview {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 340px;
  width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}
.lic-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.lic-card:hover .lic-preview img { transform: scale(1.03); }
.lic-pdf {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 2.4rem; color: rgba(13, 40, 71, 0.2);
}
.lic-count {
  position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 100px;
  background: rgba(9, 28, 54, 0.8); color: #fff; font-size: 0.75rem; font-weight: 600;
}
.lic-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.lic-body h3 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--navy); }
.lic-body dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; font-size: 0.85rem; }
.lic-body dt { color: var(--text-muted); }
.lic-body dd { color: var(--navy); font-weight: 500; }
.lic-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.lic-status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.lic-status.ok { background: #ecfdf3; color: #067647; }
.lic-status.off { background: #fef3f2; color: #b42318; }
.lic-files { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lic-files a {
  font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 8px; background: var(--blue-pale);
}
.lic-files a:hover { background: var(--blue); color: #fff; }
.page-licenses .chip { font-size: 0.82rem; }

/* ===== КНОПКА «НАВЕРХ» ===== */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--navy);
  color: var(--orange);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(9, 28, 54, 0.35);
  transition: transform 0.3s, background 0.3s, color 0.3s;
  animation: to-top-in 0.3s ease-out;
}
.to-top:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.to-top[hidden] { display: none; }
@keyframes to-top-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .to-top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; }
  body:has(.cookie-bar:not([hidden])) .to-top { bottom: 9rem; }
}
.page-blog .lead-section, .page-licenses .lead-section { background: var(--white); }

/* ===== MAX ===== */
.btn-max {
  background: linear-gradient(135deg, #3db6ff, #7b3dff);
  color: #fff;
  box-shadow: 0 0 30px rgba(123, 61, 255, 0.3);
}
.btn-max:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(123, 61, 255, 0.45); }
.btn-max .max-icon rect { fill: rgba(255,255,255,0.2); }
.lead-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.lead-contacts .btn { padding: 0.75rem 1.3rem; font-size: 0.95rem; }
.footer-max { display: inline-flex !important; align-items: center; gap: 0.4rem; }
.footer-max .max-icon { width: 18px; height: 18px; }

/* цена не должна переносить «₽» на новую строку */
.price-amount { white-space: nowrap; font-size: clamp(1.4rem, 1.9vw, 1.9rem) !important; }
.price-amount.is-text { font-size: 1.45rem !important; white-space: normal; }

/* ===== ФОРМА: ИНН, ПОДСКАЗКИ АДРЕСА, ТАРИФ ===== */
.lead-form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 40, 71, 0.15);
  background: var(--surface);
}
.lead-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 160, 0.12); background: var(--white); }
.company-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  font-size: 0.88rem;
  color: #067647;
}
.company-card[hidden] { display: none; }
.company-card strong { color: var(--navy); }
.company-warn { color: #b42318; font-weight: 600; }
.suggest { position: relative; }
.suggest > label span { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.suggest-list {
  position: absolute;
  z-index: 20;
  top: calc(100% - 0.2rem);
  left: 0;
  right: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(13, 40, 71, 0.15);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}
.suggest-list[hidden] { display: none; }
.suggest-list li { padding: 0.65rem 1rem; font-size: 0.9rem; color: var(--navy); cursor: pointer; }
.suggest-list li + li { border-top: 1px solid rgba(13, 40, 71, 0.05); }
.suggest-list li:hover, .suggest-list li.active { background: var(--blue-pale); }
.lead-row-object { grid-template-columns: 1fr 120px; }
.lead-form input[type=number] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy); padding: 0.8rem 1rem;
  border-radius: 12px; border: 1px solid rgba(13, 40, 71, 0.15); background: var(--surface);
}
.lead-form input[type=number]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 160, 0.12); background: var(--white); }
@media (max-width: 560px) { .lead-row-object { grid-template-columns: 1fr; } }
