/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ПОДКЛЮЧЕНИЕ ШРИФТА STOLZ
   ============================================ */
@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stolz';
    src: url('../fonts/stolzl_bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   ПЕРЕМЕННЫЕ CSS
   ============================================ */
    :root {
    /* Цвета */
    --primary-color: #5C6FEB;
    --text-color: #303030;
    --white: #FFFFFF;
    --stroke-color: #888888;

    /* Базовый размер шрифта для rem */
    font-size: 16px;

    /* Ширина контентной сетки */
    --content-width: 80vw;
    --directions-width: 80vw;

    /* Отступы */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */

    /* Размеры шрифтов из Figma */
    --font-size-xs: 0.875rem;   /* 14px */
    --font-size-sm: 1rem;        /* 16px - Body/Desktop/M */
    --font-size-md: 1.25rem;     /* 20px */
    --font-size-lg: 1.5rem;      /* 24px */
    --font-size-xl: 2rem;         /* 32px - Heading/Desktop/H2 */
    --font-size-2xl: 1.625rem;    /* 26px - Heading/Desktop/H3 */
    --font-size-3xl: 4rem;        /* 64px */
    --font-size-4xl: 6rem;       /* 96px - Display/Desktop */

    /* Шрифты из Figma */
    --font-family-stolzl: 'Stolz', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-times: 'Times New Roman', serif;
}

/* ============================================
   ОБЩИЙ КОНТЕЙНЕР ДЛЯ СЕТКИ САЙТА
   ============================================ */
.container {
        width: var(--content-width);
    max-width: 1440px;
        margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

/* Переопределяем overflow для контейнера, содержащего блог */

/* ============================================
   HERO БЛОК - НОВАЯ ВЕРСТКА ЧЕРЕЗ FLEX
   ============================================ */

/* HERO секция */
.hero-section {
    position: relative;
        width: 100%;
    max-width: 100%;
    background-color: var(--white);
    overflow: hidden;
    box-sizing: border-box;
    /* Ограничиваем содержимое контейнером */
    contain: layout style;
    margin-top: 0; /* Меню теперь отдельно, отступ не нужен */
}

/* Главное меню навигации */
.main-header {
    width: 100%;
    height: 4.625rem; /* 74px из Figma */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 2.5rem; /* 40px из Figma */
    padding-right: 0.625rem; /* 10px до правой границы */
    background: rgba(92, 111, 235, 0.03);
    backdrop-filter: blur(1.4rem); /* 22.4px из Figma */
    border-radius: 100px;
    box-shadow: 0px 0.5rem 1.5rem rgba(96, 96, 96, 0.15); /* Уменьшенная тень */
    margin-top: clamp(1rem, 2vw, 1.5rem); /* Небольшой отступ сверху */
    margin-bottom: clamp(2rem, 3vw, 3rem); /* Отступ снизу для HERO блока */
    box-sizing: border-box;
    }

/* Левый блок - логотип и навигация */
.header-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

/* Блок логотипа */
.header-logo {
    font-family: var(--font-family-stolzl);
    font-size: 1.5rem; /* 24px из Figma */
    line-height: 1.1; /* из Figma */
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    }

.header-logo:hover {
    color: var(--text-color);
    text-decoration: none;
    }

/* Блок навигации */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 1.875rem; /* 30px из Figma */
    margin-left: clamp(2rem, 3.5vw, 4rem);
    }

.header-nav-line {
    width: 0;
    height: 1.875rem; /* 30px из Figma */
    border-left: 1px solid var(--stroke-color);
    flex-shrink: 0;
    }

.header-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 4vw, 4.375rem); /* Расстояния между пунктами меню из Figma */
    height: 1.875rem;
    margin-left: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-right: clamp(1.5rem, 2.5vw, 2.5rem);
    }

.header-nav-link {
    font-family: var(--font-family-stolzl);
    font-size: 1rem; /* 16px Body/Desktop/M из Figma */
    line-height: 1.3; /* из Figma */
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 0;
    white-space: nowrap;
    }

.header-nav-link:hover {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.header-nav-link.disabled {
    color: #999999;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.header-nav-link.disabled:hover {
    opacity: 0.6;
}

/* Блок кнопки поиска */
.header-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    min-width: 8.75rem;
    flex: 0 0 auto;
    transition: flex 0.4s ease, background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.main-header.search-active .header-search {
    flex: 1;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(92, 111, 235, 0.35);
    border-radius: 50px;
    padding: 0 1.5rem 0 0;
    box-shadow: 0px 25px 50px rgba(48, 48, 48, 0.12);
}

.header-search-button {
    width: 8.75rem; /* 140px из Figma */
    height: 3.75rem; /* 60px из Figma */
    background: var(--primary-color); /* #5C6FEB из Figma */
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px между иконкой и текстом */
    cursor: pointer;
    padding: 1.125rem 1.7rem;
    box-sizing: border-box;
    box-shadow: 0px 1.6875rem 4.14375rem rgba(96, 96, 96, 0.25); /* 0px 27px 66.3px из Figma */
    flex-shrink: 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, width 0.35s ease, border-radius 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    margin-left: auto;
}

.header-search-button:hover {
    background-color: #313F9A;
}

.header-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.header-search-button svg {
    width: 1.5rem; /* 24px из Figma */
    height: 1.5rem; /* 24px из Figma */
    flex-shrink: 0;
    }

.header-search-button-text {
    font-family: var(--font-family-stolzl);
    font-size: 1rem; /* 16px Body/Desktop/M из Figma */
    line-height: 1.3; /* из Figma */
    font-weight: 400;
    color: var(--white);
    white-space: nowrap;
    transition: opacity 0.25s ease, width 0.25s ease, margin 0.25s ease;
    }

.header-search-input {
    border: none;
    background: transparent;
    font-family: var(--font-family-stolzl);
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-color);
    width: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    margin-left: 0;
    transition: width 0.45s ease, opacity 0.3s ease, margin 0.35s ease;
    min-width: 0;
}

.header-search-input::placeholder {
    color: rgba(48, 48, 48, 0.65);
}

.header-search-input:focus {
    outline: none;
}

.main-header.search-active .header-search-button {
    width: 3.75rem;
    padding: 0;
    border-radius: 999px;
    margin-left: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.main-header.search-active .header-search-button-text {
    opacity: 0;
    width: 0;
    margin: 0;
}

.main-header.search-active .header-search-icon {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header.search-active .header-search-input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    margin-left: 1rem;
}

/* Декоративные элементы - все поверх изображения */
/* Тень 1 - слева от изображения (x: -45, y: 423 из Figma) */
.decorative-shadow-1 {
    position: absolute;
    left: -2.8125rem; /* -45px из Figma */
    top: 37.4%; /* 423px из 1131px высоты */
    width: clamp(4rem, 5.7vw, 6.8125rem); /* 109px из Figma */
    height: clamp(4.5rem, 6.1vh, 6.875rem); /* 110px из Figma */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem; /* 8px из Figma */
    backdrop-filter: blur(0.725rem);
    z-index: 25; /* Поверх изображения (z-index: 20) */
    pointer-events: none;
    }

/* Тень 2 - справа от изображения (x: 1193, y: 747 из Figma) */
.decorative-shadow-2 {
    position: absolute;
    right: 38%;
    top: 66%;
    width: clamp(4rem, 5.7vw, 6.8125rem); /* 109px из Figma */
    height: clamp(4.5rem, 6.1vh, 6.875rem); /* 110px из Figma */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem; /* 8px из Figma */
    backdrop-filter: blur(0.725rem);
    z-index: 25; /* Поверх изображения */
    pointer-events: none;
}

/* Тень 3 - справа вверху (x: 12.6%, y: 33% из текущих стилей) */
.decorative-shadow-3 {
    position: absolute;
    right: 12.6%;
    top: 33%;
    width: clamp(3.5rem, 5.3vw, 6.375rem);
    height: clamp(4rem, 5.4vh, 6.4375rem);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    box-shadow: inset 0px -0.9375rem 3.85rem rgba(54, 69, 226, 0.17);
    backdrop-filter: blur(0.725rem);
    z-index: 25; /* Поверх изображения */
    pointer-events: none;
}

/* Тень 4 - квадрат, позиционирован слева и снизу в контейнере с изображением */
.decorative-shadow-4 {
    position: absolute;
    left: clamp(0.5rem, 1vw, 1rem);
    bottom: clamp(7rem, 5vh, 5rem);
    width: clamp(4rem, 5vw, 6rem); /* Квадрат - равные стороны */
    height: clamp(4rem, 5vw, 6rem); /* Квадрат - равные стороны */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem; /* 8px из Figma */
    backdrop-filter: blur(0.725rem);
    z-index: 25; /* Поверх изображения */
    pointer-events: none;
}

/* Тень 5 - квадрат, позиционирован справа вверху в контейнере с изображением */
.decorative-shadow-5 {
    position: absolute;
    right: clamp(0.5rem, 1vw, 1rem); /* Небольшой отступ справа */
    top: clamp(13rem, 4vh, 4rem);
    width: clamp(4rem, 5vw, 6rem); /* Квадрат - равные стороны */
    height: clamp(4rem, 5vw, 6rem); /* Квадрат - равные стороны */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem; /* 8px из Figma */
    backdrop-filter: blur(0.725rem);
    z-index: 25; /* Поверх изображения */
    pointer-events: none;
}

/* Обертка для изображения и декоративного прямоугольника */
.hero_image-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: clamp(20rem, 28vw, 33.3125rem);
    min-width: 20rem;
    max-width: 431px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Изображение прижато к нижней границе wrapper'а */
    height: 100%; /* Высота всегда равна высоте родительского контейнера */
    align-self: stretch; /* Растягиваем на всю высоту родителя */
    overflow: hidden; /* Обрезаем все элементы, выходящие за границы */
}

/* Новый синий прямоугольник - между decorative-vector и изображением */
.decorative-blue-rect-2 {
    position: absolute;
    top: 30%; /* Сдвигаем вниз на 30% */
    width: clamp(18rem, 19vw, 22.8125rem); /* 365px из требований */
    height: clamp(35rem, 76vh, 53.875rem); /* 862px из требований */
    background: #5C6FEB; /* Основной цвет */
    border-radius: 2.8125rem; /* 45px из требований */
    z-index: 18; /* Выше decorative-vector (15), но ниже изображения (20) */
    pointer-events: none;
}

.decorative-vector {
    position: absolute;
    right: 3%; /* Сдвигаем еще правее, ближе к изображению */
    top: 50%;
    transform: translateY(clamp(8rem, 12vh, 15rem)); /* Смещаем еще ниже */
    width: clamp(8rem, 10.9vw, 13.125rem); /* 210px из Figma */
    height: clamp(30rem, 66vh, 46.8125rem); /* 749px из Figma */
    filter: blur(8.6rem); /* 137.9px из Figma */
    z-index: 15; /* За изображением (изображение z-index: 20) */
    overflow: visible;
    pointer-events: none;
}

.decorative-vector svg {
        width: 100%;
    height: 100%;
    }

.decorative-blue-rect {
    position: absolute;
    right: 17.8%; /* x: 1213 из 1920px */
    top: 44.8%; /* y: 507 из 1131px */
    width: clamp(12rem, 19vw, 22.8125rem); /* 365px из Figma */
    height: clamp(35rem, 76vh, 53.875rem); /* 862px из Figma */
    background: var(--primary-color);
    border-radius: 2.8125rem; /* 45px из Figma */
    z-index: 21; /* Поверх изображения (изображение z-index: 20) */
    pointer-events: none;
}

.white-gradient {
    position: absolute;
    right: 0;
    bottom: 0; /* Прижимаем к нижней границе контейнера */
    left: 0; /* Занимает всю ширину */
    top: 50%; /* Начинается с середины контейнера */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 999; /* Максимальный z-index - поверх всех элементов */
}

/* Основной контент HERO блока - flex контейнер */
.hero_wrapper {
    position: relative;
        width: 100%;
    max-width: 100%;
    display: flex;
    align-items: stretch; /* Растягиваем элементы на всю высоту */
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3rem);
    padding: 0;
    z-index: 10;
    box-sizing: border-box;
    background-color: var(--white);
}

/* Левая часть контента */
.hero_content {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 58%;
    height: 100%; /* Высота на 100% родительского контейнера */
    z-index: 20;
    padding-top: clamp(4rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 3vw, 2.5rem);
    box-sizing: border-box;
    justify-content: space-between;
    background-color: var(--white);
}

/* Имя с тегом Development - по данным Figma */
.hero_name {
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 0.8vw, 0.75rem);
    flex-wrap: nowrap;
    margin: 0 0 clamp(5rem, 8vw, 6.5rem) 0;
    background-color: var(--white);
}

.hero_name .name-part-1 {
    font-family: var(--font-family-stolzl);
    font-size: clamp(4rem, 5vw, 6rem); /* 96px из Figma */
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;
}

.hero_name .name-part-2 {
    font-family: var(--font-family-stolzl);
    font-size: clamp(4rem, 5vw, 6rem); /* 96px из Figma */
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;
}

.hero_name .dev-tag {
    margin: 0 clamp(0.5rem, 0.8vw, 0.625rem);
    width: clamp(8rem, 9vw, 8.75rem); /* 140px из Figma */
    height: clamp(3.5rem, 3.8vw, 3.75rem); /* 60px из Figma */
    background: var(--primary-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5625rem 0.9375rem; /* 25px 15px из Figma */
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.hero_name .dev-tag-text {
    font-family: var(--font-family-stolzl);
    font-size: 1rem; /* 16px Body/Desktop/M из Figma */
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
    white-space: nowrap;
    position: relative;
    display: inline-block;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.hero_name .dev-tag-text.slide-out-left {
    animation: slideOutLeft 0.5s ease-in-out forwards;
}

.hero_name .dev-tag-text.slide-in-right {
    animation: slideInRight 0.5s ease-in-out forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Контент с текстом */
.hero_content_text {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 1.875rem);
    margin-top: 0;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
    background-color: var(--white);
}

/* Кнопка роли - по данным Figma */
.hero_role {
    width: fit-content;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    background-color: var(--white);
}

.hero_role .role_text {
    font-family: var(--font-family-times); /* Times New Roman из Figma */
    font-size: 32px; /* 32px как требуется */
    line-height: 1.1;
    font-weight: 400;
    color: var(--white);
    font-style: italic;
    background: var(--primary-color);
    border-radius: 1000px;
    padding: 2rem 3.25rem; /* 32px 52px из Figma, высота кнопки 100px */
    margin: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 6.25rem; /* 100px из Figma */
}

/* Описание с bullet */
.hero_full_text {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 2vw, 1.875rem);
    background-color: var(--white);
    }

.hero_full_text .description-bullet {
    width: 0.875rem; /* 14px из Figma */
    height: 0.875rem; /* 14px из Figma */
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 4.125rem; /* 66px из Figma - позиция bullet относительно начала текста */
    flex-shrink: 0;
    align-self: flex-start;
}

.hero_full_text .hero_description_text {
    font-family: var(--font-family-stolzl);
    font-size: 26px; /* 26px как требуется */
    line-height: 1.1; /* из Figma */
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    max-width: 48rem; /* 768px из Figma */
        flex: 1;
}

/* Социальные кнопки - внизу контента */
.hero_content .social-buttons {
    display: flex;
    gap: clamp(1rem, 1.5vw, 1.2rem);
    align-items: center;
    flex-wrap: wrap;
    margin-top: clamp(2rem, 3vw, 2.5rem);
    background-color: var(--white);
    }

.hero_content .social-button {
    height: clamp(2.5rem, 3vw, 3rem); /* Уменьшаем высоту */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Уменьшаем gap */
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 0.9vw, 0.9375rem); /* Уменьшаем размер шрифта */
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.hero_content .social-button.blog {
    width: clamp(10rem, 11vw, 11rem); /* Уменьшаем ширину */
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--text-color);
    padding: clamp(0.75rem, 1vw, 0.875rem) clamp(1.25rem, 1.5vw, 1.5rem); /* Уменьшаем padding */
    background-color: var(--white);
    }

.hero_content .social-button.telegram {
    width: clamp(10rem, 11vw, 11rem); /* Уменьшаем ширину */
    background: var(--primary-color);
    color: var(--white);
    padding: clamp(0.75rem, 1vw, 0.875rem); /* Уменьшаем padding */
}

.hero_content .social-button.telegram svg {
    width: clamp(1rem, 1.1vw, 1.125rem); /* Уменьшаем размер иконки */
    height: clamp(0.875rem, 0.95vw, 0.9375rem); /* Уменьшаем размер иконки */
}

.hero_content .social-button.linkedin {
    width: clamp(10rem, 11vw, 11rem); /* Уменьшаем ширину */
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--text-color);
    padding: clamp(0.75rem, 1vw, 0.875rem) clamp(1.25rem, 1.5vw, 1.5625rem); /* Уменьшаем padding */
    background-color: var(--white);
}

/* Правая часть - изображение */
.hero_image {
    position: relative;
        width: 100%;
        height: auto;
    aspect-ratio: 533 / 1023;
    z-index: 20; /* Изображение поверх decorative-blue-rect-2 (18) */
    margin-left: auto; /* Прижимаем к правой границе контейнера */
    margin-top: auto; /* Прижимаем к нижней границе wrapper'а */
}

.hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ ДЕСКТОПНОЙ ВЕРСИИ
   ============================================ */

