.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .leon-columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Принудительное ограничение всех контейнеров */
  body,
  .content-overlay,
  .content-wrapper,
  .leon-columns,
  .leon-column,
  .wide-column,
  .leon-article-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Все изображения подстраиваются под ширину */
  .article-image-large {
    max-width: 100% !important;
    height: auto !important;
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .image-caption {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  }

*, *:before, *:after {
    box-sizing: border-box;
}

/* Стили для сетки тестов */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 20px 0;
    padding: 0 20px;
    max-width: 1200px;
}

.test-card {
    aspect-ratio: 1/1;
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 12px;
    background: linear-gradient(180deg, #322520 0%, #1b1411 100%);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.test-image {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 25px;
    overflow: hidden;
}

.test-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.test-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-content h5 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #dd9f59;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-content h4 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 900;
    color: #fcfcfc;
    line-height: 1.3;
}

.test-content p {
    font-size: 13px;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .test-image {
        padding: 20px;
    }

    .test-content {
        padding: 15px;
    }

    .test-content h4 {
        font-size: 16px;
    }

    .test-content h5 {
        font-size: 11px;
    }

    .test-content p {
        font-size: 12px;
    }
}

/* Модальное окно для полноэкранного просмотра */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-container {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-content {
        font-size: 15px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

.line::after {
    content: "";
    display: block;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.text-block {
    display: none;
    margin-top: 20px;
    padding: 25px;
    border: 1px solid rgba(221, 159, 89, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, #322520 0%, #1b1411 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fcfcfc;
}

.text-block.active {
    display: block;
}

.text-block h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #fcfcfc;
    margin: 0 0 15px 0;
    width: 100%;
    text-align: justify;
}

.text-block p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #fcfcfc;
    margin-bottom: 0;
    width: 100%;
    text-align: justify;
}

/* Стили только для блоков результатов теста */
.article-content .text-block.test-result p {
    font-size: 18px;
    line-height: 1.8;
}

.text-block.test-result p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 26px;
    line-height: 1.8;
    color: #fcfcfc;
    margin-bottom: 0;
    width: 100%;
    text-align: justify;
}

.text-block.test-result h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #fcfcfc;
    margin: 0 0 20px 0;
    width: 100%;
    text-align: justify;
    line-height: 1.4;
}

/* Стили для пустого блока */
.empty-block {
    margin-top: 20px;
    padding: 60px 40px;
    border: 1px dashed #34495e;
    border-radius: 12px;
    background: #1b1411;
    text-align: center;
    color: #fcfcfc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.empty-block p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #fcfcfc;
    margin: 0;
}

/* Стили для секции с реакциями */
.reaction-section {
    display: none;
    margin-top: 30px;
    text-align: center;
    padding: 25px;
    background: #1b1411;
    border: none;
    border-radius: none;
    box-shadow: none;
}

.reaction-section.active {
    display: block;
}

.reaction-section h3 {
    margin-top: 0;
    color: #fcfcfc;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 16px;
}

.reaction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reaction-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 40px;
}

.reaction-button:hover {
    transform: scale(1.2);
}

.counter {
    display: none;
    font-size: 18px;
    font-weight: 600;
    color: #fcfcfc;
    font-family: "Montserrat", sans-serif;
}

.counters {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

/* Стили для кнопки "К списку тестов" */
.back-button {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Стили для выбора в тестах */
.gate-selection {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 8px;
}

.gate-selection .gate-btn {
    color: #fcfcfc;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background: rgba(9, 19, 38, 0.3);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.gate-selection .gate-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    border-color: #fcfcfc;
}

.gate-selection .gate-btn.active {
    background: #dd9f59;
    color: #1b1411;
    border: 1px solid #dd9f59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 207, 0, 0.3);
}

.gate-selection .gate-btn.active:hover {
    background: #ffd83d;
    color: #1b1411;
}

/* Стили для отключенных кнопок ворот */
.gate-selection .gate-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gate-selection .gate-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(9, 19, 38, 0.3);
}

/* Стили для подписи выбора в тестах */
.gate-selection-caption {
    text-align: center;
    color: #dd9f59;
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для сетки статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 20px 0;
    padding: 0 20px;
    max-width: 1200px;
}

.article-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    background: linear-gradient(180deg, #322520 0%, #1b1411 100%);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 1;
    border: 1px solid rgba(221, 159, 89, 0.1);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(221, 159, 89, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.article-image {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 25px;
    overflow: hidden;
}

.article-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.article-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.6;
}

.article-content h4 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #fcfcfc;
    line-height: 1.2;
}

.article-content h5 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #dd9f59;
    /* Золотистый акцент */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content p {
    font-size: 14px;
    color: rgba(252, 252, 252, 0.75);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .article-image {
        padding: 20px;
    }

    .article-content {
        padding: 15px;
    }

    .article-content h4 {
        font-size: 16px;
    }

    .article-content h5 {
        font-size: 11px;
    }

    .article-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        gap: 15px;
    }

    .article-image {
        padding: 15px;
    }

    .article-content {
        padding: 12px;
    }
}

