/* =========================================================
   blocks-full-section.min.css — секции на всю ширину экрана
   с анимированными SVG-фигурами и frosted-glass.
   Варианты контента: hero, quote, cta, features.
   Темы: light, dark.
   ========================================================= */

/* =========================================================
   КОНТЕЙНЕР — выход за пределы .wrapper / .percent
   ========================================================= */
.c-full {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 100px 24px;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-text);
}

/* =========================================================
   ФОНОВЫЙ СЛОЙ С ФИГУРАМИ
   ========================================================= */
.c-full__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Базовый слой заливки + шум-градиент */
.c-full__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(176, 10, 39, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(176, 10, 39, 0.08), transparent 50%);
  z-index: 0;
}

/* Тонкий шум-сетка (SVG pattern, инлайн) */
.c-full__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 .5h40M.5 0v40' stroke='%23b00a27' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  z-index: 0;
  opacity: 0.6;
}

/* =========================================================
   ФИГУРЫ (.c-full__shape)
   Общие свойства: absolute, SVG внутри, разные анимации.
   ========================================================= */
.c-full__shape {
  position: absolute;
  z-index: 1;
  color: var(--c-accent);
  will-change: transform;
}
.c-full__shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Фигура 1: большой круг --- */
.c-full__shape--circle {
  top: -80px;
  left: -120px;
  width: 420px;
  height: 420px;
  opacity: 0.08;
  animation: c-full-float-1 22s ease-in-out infinite;
}
@keyframes c-full-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(40px, 30px) rotate(15deg); }
  66%      { transform: translate(-20px, 60px) rotate(-10deg); }
}

/* --- Фигура 2: треугольник --- */
.c-full__shape--triangle {
  bottom: -100px;
  right: -80px;
  width: 360px;
  height: 360px;
  opacity: 0.06;
  animation: c-full-float-2 28s ease-in-out infinite;
}
@keyframes c-full-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-50px, -40px) rotate(20deg); }
}

/* --- Фигура 3: квадрат --- */
.c-full__shape--square {
  top: 40%;
  right: 10%;
  width: 200px;
  height: 200px;
  opacity: 0.05;
  animation: c-full-float-3 18s ease-in-out infinite;
}
@keyframes c-full-float-3 {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.1); }
}

/* --- Фигура 4: мягкое пульсирующее пятно --- */
.c-full__shape--blob {
  top: 30%;
  left: 25%;
  width: 500px;
  height: 500px;
  opacity: 0.05;
  filter: blur(2px);
  animation: c-full-pulse 12s ease-in-out infinite;
}
@keyframes c-full-pulse {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50%      { transform: scale(1.15); opacity: 0.09; }
}

/* --- Фигура 5: волна внизу --- */
.c-full__shape--wave {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  opacity: 0.08;
}

/* --- Фигура 6: точки в углу --- */
.c-full__shape--dots {
  top: 60px;
  right: 60px;
  width: 180px;
  height: 180px;
  opacity: 0.15;
}

/* =========================================================
   ВНУТРЕННИЙ КОНТЕЙНЕР
   ========================================================= */
.c-full__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* =========================================================
   FROSTED-GLASS ПОДЛОЖКА
   ========================================================= */
