.lux-rubrics {
    --lux-text: #111827;
    --lux-blue: #315edc;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--lux-text);
    font-family: Arial, Helvetica, sans-serif;
  }

  .lux-rubrics,
  .lux-rubrics * {
    box-sizing: border-box;
  }

  .lux-rubrics__title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
  }

  .lux-rubrics__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .lux-rubrics__card {
    position: relative;
    display: flex;
    min-height: 174px;
    overflow: hidden;
    border-radius: 7px;
    background: #e5e7eb;
    color: var(--lux-text);
    text-decoration: none;
    isolation: isolate;
  }

  .lux-rubrics__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
  }

  .lux-rubrics__card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      90deg,
      rgba(232, 234, 237, 0.98) 0%,
      rgba(232, 234, 237, 0.9) 34%,
      rgba(232, 234, 237, 0.15) 65%,
      rgba(232, 234, 237, 0) 100%
    );
    content: "";
  }

  .lux-rubrics__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 61%;
    padding: 30px 12px 18px 26px;
  }

  .lux-rubrics__name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
  }

  .lux-rubrics__description {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.35;
  }

  .lux-rubrics__arrow {
    margin-top: auto;
    font-size: 23px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .lux-rubrics__card:hover .lux-rubrics__image {
    transform: scale(1.035);
  }

  .lux-rubrics__card:hover .lux-rubrics__arrow {
    transform: translateX(4px);
  }

  .lux-rubrics__archive {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 18px 26px;
    border-radius: 7px;
    background: #eaf0f7;
  }

  .lux-rubrics__archive-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }

  .lux-rubrics__archive-description {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
  }

  .lux-rubrics__button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid #9db7ff;
    border-radius: 5px;
    background: #f8faff;
    color: var(--lux-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .lux-rubrics__button:hover {
    border-color: var(--lux-blue);
    background: #e0e9ff;
  }

  .lux-rubrics a:focus-visible {
    outline: 3px solid var(--lux-blue);
    outline-offset: 3px;
  }

  @media (max-width: 1000px) {
    .lux-rubrics__grid {
      gap: 14px;
    }

    .lux-rubrics__card {
      min-height: 165px;
    }

    .lux-rubrics__content {
      width: 65%;
      padding: 24px 10px 16px 20px;
    }

    .lux-rubrics__name {
      font-size: 18px;
    }

    .lux-rubrics__description {
      font-size: 13px;
    }
  }

  @media (max-width: 760px) {
    .lux-rubrics__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lux-rubrics__archive {
      align-items: flex-start;
      flex-direction: column;
      gap: 16px;
      padding: 20px;
    }
  }

  @media (max-width: 480px) {
    .lux-rubrics {
      padding: 16px;
    }

    .lux-rubrics__title {
      font-size: 24px;
    }

    .lux-rubrics__grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .lux-rubrics__card {
      min-height: 174px;
    }

    .lux-rubrics__content {
      width: 60%;
      padding: 26px 12px 18px 22px;
    }

    .lux-rubrics__name {
      font-size: 20px;
    }

    .lux-rubrics__description {
      font-size: 14px;
    }

    .lux-rubrics__archive {
      margin-top: 18px;
    }

    .lux-rubrics__button {
      width: 100%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .lux-rubrics__image,
    .lux-rubrics__arrow,
    .lux-rubrics__button {
      transition: none;
    }
  }
  
   .lux-coat-articles,
  .lux-coat-articles * {
    box-sizing: border-box;
  }

  .lux-coat-articles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
  }

  .lux-coat-articles__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
  }

  .lux-coat-articles__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
  }

  .lux-coat-articles__all {
    flex-shrink: 0;
    color: #315edc;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  .lux-coat-articles__all:hover {
    text-decoration: underline;
  }

  .lux-coat-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .lux-coat-articles__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e5eb;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .lux-coat-articles__picture {
    overflow: hidden;
    aspect-ratio: 3.3 / 1;
    background: #e5e7eb;
  }

  .lux-coat-articles__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
  }

  .lux-coat-articles__body {
    position: relative;
    flex: 1;
    padding: 10px 32px 13px 13px;
  }

  .lux-coat-articles__name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }

  .lux-coat-articles__description {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.3;
  }

  .lux-coat-articles__arrow {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #315edc;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .lux-coat-articles__card:hover {
    border-color: #b6c7ef;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.07);
  }

  .lux-coat-articles__card:hover .lux-coat-articles__image {
    transform: scale(1.035);
  }

  .lux-coat-articles__card:hover .lux-coat-articles__arrow {
    transform: translateX(3px);
  }

  .lux-coat-articles a:focus-visible {
    outline: 3px solid #315edc;
    outline-offset: 3px;
  }

  @media (max-width: 1000px) {
    .lux-coat-articles__title {
      font-size: 24px;
    }

    .lux-coat-articles__name {
      font-size: 14px;
    }

    .lux-coat-articles__description {
      font-size: 13px;
    }

    .lux-coat-articles__grid {
      gap: 14px;
    }
  }

  @media (max-width: 760px) {
    .lux-coat-articles__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lux-coat-articles__header {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }
  }

  @media (max-width: 480px) {
    .lux-coat-articles {
      padding: 16px;
    }

    .lux-coat-articles__title {
      font-size: 22px;
    }

    .lux-coat-articles__grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .lux-coat-articles__name {
      font-size: 16px;
    }

    .lux-coat-articles__description {
      font-size: 14px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .lux-coat-articles__card,
    .lux-coat-articles__image,
    .lux-coat-articles__arrow {
      transition: none;
    }
  }
  
  
  @property --lux-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.lux-rubrics__card {
  position: relative;
}

.lux-rubrics__beam {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;

  background: conic-gradient(
    from var(--lux-beam-angle),
    transparent 0%,
    transparent 65%,
    #93b4ff 78%,
    #315edc 90%,
    #a855f7 100%
  );

  /* Оставляем только тонкую рамку */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.lux-rubrics__beam.is-running {
  animation: lux-rubric-beam 3s linear both;
}

@keyframes lux-rubric-beam {
  0% {
    --lux-beam-angle: 0deg;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    --lux-beam-angle: 360deg;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-rubrics__beam {
    display: none;
    animation: none !important;
  }
}

.lux-blogs,
.lux-blogs * {
  box-sizing: border-box;
}

.lux-blogs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  margin-top: 24px;
  padding: 30px 32px;
  border: 1px solid #e6ded4;
  border-radius: 10px;
  background: linear-gradient(115deg, #faf7f2, #eee5da);
  color: #242a33;
  font-family: Arial, Helvetica, sans-serif;
}

/* Декоративные кавычки */
.lux-blogs::before {
  position: absolute;
  top: -40px;
  right: 205px;
  color: rgba(145, 114, 78, 0.1);
  font-family: Georgia, serif;
  font-size: 260px;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

.lux-blogs__content {
  position: relative;
  max-width: 620px;
}

.lux-blogs__label {
  display: block;
  margin-bottom: 10px;
  color: #8b7153;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lux-blogs__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.lux-blogs__description {
  margin: 0;
  color: #67615b;
  font-size: 15px;
  line-height: 1.6;
}

.lux-blogs .lux-blogs__button {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid #292e36;
  border-radius: 6px;
  background: #292e36;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lux-blogs__button span {
  font-size: 20px;
  line-height: 1;
}

.lux-blogs .lux-blogs__button:hover {
  border-color: #705a43;
  background: #705a43;
  color: #fff;
}

.lux-blogs__button:focus-visible {
  outline: 3px solid #315edc;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .lux-blogs {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .lux-blogs::before {
    top: -20px;
    right: 12px;
  }

  .lux-blogs__title {
    font-size: 26px;
  }

  .lux-blogs__description {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-blogs__button {
    transition: none;
  }
}

/* Анимированный фон блока «Блоги» */
.lux-blogs {
  isolation: isolate;
  background: #f5efe7;
}

/* Сохраняем текст и кнопку поверх анимации */
.lux-blogs__content,
.lux-blogs .lux-blogs__button {
  position: relative;
  z-index: 2;
}

/* Мягкие цветовые пятна */
.lux-blogs::after {
  content: "";
  position: absolute;
  inset: -65%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 30% 35%,
      rgba(213, 171, 115, 0.38),
      transparent 32%
    ),
    radial-gradient(
      ellipse at 70% 65%,
      rgba(201, 158, 166, 0.3),
      transparent 30%
    ),
    radial-gradient(
      ellipse at 55% 40%,
      rgba(255, 255, 255, 0.95),
      transparent 38%
    );

  animation: lux-blogs-glow 14s ease-in-out infinite alternate;
}

/* Кавычки с деликатной текстурой */
.lux-blogs::before {
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 220px;

  background-image: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 5px,
    rgba(130, 104, 78, 0.025) 5px,
    rgba(130, 104, 78, 0.025) 6px
  );

  color: rgba(145, 114, 78, 0.12);
  font-family: Georgia, serif;
  font-size: 230px;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

/* Перелив внутри кнопки */
.lux-blogs .lux-blogs__button {
  overflow: hidden;
  isolation: isolate;
}

.lux-blogs__button::before {
  content: "";
  position: absolute;
  inset: -80% -60%;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(255, 255, 255, 0.04) 44%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.04) 56%,
    transparent 62%
  );

  transform: translateX(-100%);
  animation: lux-blogs-shine 8s ease-in-out infinite;
}

.lux-blogs__button span {
  transition: transform 0.25s ease;
}

.lux-blogs__button:hover span {
  transform: translateX(4px);
}

@keyframes lux-blogs-glow {
  0% {
    transform: translate3d(-5%, -3%, 0) rotate(-6deg);
  }

  50% {
    transform: translate3d(5%, 4%, 0) rotate(3deg);
  }

  100% {
    transform: translate3d(-2%, 6%, 0) rotate(8deg);
  }
}

@keyframes lux-blogs-shine {
  0%, 65% {
    transform: translateX(-100%);
  }

  90%, 100% {
    transform: translateX(100%);
  }
}

@media (max-width: 700px) {
  .lux-blogs::before {
    padding-right: 20px;
    font-size: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-blogs::after,
  .lux-blogs__button::before {
    animation: none;
  }

  .lux-blogs__button::before {
    opacity: 0;
  }

  .lux-blogs__button span {
    transition: none;
  }

  .lux-blogs__button:hover span {
    transform: none;
  }
}

.lux-editorial,
.lux-editorial * {
  box-sizing: border-box;
}

.lux-editorial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 10px 20px 28px;
  padding: 38px 40px;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: linear-gradient(115deg, #fafbfc, #f0f2f5);
  color: #18202b;
  font-family: Arial, Helvetica, sans-serif;
}

/* Декоративные дуги справа */
.lux-editorial::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -180px;
  z-index: -1;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(159, 137, 107, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(159, 137, 107, 0.04),
    0 0 0 90px rgba(159, 137, 107, 0.03);
  pointer-events: none;
}

.lux-editorial__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #8c755a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.lux-editorial__line {
  width: 32px;
  height: 1px;
  background: #aa8c68;
}

/* Повышенная специфичность для стилей шаблона Битрикс */
.lux-editorial h1.lux-editorial__title {
  max-width: 760px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: #18202b;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.2px;
  text-align: left;
}

.lux-editorial p.lux-editorial__lead {
  margin: 0 0 14px;
  padding: 0;
  color: #454c57;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.lux-editorial p.lux-editorial__description {
  max-width: 600px;
  margin: 0;
  padding: 0;
  color: #697180;
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.lux-editorial__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.lux-editorial .lux-editorial__topics a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 9px 14px;
  border: 1px solid #dce1e8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: #3d4858;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.lux-editorial__topics a span {
  color: #8c755a;
}

.lux-editorial .lux-editorial__topics a:hover {
  border-color: #b8c8ef;
  background: #fff;
  color: #315edc;
}

.lux-editorial__topics a:focus-visible {
  outline: 2px solid #315edc;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .lux-editorial {
    margin: 8px 16px 20px;
    padding: 26px 22px;
  }

  .lux-editorial__label {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .lux-editorial h1.lux-editorial__title {
    margin-bottom: 16px;
    font-size: 30px;
    letter-spacing: -0.7px;
  }

  .lux-editorial p.lux-editorial__lead {
    font-size: 18px;
  }

  .lux-editorial p.lux-editorial__description {
    font-size: 14px;
    line-height: 1.65;
  }

  .lux-editorial__topics {
    gap: 8px;
    margin-top: 20px;
  }

  .lux-editorial .lux-editorial__topics a {
    gap: 12px;
    padding: 8px 11px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-editorial .lux-editorial__topics a {
    transition: none;
  }
}

.lux-editorial::after {
  content: "";
  position: absolute;
  top: 0;
  right: 30px;
  bottom: 0;
  z-index: -1;

  width: 32%;
  height: auto;

  background: url("/article/logo_pl.png") center / contain no-repeat;
  opacity: 0.1;

  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

/* Оставляем место для логотипа справа */
.lux-editorial {
  padding-right: 36%;
}

@media (max-width: 700px) {
  .lux-editorial {
    padding-right: 22px;
  }

  .lux-editorial::after {
    right: 10px;
    width: 55%;
    opacity: 0.05;
  }
}

.lux-editorial::after {
  animation: lux-logo-pulse 6s ease-in-out infinite;
}

@keyframes lux-logo-pulse {
  0%, 100% {
    opacity: 0.04;
  }

  50% {
    opacity: 0.18;
  }
}

/* На телефоне делаем эффект слабее */
@media (max-width: 700px) {
  .lux-editorial::after {
    animation-name: lux-logo-pulse-mobile;
  }
}

@keyframes lux-logo-pulse-mobile {
  0%, 100% {
    opacity: 0.02;
  }

  50% {
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-editorial::after {
    animation: none;
  }
}

/* Увеличиваем высоту фотографий в блоке статей */
.lux-coat-articles__picture {
  aspect-ratio: 1.8 / 1;
}

.lux-coat-articles__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lux-coat-articles__description {
  position: relative;
  max-height: 5.2em; /* 4 строки × line-height */
  overflow: hidden;
  line-height: 1.3;
}

/* Класс добавляется только длинным описаниям */
.lux-coat-articles__description.is-overflowing {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 75%,
    transparent 100%
  );
}