/* Стили для страницы статьи - блоки как на других страницах */
.leon-columns {
    display: flex;
    justify-content: center;
    padding: 0px 20px;
    background-color: #1b1411;
}

.leon-columns:first-of-type {
    padding-top: calc(var(--menu-height) * 2 + 20px);
}

.leon-columns:not(:first-of-type) {
    padding-top: 0;
    margin-top: 10px;
    /* Уменьшаем расстояние между блоками */
}

.leon-columns:nth-of-type(2) {
    margin-top: 10px;
    /* Конкретно для второй секции */
    padding-top: 0;
}

.leon-column {
    display: flex;
    flex-direction: column;

    border-radius: 12px;
    background: #1b1411;
    padding: 25px;
    margin: 15px 0;

    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    color: #1b1411;
}


/* Убираем hover эффект для блока статьи */
.leon-columns:not(:first-of-type) .leon-column {
    cursor: default;
}

.leon-columns:not(:first-of-type) .leon-column:hover {
    transform: none;
    /* Оставляем только исходную тень */
}

.leon-column.wide-column {
    max-width: 800px;
    width: 100%;
}

.leon-preview-header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.leon-preview-logo {
    width: 144px;
    height: 144px;
    flex-shrink: 0;
    border-radius: 8px;
}

.leon-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leon-author-info {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #fcfcfc;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.leon-article-time {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #999999;
    text-align: left;
    margin: 0;
}

/* Заголовок и подзаголовок теперь внутри блока статьи */
.leon-article-title {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #fcfcfc;
    text-align: left;
    margin: 0 0 5px 0;
    line-height: 1.3;
    width: 100%;
}

.leon-article-subtitle {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #fcfcfc;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.5;
    width: 100%;
}

.leon-article-content {
    width: 100%;
    background: #1b1411;
    color: #fcfcfc;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.9;
    text-align: left;
}

.leon-article-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 34px;
    color: #dd9f59;
    margin: 30px 0 20px;
    text-align: center;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

.leon-article-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 34px;
    color: #fcfcfc;
    margin: 30px 0 20px;
    text-align: center;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

@media (max-width: 768px) {
    .leon-article-content h2 {
        font-size: 18px;
        margin: 25px 0 15px;
    }

    .leon-article-content h3 {
        font-size: 18px;
        margin: 25px 0 15px;
    }
}

.leon-article-content p {
    margin-bottom: 20px;
    text-align: left;
}

.leon-article-content h5 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #dd9f59;
    margin: 30px 0 20px;
    text-align: left;
}

.leon-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 150px;
    margin-top: 50px;
    background: #1b1411;
    margin-bottom: 0;
    padding-bottom: 120px;
}

.leom-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
    margin-bottom: 30px;
    background: #1b1411;
    align-items: center;
}

/* Стили для изображений - ограничиваем размер */
.article-image-large {
    width: 600px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-image-small {
    width: 200px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для изображений нлп */
.article-image-nlp {
    width: 800px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Подписи к изображениям - только они остаются по центру */
.image-caption {
text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #fcfcfc;
    margin: 10px auto 30px auto;
    font-style: italic;
    width: 600px;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .leon-columns {
        padding: 20px 15px;
    }

    .leon-columns:first-of-type {
        padding-top: calc(var(--menu-height) * 2 + 10px);
    }

    .leon-columns:not(:first-of-type) {
        margin-top: 20px;
    }



    .leon-preview-logo {
        width: 120px;
        height: 120px;
    }

    .leon-author-info,
    .leon-article-time {
        text-align: center;
    }

    .leon-article-title {
        font-size: 26px;
        margin: 0 0 15px 0;
    }

    .leon-article-subtitle {
        font-size: 16px;
        margin: 0 0 30px 0;
    }

    .leon-article-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .leon-columns {
        padding: 15px 10px;
    }

    .leon-columns:first-of-type {
        padding-top: calc(var(--menu-height) * 2 + 5px);
    }

    .leon-columns:not(:first-of-type) {
        margin-top: 15px;
    }

    .leon-column {
        padding: 20px 15px;
    }

    .leon-preview-logo {
        width: 100px;
        height: 100px;
    }

    .leon-article-title {
        font-size: 22px;
    }

    .leon-article-subtitle {
        font-size: 15px;
    }

    .leon-author-info {
        font-size: 14px;
    }

    .leon-article-time {
        font-size: 13px;
    }
}

/* Стили для колонок в секции реакций */
.reaction-columns {
    display: flex;
    gap: 20px;
    width: 100%;
}

.reaction-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: none;
    background: #1b1411;
    padding: 25px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fcfcfc;
}

.reaction-column h3 {
    margin-top: 0;
    color: #fcfcfc;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.reaction-column:first-child {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reaction-column:last-child {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.3s;
    /* Задержка 0.3s */
}

/* Анимация при появлении */
.reaction-section.active .reaction-column:first-child {
    opacity: 1;
    transform: translateX(0);
}

.reaction-section.active .reaction-column:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .reaction-columns {
        flex-direction: column;
        gap: 15px;
    }

    .reaction-column {
        padding: 20px;
    }

    .reaction-column h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reaction-column {
        padding: 15px;
    }

    .reaction-column h3 {
        font-size: 13px;
    }
}

/* СТИЛИ ДЛЯ ТЕСТОВОЙ СТРАНИЦЫ */

/* Первый блок - текст слева */
.first-block-test {
    width: 610px;
    float: left;
    margin: 40px 0 40px 0;
    position: relative;
    z-index: 2;
    animation: slideFromLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-100px);
}