/* Фиксируем ширину и высоту hero_image-wrapper на экранах ниже 1520px */
@media (max-width: 1520px) and (min-width: 1201px) {
    .hero_image-wrapper {
        width: 425px; /* Фиксированная ширина */
        min-width: 425px;
        max-width: 425px;
        height: 719px; /* Фиксированная высота */
        min-height: 719px;
        max-height: 719px;
        overflow: hidden; /* Обрезаем все элементы, выходящие за границы */
    }

    .decorative-blue-rect-2 {
        max-height: 60%; /* Не более 60% высоты от главного изображения */
        top: auto; /* Убираем позиционирование сверху */
        bottom: 0; /* Прижимаем к нижней границе */
    }
}

/* При уменьшении экрана - корректируем пропорции */
@media (max-width: 1600px) and (min-width: 1201px) {
    .hero_content {
        max-width: 60%;
    }

    .hero_image {
        width: clamp(18rem, 25vw, 28.125rem);
    }

    .hero_image-wrapper {
        height: 100%; /* Высота всегда равна высоте родительского контейнера */
        align-self: stretch; /* Растягиваем на всю высоту родителя */
    }
}

@media (max-width: 1400px) and (min-width: 1201px) {
    .hero_content {
        max-width: 55%;
    }

    .hero_image-wrapper {
        height: 100%; /* Высота всегда равна высоте родительского контейнера */
        align-self: stretch; /* Растягиваем на всю высоту родителя */
    }
}

@media (max-width: 1200px) and (min-width: 721px) {
    .container {
        width: 90%; /* Ширина 90% от ширины экрана */
        max-width: none; /* Убираем ограничение по максимальной ширине */
    }

    .main-header {
        z-index: 30; /* Выше главного изображения (z-index: 20) */
        position: relative; /* Для работы z-index */
    }

    .hero_content .social-buttons {
        z-index: 30; /* Выше главного изображения (z-index: 20) */
        position: relative; /* Для работы z-index */
    }

    .hero_wrapper {
        gap: clamp(1rem, 1.5vw, 1.25rem);
        align-items: stretch; /* Явно растягиваем элементы */
        min-height: fit-content; /* Минимальная высота по содержимому */
    }

    .hero_content {
        max-width: 50%;
        height: auto; /* Автоматическая высота по содержимому */
        min-height: 100%; /* Минимум на всю высоту родителя */
    }

    .hero_image-wrapper {
        width: 425px !important; /* Фиксированная ширина с !important для приоритета */
        min-width: 425px !important;
        max-width: 425px !important;
        height: auto !important; /* Автоматическая высота */
        min-height: 100% !important; /* Минимум на всю высоту родителя */
        max-height: none !important; /* Убираем ограничение по максимальной высоте */
        align-self: stretch !important; /* Растягиваем на всю высоту родителя */
        flex: 0 0 425px !important; /* Фиксированная ширина через flex */
        overflow: hidden; /* Обрезаем все элементы, выходящие за границы */
        z-index: 10 !important; /* Ниже социальных кнопок и меню (z-index: 30) */
    }

    .hero_image {
        z-index: 20 !important; /* Выше decorative-blue-rect-2 (z-index: 15) внутри wrapper'а */
    }

    .decorative-blue-rect-2 {
        max-height: 60%; /* Не более 60% высоты от главного изображения */
        top: auto; /* Убираем позиционирование сверху */
        bottom: 0; /* Прижимаем к нижней границе */
        z-index: 15 !important; /* Ниже изображения (z-index: 20) внутри wrapper'а, но выше decorative-vector */
    }

    /* Заголовок: "Воронов" на новую строку */
    .hero_name {
        flex-wrap: wrap;
    }

    .hero_name .name-part-2 {
        flex-basis: 100%; /* Переносим "Воронов" на новую строку */
        margin-top: clamp(0.5rem, 0.8vw, 0.75rem); /* Небольшой отступ сверху */
    }

    /* Социальные кнопки: увеличены в 2 раза и в одну строку */
    .hero_content .social-buttons {
        flex-wrap: nowrap; /* Кнопки в одну строку */
    }

    .hero_content .social-button {
        height: clamp(5rem, 6vw, 6rem); /* Увеличено в 2 раза */
        font-size: clamp(1.75rem, 1.8vw, 1.875rem); /* Увеличено в 2 раза */
    }

    .hero_content .social-button.blog {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза */
        padding: clamp(1.5rem, 2vw, 1.75rem) clamp(2.5rem, 3vw, 3rem); /* Увеличено в 2 раза */
    }

    .hero_content .social-button.telegram {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза */
        padding: clamp(1.5rem, 2vw, 1.75rem); /* Увеличено в 2 раза */
    }

    .hero_content .social-button.telegram svg {
        width: clamp(2rem, 2.2vw, 2.25rem); /* Увеличено в 2 раза */
        height: clamp(1.75rem, 1.9vw, 1.875rem); /* Увеличено в 2 раза */
    }

    .hero_content .social-button.linkedin {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза */
        padding: clamp(1.5rem, 2vw, 1.75rem) clamp(2.5rem, 3vw, 3.125rem); /* Увеличено в 2 раза */
    }
}

