/* ============================================================================
 * AQUATEC J6 — Inner page "clients"
 * Auto-generated by aquatec-hero-generator.sh
 * Hero Canon: v1.2 (Session 24)
 * Gradient: #00aeee (dark, left) -> #1e88e5 (light, right)
 * ============================================================================ */

/* ---- [01] BASE ---- */

/* ---- [02] HIDE legacy artifacts ---- */
body:has(#corner) .mod-breadcrumbs__wrapper { display: none !important; }
body.aquatec-site #youtube_reviews { display: none !important; }

/* ============================================================================
   [03] HERO #corner V2 (canon v1.2)
   ============================================================================ */

body:has(#corner) .aeo-summary { display: none; }
body:has(#corner) .inner-banner { display: none; }

#corner {
  --corner-skew: clamp(45px, 6.7vw, 100px);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--aq-header-h, 80px));
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%2300aeee'/><stop offset='1' stop-color='%231e88e5'/></linearGradient></defs><polygon points='0,0 100,0 100,85 0,100' fill='url(%23g)'/></svg>") no-repeat center / 100% 100%;
  overflow: visible;
  isolation: isolate;
}

#corner > div {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  column-gap: 56px;
  align-items: center;
  max-width: var(--aq-container, 1366px);
  margin: 0 auto;
  padding: calc(var(--aq-header-h, 80px) - 48px) 24px 77px;
  min-height: clamp(420px, 52vh, 580px);
}

#corner img.hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 500px;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.28));
  animation: hero-image-float 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-image-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  #corner img.hero__image { animation: none !important; }
}

#h1_anim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

#h1_anim h1 {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.0vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #fff;
  text-wrap: pretty;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#h1_anim p {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
}

#h1_anim .get_in_touch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--aq-orange, #f58025);
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 10px 24px -8px rgba(196, 87, 8, 0.45),
    0 4px 10px -2px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#h1_anim .get_in_touch::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.25s ease;
}

#h1_anim .get_in_touch:hover {
  background: #ff8c2e;
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px -8px rgba(196, 87, 8, 0.55),
    0 6px 14px -2px rgba(0, 0, 0, 0.22);
}

#h1_anim .get_in_touch:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1199px) {
  #corner { --corner-skew: clamp(34px, 5.3vw, 67px); }
  #corner > div {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding: calc(var(--aq-header-h, 80px) + 0px) 20px 72px;
    min-height: auto;
    text-align: center;
  }
  #corner img.hero__image {
    max-width: 425px;
    margin: 0 auto;
  }
  #h1_anim { align-items: center; }
  #h1_anim p { max-width: 100%; text-align: center; }
  #h1_anim p br.desktop { display: none; }
}

@media (max-width: 602px) {
  #corner { --corner-skew: clamp(25px, 5vw, 46px); }
  #h1_anim h1 { font-size: clamp(24px, 7.5vw, 38px); }
  #corner img.hero__image {
    max-width: 300px;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25));
    animation-duration: 5s;
  }
  @keyframes hero-image-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
}

/* ============================================================================
   [04] HERO TOP FORCE — header transparent, body gradient match
   ============================================================================ */

