/* Sololift — premium UI layer (load after theme.css) */

:root {
  --brand-navy: #0d2258;
  --brand-sky: #69cfee;
  --brand-accent: #fff681;
  --brand-gradient: linear-gradient(315deg, #0d2258, #69cfee);
  --brand-cta: #0088cc;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 32px rgba(13, 34, 88, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --space-section: clamp(48px, 6vw, 72px);
  --font-sans: "Aeroport", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Единая сетка сайта (хедер + контент) */
  --site-max: 1100px;
  --site-gutter: 24px;
  --site-width: min(var(--site-max), calc(100% - var(--site-gutter) * 2));
  --site-inner-pad: clamp(20px, 3vw, 32px);
  --site-header-top: max(12px, env(safe-area-inset-top, 0px));
  --site-header-pad-y: 10px;
  --site-header-pad-x: 20px;
  --site-header-gap: 20px;
  --site-header-bar-min: 48px;
  --site-content-offset: calc(
    var(--site-header-top) + var(--site-header-pad-y) * 2 + var(--site-header-bar-min) + var(--site-header-gap)
  );
  --site-section-gap: 24px;
}

@media (max-width: 850px) {
  :root {
    --site-gutter: 16px;
    --site-header-pad-x: 16px;
    --site-header-pad-y: 10px;
    --site-header-bar-min: 44px;
    --site-header-top: max(10px, env(safe-area-inset-top, 0px));
    --site-header-gap: 10px;
    --radius-lg: 24px;
  }
}

@media (max-width: 530px) {
  :root {
    --site-gutter: 12px;
    --site-header-pad-x: 14px;
    --site-header-gap: 8px;
  }
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text, #1a1a1a);
}

/* Focus & accessibility */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--color-primary, #4993ba);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* FAQ — работает и в .faq, и в .card/.page-wrap без обёртки .faq */
.faq-item input[type="checkbox"],
.faq input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.faq-item input:checked ~ .faq-answer,
.faq input:checked ~ .faq-answer {
  max-height: 1200px;
}

.page-wrap .faq {
  max-width: 100%;
  margin: 32px 0 0;
  padding: 0;
}

.page-wrap .faq h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 28px 0 16px;
  text-align: left;
}

.page-wrap .faq h2:first-child {
  margin-top: 0;
}

.card .faq-item + .faq-item {
  margin-top: 0;
}