.c-full__glass {
  display: block;
  padding: 48px 56px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 60px -20px rgba(20, 22, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Отключаем backdrop-filter в браузерах без поддержки */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .c-full__glass {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* =========================================================
   ВАРИАНТ: HERO — большой заголовок + подзаголовок + кнопки
   ========================================================= */
.c-full--hero {
  padding: 120px 24px 100px;
  text-align: center;
}
.c-full--hero .c-full__inner {
  max-width: 900px;
}
.c-full--hero .c-full__glass {
  text-align: center;
}

.c-full__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  background: rgba(176, 10, 39, 0.08);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(176, 10, 39, 0.15);
}

.c-full__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.c-full__lead {
  margin: 0 auto 36px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text-mute);
}

.c-full__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   ВАРИАНТ: QUOTE — большая цитата
   ========================================================= */
.c-full--quote .c-full__inner {
  max-width: 900px;
}
.c-full__quote {
  position: relative;
  margin: 0;
  padding: 0 0 0 60px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  font-weight: 500;
  font-style: italic;
  color: var(--c-text);
  letter-spacing: -0.005em;
}
.c-full__quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -20px;
  font-family: Georgia, serif;
  font-size: 120px;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.25;
  font-style: normal;
}
.c-full__quote-author {
  margin: 24px 0 0 60px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.c-full__quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.c-full__quote-who { display: flex; flex-direction: column; gap: 2px; }
.c-full__quote-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  font-style: normal;
}
.c-full__quote-role {
  font-size: 13px;
  color: var(--c-text-mute);
  font-style: normal;
}

/* =========================================================
   ВАРИАНТ: CTA — призыв с кнопками
   ========================================================= */
.c-full--cta .c-full__inner {
  max-width: 860px;
}
.c-full--cta .c-full__title {
  font-size: clamp(28px, 3.4vw, 40px);
}

/* =========================================================
   ВАРИАНТ: FEATURES — сетка с иконками
   ========================================================= */
.c-full--features .c-full__inner {
  max-width: 1100px;
}
.c-full__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.c-full__feature {
  padding: 0;
}
.c-full__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  background: rgba(176, 10, 39, 0.08);
  color: var(--c-accent);
  border: 1px solid rgba(176, 10, 39, 0.15);
}
.c-full__feature-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.c-full__feature-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-text);
}
.c-full__feature-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-mute);
}

/* =========================================================
   ТЁМНАЯ ТЕМА (.c-full--dark)
   ========================================================= */
.c-full--dark {
  background: var(--c-bg-dark);
  color: #ffffff;
}
.c-full--dark .c-full__bg::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(176, 10, 39, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(176, 10, 39, 0.22), transparent 50%);
}
.c-full--dark .c-full__bg::after {
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 .5h40M.5 0v40' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
}
.c-full--dark .c-full__shape {
  color: #ffffff;
}
.c-full--dark .c-full__shape--circle  { opacity: 0.06; }
.c-full--dark .c-full__shape--triangle{ opacity: 0.05; }
.c-full--dark .c-full__shape--square  { opacity: 0.04; }
.c-full--dark .c-full__shape--blob    { opacity: 0.06; }
.c-full--dark .c-full__shape--dots    { opacity: 0.12; }