/* На ширине 1070px и ниже - ширина в процентах, высота auto */
@media (max-width: 1070px) {
    /* Элементы в .hero_content */
    .hero_name {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .hero_name .name-part-1 {
        width: auto;
        height: auto;
        font-size: clamp(2rem, 6vw, 4rem); /* Адаптивный размер шрифта */
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero_name .name-part-2 {
        width: auto;
        height: auto;
        font-size: clamp(2rem, 6vw, 4rem); /* Адаптивный размер шрифта */
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero_name .dev-tag {
        width: auto;
        min-width: fit-content;
        max-width: none;
        height: auto;
        box-sizing: border-box;
        padding: clamp(0.75rem, 2vw, 1.5625rem) clamp(0.75rem, 2vw, 0.9375rem);
    }

    .hero_name .dev-tag-text {
        width: auto;
        height: auto;
        font-size: clamp(0.75rem, 2vw, 1rem); /* Адаптивный размер шрифта */
        white-space: nowrap; /* Слово "Development" на одной строке */
        box-sizing: border-box;
    }

    .hero_content_text {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .hero_role {
        width: fit-content;
        max-width: 90%;
        height: auto;
        box-sizing: border-box;
    }

    .hero_role .role_text {
        width: 100%;
        height: auto;
        font-size: clamp(1.5rem, 4vw, 2rem); /* Адаптивный размер шрифта (32px = 2rem) */
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 4vw, 3.25rem);
        box-sizing: border-box;
    }

    .hero_full_text {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .hero_full_text .description-bullet {
        width: 1%;
        min-width: 0.875rem;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .hero_full_text .hero_description_text {
        width: 98%;
        height: auto;
        font-size: clamp(1rem, 3vw, 1.625rem); /* Адаптивный размер шрифта (26px = 1.625rem) */
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }

    .hero_content .social-buttons {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        flex-wrap: nowrap; /* Кнопки в одну строку, как в диапазоне выше 1070 */
    }

    .hero_content .social-button {
        height: clamp(5rem, 6vw, 6rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        font-size: clamp(1.75rem, 1.8vw, 1.875rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        white-space: nowrap; /* Текст на одной строке */
        box-sizing: border-box;
    }

    .hero_content .social-button.blog {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        padding: clamp(1.5rem, 2vw, 1.75rem) clamp(2.5rem, 3vw, 3rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
    }

    .hero_content .social-button.telegram {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        padding: clamp(1.5rem, 2vw, 1.75rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
    }

    .hero_content .social-button.telegram svg {
        width: clamp(2rem, 2.2vw, 2.25rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        height: clamp(1.75rem, 1.9vw, 1.875rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
    }

    .hero_content .social-button.linkedin {
        width: clamp(20rem, 22vw, 22rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
        padding: clamp(1.5rem, 2vw, 1.75rem) clamp(2.5rem, 3vw, 3.125rem); /* Увеличено в 2 раза, как в диапазоне выше 1070 */
    }

    /* Элементы в .hero_image-wrapper */
    .decorative-blue-rect-2 {
        height: auto;
        aspect-ratio: 365 / 862;
        max-height: 60%;
    }

    .decorative-shadow-4,
    .decorative-shadow-5 {
        width: 10%;
        min-width: 3rem;
        max-width: 6rem;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .white-gradient {
        width: 100%;
        height: auto;
    }

    .hero_image {
        width: 100%;
        height: auto;
    }

    .hero_image img {
        width: 100%;
        height: auto;
    }
}

/* На ширине 921px и ниже - компоновка через flex-grow */
@media (max-width: 921px) {
    .hero_wrapper {
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .hero_content {
        flex: 3 1 0 !important; /* Занимает большую часть ширины (60-70%) */
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .hero_image-wrapper {
        flex: 2 1 0 !important; /* Занимает часть ширины */
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    /* Размеры шрифтов в .hero_content через rem */
    .hero_name .name-part-1 {
        font-size: 2.5rem; /* 40px */
    }

    .hero_name .name-part-2 {
        font-size: 2.5rem; /* 40px */
    }

    .hero_name .dev-tag-text {
        font-size: 0.875rem; /* 14px */
    }

    .hero_role .role_text {
        font-size: 1.5rem; /* 24px */
    }

    .hero_full_text .hero_description_text {
        font-size: 1rem; /* 16px */
    }

    .hero_content .social-button {
        font-size: 1rem; /* 16px */
    }

    /* Все элементы внутри .hero_image-wrapper в процентах от его ширины */
    .decorative-blue-rect-2 {
        width: 85%;
        height: auto;
        aspect-ratio: 365 / 862;
        max-height: 60%;
    }

    .decorative-shadow-4,
    .decorative-shadow-5 {
        width: 10%;
        min-width: 3rem;
        max-width: 6rem;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .white-gradient {
        width: 100%;
        height: auto;
    }

    .hero_image {
        width: 100%;
        height: auto;
    }

    .hero_image img {
        width: 100%;
        height: auto;
    }
}

/* Планшетная версия - 720px (точные размеры из Figma) */
@media (max-width: 720px) {
    /* Переопределяем переменную для этого диапазона */
:root {
        --content-width: 100% !important;
    }

    /* Общий контейнер - центрируем в сетке */
    html, body {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .container {
        width: 100% !important;
        max-width: 720px !important;
        min-width: 0 !important;
        padding: 0 !important;
        /* margin-left: auto устанавливается в правиле для 500-720px */
        margin-right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        overflow-x: visible !important;
    }

    /* Header - как на разрешениях выше 720px, но с уменьшенными размерами шрифтов в rem, ограничен контейнером */
    .main-header {
        width: 100% !important;
        max-width: 100% !important; /* Ограничивается контейнером (.container) */
        min-width: 0 !important; /* Позволяет сжиматься */
        height: 4.625rem !important; /* 74px */
        padding: 0 clamp(1.25rem, 3vw, 2.5rem) !important; /* Адаптивный padding в rem */
        margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(2rem, 3vw, 3rem) 0 !important; /* Убираем auto, меню внутри контейнера */
        border-radius: 100px !important;
        background: rgba(92, 111, 235, 0.03) !important;
        backdrop-filter: blur(1.4rem) !important;
        box-shadow: 0px 0.5rem 1.5rem rgba(96, 96, 96, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Предотвращаем выход за границы */
        position: relative !important; /* Убираем абсолютное позиционирование если есть */
    }

    /* Убеждаемся, что контейнер ограничивает ширину меню */
    .container > .main-header {
        max-width: 100% !important;
        width: 100% !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: clamp(1rem, 2vw, 1.5rem) !important; /* Уменьшен gap */
        flex: 1;
        min-width: 0; /* Позволяет сжиматься */
    }

    .header-logo {
        font-size: 1.2rem !important; /* Уменьшено с 1.5rem */
        line-height: 1.1 !important;
        flex-shrink: 0;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .header-nav {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        height: 1.875rem !important; /* 30px */
        flex: 1 !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0; /* Позволяет сжиматься */
    }

    .header-nav-line {
        width: 0 !important;
        height: 1.875rem !important; /* 30px */
        border-left: 1px solid var(--stroke-color) !important;
        flex-shrink: 0;
    }

    .header-nav-links {
        display: flex !important;
        align-items: center !important;
        gap: clamp(1.5rem, 3vw, 2.5rem) !important; /* Уменьшен gap */
        height: 1.875rem !important; /* 30px */
        margin-left: clamp(1rem, 2vw, 1.5rem) !important; /* Уменьшен margin */
        margin-right: clamp(1rem, 2vw, 1.5rem) !important; /* Уменьшен margin */
        flex-wrap: nowrap !important;
    }

    .header-nav-link {
        font-size: 0.875rem !important; /* 14px - уменьшено с 1rem */
        line-height: 1.3 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .header-search-button {
        width: clamp(7rem, 12vw, 8.75rem) !important; /* Адаптивная ширина в rem */
        height: 3.75rem !important; /* 60px */
        background: var(--primary-color) !important;
        border-radius: 50px !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important; /* Уменьшен gap */
        padding: 1.125rem clamp(1rem, 2vw, 1.7rem) !important; /* Адаптивный padding */
        flex-shrink: 0;
        margin: 0 !important;
        position: relative !important;
    }

    .header-search-button svg {
        width: 1.2rem !important; /* 19.2px - уменьшено с 1.5rem */
        height: 1.2rem !important; /* 19.2px - уменьшено с 1.5rem */
        flex-shrink: 0;
    }

    .header-search-button-text {
        font-size: 0.875rem !important; /* 14px - уменьшено с 1rem */
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }

    /* Hero section */
    .hero-section {
        min-height: 600px !important;
        position: relative;
        overflow: visible;
        width: 100%;
    }

    /* Hero wrapper - используем flexbox */
    .hero_wrapper {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0 0 0 50px !important; /* Только левый padding */
        margin: 62px 0 0 0 !important; /* 107px - 13px (header) - 32px (header height) */
        min-height: 500px !important;
        width: 100% !important;
        max-width: 720px !important;
        box-sizing: border-box !important;
        overflow-x: visible !important;
    }

    /* Hero content - точные размеры из Figma: x:50, y:107, width:380, height:172 */
    .hero_content {
        position: relative !important;
        width: 380px !important;
        max-width: 380px !important;
        min-width: 380px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 0 0 380px !important;
        z-index: 20;
        height: auto;
    }

    /* Имя - точные размеры из Figma */
    .hero_name {
        width: 380px !important;
        margin: 0 0 20px 0 !important; /* 120px - 100px от начала контента */
        gap: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: relative;
    }

    .hero_name .name-part-1 {
        font-size: 45px !important;
        line-height: 1.1 !important;
        width: 165px !important;
        height: 50px !important;
        margin: 0 !important;
    }

    .hero_name .name-part-2 {
        font-size: 45px !important;
        line-height: 1.1 !important;
        width: 235px !important;
        height: 50px !important;
        margin: 2px 0 0 0 !important; /* 52px - 50px */
    }

    /* Development tag - точные размеры: x:175, y:11, width:65, height:32 */
    .hero_name .dev-tag {
        position: absolute !important;
        left: 175px !important;
        top: 11px !important;
        width: 65px !important;
        height: 32px !important;
        padding: 11.5px 6.9px !important;
        margin: 0 !important;
    }

    .hero_name .dev-tag-text {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    /* Role button - точные размеры: x:0, y:120, width:380, height:52 */
    .hero_role {
        width: 380px !important;
        margin: 0 !important;
    }

    .hero_role .role_text {
        width: 380px !important;
        height: 52px !important;
        font-size: 22px !important;
        line-height: 1.045 !important;
        padding: 15px 44px !important;
        min-height: 52px !important;
    }

    .hero_content_text {
        margin: 0 !important;
    }

    /* Описание - точные размеры: x:50, y:309, width:312, height:119 */
    .hero_full_text {
        width: 312px !important;
        margin: 0 !important;
        gap: 15px !important;
    }

    .hero_full_text .description-bullet {
        width: 14px !important;
        height: 14px !important;
        margin-top: 53px !important;
    }

    .hero_full_text .hero_description_text {
        width: 283px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        max-width: 283px !important;
    }

    /* Социальные кнопки - точные размеры: x:50, y:490, width:460, height:50 */
    .hero_content .social-buttons {
        width: 460px !important;
        height: 50px !important;
        margin: 91px 0 0 0 !important; /* 490px - 107px (начало hero_content) - 292px (высота контента) */
        gap: 20px !important;
        flex-wrap: nowrap !important;
        background-color: transparent !important; /* Убираем фон вокруг кнопок */
    }

    .hero_content .social-button {
        width: 140px !important;
        height: 50px !important;
        font-size: 14px !important;
        padding: 20px !important;
        border-radius: 50px !important;
    }

    .hero_content .social-button.blog {
        width: 140px !important;
        padding: 20px 30px !important;
    }

    .hero_content .social-button.telegram {
        width: 140px !important;
        padding: 20px 0 !important;
    }

    .hero_content .social-button.telegram svg {
        width: 20px !important;
        height: 17px !important;
    }

    .hero_content .social-button.linkedin {
        width: 140px !important;
        padding: 20px 31px !important;
    }

    /* Hero image wrapper - точные размеры из Figma: x:321, y:94, width:478, height:481 */
    /* Сдвигаем влево, чтобы вписаться в экран 720px: контент 380px + отступ 50px = 430px, остается 290px, но изображение 478px, значит сдвигаем на 188px влево */
    .hero_image-wrapper {
        position: relative !important;
        width: 478px !important;
        height: 481px !important;
        min-width: 478px !important;
        max-width: 478px !important;
        flex: 0 0 478px !important;
        margin: -13px 0 0 -188px !important; /* Смещение вверх на 13px и влево на 188px для вписывания в экран */
        z-index: 10;
        align-self: flex-start;
    }

    /* Изображение - точные размеры: x:123, y:0, width:271, height:480 */
    .hero_image {
        width: 271px !important;
        height: 480px !important;
        margin: 0 0 0 199px !important;
    }

    .hero_image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Декоративные элементы - точные размеры из Figma */
    .decorative-blue-rect-2 {
        position: absolute !important;
        left: 198px !important;
        top: 203px !important;
        width: 185px !important;
        height: 275px !important;
        background: #5C6FEB !important;
        border-radius: 45px !important;
        z-index: 15 !important;
    }

    .decorative-vector {
        position: absolute !important;
        left: 154px !important;
        top: 163px !important;
        width: 107px !important;
        height: 171px !important;
        filter: blur(70px) !important;
        z-index: 2 !important;
    }

    .white-gradient {
        position: absolute !important;
        left: 0 !important;
        top: 217px !important;
        width: 478px !important;
        height: 264px !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.78) 59%, rgba(255, 255, 255, 0.87) 77%, rgba(255, 255, 255, 1) 100%) !important;
        z-index: 999 !important;
}

    .decorative-shadow-4 {
        position: absolute !important;
        left: 419px !important;
        top: 366px !important;
        width: 71px !important;
        height: 72px !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 4.82px !important;
        backdrop-filter: blur(7.57px) !important;
        z-index: 25 !important;
    }

    .decorative-shadow-5 {
        position: absolute !important;
        left: 618px !important;
        top: 227px !important;
        width: 67px !important;
        height: 67px !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 4.82px !important;
        backdrop-filter: blur(7.57px) !important;
        z-index: 25 !important;
    }
}

/* Старые стили удалены - используем новую адаптивную верстку через flex */

body {
    font-family: var(--font-family-stolzl);
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

/* Главный контейнер Hero блока */
.hero-container {
    position: relative;
    width: var(--content-width);
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background-color: #FFFFFF;
    /* Отладочная информация - можно удалить после проверки */
    /* border: 1px solid red; */
}

/* Мобильная шапка - скрыта на всех разрешениях, кроме мобильных */
.mobile-header {
    display: none;
}

/* Декоративная тень вне сетки */
.decorative-shadow-1 {
    position: fixed;
    left: calc(-109 * var(--scale-factor) / 2);
    top: calc(423 * var(--scale-factor));
    width: calc(109 * var(--scale-factor));
    height: calc(110 * var(--scale-factor));
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(8 * var(--scale-factor));
    box-shadow: inset 0px calc(-15 * var(--scale-factor)) calc(61.6 * var(--scale-factor)) rgba(54, 69, 226, 0.17);
    backdrop-filter: blur(calc(11.6 * var(--scale-factor)));
    z-index: 10;
}

/* Header */
.hero-header {
    position: absolute;
    left: calc(240 * var(--width-scale));
    top: calc(28 * var(--scale-factor));
    width: calc(1440 * var(--width-scale));
    height: calc(74 * var(--scale-factor));
    background: rgba(92, 111, 235, 0.03);
    backdrop-filter: blur(calc(22.4 * var(--scale-factor)));
    border-radius: calc(100 * var(--scale-factor));
    box-shadow: 0px calc(27 * var(--scale-factor)) calc(66.3 * var(--scale-factor)) rgba(96, 96, 96, 0.25);
}

@media (max-width: 1000px) {
    .hero-header {
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

.logo {
    position: absolute;
    left: calc(40 * var(--width-scale));
    top: calc(24 * var(--scale-factor));
    font-size: calc(24 * var(--scale-factor));
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0;
    width: calc(125 * var(--width-scale));
    height: calc(26 * var(--scale-factor));
}

.nav {
    position: absolute;
    left: calc(225 * var(--width-scale));
    top: calc(22 * var(--scale-factor));
    height: calc(30 * var(--scale-factor));
    display: flex;
    align-items: center;
    gap: 0;
}

@media (max-width: 1000px) {
    .nav {
        left: calc(283 * var(--width-scale));
    }
}

.nav-line {
    width: 0;
    height: calc(30 * var(--scale-factor));
    border-left: 1px solid var(--stroke-color);
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    height: calc(30 * var(--scale-factor));
    margin-left: calc(60 * var(--width-scale));
    margin-right: calc(60 * var(--width-scale));
}

.nav-link {
    font-size: calc(16 * var(--scale-factor));
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 0;
    white-space: nowrap;
    height: calc(21 * var(--scale-factor));
}

.nav-link:nth-of-type(1) {
    width: calc(61 * var(--width-scale));
    margin-right: calc(60 * var(--width-scale));
}

.nav-link:nth-of-type(2) {
    width: calc(39 * var(--width-scale));
    margin-right: calc(60 * var(--width-scale));
}

.nav-link:nth-of-type(3) {
    width: calc(109 * var(--width-scale));
}

/* Кнопка поиска */
.search-button {
    position: absolute;
    right: calc(7 * var(--width-scale));
    top: calc(7 * var(--scale-factor));
    /* Используем один коэффициент масштабирования для сохранения пропорций */
    /* Исходные размеры: width=140px, height=60px, используем scale-factor для единообразия */
    --button-scale: var(--scale-factor);
    width: calc(140 * var(--button-scale));
    height: calc(60 * var(--button-scale));
    background: var(--primary-color);
    border-radius: calc(50 * var(--button-scale));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(10 * var(--button-scale));
    box-shadow: 0px calc(27 * var(--button-scale)) calc(66.3 * var(--button-scale)) rgba(96, 96, 96, 0.25);
    cursor: pointer;
    /* Паддинги масштабируются пропорционально: исходные 18px вертикально, 27px горизонтально */
    padding: calc(18 * var(--button-scale)) calc(27 * var(--button-scale));
    box-sizing: border-box;
}

.search-button svg {
    width: calc(24 * var(--button-scale));
    height: calc(24 * var(--button-scale));
    flex-shrink: 0;
}

.search-button-text {
    font-size: calc(16 * var(--button-scale));
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
    white-space: nowrap;
}

/* Основное имя */
.main-name {
    position: absolute;
    left: calc(240 * var(--width-scale));
    top: calc(210 * var(--scale-factor));
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: calc(24 * var(--width-scale));
    width: calc(1253 * var(--width-scale));
    height: calc(106 * var(--scale-factor));
}

.name-part-1 {
    font-size: calc(96 * var(--scale-factor));
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0;
    height: calc(106 * var(--scale-factor));
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    flex: 0 0 auto;
}

/* Тег Development */
.dev-tag {
    /* Используем один коэффициент масштабирования для сохранения пропорций */
    /* Исходные размеры: width=140px, height=60px, используем scale-factor для единообразия */
    --dev-tag-scale: var(--scale-factor);
    margin-left: calc(10 * var(--dev-tag-scale));
    margin-right: calc(10 * var(--dev-tag-scale));
    width: calc(140 * var(--dev-tag-scale));
    height: calc(60 * var(--dev-tag-scale));
    background: var(--primary-color);
    border-radius: calc(50 * var(--dev-tag-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    /* Паддинги масштабируются пропорционально: исходные 25px вертикально, 15px горизонтально */
    padding: calc(25 * var(--dev-tag-scale)) calc(15 * var(--dev-tag-scale));
    box-shadow: 0px calc(27 * var(--dev-tag-scale)) calc(66.3 * var(--dev-tag-scale)) rgba(96, 96, 96, 0.25);
    box-sizing: border-box;
    flex-shrink: 0;
}

.dev-tag-text {
    font-size: calc(16 * var(--dev-tag-scale));
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
    white-space: nowrap;
}

.name-part-2 {
    font-size: calc(96 * var(--scale-factor));
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0;
    height: calc(106 * var(--scale-factor));
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    flex: 0 0 auto;
}

/* Кнопка роли */
.role-button {
    position: absolute;
    left: calc(240 * var(--width-scale));
    top: calc(470 * var(--scale-factor));
    width: calc(710 * var(--width-scale));
    height: calc(100 * var(--scale-factor));
    background: var(--primary-color);
    border-radius: calc(1000 * var(--scale-factor));
    display: flex;
    align-items: center;
    padding-left: calc(52 * var(--width-scale));
    box-shadow: 0px calc(27 * var(--scale-factor)) calc(66.3 * var(--scale-factor)) rgba(96, 96, 96, 0.25);
    z-index: 21;
}

.role-button-text {
    font-family: 'Times New Roman', serif;
    font-size: calc(32 * var(--scale-factor));
    line-height: 1.1;
    font-weight: 400;
    color: var(--white);
    font-style: italic;
    width: calc(731 * var(--width-scale));
    height: calc(35 * var(--scale-factor));
}

/* Описание */
.description {
    position: absolute;
    left: calc(240 * var(--width-scale));
    top: calc(600 * var(--scale-factor));
    width: calc(812 * var(--width-scale));
    height: calc(145 * var(--scale-factor));
    display: flex;
    align-items: flex-start;
    gap: calc(30 * var(--width-scale));
}

.description-bullet {
    width: calc(14 * var(--scale-factor));
    height: calc(14 * var(--scale-factor));
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: calc(66 * var(--scale-factor));
    flex-shrink: 0;
}

.description-text {
    font-size: calc(26 * var(--scale-factor));
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    width: calc(768 * var(--width-scale));
}

/* Социальные кнопки */
/* Старые стили для .social-buttons удалены - используем .hero_content .social-buttons */

/* Декоративные элементы - синий прямоугольник */
.decorative-blue-rect {
    position: absolute;
    left: calc(1213 * var(--width-scale));
    top: calc(507 * var(--scale-factor));
    width: calc(365 * var(--width-scale));
    height: calc(862 * var(--scale-factor));
    background: var(--primary-color);
    border-radius: calc(45 * var(--scale-factor));
    box-shadow: 0px calc(27 * var(--scale-factor)) calc(66.3 * var(--scale-factor)) rgba(96, 96, 96, 0.25);
    z-index: 19;
}

/* Декоративный вектор */
.decorative-vector {
    position: absolute;
    left: calc(1281 * var(--width-scale));
    top: calc(428 * var(--scale-factor));
    width: calc(210 * var(--width-scale));
    height: calc(749 * var(--scale-factor));
    filter: blur(calc(137.9 * var(--scale-factor)));
    z-index: 2;
    overflow: visible;
}

.decorative-vector svg {
    width: 100%;
    height: 100%;
}

/* Главное фото */
.hero-photo {
    position: absolute;
    left: calc(1220 * var(--width-scale));
    top: calc(108 * var(--scale-factor));
    width: calc(533 * var(--width-scale));
    height: calc(1023 * var(--scale-factor));
    object-fit: cover;
    object-position: center;
    box-shadow: inset 0px calc(12 * var(--scale-factor)) calc(24.3 * var(--scale-factor)) rgba(255, 255, 255, 0.25);
    z-index: 20;
}

/* Белый градиент */
/* Старое определение .white-gradient удалено - используем основное */

/* Декоративные синие прямоугольники (тени) */
.decorative-shadow-2 {
    position: absolute;
    left: calc(1193 * var(--width-scale));
    top: calc(747 * var(--scale-factor));
    width: calc(109 * var(--width-scale));
    height: calc(110 * var(--scale-factor));
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(8 * var(--scale-factor));
    box-shadow: inset 0px calc(-15 * var(--scale-factor)) calc(61.6 * var(--scale-factor)) rgba(54, 69, 226, 0.17);
    backdrop-filter: blur(calc(11.6 * var(--scale-factor)));
    z-index: 5;
}

.decorative-shadow-3 {
    position: absolute;
    left: calc(1578 * var(--width-scale));
    top: calc(377 * var(--scale-factor));
    width: calc(102 * var(--width-scale));
    height: calc(103 * var(--scale-factor));
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(8 * var(--scale-factor));
    box-shadow: inset 0px calc(-15 * var(--scale-factor)) calc(61.6 * var(--scale-factor)) rgba(54, 69, 226, 0.17);
    backdrop-filter: blur(calc(11.6 * var(--scale-factor)));
    z-index: 5;
}

/* Адаптивность для планшетов */
@media (max-width: 1400px) {
    .main-name {
        flex-wrap: wrap;
        height: auto;
        min-height: calc(106 * var(--scale-factor));
    }

    .name-part-1 {
        font-size: calc(80 * var(--scale-factor));
        width: auto;
    }

    .name-part-2 {
        width: 100%;
        font-size: calc(80 * var(--scale-factor));
        margin-top: calc(10 * var(--scale-factor));
    }

    .dev-tag {
        margin-top: 0;
    }

    .role-button-text {
        font-size: calc(32 * var(--scale-factor) * 0.875);
    }

    .description-text {
        font-size: calc(24 * var(--scale-factor));
    }
}

/* Адаптивность для средних планшетов */
@media (max-width: 1200px) {
    .main-name {
        width: calc(900 * var(--width-scale));
    }

    .name-part-1 {
        font-size: calc(72 * var(--scale-factor));
    }

    .name-part-2 {
        font-size: calc(72 * var(--scale-factor));
    }


    .role-button {
        width: calc(600 * var(--width-scale));
        height: calc(90 * var(--scale-factor));
    }

    .role-button-text {
        font-size: calc(32 * var(--scale-factor) * 0.8125);
    }

    .description {
        width: calc(700 * var(--width-scale));
    }

    .description-text {
        font-size: calc(22 * var(--scale-factor));
        width: calc(680 * var(--width-scale));
    }

    /* Изображение не должно обрезаться */
    .hero-photo {
        left: auto;
        right: 0;
        max-width: 100vw;
        width: auto;
        min-width: calc(533 * var(--width-scale));
    }
}

/* Адаптивность для ширины ниже 1000px */
@media (max-width: 1000px) {
    :root {
        --content-width: 90vw;
        --width-scale: calc(90vw / 1920);
    }
}

/* Адаптивность для маленьких планшетов и больших мобильных */
@media (max-width: 992px) {
    .social-buttons {
        width: 60%;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 500px) {
    .hero-header {
        left: calc(20 * var(--width-scale));
        width: calc(100% - 40 * var(--width-scale));
    }

    .logo {
        left: calc(20 * var(--width-scale));
        font-size: calc(20 * var(--scale-factor));
    }

    .nav {
        left: calc(140 * var(--width-scale));
        font-size: calc(14 * var(--scale-factor));
    }

    .nav-links-wrapper {
        margin-left: calc(30 * var(--width-scale));
        margin-right: calc(30 * var(--width-scale));
        gap: calc(10 * var(--width-scale));
    }

    .nav-link {
        font-size: calc(14 * var(--scale-factor));
    }

    .nav-link:nth-of-type(1),
    .nav-link:nth-of-type(2),
    .nav-link:nth-of-type(3) {
        margin-right: calc(20 * var(--width-scale));
    }


    .main-name {
        left: calc(20 * var(--width-scale));
        width: calc(100% - 40 * var(--width-scale));
        top: calc(180 * var(--scale-factor));
    }

    .name-part-1 {
        font-size: calc(56 * var(--scale-factor));
    }

    .name-part-2 {
        font-size: calc(56 * var(--scale-factor));
    }


    .role-button {
        left: calc(20 * var(--width-scale));
        top: calc(420 * var(--scale-factor));
        width: calc(100% - 40 * var(--width-scale));
        height: calc(80 * var(--scale-factor));
    }

    .role-button-text {
        font-size: calc(32 * var(--scale-factor) * 0.69);
    }

    .description {
        left: calc(20 * var(--width-scale));
        top: calc(540 * var(--scale-factor));
        width: calc(100% - 40 * var(--width-scale));
    }

    .description-text {
        font-size: calc(18 * var(--scale-factor));
        width: 100%;
    }

    .social-buttons {
        left: calc(20 * var(--width-scale));
        top: calc(850 * var(--scale-factor));
        width: calc(100% - 40 * var(--width-scale));
        flex-wrap: wrap;
        gap: calc(15 * var(--width-scale));
    }

    .social-button {
        width: calc(150 * var(--width-scale));
        flex: 1;
        min-width: calc(150 * var(--width-scale));
    }

    /* Изображение позиционируется справа и не обрезается */
    .hero-container {
        overflow: visible;
    }

    .hero-photo {
        left: auto;
        right: 0;
        max-width: 100vw;
        width: auto;
        min-width: calc(533 * var(--width-scale));
        object-position: center;
    }
}

/* Адаптивность для планшетов (321-500px) - НЕ применяется на 0-320px */
@media (min-width: 321px) and (max-width: 500px) {
    :root {
        --content-width: 100vw;
        --width-scale: calc(100vw / 1920);
        --mobile-offset: 20px;
        --directions-width: 90vw;
    }

    /* Удалено: конфликтующий блок с height: 600px и overflow: hidden */
    /* Правила для .hero-container теперь только в основном блоке @media (max-width: 500px) ниже */

    /* Скрываем декоративную тень слева */
    .decorative-shadow-1 {
        display: none;
    }

    /* Header - уменьшенные размеры */
    .hero-header {
        left: 50px;
        top: 13px;
        width: 620px;
        height: 32px;
        border-radius: 100px;
        backdrop-filter: blur(9.64px);
        box-shadow: 0px 11.625px 28.545833587646484px rgba(96, 96, 96, 0.25);
    }

    .logo {
        left: 17px;
        top: 9px;
        font-size: 12px;
        width: 63px;
        height: 13px;
    }

    .nav {
        left: 110px;
        top: 9px;
        height: 13px;
    }

    .nav-line {
        height: 13px;
    }

    .nav-links-wrapper {
        margin-left: calc(30 * var(--scale-factor));
        margin-right: calc(30 * var(--scale-factor));
        height: 13px;
    }

    .nav-link {
        font-size: 8px;
        height: 10px;
    }

    .nav-link:nth-of-type(1) {
        width: 29px;
        margin-right: 30px;
    }

    .nav-link:nth-of-type(2) {
        width: 20px;
        margin-right: 30px;
    }

    .nav-link:nth-of-type(3) {
        width: 55px;
        margin-right: 0;
    }

    /* Кнопка поиска - меньший размер */
    .search-button {
        right: 0;
        top: 0;
        width: 65px;
        height: 32px;
        border-radius: 100px;
        padding: 9.04px 0;
        gap: 5.17px;
    }

    .search-button svg {
        width: 13px;
        height: 13px;
    }

    .search-button-text {
        font-size: 8px;
        width: auto;
        height: auto;
    }

    /* Имя - меньший размер и перенос */
    .main-name {
        left: 50px;
        top: 107px;
        width: 380px;
        height: 172px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: relative;
    }

    .name-part-1 {
        font-size: 45px;
        width: 165px;
        height: 50px;
    }

    .name-part-2 {
        font-size: 45px;
        width: 235px;
        height: 50px;
        margin-top: 2px;
    }

    /* Тег Development - меньший размер */
    .dev-tag {
        position: absolute;
        left: 175px;
        top: 11px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        width: 65px;
        height: 32px;
        border-radius: 1000px;
        padding: 11.5px 6.9px;
        gap: 4.6px;
    }

    .dev-tag-text {
        font-size: 8px;
        text-align: center;
    }

    /* Кнопка роли - меньший размер */
    .role-button {
        left: 50px;
        top: 227px;
        width: 380px;
        height: 52px;
        border-radius: 1000px;
        padding-left: 44px;
        box-shadow: 0px 14.04px 34.476px rgba(96, 96, 96, 0.25);
    }

    .role-button-text {
        font-size: 22px;
        width: 291px;
        height: 23px;
        text-align: center;
    }

    /* Изображение - меньший размер и другая позиция, чтобы полностью помещалось */
    .hero-photo {
        left: 321px;
        top: 94px;
        width: calc(720px - 321px);
        max-width: calc(100vw - 371px);
        height: auto;
        max-height: calc(600px - 94px);
        object-fit: contain;
        object-position: top right;
        box-shadow: inset 0px 6.1px 12.3px rgba(255, 255, 255, 0.25);
    }

    /* Белый градиент */

    /* Декоративные элементы - новые позиции и размеры */
    .decorative-blue-rect {
        display: none;
    }

    .decorative-vector {
        left: 154px;
        top: 163px;
        width: 185px;
        height: 275px;
        filter: blur(70px);
    }

    .decorative-shadow-2 {
        left: 419px;
        top: 366px;
        width: 71px;
        height: 72px;
    }

    .decorative-shadow-3 {
        left: 618px;
        top: 227px;
        width: 67px;
        height: 67px;
    }

    /* Описание - меньший размер */
    .description {
        left: 50px;
        top: 309px;
        width: 312px;
        height: 119px;
        gap: 15px;
        flex-direction: row;
        align-items: flex-start;
    }

    .description-bullet {
        width: 14px;
        height: 14px;
        margin-top: 53px;
        margin-right: 0;
        flex-shrink: 0;
    }

    .description-text {
        font-size: 14px;
        width: 283px;
        line-height: 1.2;
        margin-top: 0;
    }

    /* Социальные кнопки - меньший размер */
    .social-buttons {
        left: 50px;
        top: 490px;
        width: 460px;
        height: 50px;
        gap: 20px;
        z-index: 1000;
    }

    .social-button {
        height: 50px;
        font-size: 14px;
        padding: 20px;
    }

    .social-button.blog {
        width: 140px;
        padding: 20px 30px;
    }

    .social-button.telegram {
        width: 140px;
        padding: 20px;
    }

    .social-button.telegram svg {
        width: 20px;
        height: 17px;
    }

    .social-button.linkedin {
        width: 140px;
        padding: 20px 31px;
    }
}

/* Адаптивность для мобильных устройств (ниже 500px) */
@media (max-width: 500px) {
    :root {
        --content-width: 100vw;
        --width-scale: calc(100vw / 1920);
        --mobile-offset: 20px;
        --directions-width: 90vw;
    }

    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }

    .hero-container {
        width: var(--content-width);
        min-width: var(--content-width);
        height: auto;
        min-height: 100vh;
        max-width: 100vw;
        overflow: visible;
        position: relative;
        margin: 0 auto;
        padding-top: 40px;
        padding-bottom: calc(900px + var(--mobile-offset));
        box-sizing: border-box;
        background: linear-gradient(180deg, #EBEBEB 0%, #FFFFFF 100%);
    }

    /* Header - скрываем */
    .hero-header {
        display: none;
    }

    /* Декоративная тень слева - скрываем */
    .decorative-shadow-1 {
        display: none;
    }

    /* Декоративные элементы */
    .decorative-blue-rect {
        display: none;
    }

    .decorative-vector {
        left: 154px;
        top: calc(163px + var(--mobile-offset));
        width: 107px;
        height: 171px;
        filter: blur(70.046px);
        z-index: 1;
    }

    .decorative-shadow-2 {
        left: 30px;
        top: calc(496px + var(--mobile-offset));
        width: 71px;
        height: 72px;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(7.574px);
        box-shadow: inset 0px -9.794px 40.223px rgba(54, 69, 226, 0.17);
        border-radius: 4.822px;
        z-index: 5;
    }

    .decorative-shadow-3 {
        left: 234px;
        top: calc(319px + var(--mobile-offset));
        width: 67px;
        height: 67px;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(7.574px);
        box-shadow: inset 0px -9.794px 40.223px rgba(54, 69, 226, 0.17);
        border-radius: 4.822px;
        z-index: 5;
    }

    /* Изображение - видно полностью, центрировано */
    .hero-photo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(199px + var(--mobile-offset));
        width: 478px;
        height: 481px;
        max-width: 100vw;
        max-height: none;
        object-fit: contain;
        object-position: center center;
        box-shadow: inset 0px 6.095px 12.343px rgba(255, 255, 255, 0.25);
        z-index: 2;
    }

    /* Белый градиент - нижняя граница достигает середины высоты изображения */

    /* Имя - Group 11 */
    .main-name {
        position: absolute;
        left: 10px;
        top: calc(70px + var(--mobile-offset));
        width: 300px;
        height: 129px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        z-index: 20;
    }

    .name-part-1 {
        font-family: 'Stolz', sans-serif;
        font-size: 35px;
        line-height: 1.1;
        font-weight: 400;
        width: 129px;
        height: 39px;
        color: #303030;
        text-transform: uppercase;
        margin: 0;
        padding: 0;
    }

    .name-part-2 {
        font-family: 'Stolz', sans-serif;
        font-size: 35px;
        line-height: 1.1;
        font-weight: 400;
        width: 183px;
        height: 39px;
        margin: 0;
        padding: 0;
        margin-top: 0;
        color: #303030;
        text-transform: uppercase;
    }

    /* Тег Development - внутри main-name */
    .dev-tag {
        position: absolute;
        left: 134px;
        top: 8px;
        margin: 0;
        padding: 8.626px 5.176px;
        width: 80px;
        height: 24px;
        border-radius: 1000px;
        background: #5C6FEB;
        box-shadow: 0px 9.316px 22.878px rgba(96, 96, 96, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3.45px;
        z-index: 25;
    }

    .dev-tag-text {
        font-family: 'Stolz', sans-serif;
        font-size: 8px;
        line-height: 1.3;
        font-weight: 400;
        color: white;
        text-align: center;
        white-space: nowrap;
    }

    /* Кнопка роли - внутри main-name по макету, но отдельно в HTML */
    .role-button {
        position: absolute;
        left: 10px;
        top: calc(160px + var(--mobile-offset));
        width: 300px;
        height: 39px;
        border-radius: 1000px;
        background: #5C6FEB;
        padding-left: 44px;
        padding-right: 44px;
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: 0px 10.53px 25.857px rgba(96, 96, 96, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 21;
        box-sizing: border-box;
    }

    .role-button-text {
        font-family: 'Times New Roman', serif;
        font-size: 16px;
        line-height: 1.1;
        font-weight: 400;
        width: 100%;
        height: 18px;
        text-align: justify;
        text-align-last: justify;
        color: white;
        margin: 0;
        padding: 0;
        letter-spacing: 0;
    }

    /* Описание */
    .description {
        position: absolute;
        left: 10px;
        top: calc(603px + var(--mobile-offset));
        width: 297px;
        height: 136px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        z-index: 999;
    }

    .description-bullet {
        width: 14px;
        height: 14px;
        background: #5C6FEB;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 53px;
        margin-right: 15px;
        margin-left: 0;
        margin-bottom: 0;
    }

    .description-text {
        font-family: 'Stolz', sans-serif;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 400;
        width: 268px;
        height: 136px;
        color: #303030;
        margin: 0;
        padding: 0;
    }

    /* Социальные кнопки */
    .social-buttons {
        position: absolute;
        left: 10px;
        top: calc(769px + var(--mobile-offset));
        width: 300px;
        height: 110px;
        display: flex;
        gap: 0;
        flex-wrap: wrap;
        z-index: 1000;
    }

    .social-button {
        position: absolute;
        height: 50px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
        font-family: 'Stolz', sans-serif;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 400;
        text-decoration: none;
        box-sizing: border-box;
    }

    .social-button.linkedin {
        left: 0px;
        top: 60px;
        width: 140px;
        padding: 20px 31px;
        border: 1px solid #5C6FEB;
        background: transparent;
        color: #303030;
    }

    .social-button.telegram {
        left: 80px;
        top: 0px;
        width: 140px;
        padding: 20px 0px;
        background: #5C6FEB;
        color: white;
    }

    .social-button.telegram svg {
        width: 20px;
        height: 17px;
        flex-shrink: 0;
    }

    .social-button.blog {
        left: 160px;
        top: 60px;
        width: 140px;
        padding: 20px 30px;
        border: 1px solid #5C6FEB;
        background: transparent;
        color: #303030;
    }

    /* Переопределение для hero-section: убираем position: absolute и left */
    .hero-section .hero_content .social-button {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .hero-section .hero_content .social-button.telegram {
        left: auto !important;
        transform: none !important;
    }

    .hero-section .hero_content .social-button.linkedin {
        left: auto !important;
    }

    .hero-section .hero_content .social-button.blog {
        left: auto !important;
    }

    /* Мобильная шапка - вверху страницы (шапка с бургер-меню) */
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        z-index: 10001;
        box-sizing: border-box;
        overflow: visible;
    }

    .burger-menu-content {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        height: 40px;
        background: #FFFFFF;
        box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
        border-radius: 0 0 20px 20px;
        box-sizing: border-box;
        position: relative;
        transition: height 0.3s ease;
        overflow: hidden;
    }

    .burger-menu-content {
        box-shadow: 0px 11.625px 28.5458px rgba(96, 96, 96, 0.25);
    }

    .mobile-header.menu-open .burger-menu-content {
        height: 371px;
    }

    .burger-menu-header-bar {
        width: 100%;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        position: relative;
        z-index: 10002;
    }

    .mobile-header-logo {
        font-family: 'Stolz', sans-serif;
        font-size: 16px;
        line-height: 1.3;
        font-weight: 400;
        color: #303030;
        width: 83px;
        height: 21px;
        text-transform: uppercase;
        margin: 0;
        padding: 0;
        text-decoration: none;
        display: inline-block;
        cursor: pointer;
    }

    .mobile-header-logo:hover {
        color: #303030;
        text-decoration: none;
    }

    .burger-menu-button {
        width: 22px;
        height: 10px;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10003;
    }

    .mobile-header-icon {
        width: 22px;
        height: 10px;
        display: block;
        color: #303030;
        overflow: visible;
        position: relative;
    }

    .mobile-header-icon line {
        stroke: #303030 !important;
        stroke-width: 1;
        transition: all 0.3s ease;
        transform-origin: 11px 5px;
    }

    .burger-menu-expanded {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .mobile-header.menu-open .burger-menu-expanded {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Затемнение фона при открытом меню - отключено */
    .burger-menu-overlay {
        display: none;
    }

    .burger-menu-search {
        width: 100%;
        max-width: 300px;
        height: 40px;
        margin-top: 16px;
        margin-bottom: 51px;
        box-sizing: border-box;
    }

    .burger-menu-search-container {
        width: 100%;
        max-width: 300px;
        height: 40px;
        border: 1px solid #888888;
        border-radius: 50px;
        background: #FFFFFF;
        display: flex;
        align-items: center;
        position: relative;
        box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
        box-sizing: border-box;
    }

    .burger-menu-search-button {
        width: 40px;
        height: 40px;
        border-radius: 50px;
        background: #5C6FEB;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
    }

    .burger-menu-search-button svg {
        width: 16px;
        height: 16px;
    }

    .burger-menu-search-button svg path {
        stroke: #FFFFFF;
    }

    .burger-menu-search-input {
        flex: 1;
        height: 40px;
        border: none;
        outline: none;
        background: transparent;
        font-family: 'Stolz', sans-serif;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 400;
        color: #303030;
        padding-left: 13px;
        padding-right: 16px;
        min-width: 0;
    }

    .burger-menu-search-input::placeholder {
        color: #303030;
        opacity: 1;
    }

    .burger-menu-nav {
        width: 100%;
        max-width: 300px;
        height: 140px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-sizing: border-box;
    }

    .burger-menu-nav-link {
        width: 100%;
        max-width: 300px;
        height: 40px;
        border: 0.739px solid #5C6FEB;
        border-radius: 37px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Stolz', sans-serif;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 400;
        color: #303030;
        text-decoration: none;
        box-shadow: 0px 19.964px 49.024px rgba(96, 96, 96, 0.25);
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .burger-menu-nav-link:first-child {
        justify-content: center;
    }

    .burger-menu-nav-link:nth-child(2) {
        justify-content: center;
    }

    .burger-menu-nav-link:nth-child(3) {
        justify-content: center;
    }

    .burger-menu-nav-link.disabled {
        color: #999999;
        cursor: not-allowed;
        pointer-events: none;
        opacity: 0.6;
        border-color: #CCCCCC;
    }

    .burger-menu-nav-link.disabled:hover {
        opacity: 0.6;
    }
}

/* Диапазон 321–499 px: мобильная компоновка, растянутая на ширину сетки */
@media (min-width: 321px) and (max-width: 499px) {
    :root {
        --content-width: 100vw;
        --width-scale: calc(100vw / 1920);
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .hero-container {
        width: var(--content-width);
        margin: 0 auto;
        position: relative;
        box-sizing: border-box;
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .directions-container {
        width: var(--content-width);
        margin: 0 auto;
    }

    /* Основные блоки с отступами от края сетки, как на мобильной версии (left: 10px) */
    .main-name {
        left: 10px;
        width: calc(100% - 20px);
    }

    .role-button {
        left: 10px;
        width: calc(100% - 20px);
    }

    .description {
        left: 10px;
        width: calc(100% - 20px);
    }

    .social-buttons {
        left: 10px;
        width: calc(100% - 20px);
    }


    /* Текстовые блоки также растягиваем по ширине контейнера */
    .role-button-text,
    .description-text {
        width: 100%;
    }

    /* В этом диапазоне текст роли по центру */
    .role-button-text {
        text-align: center;
        text-align-last: auto;
    }

    /* Социальные кнопки в одну строку на этом диапазоне (только для 421-499px) */
    .social-buttons {
        flex-wrap: nowrap;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .social-button {
        position: static;
        flex: 1;
        min-width: 0;
    }

    /* Шапка (логотип + бургер) остаётся на всю ширину экрана, как в мобильной версии */
    .mobile-header {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        left: 0;
        transform: none;
    }

    /* Бургер-меню: поиск и пункты меню на всю ширину сетки */
    .burger-menu-search {
        width: 100%;
        max-width: 100%;
    }

    .burger-menu-search-container {
        width: 100%;
        max-width: 100%;
    }

    .burger-menu-nav {
        width: 100%;
        max-width: 100%;
    }

    .burger-menu-nav-link {
        width: 100%;
        max-width: 100%;
    }
}

/* Диапазон 321–420px: мобильная компоновка социальных кнопок (телеграм сверху, две другие снизу) */
@media (min-width: 321px) and (max-width: 420px) {
    .social-buttons {
        flex-wrap: wrap;
        display: flex;
        flex-direction: row;
        gap: 0;
        height: 110px;
        justify-content: center;
        align-items: flex-start;
    }

    .social-button {
        position: absolute;
        flex: none;
    }

    .social-button.telegram {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 140px;
    }

    .social-button.linkedin {
        left: 0;
        top: 60px;
        width: calc(50% - 5px);
    }

    .social-button.blog {
        left: calc(50% + 5px);
        top: 60px;
        width: calc(50% - 5px);
    }

    /* Переопределение для hero-section: убираем position: absolute и left */
    .hero-section .hero_content .social-button {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .hero-section .hero_content .social-button.telegram {
        left: auto !important;
        transform: none !important;
    }

    .hero-section .hero_content .social-button.linkedin {
        left: auto !important;
    }

    .hero-section .hero_content .social-button.blog {
        left: auto !important;
    }
}

/* Переопределения в самом конце: диапазон 500–626 px, чтобы сетка и элементы точно растягивались на всю ширину */
@media (min-width: 500px) and (max-width: 626px) {
    :root {
        --content-width: 100vw;
        --width-scale: calc(100vw / 1920);
        --directions-width: 90vw;
    }

    .hero-container {
        width: var(--content-width);
        margin: 0 auto;
    }

    .directions-container {
        width: var(--content-width);
        margin: 0 auto;
    }

    .hero-header,
    .main-name,
    .description,
    .social-buttons {
        left: 0;
        width: 100%;
    }


    /* Кнопка роли — не на всю ширину, а чуть больше текста, выравнивание по левой границе сетки */
    .role-button {
        width: calc(710 * var(--width-scale));
        height: calc(84 * var(--scale-factor));
        left: 0;
        transform: none;
        border-radius: calc(1000 * var(--scale-factor));
        padding-left: calc(52 * var(--width-scale));
        padding-right: calc(52 * var(--width-scale));
    }

    /* Логотип и меню — увеличиваем расстояние между ними */
    .logo {
        left: calc(40 * var(--width-scale));
    }

    .nav {
        /* Сдвигаем блок меню правее, чтобы не наезжал на логотип и был заметный зазор */
        left: calc(300 * var(--width-scale));
    }

    /* Ровные отступы между пунктами меню и корректное положение правой вертикальной черты */
    .nav-links-wrapper {
        margin-left: calc(60 * var(--width-scale));
        /* Увеличиваем правый отступ, чтобы последняя ссылка не подходила вплотную к правой черте */
        margin-right: calc(100 * var(--width-scale));
        /* Чуть уменьшаем gap, чтобы вся группа помещалась комфортно */
        gap: calc(30 * var(--width-scale));
    }

    .nav-link {
        width: auto;
        margin-right: 0;
    }
}

/* ============================================
   БЛОК "КЛЮЧЕВЫЕ НАПРАВЛЕНИЯ ДЕЯТЕЛЬНОСТИ"
   ============================================ */
.directions-section {
    width: 100%;
    background-color: var(--white);
    padding: clamp(4rem, 8vw, 6rem) clamp(3rem, 5vw, 5rem); /* Боковой padding для теней */
    overflow: visible; /* Позволяем теням карточек выходить за границы */
    box-sizing: border-box;
}

/* Переопределяем overflow для контейнера в секции направлений, чтобы тени не обрезались */
.directions-section .container {
    overflow-x: visible;
    overflow-y: visible;
}


.directions-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(2rem, 3.5vw, 3.5rem); /* Уменьшено с 70px до 56px на десктопе */
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    margin-bottom: clamp(3rem, 5vw, 3.75rem);
    width: calc(100% + 40px); /* Занимает всю ширину сетки, компенсируя padding контейнера */
    margin-left: -20px; /* Компенсируем padding контейнера слева */
    padding-left: 20px; /* Возвращаем отступ для текста */
    box-sizing: border-box;
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.directions-title-part-1 {
    color: #303030; /* Цвет "Ключевые направления" */
}

.directions-title-part-2 {
    color: #636363; /* Цвет "деятельности" */
}

.directions-title-part-3 {
    color: #636363; /* Цвет для третьей части на мобильных */
}

.directions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    justify-content: center;
    align-items: stretch;
}

.direction-card {
    flex: 0 1 calc(33.333% - clamp(1.5rem, 2.5vw, 3rem) * 2 / 3);
    min-width: 280px;
    max-width: 450px;
    min-height: 340px;
    background-color: var(--white);
    border-radius: 2.8125rem;
    box-shadow: 0px 1.7rem 4.1rem rgba(96, 96, 96, 0.25);
    padding: 1.25rem 1.875rem;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.direction-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.625rem;
    gap: 0;
    position: relative;
}

.direction-card-icon {
    width: 4.6875rem; /* 75px */
    height: 4.6875rem; /* 75px */
    flex-shrink: 0;
    background-color: var(--white);
    border-radius: 0.9375rem; /* 15px - закругленные углы */
    box-shadow: 0px 0.5rem 1.04375rem rgba(0, 0, 0, 0.25); /* Тень для иконки */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem; /* 10px - отступ внутри белого блока для иконки */
    box-sizing: border-box;
    overflow: hidden; /* Обрезаем содержимое по границам блока */
    position: relative;
}

.direction-card-icon img,
.direction-card-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Скрываем белый прямоугольник с тенью (первый g элемент) внутри SVG, оставляя только иконку */
.direction-card-icon svg > g:first-child {
    display: none !important;
}

/* Оставляем только иконку (второй g элемент с паттерном) */
.direction-card-icon svg > g:nth-child(2) {
    filter: none; /* Убираем фильтр, так как тень теперь на белом блоке */
}

.direction-card-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
    padding-top: 1.375rem;
    padding-left: 3.125rem;
    flex: 1;
}

.direction-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.direction-card-text {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.direction-card-line {
    position: absolute;
    bottom: 1.25rem;
    left: 1.875rem;
    right: 1.875rem;
    height: 0.25rem;
    background-color: var(--primary-color);
    opacity: 0.25;
    border-radius: 2px;
}

/* Адаптивные стили для блока направлений */
@media (max-width: 1024px) and (min-width: 551px) {
    .direction-card {
        flex: 0 1 calc(50% - clamp(1.5rem, 2.5vw, 3rem) / 2);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .direction-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0; /* Убираем min-width на мобильных, чтобы карточки помещались в сетку */
    }

    /* Адаптивный padding для заголовков на планшетах */
    .direction-card-title {
        padding-left: clamp(2rem, 5vw, 3.125rem) !important;
        padding-top: clamp(1rem, 2.5vw, 1.375rem) !important;
    }

    /* Заголовок в три строки на мобильных */
    .directions-title {
        white-space: normal !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .directions-title-part-1,
    .directions-title-part-2,
    .directions-title-part-3 {
        display: block !important;
        width: 100% !important;
    }
}

/* Исправление центрирования карточек на экранах 500-550px */
@media (min-width: 501px) and (max-width: 550px) {
    /* Полностью переопределяем секцию для точного центрирования */
    .directions-section {
        padding-left: clamp(1rem, 4vw, 1.5rem) !important;
        padding-right: clamp(1rem, 4vw, 1.5rem) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* Контейнер - строго по центру, без padding */
    .directions-section .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* Заголовок - центрируем */
    .directions-title {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
        align-self: flex-start !important;
    }

    /* Grid - строго по центру, адаптивный gap, используем flexbox для надежного центрирования */
    .directions-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        gap: clamp(1rem, 3vw, 1.5rem) !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* Карточки - адаптивные, строго по центру, размер зависит от ширины контейнера */
    .direction-card {
        flex: none !important;
        /* Адаптивная ширина: 100% минус небольшой запас для визуального комфорта */
        width: calc(100% - clamp(0.5rem, 2vw, 1rem) * 2) !important;
        max-width: calc(100% - clamp(0.5rem, 2vw, 1rem) * 2) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        position: relative !important;
        /* Адаптивные размеры внутренних элементов */
        padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.25rem, 3vw, 1.875rem) !important;
        min-height: auto !important;
        height: auto !important;
    }

    /* Адаптивные размеры иконок и текста внутри карточек */
    .direction-card-icon {
        width: clamp(3.5rem, 8vw, 4.6875rem) !important;
        height: clamp(3.5rem, 8vw, 4.6875rem) !important;
    }

    .direction-card-title {
        font-size: clamp(1.1rem, 2.5vw, 1.25rem) !important;
        padding-left: clamp(1.25rem, 5vw, 2.5rem) !important;
        padding-top: clamp(0.875rem, 2vw, 1.25rem) !important;
    }

    .direction-card-text {
        font-size: clamp(0.9rem, 2vw, 1rem) !important;
    }
}

/* ============================================
   БЛОК "МОЙ ПУТЬ РАЗВИТИЯ"
   ============================================ */
.growth-path-section {
    width: 100%;
    padding: clamp(5rem, 9vw, 8.75rem) 0 clamp(3rem, 5.5vw, 5.5rem);
    background-color: var(--white);
}

.growth-path-section .container {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin-bottom: 0; /* Убираем margin-bottom, чтобы не было лишнего отступа до .growth-path-screen */
    padding-bottom: 0; /* Убираем padding-bottom на всякий случай */
}


.growth-path-title {
    font-family: 'Stolz', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem); /* Уменьшено с 70px до 56px на десктопе, как у directions-title */
    font-weight: 400;
    color: #303030;
    text-align: left;
    align-self: flex-start;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    margin-bottom: 0; /* Убираем margin-bottom, так как .growth-path-screen находится вне .container */
}

.growth-path-title-muted {
    color: #636363;
}

.growth-path-title-primary {
    color: #303030;
}

.growth-path-section {
    position: relative;
    overflow: visible;
    isolation: isolate; /* Создаем единый stacking context для секции */
}

.growth-path-screen {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: clamp(20rem, 45vh, 32rem);
    background: #FFFFFF;
    border-radius: clamp(2rem, 4vw, 3.75rem);
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    overflow: visible;
    margin-top: clamp(3rem, 5vw, 3.75rem); /* Такой же отступ сверху, как margin-bottom у directions-title */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding-top: 0; /* Убираем padding-top, чтобы расстояние было только от margin-top */
    padding-right: clamp(2rem, 3.5vw, 3.5rem);
    padding-bottom: clamp(3rem, 5.5vw, 5rem);
    padding-left: clamp(2rem, 3.5vw, 3.5rem);
}

/* Контейнер для всех баллунов внутри .growth-chart-content */
.growth-balloons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000; /* Выше точек milestone (z-index: 9999) */
    overflow: visible;
}

/* Контейнер для отдельного баллуна */
.growth-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    filter: none;
    box-shadow: none;
    overflow: hidden; /* Изменено с visible на hidden для предотвращения выхода содержимого за границы */
    /* Убираем свойства, которые могут создавать новый stacking context */
    will-change: auto;
    transform: none;
}

/* Обертка для backdrop-filter размытия */
.growth-overlay-blur-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    box-sizing: content-box; /* Унифицировано с SVG для точного совпадения размеров */
    padding: 0;
    margin: 0;
    border: none;
    /* backdrop-filter с fallback на белый полупрозрачный фон */
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    background: rgba(255, 255, 255, 0.4);
    /* Убеждаемся, что backdrop-filter работает */
    will-change: backdrop-filter;
    /* Важно: не используем isolation, чтобы backdrop-filter мог видеть содержимое за элементом */
    transform: translateZ(0); /* Создаем новый слой для аппаратного ускорения */
}

/* Для мобильных устройств увеличиваем непрозрачность и размытие */
@media screen and (max-width: 1024px) {
    .growth-overlay-blur-wrapper {
        backdrop-filter: blur(70px) saturate(180%);
        -webkit-backdrop-filter: blur(70px) saturate(180%);
        background: rgba(255, 255, 255, 0.85);
    }
}

.growth-overlay-container.visible {
    pointer-events: none !important; /* Баллун не блокирует клики по точкам */
}

/* Все элементы баллуна не должны блокировать клики */
.growth-overlay-container.visible > * {
    pointer-events: none !important;
}

/* Только прокручиваемый контент внутри баллуна должен быть кликабельным */
.growth-overlay-container.visible .growth-overlay-scrollable {
    pointer-events: auto !important;
}

.growth-overlay-container.visible .growth-overlay-scrollable * {
    pointer-events: auto !important;
}

/* Убеждаемся, что точки milestone всегда кликабельны */
.growth-chart-milestones li {
    pointer-events: auto !important;
}

.growth-chart-milestones li::before {
    pointer-events: auto !important;
}

.growth-overlay-blur-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.growth-overlay-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.growth-overlay-blur-content {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.growth-overlay-container.visible {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease;
}

/* Убеждаемся, что точки milestone всегда выше баллуна */
.growth-chart-milestones li,
.growth-chart-milestones li::before {
    pointer-events: auto;
}

.growth-overlay-blur-layer {
    position: absolute;
    display: none;
    z-index: 2;
    pointer-events: none;
}

.growth-overlay-svg {
    display: block;
    /* Размеры устанавливаются через inline-стили в JavaScript */
    /* width и height переопределяются через !important в inline-стилях */
    filter: drop-shadow(none);
    box-shadow: none;
}

.growth-overlay-svg .growth-overlay-bg {
    opacity: 0.9;
}

.growth-overlay-svg .growth-overlay-border {
    opacity: 1;
    pointer-events: none;
}

.growth-overlay-content-measure {
    font-family: 'Stolz', sans-serif;
    display: flex;
    flex-direction: column;
    gap: calc(22 * var(--scale-factor));
    padding: calc(28 * var(--scale-factor)) calc(30 * var(--width-scale));
    color: var(--text-color);
    box-sizing: border-box;
    white-space: normal;
    width: auto;
    max-width: none;
}

.growth-overlay-content-measure .growth-overlay-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(16 * var(--scale-factor));
}

.growth-overlay-content-measure .growth-overlay-section {
    display: flex;
    flex-direction: column;
}

.growth-overlay-content-measure .growth-overlay-avatar {
    width: calc(60 * var(--scale-factor));
    height: calc(60 * var(--scale-factor));
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #F1F3F9, #CFD5E8);
    box-shadow: inset 0 0 calc(10 * var(--scale-factor)) rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.growth-overlay-content-measure .growth-overlay-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.growth-overlay-content-measure .growth-overlay-company-name {
    font-family: 'Stolz', sans-serif;
    font-size: calc(18 * var(--scale-factor));
    color: #0F0F0F;
}

.growth-overlay-content-measure .growth-overlay-position {
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: rgba(48, 48, 48, 0.65);
}

.growth-overlay-content-measure .growth-overlay-label {
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: rgba(48, 48, 48, 0.65);
    margin-bottom: calc(6 * var(--scale-factor));
}

.growth-overlay-content-measure .growth-overlay-value {
    font-family: 'Stolz', sans-serif;
    font-size: calc(18 * var(--scale-factor));
    color: var(--text-color);
}

.growth-overlay-content-measure .growth-overlay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(6 * var(--scale-factor));
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: var(--text-color);
    padding-left: 0;
}

.growth-overlay-content-measure .growth-overlay-list li {
    position: relative;
    padding-left: 0;
}

.growth-overlay-content {
    font-family: 'Stolz', sans-serif;
    display: flex;
    flex-direction: column;
    gap: calc(32 * var(--scale-factor, 1));
    padding: 0;
    color: var(--text-color);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: transparent !important;
}

.growth-overlay-content .growth-overlay-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(16 * var(--scale-factor));
}

.growth-overlay-content .growth-overlay-section {
    display: flex;
    flex-direction: column;
    margin-bottom: calc(28 * var(--scale-factor, 1)) !important;
}

.growth-overlay-content .growth-overlay-section:last-child {
    margin-bottom: 0 !important;
}

.growth-overlay-header {
    display: flex;
    align-items: center;
    gap: calc(16 * var(--scale-factor));
}

.growth-overlay-avatar {
    width: calc(60 * var(--scale-factor));
    height: calc(60 * var(--scale-factor));
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #F1F3F9, #CFD5E8);
    box-shadow: inset 0 0 calc(10 * var(--scale-factor)) rgba(0, 0, 0, 0.2);
}

.growth-overlay-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.growth-overlay-company {
    margin-left: 24px;
}

.growth-overlay-company-name {
    font-family: 'Stolz', sans-serif;
    font-size: calc(18 * var(--scale-factor));
    color: #0F0F0F;
}

.growth-overlay-position {
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: rgba(48, 48, 48, 0.65);
}

.growth-overlay-section {
    display: flex;
    flex-direction: column;
}

.growth-overlay-label {
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: rgba(48, 48, 48, 0.65);
    margin-bottom: calc(6 * var(--scale-factor));
}

.growth-overlay-value {
    font-family: 'Stolz', sans-serif;
    font-size: calc(18 * var(--scale-factor));
    color: var(--text-color);
}

.growth-overlay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(6 * var(--scale-factor));
    font-family: 'Stolz', sans-serif;
    font-size: calc(16 * var(--scale-factor));
    color: var(--text-color);
    padding-left: 0;
}

.growth-overlay-list li {
    position: relative;
    padding-left: 0;
}

/* Стили для скроллбара в баллуне - прозрачный фон, видимый бегунок */
.growth-overlay-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 136, 136, 0.5) transparent;
}

.growth-overlay-scrollable::-webkit-scrollbar {
    width: 8px;
}

.growth-overlay-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.growth-overlay-scrollable::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.5);
    border-radius: 4px;
}

.growth-overlay-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 136, 136, 0.7);
}

.growth-chart-wrapper {
    width: var(--content-width);
    max-width: 1440px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: clamp(1.5rem, 2.5vw, 2.5rem);
    padding: 0;
    border: 1px solid #888888;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: 0px 1.5rem 3.5rem rgba(84, 106, 171, 0.08);
    overflow: visible;
}

.growth-chart-inner-grid {
    width: min(100%, 920px);
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    overflow: visible; /* Позволяем датам milestone выходить за границы */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.growth-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible; /* Позволяем датам milestone выходить за границы по вертикали */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: clamp(2.5rem, 4.5vw, 4.5rem) 0 clamp(4rem, 7vw, 6.5rem);
    box-sizing: border-box;
    text-align: center;
}

.growth-chart-scroll::-webkit-scrollbar {
    display: none;
}

.growth-chart-content {
    position: relative;
    overflow: visible;
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    /* Не создаем новый stacking context, чтобы backdrop-filter работал */
    isolation: auto;
}

.growth-chart-svg {
    height: auto;
    display: block;
    position: relative;
    z-index: 0; /* Ниже баллунов - важно для backdrop-filter */
}

.growth-chart-milestones {
    position: relative;
    margin-top: calc(-1 * var(--growth-axis-offset, 0px));
    z-index: 9999;
    isolation: isolate; /* Создаем отдельный stacking context для точек */
    overflow: visible; /* Позволяем датам выходить за границы */
}

.growth-chart-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.375rem;
    width: 100%;
    background: #ADB6F5;
    border-radius: 999px;
}

.growth-chart-milestones ul {
    list-style: none;
    display: block;
    position: relative;
    padding: 0;
    font-family: 'Stolz', sans-serif;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: #8D94AA;
    overflow: visible; /* Позволяем датам выходить за границы */
}

.growth-chart-milestones li {
    position: absolute;
    left: var(--point-x, 0);
    transform: translateX(-50%);
    padding-top: clamp(1.75rem, 2.8vw, 2.25rem);
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
    flex: 0 0 auto;
    z-index: 1000;
    pointer-events: auto;
    white-space: nowrap; /* Предотвращаем перенос текста */
    overflow: visible; /* Позволяем тексту выходить за границы элемента */
    min-width: max-content; /* Минимальная ширина по содержимому */
    touch-action: manipulation; /* Убирает задержку 300ms на мобильных устройствах */
    -webkit-tap-highlight-color: transparent; /* Убирает подсветку при тапе на мобильных */
}

.growth-chart-milestones li * {
    pointer-events: none;
}

.growth-chart-milestones li::before {
    pointer-events: auto;
}

.growth-chart-milestones li::before {
    content: '';
    position: absolute;
    top: -21px;
    left: 50%;
    transform: translate(-50%, 20%);
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: #5C6FEB;
    border: 0.25rem solid #FFFFFF;
    box-shadow: 0px 0.65rem 1.25rem rgba(92, 111, 235, 0.35);
    z-index: 9999;
    pointer-events: auto;
}

.growth-chart-milestones li.active {
    color: #303030;
}

.growth-chart-milestones li.active::before {
    background: #313F9A;
    box-shadow: 0px 0.9rem 1.75rem rgba(92, 111, 235, 0.5);
    z-index: 9999;
}

.growth-chart-slider {
    margin: clamp(1.25rem, 2vw, 1.75rem) auto clamp(0.75rem, 1.25vw, 1.09375rem) auto;
    width: min(100%, 920px);
    height: 1.875rem;
    background: #FFFFFF;
    border: 1px solid #888888;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
    padding: 0 0.25rem;
    z-index: 1;
}

.growth-chart-slider-pill {
    width: 3.75rem;
    height: 0.9375rem;
    background: #888888;
    border-radius: 999px;
    will-change: transform;
    transition: transform 0.1s ease;
}

.growth-chart-slider.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .growth-path-title {
        text-align: center;
    }

    .growth-overlay-container {
        position: absolute;
        /* Позиционирование устанавливается через JavaScript */
        /* Не переопределяем left и transform, чтобы сохранить позиционирование относительно milestone */
        max-width: calc(100vw - 2rem);
        margin-bottom: 0;
    }

    /* Контейнер для всех баллунов внутри .growth-chart-content */
    .growth-balloons-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10000;
        overflow: visible;
    }

    /* .growth-overlay-svg - размеры устанавливаются через inline-стили в JavaScript */
    /* Не переопределяем, чтобы сохранить адаптивные размеры */

    .growth-overlay-content {
        padding: 0;
    }

    .growth-path-screen {
        padding: clamp(2rem, 3vw, 2.5rem);
    }

    .growth-chart-wrapper {
        padding: 0;
    }

    .growth-chart-scroll {
        padding: clamp(2rem, 3vw, 3rem);
    }

    .growth-chart-milestones li {
        z-index: 1002;
    }

    .growth-chart-slider {
        position: relative;
        z-index: 1;
        margin-top: clamp(1.75rem, 3vw, 2.5rem);
        margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
    }
}

/* Для средних экранов (планшеты, iPad) - убираем ограничение высоты, чтобы даты были видны */
@media (max-width: 1024px) and (min-width: 501px) {
    .growth-path-screen {
        min-height: auto !important; /* Убираем ограничение минимальной высоты */
        height: auto !important; /* Автоматическая высота по содержимому */
        padding-bottom: clamp(3rem, 5vw, 4rem) !important; /* Добавляем нижний padding для дат */
    }

    .growth-chart-scroll {
        padding-bottom: clamp(4.5rem, 7vw, 6rem) !important; /* Увеличиваем нижний padding, чтобы даты были видны */
    }
}

@media (max-width: 720px) {
    .growth-path-container {
        width: 90vw;
    }

    /* Ограничиваем ширину секции, чтобы она соответствовала сетке */
    .growth-path-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Контейнер внутри секции должен быть ограничен */
    .growth-path-section > .container {
        width: 100% !important;
        max-width: 720px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: clamp(1rem, 4vw, 1.5rem) !important;
        padding-right: clamp(1rem, 4vw, 1.5rem) !important;
        box-sizing: border-box !important;
    }

    /* Ограничиваем ширину screen, чтобы он соответствовал контейнеру */
    .growth-path-screen {
        width: 100% !important;
        max-width: 720px !important; /* Соответствует max-width контейнера */
        margin: clamp(2.5rem, 5vw, 3.5rem) auto 0 !important; /* Увеличен верхний отступ */
        padding: calc(30 * var(--scale-factor)) !important;
        padding-left: clamp(1rem, 4vw, 1.5rem) !important; /* Добавляем боковые отступы как у контейнера */
        padding-right: clamp(1rem, 4vw, 1.5rem) !important;
        padding-bottom: clamp(4rem, 7vw, 5.5rem) !important; /* Увеличиваем нижний padding для дат на мобильных */
        min-height: auto !important; /* Убираем ограничение минимальной высоты на мобильных */
        height: auto !important; /* Автоматическая высота по содержимому */
        box-sizing: border-box !important;
    }

    /* Убеждаемся, что wrapper тоже ограничен */
    .growth-chart-wrapper {
        width: 100% !important;
        max-width: 100% !important; /* Не больше родителя */
        margin: 0 auto !important;
        padding: 0 !important;
        padding-bottom: clamp(2rem, 3.5vw, 2.5rem) !important; /* Увеличиваем нижний padding для дат на мобильных */
        overflow: visible !important; /* Позволяем датам milestone выходить за границы */
        box-sizing: border-box !important;
    }

    .growth-chart-scroll {
        padding: calc(50 * var(--scale-factor)) calc(30 * var(--scale-factor)) calc(120 * var(--scale-factor));
        padding-bottom: clamp(4rem, 6vw, 5rem) !important; /* Увеличиваем нижний padding, чтобы даты были видны без скролла */
    }

    /* Поднимаем полосу прокрутки ближе к точкам и track-линии на мобильных */
    .growth-chart-slider {
        width: 90% !important; /* Занимает 90% ширины секции */
        max-width: 90% !important;
        margin-top: clamp(1rem, 2vw, 1.5rem) !important; /* Уменьшаем верхний margin */
        margin-bottom: clamp(1rem, 1.5vw, 1.25rem) !important; /* Уменьшаем нижний margin */
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative;
        z-index: 1;
    }

    .growth-chart-milestones ul {
        flex-wrap: wrap;
        row-gap: calc(20 * var(--scale-factor));
        justify-content: center;
    }

    .growth-chart-milestones li {
        width: auto !important; /* Убираем ограничение ширины, чтобы текст не обрезался */
        min-width: max-content !important; /* Минимальная ширина по содержимому */
        max-width: none !important; /* Убираем ограничение максимальной ширины */
        white-space: nowrap !important; /* Предотвращаем перенос текста */
        overflow: visible !important; /* Позволяем тексту выходить за границы элемента */
        z-index: 1002;
    }

    .growth-chart-slider {
        position: relative;
        z-index: 1;
    }

    .growth-chart-milestones {
        overflow: visible !important; /* Позволяем датам выходить за границы */
    }

    .growth-chart-milestones ul {
        overflow: visible !important; /* Позволяем датам выходить за границы */
    }

    .growth-chart-inner-grid {
        overflow: visible !important; /* Позволяем датам milestone выходить за границы */
    }

    .growth-chart-scroll {
        overflow-y: visible !important; /* Позволяем датам milestone выходить за границы по вертикали */
    }

    .growth-chart-wrapper {
        overflow: visible !important; /* Позволяем датам milestone выходить за границы */
    }

    .growth-path-screen {
        overflow: visible !important; /* Позволяем датам milestone выходить за границы */
        position: relative !important;
    }

    /* Баллуны теперь внутри .growth-chart-content и скроллятся вместе с графиком */
    /* Обрезка происходит естественным образом через overflow-x: auto на .growth-chart-scroll */

    .growth-path-section {
        overflow: visible !important; /* Позволяем датам milestone выходить за границы */
    }

    /* Увеличиваем нижний padding для growth-chart-scroll, чтобы даты были видны без скролла */
    .growth-chart-scroll {
        padding-bottom: clamp(4rem, 6vw, 5rem) !important;
    }

    /* Добавляем нижний padding для growth-chart-content на мобильных */
    .growth-chart-content {
        padding-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
    }

    .growth-overlay-content {
        gap: clamp(1rem, 3vw, 1.5rem) !important;
        padding: 0 !important;
    }

    .growth-overlay-content br {
        display: none !important;
    }

    .growth-overlay-content .growth-overlay-section {
        margin-bottom: clamp(1rem, 3vw, 1.5rem) !important;
    }
}

/* ============================================
   БЛОК "Истории и заметки"
   ============================================ */
.stories-carousel {
    width: 100%;
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(6rem, 12vw, 11rem);
    background-color: var(--white);
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.stories-carousel__controls,
.stories-carousel__viewport {
    width: min(92vw, 1280px);
    margin: 0 auto;
}

.stories-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.stories-carousel__nav {
    width: 8.75rem;
    height: 3.75rem;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-family-stolzl);
    font-size: var(--font-size-sm);
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    box-shadow: 0px 1.6875rem 4.14375rem rgba(96, 96, 96, 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.stories-carousel__nav svg {
    flex-shrink: 0;
    transform: none !important;
}

.stories-carousel__nav--prev svg {
    transform: none !important;
}

.stories-carousel__nav--next svg {
    transform: none !important;
}

.stories-carousel__nav:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.stories-carousel__nav--prev {
    flex-direction: row;
}

.stories-carousel__nav--next {
    flex-direction: row;
}

.stories-carousel__indicator {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.stories-carousel__dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.stories-carousel__dot.is-active {
    background: var(--primary-color);
    box-shadow: inset 0 0 0 6px #F6F7FF;
    transform: scale(1.05);
}

.stories-carousel__dot:focus-visible {
    outline: 3px solid rgba(92, 111, 235, 0.4);
    outline-offset: 3px;
}

.stories-carousel__viewport {
    overflow-x: visible;
    overflow-y: visible;
    position: relative;
    margin-bottom: 0;
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.stories-carousel__track {
    display: flex;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 3rem);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
    will-change: transform;
    padding: 0 clamp(2rem, 4vw, 4.5rem) clamp(3.5rem, 6vw, 5rem);
    box-sizing: border-box;
}

/* Ссылка на карточку истории в карусели */
.stories-card {
    flex: 0 0 min(74vw, 1197px);
    min-height: 28.125rem;
    border-radius: 45px;
    border: 1px solid var(--stroke-color);
    background: var(--white);
    box-shadow: 0px 1.6875rem 4.14375rem rgba(96, 96, 96, 0.25);
    display: flex;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    padding: clamp(2rem, 3vw, 2.5rem);
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Неактивные слайды кликабельны для переключения карусели */
.stories-card:not(.is-active) {
    cursor: pointer;
}

/* Активный слайд - курсор по умолчанию, только заголовок кликабелен */
.stories-card.is-active {
    cursor: default;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    pointer-events: none; /* Весь слайд не кликабелен */
}

/* На активном слайде только заголовок кликабелен */
.stories-card.is-active .stories-card__title-link {
    pointer-events: auto;
    cursor: pointer;
}

.stories-card.is-prev,
.stories-card.is-next {
    opacity: 0.6;
    pointer-events: auto;
    cursor: pointer;
}

.stories-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stories-card__category {
    font-family: var(--font-family-stolzl);
    font-size: var(--font-size-xs);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stories-card__title {
    font-family: var(--font-family-stolzl);
    font-size: var(--font-size-xl);
    line-height: 1.05;
    color: var(--text-color);
}

.stories-card__title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.stories-card__title-link:hover {
    opacity: 0.7;
}

/* На неактивных слайдах ссылка заголовка не кликабельна */
.stories-card:not(.is-active) .stories-card__title-link {
    pointer-events: none;
    cursor: default;
}

.stories-card__text {
    font-family: var(--font-family-stolzl);
    font-size: var(--font-size-sm);
    line-height: 1.35;
    color: var(--text-color);
}

.stories-card__social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

@media (max-width: 720px) {
    .stories-card__social {
        justify-content: center;
    }
}

.stories-card__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.stories-card__social-link:hover {
    opacity: 0.7;
}

.stories-card__social-link img {
    display: block;
    width: auto;
    height: 33px;
    object-fit: contain;
}

.stories-card__media {
    flex: 0 0 335px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.stories-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stories-card__media figcaption {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    right: 1.25rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-family: var(--font-family-stolzl);
    font-size: var(--font-size-xs);
    line-height: 1.4;
    padding: 0.5rem 1rem;
    text-align: center;
}

@media (max-width: 1200px) {
    .stories-card {
        flex: 0 0 min(85vw, 960px);
    }

    .stories-card__media {
        flex-basis: 280px;
    }
}

@media (max-width: 900px) {
    .stories-carousel__track {
        padding: 0 clamp(1rem, 3vw, 2rem);
    }

    .stories-card {
        flex-direction: column;
        flex: 0 0 min(90vw, 640px);
    }

    .stories-card__media {
        flex-basis: auto;
        height: 320px;
    }
}

@media (max-width: 720px) {
    .stories-carousel__controls {
        flex-direction: row;
        justify-content: space-between;
        gap: 0; /* Убираем gap, так как space-between уже создает нужное расстояние */
    }

    .stories-carousel__indicator {
        display: none; /* Скрываем индикатор на мобильных, чтобы кнопки были на одной строке */
    }

    .stories-carousel__nav {
        width: clamp(7rem, 20vw, 8.75rem);
        flex: 0 0 auto;
    }

    .stories-card__title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
}

@media (max-width: 480px) {
    .stories-carousel__dot {
        width: 2rem;
        height: 2rem;
    }

    .stories-card {
        padding: 1.5rem;
    }

    .stories-card__media {
        height: 260px;
    }

    .stories-card__media figcaption {
        font-size: 0.75rem;
    }
}

/* Мобильная компоновка (ширина < 500px) */
@media (max-width: 500px) {
    /* Скрываем десктопное меню */
    .main-header {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 clamp(1rem, 4vw, 1.5rem) !important;
        box-sizing: border-box !important;
    }

    .hero-section {
        padding-top: clamp(3.5rem, 10vw, 5rem) !important;
        overflow: visible !important;
    }

    .hero_wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: clamp(1.25rem, 5vw, 2rem) !important;
        padding: 0 !important;
        margin: clamp(1rem, 4vw, 1.5rem) 0 clamp(2rem, 6vw, 3rem) 0 !important;
    }

    /* Делаем внутренние блоки отдельными flex-элементами */
    .hero_content {
        display: contents !important;
    }

    .hero_content_text {
        display: contents !important;
    }

    .hero_name {
        order: 1;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.25rem !important;
        margin: 0 !important;
    }

    .hero_name .name-part-1,
    .hero_name .name-part-2 {
        font-size: clamp(2.5rem, 10vw, 3.25rem) !important;
        line-height: 1.05 !important;
    }

    .hero_name .name-part-2 {
        flex-basis: 100% !important;
        margin-top: 0.2rem !important;
    }

    .hero_name .dev-tag {
        position: static !important;
        margin-top: 0 !important;
        margin-left: clamp(0.75rem, 3vw, 1.25rem) !important;
        padding: clamp(0.5rem, 2.4vw, 0.75rem) clamp(0.95rem, 3.2vw, 1.25rem) !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: clamp(2.8rem, 10vw, 3.5rem) !important;
    }

    .hero_name .dev-tag-text {
        font-size: clamp(0.85rem, 3.4vw, 1.05rem) !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .hero_role {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero_role .role_text {
        width: 100% !important;
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
        padding: 0.875rem 1.25rem !important;
        text-align: center !important;
        display: block !important;
    }

    .hero_image-wrapper {
        order: 3;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .hero_image {
        width: min(64vw, 280px) !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .hero_image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .decorative-blue-rect-2 {
        width: min(52vw, 220px) !important;
        height: min(85vw, 360px) !important;
        left: 37% !important;
        transform: translateX(-40%) !important;
        bottom: 0 !important;
        top: auto !important;
    }

    .decorative-shadow-4,
    .decorative-shadow-5 {
        width: 64px !important;
        height: 64px !important;
    }

    .decorative-shadow-4 {
        left: calc(50% - 120px) !important;
        bottom: 10% !important;
    }

    .decorative-shadow-5 {
        right: calc(50% - 110px) !important;
        top: 25% !important;
    }

    .white-gradient {
        left: 5% !important;
        right: 5% !important;
        top: 45% !important;
        bottom: 0 !important;
    }

    .hero_full_text {
        order: 4;
        width: 100% !important;
        margin: 0 !important;
        gap: 0.75rem !important;
        align-items: flex-start !important;
    }

    .hero_full_text .description-bullet {
        margin-top: 0 !important;
    }

    .hero_full_text .hero_description_text {
        width: 100% !important;
        max-width: none !important;
        font-size: clamp(0.95rem, 3.5vw, 1.05rem) !important;
        line-height: 1.4 !important;
    }

    /* Социальные кнопки на главной странице - только для hero-section */
    .hero-section .hero_content .social-buttons {
        --social-gap: clamp(0.5rem, 2.5vw, 0.75rem); /* CSS переменная для gap */
        order: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: clamp(1.5rem, 5vw, 2rem) 0 0 0 !important; /* Отступ сверху после текста */
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Две колонки */
        grid-auto-rows: auto !important;
        gap: var(--social-gap) !important; /* Используем CSS переменную */
        justify-items: stretch !important; /* Кнопки растягиваются на всю ширину своих ячеек */
        align-items: stretch !important;
        background-color: transparent !important;
        z-index: 1 !important; /* Обычный порядок наложения */
        transform: none !important;
        box-sizing: border-box !important;
    }

    .hero-section .hero_content .social-button {
        height: auto !important;
        padding: clamp(0.7rem, 3vw, 0.85rem) clamp(0.75rem, 3.5vw, 1rem) !important; /* Адаптивный padding */
        font-size: clamp(0.8rem, 3.5vw, 0.95rem) !important; /* Адаптивный размер шрифта */
        min-width: 0 !important;
        width: 100% !important; /* Кнопки занимают всю ширину своих grid-ячеек */
        max-width: 100% !important;
        justify-content: center !important;
        border-radius: 999px !important;
        border-width: 1px !important;
        box-sizing: border-box !important;
        position: static !important; /* Убеждаемся, что нет абсолютного позиционирования */
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        white-space: nowrap !important; /* Текст на одной строке */
        transform: none !important; /* Убираем любые трансформации */
    }

    /* Telegram на первой строке, центрирована, занимает обе колонки (JS установит точную ширину) */
    .hero-section .hero_content .social-button.telegram {
        grid-column: 1 / -1 !important; /* Занимает обе колонки */
        grid-row: 1 !important; /* Первая строка */
        justify-self: center !important; /* Центрируем в контейнере */
        margin-left: auto !important; /* Дополнительное центрирование */
        margin-right: auto !important; /* Дополнительное центрирование */
        width: auto !important; /* Начальная ширина, JS переопределит на точное значение */
        max-width: none !important;
        min-width: 0 !important;
        position: static !important; /* Переопределяем position: absolute из старых стилей */
        left: auto !important; /* Переопределяем left из старых стилей */
        transform: none !important; /* Переопределяем transform из старых стилей */
    }

    /* LinkedIn и Блог на второй строке - занимают всю ширину своих колонок */
    .hero-section .hero_content .social-button.linkedin {
        grid-column: 1 !important; /* Первая колонка */
        grid-row: 2 !important; /* Вторая строка */
        /* width: 100% уже установлен в общих стилях */
    }

    .hero-section .hero_content .social-button.blog {
        grid-column: 2 !important; /* Вторая колонка */
        grid-row: 2 !important; /* Вторая строка */
        /* width: 100% уже установлен в общих стилях */
    }

    .hero-section .hero_content .social-button.telegram svg {
        width: clamp(0.9rem, 4vw, 1.125rem) !important;
        height: clamp(0.75rem, 3.5vw, 0.9375rem) !important;
        flex-shrink: 0 !important;
    }

    .directions-section {
        margin-top: clamp(2rem, 8vw, 3.5rem) !important;
        /* Уменьшаем боковой padding на мобильных, оставляя небольшое место для теней карточек */
        padding-left: clamp(1.25rem, 5vw, 2rem) !important;
        padding-right: clamp(1.25rem, 5vw, 2rem) !important;
    }

    /* Заголовок занимает всю ширину сетки на мобильных */
    .directions-title {
        width: calc(100% + 2 * clamp(1rem, 4vw, 1.5rem)) !important;
        margin-left: calc(-1 * clamp(1rem, 4vw, 1.5rem)) !important;
        padding-left: clamp(1rem, 4vw, 1.5rem) !important;
        white-space: normal !important; /* Разрешаем перенос на мобильных */
        flex-direction: column !important; /* Вертикальное расположение на мобильных */
        gap: 0 !important;
    }

    .directions-title-part-1,
    .directions-title-part-2,
    .directions-title-part-3 {
        display: block !important;
        width: 100% !important;
    }

    /* Уменьшаем gap в grid на мобильных для лучшего размещения */
    .directions-grid {
        gap: clamp(1rem, 3vw, 1.5rem) !important;
    }

    /* Адаптивный padding для заголовков на мобильных экранах - чтобы не выходили за пределы карточек */
    .direction-card-title {
        padding-left: clamp(1rem, 4vw, 2.5rem) !important;
        padding-top: clamp(0.875rem, 2vw, 1.25rem) !important;
    }
}

/* ============================================
   БЛОГ СТРАНИЦА
   ============================================ */

/* Секция блога */
.blog-section {
    width: 100%;
    padding-top: clamp(3rem, 4vw, 4rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
    padding-left: 0; /* Убираем левый padding - карточки от левой границы сетки */
    box-sizing: border-box;
    overflow-x: visible; /* Разрешаем видимость теней */
}

/* Для разрешений выше 720px (десктоп): секция расширяется в обе стороны для теней */
@media (min-width: 721px) {
    /* Разрешаем overflow для контейнера, содержащего блог, чтобы тени не обрезались */
    body:has(.blog-section) .container {
        overflow-x: visible !important;
    }

    .container .blog-section {
        margin-left: -20px; /* Компенсируем левый padding контейнера для теней слева */
        margin-right: -20px; /* Компенсируем правый padding контейнера для теней справа */
        padding-left: clamp(4.5rem, 9vw, 6rem) !important; /* Увеличенный отступ для теней слева (72-96px) - тень имеет размытие 66.3px */
        padding-right: clamp(4rem, 8vw, 6rem); /* Увеличиваем padding для теней справа */
        width: calc(100% + 40px); /* Расширяем на оба padding контейнера (20px + 20px) */
        box-sizing: border-box;
    }

    /* Контейнер статей должен растягиваться на всю ширину секции */
    .blog-section .blog-articles {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .blog-article-card {
        margin-left: 0 !important; /* Карточки прижаты к левой границе сетки (с учетом padding секции) */
        margin-right: 0 !important; /* Убираем margin-right, чтобы карточки растягивались на всю ширину */
        width: 100% !important; /* Карточки растягиваются на всю ширину сетки */
        box-sizing: border-box !important;
    }
}


/* Отступ сверху для секции блога на разрешениях с бургер-меню */
@media (max-width: 500px) {
    .blog-section {
        padding-top: clamp(4.5rem, 12vw, 5.5rem) !important; /* Отступ для мобильной шапки (40px + зазор) */
    }

    /* Компенсируем только правый padding контейнера для места теней */
    .container .blog-section {
        margin-left: 0 !important; /* НЕ компенсируем левый padding - карточки прижаты к границе сетки */
        margin-right: clamp(-1.5rem, -4vw, -1rem) !important; /* Компенсируем только правый padding контейнера для теней */
        padding-left: 0 !important; /* Убираем левый padding секции - карточки от левой границы сетки */
        padding-right: clamp(1.5rem, 4vw, 2rem) !important; /* Оставляем правый padding для теней */
        width: calc(100% + clamp(1.5rem, 4vw, 1rem)) !important; /* Расширяем только на правый padding контейнера */
    }

    /* Убираем отступы для теней у карточек на мобильных */
    .blog-article-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Заголовок блога */
.blog-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.5rem, 5vw, 4rem); /* 64px на десктопе, адаптивно */
    line-height: 1.1;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 clamp(1.5rem, 5vw, 4rem) 0; /* 64px на десктопе */
    padding: 0;
}

/* Контейнер статей */
.blog-articles {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 4rem); /* 64px на десктопе */
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible; /* Разрешаем видимость теней */
}

/* Карточка статьи */
/* Ссылка на карточку статьи в блоге */
.blog-article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Кнопка "Поделиться" должна быть кликабельной поверх ссылки */
.blog-article-card-link .blog-article-share {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.blog-article-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(1rem, 3vw, 2.8125rem); /* 45px на десктопе */
    background: var(--white);
    border: 1px solid #888888;
    border-radius: clamp(1rem, 3vw, 2.8125rem); /* 45px на десктопе */
    box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
    box-sizing: border-box;
    margin-left: 0; /* Карточки прижаты к левой границе сетки */
    margin-right: clamp(1.5rem, 3vw, 2rem); /* Отступ для теней справа */
    position: relative; /* Для правильного позиционирования */
}

/* На десктопе (выше 500px) карточки прижаты к левой границе сетки */
@media (min-width: 501px) {
    .blog-article-card {
        margin-left: 0; /* Карточки прижаты к левой границе сетки */
    }
}

/* Верхняя часть карточки (контент + изображение) */
.blog-article-top {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Растягиваем элементы на всю высоту (для выравнивания изображения и текста) */
    gap: clamp(1.5rem, 3vw, 3rem); /* Отступ между контентом и изображением */
    width: 100%;
    margin-bottom: clamp(1rem, 2.5vw, 2rem); /* Отступ перед метаданными */
    box-sizing: border-box;
}

/* На мобильных и планшетах, где элементы в колонку - меняем порядок (изображение сверху, текст снизу) */
@media screen and (max-width: 720px) {
    .blog-article-top {
        flex-direction: column;
    }

    .blog-article-content {
        order: 2 !important; /* Текст снизу */
    }

    .blog-article-image-wrapper {
        order: 1 !important; /* Изображение сверху */
        width: 100% !important; /* Изображение занимает всю ширину сетки внутри карточки */
        max-width: 100% !important; /* Убираем любые ограничения по ширине */
    }
}

/* Контент статьи (левая часть) */
.blog-article-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch; /* Растягиваем на всю высоту контейнера */
}

/* Категория статьи */
.blog-article-category {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.75rem, 1.2vw, 0.875rem); /* 14px на десктопе */
    line-height: 1.3;
    font-weight: 400;
    color: var(--primary-color); /* #5C6FEB из Figma */
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Обертка изображения статьи (правая часть) */
.blog-article-image-wrapper {
    flex: 0 0 auto;
    width: clamp(13rem, 22vw, 25rem); /* Базовая ширина: 208-400px (можно изменить через JS) */
    height: clamp(13rem, 22vw, 25rem); /* Базовая высота: 208-400px, квадрат (можно изменить через JS) */
    aspect-ratio: 1 / 1; /* Сохраняем квадратные пропорции */
    overflow: hidden;
    border-radius: clamp(0.625rem, 1vw, 0.9375rem); /* 15px на десктопе */
    box-sizing: border-box;
    align-self: stretch; /* Растягиваем для соответствия высоте текста */
}

.blog-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заголовок статьи */
.blog-article-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.125rem, 2.5vw, 2rem); /* 32px на десктопе */
    line-height: 1em;
    font-weight: 400;
    color: var(--text-color);
    margin: clamp(1rem, 2.5vw, 2rem) 0 0 0; /* 32px на десктопе */
    padding: 0;
}

/* Текст статьи */
.blog-article-text {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 1.8vw, 1.25rem); /* 20px на десктопе */
    line-height: 1.3em;
    font-weight: 400;
    color: var(--text-color);
    margin: clamp(0.5rem, 1.5vw, 1rem) 0 0 0; /* 16px на десктопе */
    padding: 0;
}

/* Метаданные статьи */
.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Левая группа метаданных (дата и просмотры) */
.blog-article-meta-left {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem); /* 32px на десктопе */
    flex-wrap: wrap;
}

/* Дата статьи */
.blog-article-date {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

/* Статистика просмотров */
.blog-article-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-icon-view {
    width: 1.5625rem; /* 25px */
    height: 1.0625rem; /* 17px */
    flex-shrink: 0;
}

.blog-article-views {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

/* Кнопка поделиться */
.blog-article-share {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    transition: opacity 0.2s ease;
}

.blog-article-share:hover {
    opacity: 0.7;
}

.blog-article-share svg,
.blog-article-share-icon {
    width: 1.875rem; /* 30px */
    height: 1.5625rem; /* 25px */
    flex-shrink: 0;
}

/* Модальное окно для шаринга */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: var(--white);
    border-radius: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 90%;
    width: 100%;
    max-width: 500px;
    box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.share-modal-close:hover {
    opacity: 0.7;
}

.share-modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--text-color);
}

.share-modal-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    padding-right: 2.5rem;
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.share-modal-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: none;
    border: 1px solid #E0E0E0;
    border-radius: clamp(0.75rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
}

.share-modal-button:hover {
    border-color: var(--primary-color);
    background: rgba(92, 111, 235, 0.05);
    transform: translateY(-2px);
}

.share-modal-button-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-button-icon img,
.share-modal-button-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-modal-button-text {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
}

.share-modal-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    background: var(--primary-color);
    border: none;
    border-radius: clamp(0.75rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
}

.share-modal-copy:hover {
    background: #313F9A;
    transform: translateY(-2px);
}

.share-modal-copy-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-copy-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    fill: none;
}

.share-modal-copy-text {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
}

.share-modal-copy.copied {
    background: #4CAF50;
}

.share-modal-copy.copied:hover {
    background: #45a049;
}

/* Адаптивность для модального окна */
@media screen and (max-width: 720px) {
    .share-modal {
        padding: clamp(1.25rem, 4vw, 2rem);
        max-width: 95%;
    }

    .share-modal-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .share-modal-button {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .share-modal-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .share-modal-button {
        padding: 0.875rem;
    }

    .share-modal-button-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Кнопка "Наверх" */
.blog-scroll-top {
    position: fixed;
    right: clamp(2rem, 4vw, 4rem);
    bottom: clamp(2rem, 4vw, 4rem);
    width: auto;
    height: clamp(2.5rem, 3.5vw, 3.5rem);
    background: var(--primary-color);
    border: none;
    border-radius: 100px; /* Пилл-форма */
    display: flex;
    flex-direction: row; /* Горизонтальная ориентация */
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    cursor: pointer;
    box-shadow: 0px 1.6875rem 4.14375rem rgba(96, 96, 96, 0.25);
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0 clamp(1rem, 1.5vw, 1.5rem);
    box-sizing: border-box;
}

.blog-scroll-top:hover {
    opacity: 0.9;
    transform: translateY(-0.25rem);
}

.blog-scroll-top span {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.75rem, 1vw, 0.875rem); /* 12-14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--white);
    white-space: nowrap;
}

.blog-scroll-top svg,
.blog-scroll-top-icon {
    width: clamp(0.9375rem, 1.2vw, 1.125rem); /* 15-18px */
    height: clamp(0.9375rem, 1.2vw, 1.125rem);
    flex-shrink: 0;
}

.blog-scroll-top svg path {
    stroke: var(--white);
    fill: none;
}

/* ============================================
   БЛОГ - ПЛАНШЕТНАЯ ВЕРСИЯ (max-width: 720px)
   ============================================ */

/* Для разрешений 500-720px карточки прижаты к левой границе сетки */

/* Для разрешений < 500px (внутри max-width: 720px) */
@media screen and (max-width: 499px) {
    .container .blog-section {
        margin-left: 0 !important; /* НЕ компенсируем левый padding - карточки прижаты к границе сетки */
        margin-right: -1rem !important; /* Компенсируем только правый padding контейнера для теней */
        padding-left: 0 !important; /* Убираем левый padding секции */
        padding-right: clamp(2rem, 4vw, 3rem) !important;
        width: calc(100% + 1rem) !important; /* Расширяем только на правый padding */
    }
}

@media screen and (max-width: 720px) {
    .container .blog-section {
        margin-left: 0; /* НЕ компенсируем левый padding - карточки прижаты к границе сетки */
        margin-right: 0; /* На этих разрешениях контейнер имеет padding: 0 */
        padding-left: 0; /* Убираем левый padding секции */
        padding-right: clamp(2rem, 4vw, 3rem);
        width: 100%; /* Не расширяем, так как контейнер без padding */
    }


    .blog-section {
        padding-top: clamp(2rem, 4vw, 3rem);
        padding-bottom: clamp(3rem, 5vw, 4rem);
    }

    .blog-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: clamp(2rem, 4vw, 3rem);
    }

    .blog-articles {
        gap: clamp(2rem, 4vw, 3rem);
    }

    .blog-article-card {
        padding: clamp(1.5rem, 3vw, 2rem);
        border-radius: clamp(1.5rem, 3vw, 2rem);
        margin-left: 0; /* Убираем отступ для теней на планшете/мобилке */
        margin-right: 0; /* Убираем отступ для теней на планшете/мобилке */
    }

    .blog-article-top {
        gap: clamp(1rem, 2vw, 1.5rem);
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }

    .blog-article-image-wrapper {
        width: 100% !important; /* Изображение занимает всю ширину сетки внутри карточки */
        max-width: 100% !important; /* Убираем любые ограничения по ширине */
        height: clamp(15rem, 40vw, 20rem);
        align-self: stretch;
        aspect-ratio: auto; /* Убираем квадратные пропорции на планшетах/мобильных */
    }

    .blog-article-title {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-top: clamp(1rem, 2vw, 1.5rem);
    }

    .blog-article-text {
        font-size: clamp(0.875rem, 2vw, 1rem);
        margin-top: clamp(0.75rem, 1.5vw, 1rem);
    }

    .blog-article-meta {
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .blog-scroll-top {
        left: 50%;
        right: auto;
        transform: translate(-50%, 0);
        bottom: clamp(1rem, 3vw, 2rem);
        width: auto;
        height: clamp(2.5rem, 4vw, 3rem);
        padding: 0 clamp(0.875rem, 1.5vw, 1.25rem);
        gap: clamp(0.5rem, 1vw, 0.625rem);
    }

    .blog-scroll-top:hover {
        transform: translate(-50%, -0.25rem);
    }
}


/* ============================================
   БЛОГ - МОБИЛЬНАЯ ВЕРСИЯ (max-width: 320px)
   ============================================ */

@media screen and (max-width: 320px) {
    .container .blog-section {
        margin-left: 0; /* НЕ компенсируем левый padding - карточки прижаты к границе сетки */
        margin-right: -1rem; /* Компенсируем только правый padding контейнера для теней */
        padding-left: 0; /* Убираем левый padding секции */
        padding-right: 1.5rem;
        width: calc(100% + 1rem); /* Расширяем только на правый padding */
    }

    .blog-section {
        padding-top: clamp(4.5rem, 12vw, 5.5rem) !important; /* Отступ для мобильной шапки (40px + зазор) */
        padding-bottom: 2rem;
    }

    .blog-title {
        font-size: 1.5rem; /* 24px */
        margin-bottom: 1.5rem;
    }

    .blog-articles {
        gap: 1.5rem;
    }

    .blog-article-card {
        padding: 1rem;
        border-radius: 1rem;
        margin-left: 0 !important; /* Убираем отступ для теней на мобилке */
        margin-right: 0 !important; /* Убираем отступ для теней на мобилке */
    }

    .blog-article-top {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .blog-article-image-wrapper {
        width: 100% !important; /* Изображение занимает всю ширину сетки внутри карточки */
        max-width: 100% !important; /* Убираем любые ограничения по ширине */
        height: 12rem; /* 192px */
        align-self: stretch;
        aspect-ratio: auto; /* Убираем квадратные пропорции на мобильных */
    }

    .blog-article-category {
        font-size: 0.75rem; /* 12px */
    }

    .blog-article-title {
        font-size: 1.125rem; /* 18px */
        margin-top: 1rem;
    }

    .blog-article-text {
        font-size: 0.875rem; /* 14px */
        margin-top: 0.75rem;
    }

    .blog-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .blog-article-share {
        width: 100%;
        justify-content: space-between;
    }

    .blog-scroll-top {
        left: 50%;
        right: auto;
        transform: translate(-50%, 0);
        bottom: 1rem;
        width: auto;
        height: 2.3rem;
        padding: 0 0.8rem;
        gap: 0.5rem;
    }

    .blog-scroll-top:hover {
        transform: translate(-50%, -0.25rem);
    }

    .blog-scroll-top span {
        font-size: 0.75rem; /* 12px */
    }

    .blog-scroll-top svg {
        width: 0.9375rem; /* 15px */
        height: 0.9375rem; /* 15px */
    }
}

/* ============================================
   КРИТИЧЕСКОЕ ПРАВИЛО ДЛЯ 500-720px - В КОНЦЕ ФАЙЛА ДЛЯ МАКСИМАЛЬНОГО ПРИОРИТЕТА
   ============================================ */
@media screen and (min-width: 500px) and (max-width: 720px) {
    /* КОНТЕЙНЕР ДОЛЖЕН БЫТЬ ЦЕНТРИРОВАН! Максимальная специфичность */
    html body .container,
    body .container,
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        /* Ограничиваем ширину контейнера, чтобы он был уже экрана для центрирования */
        width: 90% !important; /* 90% от ширины экрана вместо 100% */
        max-width: 720px !important;
        min-width: 480px !important; /* Минимальная ширина */
        margin-left: auto !important; /* ПРИНУДИТЕЛЬНО центрируем контейнер */
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Секция блога начинается от левой границы КОНТЕЙНЕРА (сетки), а не экрана */
    body .container .blog-section {
        margin-left: 0 !important; /* НЕ компенсируем - секция от левой границы контейнера */
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important; /* Убираем правый padding, чтобы не создавать визуальное несоответствие */
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    body .blog-section {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    body .blog-articles {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    body .blog-article-card {
        margin-left: 0 !important; /* Карточки от левой границы контейнера (сетки) */
        margin-right: 0 !important;
    }
}

/* ============================================
   СТРАНИЦА ОТДЕЛЬНОЙ СТАТЬИ (SINGLE ARTICLE)
   ============================================ */

/* Социальные кнопки на странице статьи */
.single-social-buttons {
    display: flex;
    gap: clamp(1rem, 1.5vw, 1.2rem);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    width: 100%;
}

.single-social-button {
    height: clamp(2.5rem, 3vw, 3rem);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 0.9vw, 0.9375rem);
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.single-social-button:hover {
    opacity: 0.8;
}

.single-social-button.blog {
    width: clamp(10rem, 11vw, 11rem);
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--text-color);
    padding: clamp(0.75rem, 1vw, 0.875rem) clamp(1.25rem, 1.5vw, 1.5rem);
}

.single-social-button.telegram {
    width: clamp(10rem, 11vw, 11rem);
    background: var(--primary-color);
    color: var(--white);
    padding: clamp(0.75rem, 1vw, 0.875rem);
}

.single-social-button.telegram svg {
    width: clamp(1rem, 1.1vw, 1.125rem);
    height: clamp(0.875rem, 0.95vw, 0.9375rem);
    flex-shrink: 0;
}

.single-social-button.linkedin {
    width: clamp(10rem, 11vw, 11rem);
    border: 1px solid var(--primary-color);
    background: var(--white);
    color: var(--text-color);
    padding: clamp(0.75rem, 1vw, 0.875rem) clamp(1.25rem, 1.5vw, 1.5625rem);
}

.single-article-section {
    width: 100%;
    padding-top: clamp(3rem, 4vw, 4rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
    box-sizing: border-box;
}

/* Для разрешений выше 720px (десктоп): разрешаем видимость теней */
@media (min-width: 721px) {
    /* Разрешаем overflow для контейнера и body, чтобы тени не обрезались */
    body:has(.single-article-section) {
        overflow-x: visible !important;
    }

    body:has(.single-article-section) .container {
        overflow-x: visible !important;
    }
}

/* Отступ сверху для секции на разрешениях с бургер-меню */
@media (max-width: 500px) {
    .single-article-section {
        padding-top: clamp(4.5rem, 12vw, 5.5rem) !important;
    }

    .single-social-buttons {
        margin-top: clamp(5.5rem, 14vw, 6.5rem) !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .single-social-button {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        height: auto;
    }

    .single-social-button.blog,
    .single-social-button.telegram,
    .single-social-button.linkedin {
        width: 100%;
        padding: 0.6rem 0.9rem;
    }
}

/* Обертка для основной статьи и сайдбара */
.single-article-wrapper {
    display: flex;
    gap: clamp(2rem, 4vw, 3rem); /* Отступ между основной статьей и сайдбаром */
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Основная статья (левая колонка) */
.single-article {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1rem, 3vw, 2.8125rem); /* 45px на десктопе */
    background: var(--white);
    border: 1px solid #888888;
    border-radius: clamp(1rem, 3vw, 2.8125rem); /* 45px на десктопе */
    box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
    box-sizing: border-box;
}

/* Сайдбар (правая колонка) */
.single-article-sidebar {
    flex: 0 0 auto;
    width: clamp(18rem, 25vw, 22rem); /* Фиксированная ширина сайдбара */
    box-sizing: border-box;
}

/* Категория статьи */
.single-article-category {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.75rem, 1.2vw, 0.875rem); /* 14px на десктопе */
    line-height: 1.3;
    font-weight: 400;
    color: var(--primary-color); /* #5C6FEB */
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: block;
}

/* Обертка изображения статьи */
.single-article-image-wrapper {
    width: 100%;
    margin-bottom: clamp(2rem, 4vw, 3rem); /* 48px на десктопе */
    border-radius: clamp(0.625rem, 1vw, 0.9375rem); /* 15px на десктопе */
    overflow: hidden;
    box-sizing: border-box;
}

.single-article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Заголовок статьи */
.single-article-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.5rem, 4vw, 3rem); /* 48px на десктопе */
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 clamp(2rem, 4vw, 3rem) 0; /* 48px на десктопе */
    padding: 0;
}

/* Контент статьи */
.single-article .single-article-content {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 1.8vw, 1.25rem); /* 20px на десктопе */
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.single-article .single-article-content p {
    margin: 0 0 clamp(1.25rem, 2.5vw, 1.875rem) 0 !important; /* 30px на десктопе */
    padding: 0;
}

.single-article-content p:last-child {
    margin-bottom: 0;
}

/* Подзаголовок в контенте */
.single-article .single-article-subtitle {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.25rem, 3vw, 2rem) !important; /* 32px на десктопе */
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    margin: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(1.25rem, 2.5vw, 1.875rem) 0 !important; /* 60px сверху, 30px снизу на десктопе */
    padding: 0;
}

/* Список в контенте */
.single-article .single-article-list {
    margin: clamp(1.25rem, 2.5vw, 1.875rem) 0 !important; /* 30px на десктопе */
    padding-left: clamp(1.5rem, 3vw, 2rem) !important; /* Стандартный отступ для маркеров */
    list-style-type: disc !important; /* Обычные точки */
}

.single-article .single-article-list li {
    margin-bottom: clamp(0.625rem, 1.25vw, 0.9375rem) !important; /* 15px на десктопе */
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-color);
    padding-left: 0;
    list-style-position: outside;
}

/* Таблица в контенте */
.single-article .single-article-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: clamp(1.875rem, 3.75vw, 2.5rem) 0 !important; /* 40px на десктопе */
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.875rem, 1.8vw, 1.25rem);
    border: none !important; /* Убираем внешнюю рамку */
    border-radius: 0 !important; /* Убираем скругление углов */
    overflow: visible;
    box-sizing: border-box;
    background: var(--white);
}

.single-article .single-article-table thead {
    background: var(--white); /* Белый фон для заголовка */
}

.single-article .single-article-table th {
    padding: clamp(0.875rem, 1.75vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.875rem); /* 20px вертикально, 30px горизонтально на десктопе */
    text-align: left;
    font-weight: 700 !important; /* Жирный шрифт для заголовков */
    color: var(--text-color);
    border-bottom: 1px solid rgba(136, 136, 136, 0.3); /* Светлая серая граница под заголовком */
    font-size: clamp(0.9375rem, 2vw, 1.375rem); /* Немного больше, чем в строках данных */
    line-height: 1.5;
    border-right: none !important; /* Убираем вертикальные разделители */
    border-left: none !important;
    border-top: none !important;
}

.single-article .single-article-table td {
    padding: clamp(0.875rem, 1.75vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.875rem) !important; /* 20px вертикально, 30px горизонтально на десктопе */
    border-bottom: 1px solid rgba(136, 136, 136, 0.3) !important; /* Светлые серые горизонтальные разделители */
    border-right: none !important; /* Убираем вертикальные разделители между колонками */
    border-left: none !important;
    color: var(--text-color);
    font-weight: 400;
    font-size: clamp(0.875rem, 1.8vw, 1.25rem);
    line-height: 1.5;
}

.single-article .single-article-table tbody tr:last-child td {
    border-bottom: none !important; /* Убираем границу у последней строки */
}

/* Футер статьи с метаданными */
.single-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(136, 136, 136, 0.3);
    box-sizing: border-box;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Дата статьи */
.single-article-date {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

/* Статистика просмотров */
.single-article-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-article-views {
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

/* Кнопка поделиться */
.single-article-share {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-family-stolzl);
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    transition: opacity 0.2s ease;
    margin-left: auto;
}

.single-article-share:hover {
    opacity: 0.7;
}

/* Заголовок сайдбара */
.single-sidebar-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1.125rem, 2vw, 1.5rem); /* 24px на десктопе */
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
    padding: 0;
}

/* Контейнер рекомендованных статей */
.single-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

/* Карточка рекомендованной статьи */
.single-sidebar-article {
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--white);
    border: 1px solid #888888;
    border-radius: clamp(0.75rem, 1.5vw, 1rem);
    box-shadow: 0px 27px 66.3px rgba(96, 96, 96, 0.25);
    box-sizing: border-box;
}

/* Изображение рекомендованной статьи */
.single-sidebar-article-image-wrapper {
    width: 100%;
    height: clamp(10rem, 20vw, 12rem);
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    overflow: hidden;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    box-sizing: border-box;
}

.single-sidebar-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заголовок рекомендованной статьи */
.single-sidebar-article-title {
    font-family: var(--font-family-stolzl);
    font-size: clamp(1rem, 1.8vw, 1.25rem); /* 20px на десктопе */
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    padding: 0;
}

.single-sidebar-article-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Текст рекомендованной статьи */
.single-sidebar-article-text {
    font-family: var(--font-family-stolzl);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem); /* 14px на десктопе */
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 clamp(1rem, 2vw, 1.5rem) 0;
    padding: 0;
}

/* Метаданные рекомендованной статьи */
.single-sidebar-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.single-sidebar-article-date {
    font-family: var(--font-family-stolzl);
    font-size: 0.75rem; /* 12px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

.single-sidebar-article-stats {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.single-sidebar-article-views {
    font-family: var(--font-family-stolzl);
    font-size: 0.75rem; /* 12px */
    line-height: 1.3;
    font-weight: 400;
    color: var(--stroke-color);
}

/* ============================================
   СТРАНИЦА ОТДЕЛЬНОЙ СТАТЬИ - ПЛАНШЕТНАЯ ВЕРСИЯ (max-width: 720px)
   ============================================ */

@media screen and (max-width: 720px) {
    .single-social-buttons {
        margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
        gap: clamp(0.5rem, 1vw, 0.75rem);
        width: 100%;
    }

    .single-social-button {
        height: auto;
        font-size: clamp(0.8rem, 0.9vw, 0.875rem);
        flex: 1 1 0;
        min-width: 0;
    }

    .single-social-button.blog,
    .single-social-button.telegram,
    .single-social-button.linkedin {
        width: 100%;
        padding: clamp(0.6rem, 0.9vw, 0.75rem) clamp(0.9rem, 1.2vw, 1.1rem);
    }

    .single-social-button.telegram {
        padding: clamp(0.6rem, 0.9vw, 0.75rem);
    }

    .single-social-button.telegram svg {
        width: clamp(0.9375rem, 1vw, 1rem);
        height: clamp(0.8125rem, 0.9vw, 0.875rem);
    }

    .single-article-section {
        padding-top: clamp(2rem, 4vw, 3rem);
        padding-bottom: clamp(3rem, 5vw, 4rem);
    }

    /* На планшетах и мобильных - колонки в столбик */
    .single-article-wrapper {
        flex-direction: column;
        gap: clamp(2rem, 4vw, 3rem);
    }

    .single-article,
    .single-article-sidebar {
        width: 100%;
    }

    .single-article {
        padding: clamp(1.5rem, 3vw, 2rem);
        border-radius: clamp(1.5rem, 3vw, 2rem);
    }

    .single-article-sidebar {
        width: 100%;
    }

    .single-article-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }

    .single-article-image-wrapper {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }

    .single-article-content {
        font-size: clamp(0.875rem, 2vw, 1rem);
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }

    .single-article-content p {
        margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    }

    .single-article-subtitle {
        font-size: clamp(1.125rem, 2.5vw, 1.5rem);
        margin: clamp(1.5rem, 3vw, 2rem) 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    }

    .single-article-list {
        margin: clamp(1rem, 2vw, 1.5rem) 0;
    }

    .single-article-list li {
        padding-left: clamp(1.25rem, 2.5vw, 1.75rem);
        margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    }

    .single-article-table {
        margin: clamp(1.5rem, 3vw, 2rem) 0;
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    }

    .single-article-table th,
    .single-article-table td {
        padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.875rem, 1.75vw, 1.25rem);
    }

    .single-article-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: clamp(0.75rem, 1.5vw, 1rem);
    }

    .single-article-share {
        margin-left: auto;
        width: auto;
        justify-content: flex-start;
    }
}

/* ============================================
   СТРАНИЦА ОТДЕЛЬНОЙ СТАТЬИ - МОБИЛЬНАЯ ВЕРСИЯ (max-width: 320px)
   ============================================ */

@media screen and (max-width: 320px) {
    .single-social-buttons {
        margin-bottom: 0.5rem;
        margin-top: clamp(5rem, 16vw, 6rem) !important;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .single-social-button {
        height: auto;
        font-size: 0.75rem;
        width: 100%;
    }

    .single-social-button.blog,
    .single-social-button.telegram,
    .single-social-button.linkedin {
        width: 100%;
        padding: 0.5rem 0.7rem;
    }

    .single-social-button.telegram {
        padding: 0.5rem;
    }

    .single-social-button.telegram svg {
        width: 1rem;
        height: 0.875rem;
    }

    .single-article-section {
        padding-top: clamp(4.5rem, 12vw, 5.5rem) !important;
        padding-bottom: 2rem;
    }

    .single-article-wrapper {
        gap: 1.5rem;
    }

    .single-article {
        padding: 1rem;
        border-radius: 1rem;
    }

    .single-article-category {
        margin-bottom: 1rem;
    }

    .single-article-title {
        font-size: 1.25rem; /* 20px */
        margin-bottom: 1.5rem;
    }

    .single-article-image-wrapper {
        margin-bottom: 1.5rem;
    }

    .single-article-content {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 1.5rem;
    }

    .single-article-content p {
        margin-bottom: 0.75rem;
    }

    .single-article-subtitle {
        font-size: 1.125rem; /* 18px */
        margin: 1.5rem 0 0.75rem 0;
    }

    .single-article-list {
        margin: 1rem 0;
    }

    .single-article-list li {
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .single-article-table {
        margin: 1.5rem 0;
        font-size: 0.75rem;
        border-radius: 0.5rem;
    }

    .single-article-table th,
    .single-article-table td {
        padding: 0.75rem 1rem;
    }

    .single-article-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 1rem;
        gap: 0.75rem;
    }

    .single-article-share {
        margin-left: auto;
        width: auto;
        justify-content: flex-start;
    }

    .single-sidebar-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .single-sidebar-articles {
        gap: 1.5rem;
    }

    .single-sidebar-article {
        padding: 1rem;
    }

    .single-sidebar-article-image-wrapper {
        height: 10rem;
        margin-bottom: 1rem;
    }
}