/* Placeholder cards — icon style */
.service-img-placeholder {
  background: linear-gradient(145deg, #e8f4fa 0%, #d4e8f4 100%);
  border: 1px solid rgba(73, 147, 186, 0.2);
  color: var(--color-primary, #4993ba);
  font-size: 0;
}
.service-img-placeholder i {
  font-size: 48px;
  opacity: 0.85;
}

/* Media placeholders on service pages */
.service-card > div:first-child:not(.service-content),
.page-wrap .card > div[style*="background:#e0e0e0"] {
  background: linear-gradient(145deg, #eef4f8 0%, #dce9f2 100%) !important;
  border: 1px dashed rgba(73, 147, 186, 0.35) !important;
  color: #5a7a8f !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

/* Tables in content */
.page-wrap table,
.card table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
.page-wrap th,
.page-wrap td {
  padding: 12px 14px;
  vertical-align: top;
}
.page-wrap th {
  background: #f0f7fb;
  font-weight: 600;
}

/* Cards — unified premium surface */
.page-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.page-wrap .card,
.page-wrap > section.card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-wrap .hero-local {
  margin-bottom: 0 !important;
}

/* Чеклисты с галочками */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
}

.checklist-item i {
  flex-shrink: 0;
  width: 1.25em;
  margin-top: 0.15em;
  color: var(--color-primary, #4993ba);
  font-size: 1rem;
  text-align: center;
}

.checklist-item span {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.card .checklist-item:first-of-type {
  margin-top: 4px;
}

.page-wrap .card h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin: 0 0 16px;
  line-height: 1.2;
  color: #303030;
}

.page-wrap .card h3 {
  font-size: clamp(18px, 3vw, 22px);
  margin: 24px 0 12px;
  line-height: 1.25;
  color: var(--color-primary, #4993ba);
}

.page-wrap .card h3:first-of-type {
  margin-top: 8px;
}

.card h3[style*="color:#4993BA"] {
  color: var(--color-primary, #4993ba) !important;
}

/* Hero на внутренних страницах — тот же градиент, что хедер и главная */
.hero-local {
  background: var(--brand-gradient) !important;
  box-shadow: var(--shadow-soft);
  border: none !important;
  border-radius: var(--radius-lg) !important;
  color: #fff;
}
.page-wrap .hero-local h1 {
  color: #fff !important;
  font-size: clamp(26px, 5vw, 42px) !important;
  line-height: 1.12 !important;
  font-weight: 400 !important;
}
.page-wrap .hero-local h1 span {
  color: var(--brand-accent) !important;
}
.page-wrap .hero-local p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(16px, 3.5vw, 20px) !important;
  line-height: 1.45 !important;
  max-width: 42em;
}
/* Буллеты в hero внутренних страниц (без иконок с главной) */
.hero-local .hero-bullets {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-local .hero-bullets li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(15px, 3.2vw, 17px);
  line-height: 1.4;
}

.hero-local .hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent, #fff681);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.advantage-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-soft);
}

/* Floating header — единый фирменный градиент */
body:not(.page-home) .zap-header,
.zap-header.site-header,
header.zap-header {
  background: var(--brand-gradient) !important;
}

/* Floating contacts — don't overlap content */
.contact-float {
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: max(16px, env(safe-area-inset-right, 16px));
  align-items: center;
}
.contact-main {
  width: 64px;
  height: 64px;
  font-size: 24px;
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.35);
}
.contact-options {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  align-items: center;
}
.contact-options.show {
  transform: translateX(-50%) translateY(-6px);
}
.contact-options a {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.contact-options a i {
  width: 100%;
  height: 100%;
}
.btn-up {
  bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px)));
  z-index: 998;
}

/* Popup — snappier */
.popup {
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form polish */
.forma-field input:focus-visible,
.forma-field textarea:focus-visible {
  border-color: var(--color-primary, #4993ba);
  background: #fff;
}
.forma button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.forma button:focus-visible {
  outline: 3px solid var(--brand-navy);
  outline-offset: 2px;
}

/* Section rhythm */
.partners-section,
.reviews-section,
.process,
.pricing,
.contact,
.forma,
.faq:not(.page-wrap .faq) {
  margin-top: var(--space-section);
}

/* Uslugi block heading — заголовок и подзаголовок столбиком */
.uslugi-header h1,
.uslugi-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  margin: 0;
  color: #303030;
  font-weight: 700;
  max-width: 100%;
}
.uslugi-header p {
  margin: 0;
  max-width: 720px;
  line-height: 1.45;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #3e83b3;
}

/* Privacy with inner header */
.zap-header + .privacy {
  margin-top: 12px !important;
  padding-top: 0;
}
@media screen and (max-width: 850px) {
  .zap-header + .privacy {
    margin-top: 12px !important;
  }
}

/* Hero CTA — no font-size jump on hover */
.hero-container-content a:hover {
  font-size: 20px;
  transform: translateY(-1px);
}

/* Services page — align with site tokens */
.hero-serv {
  box-shadow: var(--shadow-soft);
}
.services1 {
  padding-bottom: var(--space-section);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logos-track {
    animation: none;
  }
}

@media screen and (max-width: 768px) {
  .contact-main {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  .contact-options {
    bottom: calc(100% + 10px);
  }
  .contact-options a {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}

/* Footer: контакты-кнопки и навигация справа */
.footer-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-contact-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}
.footer-top-right .footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: clamp(14px, 1.6vw, 18px) !important;
  font-weight: 300;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
}
.footer-top-right .footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 246, 129, 0.75);
  color: #fff681;
  text-decoration: none !important;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #fff681;
}
@media (max-width: 768px) {
  .footer-top-right {
    align-items: flex-start !important;
    text-align: left !important;
    justify-self: start !important;
    width: 100%;
  }
  .footer-contact-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }
  .footer-top-right .footer-contact-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: clamp(17px, 4.5vw, 22px) !important;
    padding: 12px 18px;
    min-height: 48px;
    word-break: break-word;
  }
  .footer-nav {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
    max-width: none;
    gap: 2px;
  }
  .footer-nav a {
    min-height: 40px;
    padding: 2px 0;
    text-align: left;
  }
}

@media screen and (max-width: 580px) {
  .hero-container-content-cards {
    width: 100%;
    max-width: 100%;
  }
  .hero-container-content-cards-item p {
    white-space: normal;
  }
}

/* ========== Site grid: хедер, hero и секции в одной ширине ========== */
body:not(.page-home) .zap-header,
.zap-header.site-header,
header.zap-header {
  width: var(--site-width) !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--site-header-pad-y) var(--site-header-pad-x) !important;
  top: var(--site-header-top) !important;
  min-height: calc(var(--site-header-bar-min) + var(--site-header-pad-y) * 2) !important;
  box-sizing: border-box !important;
}