.first-block-test-text {
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 12px;
    background: #1b1411;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    transition: all 0.3s ease;
}

.first-block-test-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.first-block-test-text h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #fcfcfc;
    margin: 0 0 15px 0;
    text-align: justify;
}

.first-block-test-text p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #fcfcfc;
    margin-bottom: 15px;
    text-align: justify;
}

/* Второй блок - изображение справа со смещением вниз */
.second-block-test {
    width: 600px;
    float: left;
    /* Меняем на float: left */
    margin: 100px 0 40px -10px;
    /* Отрицательный margin для перехлеста */
    position: relative;
    z-index: 1;
    animation: slideFromRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateX(100px);
}

.second-block-test-foto {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    transition: all 0.3s ease;
}

.second-block-test-foto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.second-block-test-foto img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Ключевые кадры для анимации первый и второй блок тестов*/
@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Третий блок - основное тестовое изображение */
.third-block-test {
    clear: both;
    width: 800px;
    margin: 60px auto 40px auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* Ключевые кадры для анимации снизу */
@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-test-foto {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-test-foto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.main-test-foto img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Четвертый блок - выбор ворот */
.fourth-block-test {
    clear: both;
    width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.gate-selection-caption p {
    text-align: center;
    margin: 20px auto 0 auto;
    display: block;
    width: 100%;
    max-width: 600px;
}

/* Пятый блок - результаты теста */
.fifth-block-test {
    clear: both;
    width: 800px;
    margin: 0 auto 40px auto;
}

.result-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.result-image {
    flex: 0 0 306px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out 0.3s;
}

.result-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.result-text {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.6s;
}

/* Анимация при появлении блока */
.text-block.active .result-image {
    opacity: 1;
    transform: translateX(0);
}

.text-block.active .result-text {
    opacity: 1;
    transform: translateX(0);
}

.text-block.test-result .result-text h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #fcfcfc;
    margin: 0 0 15px 0;
    text-align: justify;
}

.text-block.test-result .result-text p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 2;
    color: #fcfcfc;
    margin-bottom: 0;
    text-align: justify;
}

/* Шестой блок - реакции и кнопка назад */
.sixth-block-test {
    clear: both;
    width: 1200px;
    margin: 0 auto 40px auto;
}

/* Очистка float после контента */
.content-wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {

    .first-block-test,
    .second-block-test {
        width: 100%;
        float: none;
        margin: 20px auto;
    }

    .third-block-test,
    .fourth-block-test,
    .fifth-block-test,
    .sixth-block-test {
        width: 90%;
    }

    .second-block-test {
        margin-top: 20px;
    }

    .third-block-test {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {

    .first-block-test-text,
    .second-block-test-foto,
    .main-test-foto {
        padding: 20px;
    }

    .first-block-test-text h2 {
        font-size: 20px;
    }

    .third-block-test {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {

    .first-block-test-text,
    .second-block-test-foto,
    .main-test-foto {
        padding: 15px;
    }

    .first-block-test-text h2 {
        font-size: 18px;
    }

    .third-block-test {
        margin-top: 30px;
    }
}

.reaction-image {
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
}

reaction-image:hover {
    transform: scale(1.1);
}

.reaction-image:active {
    transform: scale(0.95);
}

/* Первый блок двойной - текст слева */
.first-block-test-double {
    width: 610px;
    float: left;
    margin: 40px 0 40px 0;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-100px);
}

.first-block-test-double .first-block-test-text {
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 12px;
    background: #1b1411;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    transition: all 0.3s ease;
}

.first-block-test-double .first-block-test-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.first-block-test-double .first-block-test-text h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #fcfcfc;
    margin: 0 0 15px 0;
    text-align: justify;
}

.first-block-test-double .first-block-test-text p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #fcfcfc;
    margin-bottom: 15px;
    text-align: justify;
}

/* Второй блок двойной - изображение справа со смещением вниз */
.second-block-test-double {
    width: 600px;
    float: left;
    margin: 100px 0 40px -10px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(100px);
}

.second-block-test-double .second-block-test-foto {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    transition: all 0.3s ease;
}

.second-block-test-double .second-block-test-foto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.second-block-test-double .second-block-test-foto img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Стили для увеличенной кнопки "Пройти тест" только на странице теста */
.back-button .outline-btw.large-test-btn {
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
}

.back-button .outline-btw.large-test-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

/* ФИКС ДЛЯ ИЗОБРАЖЕНИЙ */
.three-columns .column,
.two-columns-left .column.foto-column {
    padding: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

.photo-wrapper img {
    width: auto !important;
    max-width: 100%;
}

.articles-grid .article-card.placement-card .article-image {
    flex: 0 0 40%;
    padding: 15px;
}

.articles-grid .article-card.placement-card .article-image img {
    max-width: 80%;
    max-height: 80%;
}

.articles-grid .article-card.placement-card .article-content {
    padding: 15px;
}

.articles-grid .article-card.placement-card .article-content p {
    font-size: 12px;
    line-height: 1.3;
}

/* ГЛАВНЫЙ КОНТЕЙНЕР ПОРТАЛА - ФИКСИРОВАННЫЙ */
.portal-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.portal-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .portal-container {
        top: 50px !important;
        height: calc(100vh - 50px);
    }

    .image-container img {
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}

/* Затемнение левой части */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(to right, rgb(0, 0, 0), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* СВЕЧЕНИЕ НАД ПОРТАЛОМ */
.portal-glow {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse infinite ease-in-out;
    z-index: 3;
    pointer-events: none;
}

.glow {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(120, 200, 255, 0.7), transparent 70%);
    animation-duration: 4s;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Главный Заголовок */
.main-overlay-text {
    position: absolute;
    top: 25%;
    left: 60px;
    transform: translateY(-50%);
    color: #d6ae68;
    font-family: 'Cormorant Garamond', serif;
    font-size: 6em;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 0.8;
    z-index: 2;
    margin-bottom: 0;
}

.main-overlay-text h1 {
    font-size: 1em;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    color: inherit;
    font-family: inherit;
}

/* Контейнер для подзаголовка */
.sub-overlay-text {
    position: absolute;
    top: 55%;
    left: 60px;
    transform: translateY(-50%);
    color: #fcfce7;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    margin: 0;
}

/* Контейнер для подзаголовка и преимуществ */
.sub-content-wrapper {
    position: absolute;
    top: 55%;
    left: 60px;
    width: calc(100% - 120px);
    max-width: 1400px;
    z-index: 2;
}

/* Двухколоночный блок */
.sub-overlay-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
}

/* ЛЕВАЯ КОЛОНКА - ПРЕИМУЩЕСТВА (60%) */
.pre-portal-left {
    width: 50%;
    padding-right: 40px;
}

/* ПРАВАЯ КОЛОНКА - ПОДЗАГОЛОВОК (40%) */
.pre-portal-right {
    width: 50%;
    padding-left: 40px;
}

.pre-portal-subheading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    font-weight: 500;
    color: #dd9f59;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Стили для списка преимуществ */
.advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: fcfcfcte;
}

.advantage-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-item:last-child {
    border-bottom: none;
}

.icon-container {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 20px;
    overflow: hidden;
}

.advantage-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-text {
    font-size: 1em;
    line-height: 1.5;
    color: fcfcfcte;
    flex: 1;
}

.text-icon {
    height: 50px;
    text-align: center;
}

.help-list-container {
    position: relative;
}

.help-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #fcfcfc;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

.help-item {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #fcfcfc;
    line-height: 1.5;
    padding: 12px 0;
    border-bottom: 1px solid rgba(221, 159, 89, 0.2);
    text-align: left;
    margin: 0;
}

.help-item:last-child {
    border-bottom: none;
}

.marquee {
    position: absolute;
    top: 83%;
    left: 0;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: auto;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 80s linear infinite;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #dd9f59;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* КОНТЕНТ КОТОРЫЙ НАЕЗЖАЕТ ПОВЕРХ */
.content-overlay {
    position: relative;
    z-index: 10;
    background: #1b1411;
    margin-top: 100vh;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Секция с описанием */
.desc {
    display: flex;
    width: 100%;
    min-height: 500px;
}

.desc .photo {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.desc>div {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfce7;
}

.desc-text {
    padding: 40px;
    max-width: 500px;
    color: #1b1411;
}

.desc-text h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 44px;
    margin-bottom: 20px;
    color: #1b1411;
}

.desc-text p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #1b1411;
}

/* Секция преимуществ */
.advantages-section {
    width: 100%;
    background: #1b1411;
    padding: 80px 0;
}

.advantages-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.advantages-section .advantages-list {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Стили для контейнеров с изображениями и текстом */
.image-sub-container-right,
.image-sub-container-left {
    position: relative;
    width: 100%;
    height: 100vh;
}

.image-sub-container-right img,
.image-sub-container-left img {
    width: 60%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-sub-container-right img {
    margin-left: auto;
    margin-right: 0;
}

.image-sub-container-left img {
    margin-left: 0;
    margin-right: auto;
}

.overlay-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 10;
}

.image-sub-container-right .overlay-text {
    left: 5%;
}

.image-sub-container-left .overlay-text {
    right: 5%;
}

.overlay-text .column.dark {
    background: rgba(0, 10, 32, 0.9) !important;
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* Стили для колонок */
.three-columns {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    padding: 60px;
    text-align: left;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    color: fcfcfcte;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dark-blocktext {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 12px;
    background: #1b1411;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    ;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.dark-blocktext:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.25);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1b1411;
}

.white-text {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #fcfcfc;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Стили для разделенной секции */
.split-section {
    display: flex;
    width: 100%;
    min-height: 500px;
    position: relative;
}

.text-content {
    width: 33.33%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    background: #fff;
}

.image-content {
    width: 66.67%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.split-section .photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-section {
    background-color: #4293b0;
    color: #fcfcfc;
    padding: 30px 60px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-section h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 68px;
    margin: 0;
    color: #fcfcfc;
}

.top-section h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 24px;
    margin: 10px 0 0 0;
    color: #fcfcfc;
}

.bottom-section {
    background-color: #fcfcfc;
    color: #1b1411;
    padding: 30px 60px;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-content {
    max-width: 400px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-section strong {
    font-weight: 700;
    color: #1b1411;
}

.bottom-section p {
    color: #1b1411;
    font-weight: 400;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    object-fit: cover;
}

.video-container:hover::before {
    content: '🔊 Нажмите для полноэкранного режима со звуком';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: fcfcfcte;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 3;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    pointer-events: none;
}

.video-container video {
    width: 140%;
    height: 140%;
    object-fit: cover;
    position: relative;
    left: -10%;
    top: -20%;
}

/* Стили для одноколоночных секций */
.one-columns-blue {
    width: 100%;
    background: #1b1411;
    color: #fcfcfc;
    padding: 10px 60px;
    box-sizing: border-box;
}

.one-columns-blue h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 30px;
    color: #fcfcfc;
    margin-bottom: 30px;
    text-align: center;
}

.one-columns-blue p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #fcfcfc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.one-columns {
    width: 100%;
    background: #fcfcfc;
    color: #1b1411;
    padding: 80px 60px;
    box-sizing: border-box;
}

.one-columns h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 30px;
    color: #1b1411;
    margin-bottom: 30px;
    text-align: center;
}

.one-columns p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1b1411;
    line-height: 1.6;
    margin-bottom: 20px;
}

.one-columns strong {
    font-weight: 700;
    color: #1b1411;
}

.one-columns ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.one-columns li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #1b1411;
    gap: 20px;
}

.one-columns li img {
    flex-shrink: 0;
}

.one-columns li p {
    margin: 0;
    flex: 1;
}

.text-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.text-content-wrapper h2,
.text-content-wrapper p,
.text-content-wrapper ul {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-note {
    width: 100%;
    text-align: left;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 10, 32, 0.1);
}

.little-men {
    flex: 1;
    justify-content: center;
    height: 200px;
    display: flex;
    align-items: center;
}

.little-men img {
    height: 200px;
    display: block;
    margin: 0 auto;
}

/* Стили для кнопок и action блоков */
.buttons-container-white {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin: 40px 0;
    flex-wrap: wrap;
    background-color: #fcfcfc;
}

.action-block {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(221, 159, 89, 0.2);
    border-radius: 12px;
    background: #251c18;
    padding: 30px;
    margin: 15px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-block:hover {
    transform: translateY(-8px);
    border-color: rgba(221, 159, 89, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: #2d221e;
}

.action-block h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 26px;
    color: #dd9f59;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.action-block p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(252, 252, 252, 0.8);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    flex-grow: 1;
}

.scroll-to-top-container {
    display: flex;
    justify-content: center;
    padding: 30px;
    background: none;
}

/* Общие стили для типографики */
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 30px;
}

h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: 30px;
    color: #1b1411;
    line-height: 1.6;
    margin-bottom: 1px;
}

p {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #dd9f59;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .main-overlay-text {
        font-size: 7em;
        left: 50px;
    }

    .sub-content-wrapper {
        left: 50px;
        width: calc(100% - 100px);
    }

    .pre-portal-left {
        width: 55%;
        padding-right: 30px;
    }

    .pre-portal-right {
        width: 45%;
        padding-left: 30px;
    }

    .sub-overlay-text {
        left: 50px;
        max-width: 550px;
    }

    .advantages-container {
        padding: 0 50px;
    }
}

@media (max-width: 992px) {
    .main-overlay-text {
        font-size: 5em;
        left: 40px;
        top: 30%;
    }

    .sub-content-wrapper {
        left: 40px;
        top: 45%;
        width: calc(100% - 80px);
    }

    .dark-overlay {
        width: 80%;
    }

    .pre-portal-subheading {
        font-size: 2em;
    }

    .sub-overlay-content {
        flex-direction: column;
    }

    .pre-portal-left,
    .pre-portal-right {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .pre-portal-left {
        padding-bottom: 30px;
    }

    .desc {
        flex-direction: column;
    }

    .desc .photo,
    .desc>div {
        width: 100%;
    }

    .desc-text {
        padding: 30px 20px;
    }

    .sub-overlay-text {
        left: 40px;
        top: 50%;
        max-width: 500px;
        font-size: 1.1em;
    }

    .advantages-section {
        padding: 60px 0;
    }

    .advantages-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .main-overlay-text {
        font-size: 3.2em;
        left: 20px;
        max-width: 90%;
        line-height: 0.9;
        top: 55%;
        transform: translateY(-50%);
    }

    .sub-content-wrapper {
        left: 30px;
        top: 50%;
        width: calc(100% - 60px);
    }

    .pre-portal-subheading {
        font-size: 1.8em;
    }

    .advantage-text {
        font-size: 0.9em;
    }

    .icon-container {
        width: 28px;
        height: 28px;
        margin-right: 15px;
    }

    .image-sub-container-right,
    .image-sub-container-left {
        height: auto;
    }

    .image-sub-container-right img,
    .image-sub-container-left img {
        width: 100%;
        margin: 0;
    }

    .overlay-text {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        padding: 40px 20px;
    }

    .image-sub-container-right .overlay-text,
    .image-sub-container-left .overlay-text {
        left: auto;
        right: auto;
    }

    .overlay-text .column.dark {
        background: #1b1411 !important;
        border: 1px solid rgba(221, 159, 89, 0.3);
    }

    .desc {
        flex-direction: column;
    }

    .desc .photo,
    .desc>div {
        width: 100%;
    }

    .desc-text {
        padding: 30px 20px;
    }

    .marquee-content {
        font-size: 18px;
        padding: 15px 0;
    }

    .split-section {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        width: 100%;
    }

    .top-section {
        padding: 40px 20px;
    }

    .bottom-section {
        padding: 30px 20px;
    }

    .top-section h1 {
        font-size: 36px;
    }

    .top-section h2 {
        font-size: 20px;
    }

    .top-column,
    .bottom-column {
        padding: 30px 20px;
    }

    .sub-overlay-text {
        left: 20px;
        top: 72%;
        max-width: 85%;
        font-size: 1.1em;
        line-height: 1.4;
        transform: translateY(-50%);
    }

    .advantages-section {
        padding: 50px 0;
    }

    .advantages-container {
        padding: 0 30px;
    }

    .advantages-section .advantages-list {
        max-width: 100%;
    }

    .one-columns {
        padding: 60px 30px;
    }

    .one-columns h2 {
        font-size: 24px;
    }

    .buttons-container-white {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        background: transparent !important;
    }

    .action-block {
        width: calc(100% - 40px);
    max-width: 400px;
    min-width: 280px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .main-overlay-text {
        font-size: 2.8em;
        left: 20px;
        top: 52%;
        line-height: 0.95;
        max-width: 90%;
    }

    .dark-overlay {
        width: 90%;
    }

    .sub-content-wrapper {
        left: 20px;
        top: 35%;
        width: calc(100% - 40px);
    }

    .pre-portal-subheading {
        font-size: 1.5em;
    }

    .advantage-text {
        font-size: 0.85em;
    }

    .icon-container {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }

    .sub-overlay-text {
        left: 20px;
        top: 74%;
        max-width: 88%;
        font-size: 1em;
        line-height: 1.3;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }

    .advantages-section {
        padding: 40px 0;
    }

    .advantages-container {
        padding: 0 20px;
    }

    .one-columns {
        padding: 40px 20px;
    }

    .one-columns li {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-overlay-text {
        font-size: 2.4em;
        top: 48%;
        left: 15px;
        max-width: 95%;
    }

    .dark-overlay {
        width: 95%;
    }

    .sub-content-wrapper {
        left: 15px;
        width: calc(100% - 30px);
    }

    .marquee-content {
        font-size: 16px;
    }

    .column .image {
        max-width: 150px;
    }

    .overlay-text {
        padding: 30px 15px;
    }

    .sub-overlay-text {
        left: 15px;
        max-width: 92%;
        font-size: 0.95em;
        top: 75%;
        line-height: 1.25;
    }
}

.one-columns {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #1b1411;
}

.one-columns .wide-column {
    display: flex;
    flex-direction: column;
    background: #1b1411;
    padding: 0;
    margin: 0 0;
    transition: all 0.3s ease;
    height: fit-content;
    flex: 1;
    max-width: 1200px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    color: #fcfcfc;
}

/* Стили для грид-контейнера процесса */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin: 40px 0;
}

.process-block {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 159, 89, 0.2);
    border-radius: 12px;
    background: #251c18;
    padding: 25px;
    box-shadow: на 0 15px 35px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    height: fit-content;
}

.text-block {
    justify-content: flex-start;
}

.image-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.wide-column h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 34px;
    color: #dd9f59;
}

.wide-column h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 34px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #dd9f59;
}

.wide-column p {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fcfcfc;
}

.wide-column strong {
    font-weight: 700;
    color: #fcfcfc;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Call to action секции */
.call-to-action {
    text-align: center;
    margin: 40px auto 0 auto;
    padding: 40px 30px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #2d221e 0%, #1b1411 100%);
    border: 1px solid rgba(221, 159, 89, 0.4);
    border-radius: 16px;
    transform: translateY(-3px);
    box-shadow:
        0 30px 50px -20px #000000,
        0 0 0 1px rgba(221, 159, 89, 0.2) inset,
        0 0 40px rgba(221, 159, 89, 0.3);

    transition: none;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(221, 159, 89, 0.4), transparent 60%, rgba(221, 159, 89, 0.4));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.8;
}

.content-overlay .call-to-action,
.one-columns .call-to-action,
.three-columns .call-to-action {
    text-align: center;
    margin-top: 40px;
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(145deg, #2d221e 0%, #1b1411 100%);
    border: 1px solid rgba(221, 159, 89, 0.4);
    border-radius: 16px;
    transform: translateY(-3px);
    box-shadow:
        0 30px 50px -20px #000000,
        0 0 0 1px rgba(221, 159, 89, 0.2) inset,
        0 0 40px rgba(221, 159, 89, 0.3);

    transition: none;
    position: relative;
    overflow: hidden;
}

.content-overlay .call-to-action::before,
.one-columns .call-to-action::before,
.three-columns .call-to-action::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(221, 159, 89, 0.4), transparent 60%, rgba(221, 159, 89, 0.4));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.8;
}

