/* Скрываем / открываем блоки текста*/
/* Скрытый блок по умолчанию */
.hidden-content {
    display: none;
}
/* Стилизация самой ссылки */
.toggle-link {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
	padding: 0px;
}
/* Стиль для состояния "Скрыть" (можно добавить специфический цвет) */
.toggle-link.active {
    color: #dc3545; /* Красный цвет, когда текст развернут */
    border-bottom-color: #dc3545;
	padding: 0px;
}
/* //Скрываем / открываем блоки текста*/

/* Кнопка отправить заявку */
.ramka {
	padding: 10px;
	border:1px solid #eeeeee;
	border-radius:30px;
	-webkit-border-radius:30px; /* Safari, Chrome */
	-moz-border-radius:30px; /* Firefox */
}

.btn-try-again {
    /* Основные параметры */
    background-color: #7B4AE2; /* Основной фиолетовый цвет */
    color: #ffffff;            /* Белый текст */
    border: none;              /* Убираем стандартную рамку */
    border-radius: 50px;       /* Полное скругление углов (pill shape) */
    
    /* Размеры и отступы */
    padding: 14px 20px;        /* Внутренние отступы (сверху/снизу, слева/справа) */
    font-size: 16px;           /* Размер шрифта */
    font-weight: 600;          /* Жирность текста */
    font-family: Arial, sans-serif; /* Шрифт без засечек */
    
    /* Интерактивность и эффекты */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s; /* Плавные переходы */
    display: inline-block;
    text-align: center;
}

/* Эффект при наведении курсора */
.btn-try-again:hover {
    background-color: #6a3ec2; /* Немного темнее при наведении */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Тень становится чуть больше */
}

/* Эффект при нажатии */
.btn-try-again:active {
    transform: translateY(1px); /* Кнопка визуально "вдавливается" */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Тень уменьшается */
}
/* //Кнопка отправить заявку */

/* Бесконечная лента */
.slider {
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .slider__track {
    display: flex;
    flex-wrap: nowrap;        /* КРИТИЧНО: не даём картинкам переноситься */
    gap: 10px;                /* ваш зазор между логотипами */
    flex-shrink: 0;
    will-change: transform;
  }
  .slider__track img {
    display: block;           /* убирает inline-пробелы */
    height: 200px;             /* задайте нужную высоту логотипов */
    width: auto;              /* ширина подстроится под пропорции */
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
  }
/* //Бесконечная лента */

 /* Контейнер с карточками */
  .cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Карточка = ссылка-якорь */
  .mycard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    text-align: center;

    /* начальное состояние для появления при скролле */
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Класс добавляется через IntersectionObserver */
  .mycard.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Задержка для каждой карточки (эффект "волны") */
  .mycard:nth-child(1) { transition-delay: 0s;    }
  .mycard:nth-child(2) { transition-delay: 0.12s; }
  .mycard:nth-child(3) { transition-delay: 0.24s; }
  .mycard:nth-child(4) { transition-delay: 0.36s; }
  .mycard:nth-child(5) { transition-delay: 0.48s; }

  /* Обёртка картинки для эффекта зума */
  .mycard__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
  }

  .mycard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Надпись под картинкой */
  .mycard__title {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  /* ---- Анимации при наведении ---- */
  .mycard:hover .mycard__media {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.16);
  }
  .mycard:hover .mycard__media img {
    transform: scale(1.08);
  }
  .mycard:hover .mycard__title {
    color: #0071e3;
    transform: translateY(2px);
  }

  /* Фокус для доступности (клавиатура) */
  .mycard:focus-visible {
    outline: 3px solid #0071e3;
    outline-offset: 6px;
    border-radius: 20px;
  }

  /* Адаптив */
  @media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 520px) {
    .cards { grid-template-columns: 1fr; gap: 40px; }
  }
  
/* //Контейнер с карточками */