body.aquatec-site.inner:has(#corner) #site-header:not(.scrolled),
body.aquatec-site.inner:has(#corner) #site-header:not(.scrolled) .site-header__inner {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.aquatec-site.inner:has(#corner) {
  background: linear-gradient(to right, #00aeee 0%, #1e88e5 100%) !important;
  background-color: #00aeee !important;
}

body.aquatec-site.inner:has(#corner) #main,
body.aquatec-site.inner:has(#corner) main.site-main,
body.aquatec-site.inner:has(#corner) .com-content-article,
body.aquatec-site.inner:has(#corner) .com-content-article > .item-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.aquatec-site.inner:has(#corner) #corner {
  margin-top: calc(-1 * var(--aq-header-h, 80px)) !important;
}

/* ============================================================================
   [09] HERO SHADOW (skew drop-shadow + overflow:visible parents)
   ============================================================================ */

:root {
  --aq-skew-shadow: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.32));
  --aq-skew-shadow-mobile: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

#corner { filter: var(--aq-skew-shadow); }

@media (max-width: 768px) {
  #corner { filter: var(--aq-skew-shadow-mobile); }
}

html, body { overflow-x: clip; }

body:has(#corner) main,
body:has(#corner) .com-content-article,
body:has(#corner) .com-content-article__body,
body:has(#corner) .item-page,
body:has(#corner) #center {
  overflow: visible !important;
}


/* ============================================================================
 * --- PAGE SECTIONS START HERE ---
 * /clients page (sess 39, 21.05.2026) — Hero canon ends above this marker
 * Sections: #google_reviews, #clients_logos, #bridge_cta + dark + reduced motion
 * ============================================================================ */

:root {
  --aqcl-star: #fbbf24;
  --aqcl-google-blue: #1a73e8;
}

.aqcl-section { padding: clamp(60px, 8vw, 100px) 0; }
.aqcl-section__title {
  font-family: var(--font-display, 'Bebas', sans-serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--aq-text);
  text-shadow: 0 4px 4px rgba(0,0,0,0.15);
  text-align: center;
  margin: 0 auto clamp(32px, 4vw, 56px);
  max-width: var(--aq-container, 1366px);
  padding: 0 20px;
}

/* [02] #google_reviews */
.aqcl-reviews__container {
  max-width: var(--aq-container, 1366px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.aqcl-reviews__stat {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; background: var(--aq-card-bg); border-radius: 20px;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 3vw, 40px);
  margin: 0 auto clamp(28px, 4vw, 48px);
  box-shadow: var(--aq-skew-shadow, 0 14px 12px rgba(0,0,0,0.32));
  border: 1px solid rgba(0,0,0,0.06);
}
.aqcl-reviews__stat-left { display: flex; align-items: center; gap: 20px; }
.aqcl-reviews__stat-rating {
  font-family: var(--font-display, 'Bebas', sans-serif);
  font-size: clamp(48px, 6vw, 64px); line-height: 1;
  color: var(--aq-text); letter-spacing: 0.01em;
}
.aqcl-reviews__stat-meta { display: flex; flex-direction: column; gap: 4px; }
.aqcl-reviews__stat-stars { display: flex; gap: 2px; }
.aqcl-reviews__stat-stars svg { width: 22px; height: 22px; fill: var(--aqcl-star); }
.aqcl-reviews__stat-stars svg.is-empty { fill: rgba(0,0,0,0.15); }
.aqcl-reviews__stat-count {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; font-weight: 600; color: var(--aq-text);
}
.aqcl-reviews__stat-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px; color: var(--aq-text-muted);
}
.aqcl-reviews__stat-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: var(--aq-blue, #00aeee);
  color: #fff !important; border-radius: 999px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 174, 238, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.aqcl-reviews__stat-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 174, 238, 0.45);
}
.aqcl-reviews__stat-cta svg { width: 18px; height: 18px; }

.aqcl-reviews__filters {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.aqcl-reviews__filter {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px; font-weight: 500; color: var(--aq-text-muted);
  background: transparent; border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 999px; padding: 10px 22px; cursor: pointer;
  transition: all 0.25s ease;
}
.aqcl-reviews__filter:hover {
  border-color: var(--aq-blue, #00aeee); color: var(--aq-blue, #00aeee);
}
.aqcl-reviews__filter.is-active {
  background: var(--aq-blue, #00aeee); border-color: var(--aq-blue, #00aeee); color: #fff;
}

.aqcl-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.aqcl-review {
  background: var(--aq-card-bg); border-radius: 18px; padding: 24px 26px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.12), 0 2px 6px -2px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  opacity: 0; transform: translateY(20px);
}
.aqcl-review.is-revealed { opacity: 1; transform: translateY(0); }
.aqcl-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.18), 0 4px 12px -4px rgba(0,0,0,0.12);
}
.aqcl-review__head { display: flex; gap: 14px; align-items: center; }
.aqcl-review__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background-color: #cbd5e1; flex-shrink: 0; overflow: hidden;
}
.aqcl-review__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aqcl-review__author { flex: 1; min-width: 0; }
.aqcl-review__author-name {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; font-weight: 700; color: var(--aq-text);
  display: flex; align-items: center; gap: 6px; margin: 0 0 2px;
}
.aqcl-review__author-name svg {
  width: 14px; height: 14px; flex-shrink: 0; fill: #1a73e8;
}
.aqcl-review__meta {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px; color: var(--aq-text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.aqcl-review__google {
  color: var(--aqcl-google-blue); font-weight: 500; text-decoration: none;
}
.aqcl-review__google:hover { text-decoration: underline; }
.aqcl-review__stars { display: flex; gap: 1px; }
.aqcl-review__stars svg { width: 14px; height: 14px; fill: var(--aqcl-star); }
.aqcl-review__stars svg.is-empty { fill: rgba(0,0,0,0.15); }
.aqcl-review__text {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.6;
  color: var(--aq-text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden;
}
.aqcl-review__city {
  display: inline-block;
  background: rgba(0, 174, 238, 0.10);
  color: var(--aq-blue, #00aeee);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}

.aqcl-review--skeleton { opacity: 1; transform: none; pointer-events: none; }
.aqcl-review--skeleton .aqcl-review__avatar,
.aqcl-review--skeleton .aqcl-skel-line {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: aqcl-shimmer 1.5s infinite;
}
.aqcl-skel-line { height: 12px; border-radius: 6px; }
@keyframes aqcl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.aqcl-reviews__error {
  text-align: center; padding: 32px; background: var(--aq-card-bg);
  border-radius: 16px; border: 1px dashed rgba(0,0,0,0.10);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px; color: var(--aq-text-muted);
}
.aqcl-reviews__error a { color: var(--aq-blue, #00aeee); text-decoration: none; }

/* [03] #clients_logos */
#clients_logos { padding: clamp(60px, 8vw, 100px) 0; background: rgba(0,0,0,0.02); }
.aqcl-logos__container {
  max-width: var(--aq-container, 1366px);
  margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px);
}
.aqcl-logos__intro {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6;
  color: var(--aq-text-muted); text-align: center;
  max-width: 820px; margin: 0 auto clamp(32px, 4vw, 48px);
}
.aqcl-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}
.aqcl-logos__item {
  aspect-ratio: 16 / 10;
  background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.10), 0 2px 6px -2px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  opacity: 0; transform: translateY(20px) scale(0.96);
  transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}
.aqcl-logos__item.is-revealed { opacity: 1; transform: translateY(0) scale(1); }
.aqcl-logos__item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(0,0,0,0.18), 0 6px 14px -4px rgba(0,0,0,0.10);
}
.aqcl-logos__item img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  filter: saturate(0.95); transition: filter 0.3s ease;
}
.aqcl-logos__item:hover img { filter: saturate(1.1); }

/* [04] #bridge_cta — orange gradient (clients-page-local copy of AKA canon) */
#bridge_cta.aq-bridge {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, #f58025 0%, #e96a17 100%);
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center; overflow: hidden;
}
#bridge_cta.aq-bridge::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}
.aq-bridge__inner {
  position: relative; max-width: 800px; margin: 0 auto; padding: 0 24px;
}
.aq-bridge__title {
  font-family: var(--font-display, 'Bebas', sans-serif);
  font-weight: 500; font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; margin: 0 0 24px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.aq-bridge__cta {
  display: inline-block; background: #fff;
  color: var(--aq-orange, #f58025) !important;
  padding: 16px 36px; border-radius: 999px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.aq-bridge__cta:hover {
  transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.26);
}

/* [N] DARK THEME */
html[data-theme="dark"] body.aquatec-site .aqcl-reviews__stat,
html[data-theme="dark"] body.aquatec-site .aqcl-review,
html[data-theme="dark"] body.aquatec-site .aqcl-reviews__error {
  background: var(--aq-card-bg) !important; color: var(--aq-text) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}
html[data-theme="dark"] body.aquatec-site .aqcl-reviews__filter {
  border-color: rgba(255,255,255,0.15);
}
html[data-theme="dark"] body.aquatec-site .aqcl-reviews__filter.is-active {
  background: var(--aq-blue, #2cc1f5); border-color: var(--aq-blue, #2cc1f5); color: #fff;
}
html[data-theme="dark"] body.aquatec-site #clients_logos {
  background: rgba(255, 255, 255, 0.02);
}
html[data-theme="dark"] body.aquatec-site .aqcl-logos__item {
  /* intentional white — logo containers */
  background: #fff !important;
}
html[data-theme="dark"] body.aquatec-site .aqcl-review__stars svg.is-empty,
html[data-theme="dark"] body.aquatec-site .aqcl-reviews__stat-stars svg.is-empty {
  fill: rgba(255,255,255,0.15);
}

/* [R] reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aqcl-review, .aqcl-logos__item {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .aqcl-review--skeleton .aqcl-review__avatar,
  .aqcl-review--skeleton .aqcl-skel-line { animation: none !important; }
}

/* [M] Mobile */
@media (max-width: 768px) {
  .aqcl-reviews__stat { flex-direction: column; align-items: stretch; text-align: center; }
  .aqcl-reviews__stat-left { flex-direction: column; align-items: center; text-align: center; }
  .aqcl-reviews__stat-cta { align-self: center; }
  .aqcl-reviews__grid { grid-template-columns: 1fr; }
  .aqcl-logos__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   [05] CUSTOM OVERRIDES & DARK THEME FIXES FOR HERO AND BLOG CONTAINER
   ============================================================================ */

/* 1. Принудительный белый цвет текста в Hero в обоих режимах */
body.aquatec-site:has(#corner) #corner #h1_anim h1,
.is-blog .com-content-article #h1_anim h1 {
  color: #fff !important;
}
body.aquatec-site:has(#corner) #corner #h1_anim p,
.is-blog .com-content-article #h1_anim p {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* 1.1 Принудительный белый цвет текста и стрелочки для оранжевой кнопки в Hero */
body.aquatec-site:has(#corner) #corner #h1_anim a.get_in_touch,
.is-blog .com-content-article #corner #h1_anim a.get_in_touch,
#corner #h1_anim a.get_in_touch {
  color: #fff !important;
}

/* 1.2 Принудительный белый цвет текста для кнопки «Оставить отзыв» */
body.aquatec-site .aqcl-reviews__stat a.aqcl-reviews__stat-cta,
.is-blog .com-content-article a.aqcl-reviews__stat-cta,
a.aqcl-reviews__stat-cta {
  color: #fff !important;
}

/* 2. Удаление прямоугольной рамки и тени вокруг PNG в Hero */
body.aquatec-site:has(#corner) #corner img.hero__image,
.is-blog .com-content-article #corner img.hero__image {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 3. Светлый режим — благородный светло-серый фон страницы (как на «О компании») */
.is-blog .com-content-article.item-page,
body.aquatec-site:has(#corner) .com-content-article.item-page {
  background-color: #f7f9fc !important;
}

/* 4. Темный режим — переход на темно-серый фон и светлый текст */
html[data-theme="dark"] .is-blog .com-content-article.item-page,
html[data-theme="dark"] body.aquatec-site:has(#corner) .com-content-article.item-page {
  background-color: #262e3a !important;
  color: var(--aq-text, #e8edf3) !important;
}

/* 5. Ограничение градиента тела страницы зоной шапки для сохранения скоса */
html body.aquatec-site.inner:has(#corner) {
  background-image: linear-gradient(to right, #00aeee 0%, #1e88e5 100%) !important;
  background-color: #f7f9fc !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
  background-size: 100% 120px !important;
  background-position: 0 0 !important;
}
html[data-theme="dark"] body.aquatec-site.inner:has(#corner) {
  background-color: #262e3a !important;
}

/* 6. Устранение белых боковых полос (рамки) за счет прозрачности главного контейнера */
body.aquatec-site:has(#corner) main#main.site-main {
  background-color: transparent !important;
}