.cta-text {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 28px;
    color: #fcfce7;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 10px rgba(221, 159, 89, 0.3);
    letter-spacing: 0.5px;
}

.cta-subtext {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #fcfce7;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
}

@media (max-width: 768px) {
    .cta-text {
        font-size: 22px;
    }

    .cta-subtext {
        font-size: 16px;
    }

    .call-to-action {
        padding: 25px 20px;
        margin-top: 30px;
    }
}

.three-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background-color: #1b1411;
    align-items: stretch;
}

.three-columns .column {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 159, 89, 0.2);
    ;
    border-radius: 12px;
    background: #fff;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    color: #1b1411;
}

.three-columns .column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(253, 253, 253, 0.4);
}

.three-columns:last-of-type .column p {
    text-align: center;
}

.three-columns h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.column {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 40px 30px;
    box-sizing: border-box;
    background-color: #fcfcfc;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Центрируем по горизонтали */
    justify-content: flex-start;
    /* Выравниваем содержимое по верху */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Контейнер для изображений законов */
.law-image-container {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.law-image-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.law-image-container img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.column h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    width: 100%;
    text-align: justify;
}

.column h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    width: 100%;
    text-align: center;
}

.column p {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #091326;
    margin-bottom: 20;
    width: 100%;
    flex-grow: 1;
    text-align: justify;
}