body:not(.page-home) {
  padding-top: var(--site-content-offset) !important;
}

.page-home .zap-header.site-header,
.page-home .zap-header.site-header.is-visible {
  width: var(--site-width) !important;
  max-width: none !important;
}

/* Главный hero — гибкая высота, отдельная вёрстка на мобильных */
.page-home .hero {
  width: calc(100% - 80px) !important;
  max-width: none !important;
  margin: 40px auto 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 48px;
  border-radius: 40px;
  box-sizing: border-box;
  overflow: visible;
}

.page-home .hero-container {
  height: auto !important;
}

.page-home .hero-container-content {
  height: auto !important;
  min-height: 0;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

.page-home .hero-container-content h1 {
  max-width: min(720px, 62%);
  font-size: clamp(34px, 2.6vw, 42px);
  line-height: 1.18;
}

.page-home .hero-container-content p {
  max-width: min(640px, 58%);
  margin-top: 18px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.45;
}

.page-home .hero-container-content a {
  margin-top: 28px;
}

.page-home .hero-container-content-cards {
  margin-top: 40px !important;
}

@media screen and (min-width: 851px) {
  /* ПК: как в оригинале (справа), −25%, картинка к нижнему краю блока */
  .page-home .hero-container-content h1::after {
    width: 473px;
    height: 338px;
    right: 0;
    left: auto;
    margin-right: -100px;
    bottom: -40px;
    top: auto;
    transform: none;
    background-position: center bottom;
    background-size: contain;
  }
}

@media screen and (min-width: 993px) {
  .page-home .hero {
    min-height: 720px;
  }
}

@media screen and (max-width: 1282px) {
  .page-home .hero {
    height: auto !important;
    min-height: 0 !important;
  }

  .page-home .hero-container-content h1 {
    max-width: 88%;
  }

  .page-home .hero-container-content p {
    max-width: 85%;
  }
}

/* Планшет и телефон: сброс фикс. высот из theme.css (700–900px) */
@media screen and (max-width: 1070px) {
  .page-home .hero {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media screen and (max-width: 850px) {
  .page-home .hero {
    width: calc(100% - 40px) !important;
    margin-top: 12px !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 8px;
    overflow: hidden;
  }

  .page-home .hero-container {
    width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .page-home .hero-container-header {
    height: 86px !important;
    min-height: 0;
    padding: 0;
  }

  .page-home .hero-container-header img {
    width: 130px;
  }

  .page-home .hero-container-content {
    margin-top: 10px !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero-container-content-cards {
    display: none !important;
  }

  .page-home .hero-container-content h1::after {
    display: none !important;
  }

  /* Мастер под кнопкой: по центру, к нижнему краю hero */
  .page-home .hero-container-content::after {
    content: "";
    order: 10;
    display: block;
    width: 100%;
    height: 236px;
    margin: 18px 0 -16px;
    background: url(../media/hero-man.webp) no-repeat center bottom;
    background-size: contain;
    pointer-events: none;
    flex-shrink: 0;
  }

  .page-home .hero-container-content h1 {
    position: static;
    max-width: 100% !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  .page-home .hero-container-content p {
    max-width: 100% !important;
    margin-top: 10px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  .page-home .hero-container-content a {
    order: 5;
    align-self: flex-start;
    margin-top: 16px !important;
    margin-bottom: 4px !important;
    padding: 14px 32px !important;
    font-size: 17px !important;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media screen and (max-width: 580px) {
  .page-home .hero {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 16px;
  }

  .page-home .hero-container-content::after {
    height: 206px;
    margin-top: 14px;
  }

  .page-home .hero-container-content h1 {
    font-size: 27px !important;
    line-height: 1.16 !important;
  }

  .page-home .hero-container-content p {
    font-size: 15.5px !important;
    line-height: 1.4 !important;
  }

  .page-home .hero-container-content a {
    padding: 13px 28px !important;
    min-height: 46px;
  }
}

@media screen and (max-width: 530px) {
  .page-home .hero {
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 14px;
  }

  .page-home .hero-container-content h1 {
    font-size: 26px !important;
  }

  .page-home .hero-container-content p {
    font-size: 15px !important;
  }

  .page-home .hero-container-content::after {
    height: 186px;
    margin-top: 12px;
    margin-bottom: -16px;
  }
}

@media screen and (max-width: 430px) {
  .page-home .hero-container-content h1 {
    font-size: 24px !important;
  }

  .page-home .hero-container-content::after {
    height: 164px;
    margin-top: 10px;
  }
}

.services,
.pricing,
.uslugi,
.process,
.us,
.proj,
.info,
.info2,
.partners-section,
.reviews-section,
.page-wrap,
.zap-content,
.hero-serv,
.hero-prices,
.hero-contacts,
.pricing-header,
.services1,
.faq,
.uslugi-header,
.uslugi-blocks,
.privacy.wrap,
.wrap {
  width: var(--site-width) !important;
  max-width: var(--site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.zap-header + .page-wrap,
.zap-header + .zap-content,
.zap-header + .hero-serv,
.zap-header + .hero-prices,
.zap-header + .hero-contacts,
.zap-header + .privacy {
  margin-top: var(--site-header-gap) !important;
}

.hero-serv,
.hero-prices,
body:not(.page-home) > .zap-content {
  margin-top: var(--site-header-gap) !important;
}

.page-wrap {
  margin: var(--site-header-gap) auto var(--site-section-gap) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:not(.page-home) .page-wrap,
body:not(.page-home) .zap-content {
  margin-top: var(--site-header-gap) !important;
  margin-bottom: var(--site-section-gap) !important;
}

/* Hero внутренних страниц — padding как в theme.css */
.page-wrap .hero-local,
.hero-local {
  padding: 32px 28px !important;
  border-radius: 32px !important;
}

.hero-serv {
  padding: 52px 32px !important;
  border-radius: 28px !important;
  box-shadow: var(--shadow-soft);
}

.hero-prices {
  padding: clamp(40px, 6vw, 64px) 28px !important;
  border-radius: 32px !important;
  box-shadow: var(--shadow-soft);
}

/* Страница контактов — hero на ~30% ниже */
.hero-contacts {
  margin-top: var(--site-header-gap) !important;
  max-height: min(392px, 56vh) !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: stretch;
}

.hero-contacts-content {
  padding: clamp(20px, 2.8vw, 28px) !important;
  gap: 14px !important;
}

.hero-contacts-img {
  min-height: 0 !important;
  max-height: min(392px, 56vh);
}

.hero-contacts-img img {
  max-height: min(392px, 56vh) !important;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
}

.prices1 {
  box-sizing: border-box;
  padding-left: var(--site-gutter) !important;
  padding-right: var(--site-gutter) !important;
}

.prices1 .price-grid {
  width: 100% !important;
  max-width: var(--site-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.services1 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Секция контактов на главной и forma — как в theme.css */
.contact {
  width: 80% !important;
  max-width: none !important;
  margin-top: 52px !important;
  height: auto !important;
  min-height: 0;
  padding-bottom: 34px !important;
  box-sizing: border-box;
}

.contact iframe {
  display: block;
  margin-bottom: 8px;
}

.contact-header {
  width: 80% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 34px !important;
  margin-bottom: 22px !important;
  box-sizing: border-box;
}

.contact-blocks {
  width: 80% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.forma {
  width: 50% !important;
  max-width: none !important;
  margin: 28px auto 24px !important;
  padding: 22px !important;
  box-sizing: border-box;
}

/* Контакты на /services — в сетку, с внутренними отступами */
.services1 .contact {
  width: var(--site-width) !important;
  max-width: var(--site-width) !important;
}

.services1 .contact-header,
.services1 .contact-blocks {
  width: calc(100% - 64px) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.services1 .contact-header {
  padding-top: 50px !important;
}

@media (max-width: 850px) {
  body:not(.page-home) .zap-header,
  .zap-header.site-header,
  header.zap-header,
  .page-home .zap-header.site-header {
    width: var(--site-width) !important;
    padding: var(--site-header-pad-y) var(--site-header-pad-x) !important;
  }

  body:not(.page-home) {
    padding-top: var(--site-content-offset) !important;
  }

  .hero-contacts {
    width: var(--site-width) !important;
    max-width: var(--site-width) !important;
  }

  .page-home .hero {
    width: calc(100% - 40px) !important;
    margin-top: 20px !important;
    height: auto !important;
  }

  .contact {
    width: calc(100% - 40px) !important;
    margin-top: 34px !important;
    min-height: 0 !important;
    padding-bottom: 24px !important;
  }

  .contact-header,
  .contact-blocks {
    width: 90% !important;
  }

  .contact-header {
    padding-top: 24px !important;
    margin-bottom: 16px !important;
  }

  .forma {
    width: min(620px, calc(100% - 40px)) !important;
    margin-top: 18px !important;
    padding: 20px !important;
  }
}

@media (max-width: 530px) {
  .page-home .hero {
    width: calc(100% - 20px) !important;
  }

  .contact {
    width: calc(100% - 20px) !important;
    margin-top: 24px !important;
    padding-bottom: 18px !important;
  }

  .forma {
    width: calc(100% - 20px) !important;
    padding: 16px !important;
    margin: 14px auto 16px !important;
  }

  .contact-header {
    padding-top: 18px !important;
    margin-bottom: 12px !important;
  }

  .contact iframe {
    height: 320px;
  }
}

@media screen and (max-width: 1035px) {
  .contact {
    min-height: 0 !important;
  }
}

/* Бегущая строка брендов — бесшовный цикл без рывка */
.partners-section {
  overflow-x: clip;
}

.partners .logos {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  animation: none;
}

.partners .logos-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logos-marquee 36s linear infinite;
}

.partners .logos-slide {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(28px, 3.5vw, 48px);
  padding-right: clamp(28px, 3.5vw, 48px);
  padding-left: 0;
}

.partners .logos-slide__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 14vw, 180px);
  height: clamp(52px, 7vw, 72px);
}

.partners .logos-slide__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

@keyframes logos-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media screen and (max-width: 768px) {
  .partners .logos-slide__logo {
    width: clamp(100px, 26vw, 140px);
    height: clamp(44px, 11vw, 56px);
  }

  .partners .logos-track {
    animation-duration: 28s;
  }
}

@media screen and (max-width: 530px) {
  .partners .logos-slide {
    gap: 20px;
    padding-right: 20px;
  }

  .partners .logos-slide__logo {
    width: clamp(88px, 24vw, 120px);
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners .logos-track {
    animation: none;
  }

  .partners {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .partners .logos-slide[aria-hidden="true"] {
    display: none;
  }
}

/* 1024: предотвращаем коллизии контента с иллюстрацией в hero */
@media screen and (min-width: 851px) and (max-width: 1100px) {
  .page-home .hero {
    min-height: 660px;
  }

  .page-home .hero-container-content {
    margin-top: 36px;
  }

  .page-home .hero-container-content h1 {
    max-width: 58%;
    font-size: clamp(30px, 3.2vw, 36px);
  }

  .page-home .hero-container-content p {
    max-width: 56%;
    font-size: clamp(15px, 1.55vw, 17px);
  }

  .page-home .hero-container-content h1::after {
    width: 430px;
    height: 305px;
    margin-right: -64px;
    bottom: -28px;
  }
}

/* Более удобные hit-area без визуального редизайна */
.zap-header .nav-link,
.hero-container-header > ul > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}

.hero-container-header-phone,
.hero-container-content a,
.hero-contacts-cta,
.pricing-header-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 580px) {
  .hero-container-header-phone {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media screen and (max-width: 530px) {
  .hero-container-header-phone {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.hero-container-header-burger {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 2px;
  box-sizing: border-box;
}

#popup-cl a,
.popup-phone,
.popup-icon {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Галерея чистки — автолистающийся слайдер */
.clean-gallery__lead {
  margin: 0 0 20px;
  color: #3e83b3;
  line-height: 1.45;
  max-width: 720px;
}
.clean-slider {
  overflow: hidden;
  margin: 0 -8px;
  padding: 4px 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clean-slider__track {
  display: flex;
  width: max-content;
  animation: clean-slider-scroll 42s linear infinite;
  will-change: transform;
}
.clean-slider__group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  padding: 0 9px;
}
.clean-slider__item {
  flex: 0 0 clamp(260px, 72vw, 320px);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e8f4fa;
  box-shadow: 0 8px 24px rgba(13, 34, 88, 0.1);
}
.clean-slider__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
@keyframes clean-slider-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clean-slider {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .clean-slider__track {
    animation: none;
    padding-bottom: 8px;
  }
  .clean-slider__group[aria-hidden="true"] {
    display: none;
  }
  .clean-slider__item {
    scroll-snap-align: start;
  }
}
@media (max-width: 530px) {
  .clean-slider__group {
    gap: 12px;
  }
  .clean-slider__item {
    flex-basis: min(280px, 85vw);
  }
}

/* Контентные фото на лендингах */
.content-media {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4fa;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.content-media--card {
  aspect-ratio: 16 / 10;
  max-height: 220px;
  margin-bottom: 16px;
}
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.service-card > .content-media {
  margin-bottom: 0;
  max-height: 200px;
  min-height: 200px;
  aspect-ratio: auto;
  border-radius: 8px;
}
.object-card > .content-media {
  margin-bottom: 16px;
  max-height: 200px;
  min-height: 180px;
}

/* ── UI fixes batch (стрелки, сетка, формы) ── */
.pricing-header-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 24px !important;
}
.pricing-header-btn img {
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  align-self: center;
}

.forma-field textarea {
  padding: 16px 20px !important;
  line-height: 1.5 !important;
}

/* hero-prices — см. блок Site grid в конце файла */

@media screen and (max-width: 800px) {
  .hero-contacts {
    max-height: none !important;
    min-height: 364px !important; /* было 520px */
  }
}

@media screen and (max-width: 770px) {
  .hero-contacts {
    min-height: min(350px, calc(100dvh - 200px)) !important; /* было 500px */
  }

  .hero-contacts-content {
    padding: 22px 18px 26px !important;
    gap: 17px !important;
  }
}

@media screen and (max-width: 530px) {
  .hero-contacts {
    min-height: min(308px, calc(100dvh - 220px)) !important; /* было 440px */
  }
}

@media screen and (max-width: 900px) {
  .hero-contacts {
    flex-direction: column;
  }
  .hero-contacts-content,
  .hero-contacts-img {
    width: 100%;
  }
  .hero-contacts-img {
    min-height: 154px !important; /* было 220px */
    max-height: 210px;
  }
  .hero-contacts-img img {
    max-height: 210px !important;
    border-radius: 0 0 32px 32px;
  }
  .footer-top-right .footer-contact-btn {
    white-space: normal;
    text-align: center;
  }
}

.forma-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 16px;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.45;
  color: #303030;
  cursor: pointer;
}
.forma-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}
.forma-consent input:focus-visible {
  outline: 2px solid #4993BA;
  outline-offset: 2px;
}
.forma-consent a {
  color: #4993BA;
  text-decoration: underline;
}
.contact .forma-consent {
  max-width: 520px;
}
.zap-content-header h1 span {
  color: #4993BA;
}
.zap-content-header > span {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.45;
  color: #303030;
  max-width: 640px;
}
.zap-content-header .zap-order-cta {
  margin-top: 4px;
}

/* Отзывы — слайдер как на kosikosa.by: фикс. пропорции + лайтбокс */
.reviews-section.reviews {
  margin-top: var(--space-section, 48px);
  padding: 36px 24px 40px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 28px rgba(13, 34, 88, 0.08);
  box-sizing: border-box;
}

.reviews-section .reviews-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.reviews-section .reviews-header h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  color: #0d2258;
}

.reviews-section .reviews-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.reviews-section .reviews__wrapper {
  position: relative;
  max-width: 100%;
}

.reviews-section .reviews__swiper.swiper {
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.reviews-section .reviews .swiper-wrapper {
  height: 230px;
}

.reviews-section .reviews .swiper-slide {
  height: 230px !important;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease;
  background: transparent !important;
}

.reviews-section .reviews .swiper-slide:hover {
  transform: translateY(-4px);
}

.reviews-section .review-card__img {
  display: block !important;
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  object-position: top center !important;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 34, 88, 0.12);
}

.reviews-section .reviews__pagination {
  text-align: center;
  margin-top: 8px;
  line-height: 1;
}

.reviews-section .reviews__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #4993ba;
  opacity: 0.3;
  margin: 0 6px;
}

.reviews-section .reviews__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

.reviews-section .reviews__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(73, 147, 186, 0.35);
  background: #fff;
  color: #1859a4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 34, 88, 0.12);
  transition: background 0.2s, color 0.2s;
}

.reviews-section .reviews__nav-btn:hover {
  background: #4993ba;
  color: #fff;
}

.reviews-section .reviews__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-section .reviews__nav-btn--prev {
  left: 8px;
}

.reviews-section .reviews__nav-btn--next {
  right: 8px;
}

/* Лайтбокс отзывов */
.review-lightbox.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-lightbox.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.review-lightbox .lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.review-lightbox .lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-lightbox .lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.review-lightbox .lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 520px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}

body.review-lightbox-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .reviews-section.reviews {
    padding: 28px 16px 32px;
    border-radius: 24px;
  }

  .reviews-section .reviews__nav-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .reviews-section .reviews__nav-btn--prev {
    left: 4px;
  }

  .reviews-section .reviews__nav-btn--next {
    right: 4px;
  }
}