.c-full--dark .c-full__title,
.c-full--dark .c-full__quote-name,
.c-full--dark .c-full__feature-title { color: #ffffff; }
.c-full--dark .c-full__lead,
.c-full--dark .c-full__quote-role,
.c-full--dark .c-full__feature-text  { color: rgba(255, 255, 255, 0.75); }
.c-full--dark .c-full__quote         { color: #ffffff; }
.c-full--dark .c-full__eyebrow {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.c-full--dark .c-full__feature-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Тёмная стеклянная подложка */
.c-full--dark .c-full__glass {
  background: rgba(26, 28, 32, 0.55);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .c-full--dark .c-full__glass {
    background: rgba(26, 28, 32, 0.92);
  }
}

/* =========================================================
   ПАРАЛЛАКС — сдвиг фоновых фигур от JS через --scroll-y
   ========================================================= */
.c-full[data-parallax="1"] .c-full__shape--circle {
  transform: translate3d(0, calc(var(--scroll-y, 0) * -0.15px), 0);
  animation: none;
}
.c-full[data-parallax="1"] .c-full__shape--triangle {
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.12px), 0);
  animation: none;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 900px) {
  .c-full { padding: 72px 20px; }
  .c-full--hero { padding: 90px 20px 80px; }

  .c-full__glass {
    padding: 36px 32px;
  }

  .c-full__shape--circle   { width: 300px; height: 300px; top: -60px; left: -100px; }
  .c-full__shape--triangle { width: 260px; height: 260px; bottom: -80px; right: -60px; }
  .c-full__shape--square   { width: 140px; height: 140px; right: 6%; }
  .c-full__shape--blob     { width: 340px; height: 340px; }

  .c-full__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .c-full__quote {
    padding-left: 44px;
    font-size: clamp(18px, 3vw, 24px);
  }
  .c-full__quote::before { font-size: 90px; }
  .c-full__quote-author { margin-left: 44px; }
}

@media (max-width: 600px) {
  .c-full { padding: 56px 16px; }
  .c-full--hero { padding: 72px 16px 64px; }

  .c-full__glass {
    padding: 28px 22px;
  }

  .c-full__shape--circle   { width: 220px; height: 220px; top: -50px; left: -80px; }
  .c-full__shape--triangle { width: 200px; height: 200px; bottom: -60px; right: -50px; }
  .c-full__shape--square   { width: 100px; height: 100px; top: 50%; right: 4%; }
  .c-full__shape--blob     { width: 240px; height: 240px; left: 10%; }
  .c-full__shape--dots     { width: 120px; height: 120px; top: 30px; right: 20px; }

  .c-full__title { font-size: 30px; }
  .c-full__lead { font-size: 16px; margin-bottom: 28px; }

  .c-full__actions { flex-direction: column; }
  .c-full__actions .button { width: 100%; }

  .c-full__features { grid-template-columns: 1fr; }

  .c-full__quote {
    padding-left: 32px;
    font-size: 18px;
  }
  .c-full__quote::before { font-size: 68px; top: -14px; }
  .c-full__quote-author { margin-left: 32px; }
  .c-full__quote-avatar { width: 44px; height: 44px; }
}

/* =========================================================
   Уважение к prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .c-full__shape { animation: none !important; }
}

/* === FULL FEATURES MARKER FIX (v1) === */
/*
   Причина бага на страницах услуг (например /outsource, «Форматы аутсорсинга»):
   <ul class="c-full__features"> идёт сразу после <p class="c-full__lead">.
   В theme.min.css есть глобальные правила для контентных списков:

     .c-page p + ul { padding: 0 0 0 28px; }
     .c-page p + ul > li { position: relative; padding-left: 20px; }
     .c-page p + ul > li::before { ...красный квадрат 8x8... }

   Они цепляли наш грид-список и давали лишний левый отступ
   и маленькие красные квадраты рядом с SVG-иконками.

   Ниже полностью гасим ::before/::after у li внутри .c-full__features,
   убираем лишний padding-left у ul и li — иконки и текст идут от левого края.
*/

/* 1. Гасим ::before/::after у li внутри features. */
.c-full__features li::before,
.c-full__features li::after,
.c-full__features > li::before,
.c-full__features > li::after,
.c-page .c-full__features li::before,
.c-page .c-full__features li::after,
.c-page .c-full__features > li::before,
.c-page .c-full__features > li::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* 2. Убираем левый отступ, который пришёл от правила ".c-page p + ul { padding: ... }".
      Специфичность .c-page .c-full__features (0,2,0) выше, чем у .c-page p + ul (0,1,2)? Нет —
      .c-page p + ul — (0,1,2): 1 класс + 2 тега = специфичность 0,1,2.
      .c-page .c-full__features — 0,2,0. Выше по классам. Плюс !important для надёжности. */
.c-page .c-full__features,
.c-full__features,
.c-page .c-full__features > li,
.c-full__features > li {
  padding: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* 3. На всякий случай — стандартные маркеры списка (для старых браузеров). */
.c-full__features,
.c-full__features li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
}

/* 4. Гасим нативный ::marker. */
.c-full__features li::marker {
  content: "" !important;
  color: transparent !important;
  font-size: 0 !important;
}