/* Адаптивность */
@media (max-width: 1024px) {
    .three-columns {
        gap: 20px;
    }

    .column {
        padding: 30px 20px;
    }

    .law-image-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .three-columns {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .column {
        width: 100%;
        max-width: 500px;
        margin: 0;
    }

    .law-image-container {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .column {
        padding: 25px 15px;
        min-width: unset;
    }

    .column h3 {
        font-size: 20px;
    }

    .law-image-container {
        width: 200px;
        height: 200px;
        padding: 10px;
    }
}

.click-hint {
    display: block;
    text-align: center;
    font-size: 14px;
    color: rgb(131, 131, 152);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.3;
    width: 100%;
}

h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 44px;
}

.desc .desc-text p.small-text {
    font-size: 0.9em;
    line-height: 1.4;
}

.content-overlay .cta-text,
.one-columns .cta-text,
.three-columns .cta-text {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 26px;
    color: #dd9f59;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
}

.content-overlay .cta-subtext,
.one-columns .cta-subtext,
.three-columns .cta-subtext {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #fcfcfc;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
    text-align: center;
}

.three-columns .call-to-action {
    margin: 40px 0 0 0;
    padding: 30px 20px;
    max-width: 1200px;
}

#laws-section .wide-column h2 {
    color: #dd9f59;
    font-size: 34px;
    text-align: center;
    margin-top: 40px;
}