/* Текстовые блоки */
  
  :root {
    --accent: #6366f1;
    --accent-2: #ec4899;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #fafafa;
  }

  /* ============ Блок ============ */
  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto 120px;
  }
  .feature:last-child { margin-bottom: 0; }

  /* Реверс: картинка слева, текст справа */
  .feature--reverse .feature__media { order: -1; }

  /* ============ Картинка ============ */
  .feature__media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow:
      0 1px 2px rgba(15,23,42,.06),
      0 12px 28px rgba(15,23,42,.10);
    transition: transform .6s cubic-bezier(.22,1,.36,1),
                box-shadow .6s ease;
    will-change: transform;
  }

  /* Мягкое цветное свечение под картинкой */
  .feature__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25));
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
  }

  .feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.22,1,.36,1);
  }

  /* Анимация при наведении */
  .feature__media:hover {
    transform: translateY(-8px) scale(1.01);
  }
  .feature__media:hover img { transform: scale(1.07); }
  .feature__media:hover::after { opacity: 1; }

  /* ============ Текст ============ */
  .feature__content {
    position: relative;
    padding: 8px 0 8px 32px;
  }

  /* Вертикальная акцентная линия */
  .feature__content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s cubic-bezier(.22,1,.36,1) .2s;
  }
  .feature__content.visible::before { transform: scaleY(1); }

  /* Плашка-бейдж */
  .feature__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99,102,241,.10);
    border: 1px solid rgba(99,102,241,.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
  }
  .feature__badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(99,102,241,.18);
  }

  /* Заголовок с градиентом */
  .feature__title {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 20px;
  }
  .feature__title span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Основной текст */
  .feature__text {
    font-size: 17px;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 28px;
  }

  /* Список фич */
  .feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }
  .feature__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
  }
  .feature__list li::before {
    content: "";
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 2px;
  }

  /* Кнопка */
  .feature__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .feature__btn svg {
    transition: transform .3s ease;
  }
  .feature__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99,102,241,.45);
  }
  .feature__btn:hover svg { transform: translateX(4px); }

  /* ============ Анимация появления при скролле ============ */
  .reveal {
    opacity: 1;
    transform: translateY(40px);
    transition:
      opacity .9s cubic-bezier(.22,1,.36,1),
      transform .9s cubic-bezier(.22,1,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ============ Адаптив ============ */
  @media (max-width: 860px) {
    body { padding: 56px 20px; }
    .feature {
      grid-template-columns: 1fr;
      gap: 32px;
      margin-bottom: 80px;
    }
    .feature--reverse .feature__media { order: 0; }
    .feature__content { padding-left: 20px; }
  }  
/* //Текстовые блоки */

  :root {
    --accent: #6366f1;
    --accent-2: #ec4899;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #fafafa;
  }

  /* ============ Секция ============ */
  .article {
    position: relative;
    max-width: 1180px;
    margin: 0 auto 120px;
    padding: 8px 0 8px 32px;
  }
  .article:last-child { margin-bottom: 0; }

  /* Вертикальная акцентная линия (как у блоков выше) */
  .article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s cubic-bezier(.22,1,.36,1) .2s;
  }
  .article.visible::before { transform: scaleY(1); }

  /* Бейдж */
  .article__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99,102,241,.10);
    border: 1px solid rgba(99,102,241,.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
  }
  .article__badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(99,102,241,.18);
  }

  /* Заголовок */
  .article__title {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 28px;
    max-width: 22ch;
  }
  .article__title span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ============ Две колонки ============ */
  .article__columns {
    /* Ключевое свойство — газетная многоколоночность */
    columns: 2;
    column-count: 2;
    column-gap: 48px;
    column-rule: 1px solid rgba(15,23,42,.10); /* разделительная линия между колонками */

    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .article__columns p {
    margin-bottom: 1em;
    break-inside: avoid; /* абзац не разрывается между колонками */
  }

  /* Буквица — первая буква первого абзаца */
  .article__columns p:first-child::first-letter {
    float: left;
    font-size: 3.6em;
    line-height: .85;
    font-weight: 700;
    padding: 6px 12px 0 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Акцентная фраза внутри текста */
  .article__columns em {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
  }

  /* Выделенная цитата-врезка внутри потока текста */
  .article__pull {
    break-inside: avoid;
    margin: 12px 0 20px;
    padding: 16px 0 16px 20px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: -.01em;
  }

  /* ============ Появление при скролле ============ */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity .9s cubic-bezier(.22,1,.36,1),
      transform .9s cubic-bezier(.22,1,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ============ Адаптив ============ */
  @media (max-width: 860px) {
    body { padding: 56px 20px; }
    .article { padding-left: 20px; margin-bottom: 80px; }
    .article__columns {
      columns: 1;
      column-count: 1;
      column-rule: none;
      column-gap: 0;
    }
  }