#laws-section .wide-column p {
    font-size: 16px;
    color: #fcfcfc;
}

#laws-section .wide-column {
    transition: none;
    cursor: default;
}

#laws-section .wide-column:hover {
    transform: none;
    box-shadow: none;
}

#laws-section.one-columns {
    padding: 0 0;
}

.buttons-container {
    background-color: #1b1411;
    /* темно-синий фон */
    color: #fcfcfc;
    /* белый текст */
}

.one-columns .wide-column ul li {
    color: #fcfcfc;
    text-align: left;
}

.one-columns .wide-column ul li span {
    color: #dd9f59;
}

.content-overlay .call-to-action,
.one-columns .call-to-action,
.three-columns .call-to-action {
    text-align: center;
    margin: 40px auto 0 auto;
    padding: 40px 30px;
    border-top: 1px solid rgba(221, 159, 89, 0.3);
    width: 100%;
    max-width: 1200px;
    background: rgba(221, 159, 89, 0.05);
    border-radius: 12px;
    box-sizing: border-box;
}

.content-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

}

.content-overlay .desc {
    align-self: stretch;
    width: 100%;
}

.column-revi {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 159, 89, 0.2);
    border-radius: 12px;
    background: #251c18;
    padding: 45px 45px;
    margin: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    height: fit-content;
    color: #fcfcfc;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.column-revi h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 24px;
    color: #dd9f59;
    margin: 0 0 15px 0;
    text-align: center;
}

.column-revi p {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fcfcfc;
    text-align: justify;
    padding: 0 15px;
}

.column-revi .light-highlight {
    color: #dd9f59;
    font-weight: 500;
}

.column-revi .law-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 25px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-revi .law-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .column-revi .law-image-container {
        max-width: 350px;
    }

    .column-revi .law-image-container img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .column-revi .law-image-container {
        max-width: 300px;
    }

    .column-revi .law-image-container img {
        max-height: 200px;
    }
}

.secret-message-notice {
    background: linear-gradient(135deg, #fdf6e3 0%, #faf0e6 100%);
    border-left: 4px solid #dd9f59;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-style: italic;
}

.secret-message-notice p {
    margin: 0;
    color: #5a4a3a;
    font-size: 0.95em;
}

.desc-text h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 44px;
    margin-bottom: 20px;
    color: #1b1411;
}

.article-image a.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: transparent;
    padding: 25px;
}

.article-image a.image-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

html,
    body {
      margin: 0;
      padding: 0;
      width: 100%;
      overflow-x: hidden;
    }

    /* Решение проблемы с фиксированным меню */
    html {
      scroll-behavior: smooth;
    }

    :target {
      scroll-margin-top: 130px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    [id] {
      scroll-margin-top: 130px;
    }

    @media (max-width: 768px) {
      :target,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      [id] {
        scroll-margin-top: 110px;
      }
    }

    @media (max-width: 768px) {
    .call-to-action {
        width: 90%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 25px 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 15px;
    }
    
    .article-card {
        width: 85%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0;
        width: 80%;
    }
}

/* ===== ОТСТУПЫ ТОЛЬКО ДЛЯ МОБИЛЬНЫХ ===== */

@media (max-width: 768px) {
    /* Увеличиваем отступ перед кнопками Назад/Вверх */
    .buttons-container:last-of-type {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    /* Добавляем отступ после последнего action-block */
    .buttons-container:first-of-type {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Контейнер с кнопками Назад/Вверх */
    .buttons-container:last-of-type {
        display: flex;
        flex-direction: column;
    }
    
    /* Меняем порядок */
    .buttons-container:last-of-type .button-wrapper:first-child {
        order: 2; /* Назад становится вторым (снизу) */
    }
    
    .buttons-container:last-of-type .button-wrapper:last-child {
        order: 1; /* Вверх становится первым (сверху) */
    }
}

@media (max-width: 768px) {
    .main-overlay-text {
        font-size: 3.2em;
        left: 20px;
        max-width: 90%;
        line-height: 0.9;
        top: 15%;
        transform: translateY(-50%);
    }
    .sub-content-wrapper {
        left: 30px;
        top: 50%;
        width: calc(100% - 60px);
    }
    .dark-overlay {
    width: 100%;
    background: 
        linear-gradient(to bottom, 
            rgba(0,0,0,0.9) 0%, 
            rgba(0,0,0,0.7) 10%, 
            rgba(0,0,0,0.4) 20%, 
            rgba(0,0,0,0) 40%),
        linear-gradient(to top, 
            rgba(0,0,0,0.9) 0%, 
            rgba(0,0,0,0.7) 10%, 
            rgba(0,0,0,0.4) 20%, 
            rgba(0,0,0,0) 40%);
}
}
@media (max-width: 576px) {
    .main-overlay-text {
        font-size: 2.8em;
        left: 20px;
        top: 12%;
        line-height: 0.95;
        max-width: 90%;
    }
    .dark-overlay {
        width: 100%;
        background: 
        linear-gradient(to bottom, 
            rgba(0,0,0,0.9) 0%, 
            rgba(0,0,0,0.7) 15%, 
            rgba(0,0,0,0.4) 25%, 
            rgba(0,0,0,0) 45%),
        linear-gradient(to top, 
            rgba(0,0,0,0.9) 0%, 
            rgba(0,0,0,0.8) 15%, 
            rgba(0,0,0,0.5) 25%, 
            rgba(0,0,0,0) 45%);
    }
     }

     @media (max-width: 768px) {
    .buttons-container,
    .share-block {
        padding-left: 20px;
        padding-right: 20px;
    }
    }