@font-face {
    font-family: 'Custom Font';
    src: url('font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --blue: #60ceff;
    --yellow: #ffec55;
    --green: #78ff80;
    --cyan: #00FFFF;
    --white: #FFFFFF;
    --black: #000000;
    --dark: #0A0A0A;
    --gray: #1A1A1A;
}

body {
    font-family: 'Custom Font', sans-serif;
    background-color: var(--bg-primary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Баннер */
.banner {
    width: 100%;
    height: 359px;
    background: var(--black);
    background-image: url('port_head.png');
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #efefef;
}

.banner-content {
    text-align: left;
    z-index: 1;
    padding: 2rem 2rem 2rem 4rem;
    position: relative;
    max-width: 50%;
}

.banner-title-small {
    font-size: clamp(1.17rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    animation: fadeInUp 1s ease-out;
    display: block;
    width: fit-content;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.banner-title-large {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    animation: fadeInUp 1s ease-out 0.15s both;
    display: block;
    width: fit-content;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.banner-subtitle {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    width: fit-content;
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Основной контент */
.main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Секции */
.section {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
}

/* Разделители перед секциями (начиная со второй) */
.section:nth-child(n+2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
    z-index: 10;
}

/* Перед секцией 2 (Smokie) - голубой */
.section:nth-child(2)::before {
    background: var(--blue);
}

/* Перед секцией 3 (Qlint) - желтый */
.section:nth-child(3)::before {
    background: var(--yellow);
}

/* Перед секцией 4 (Courier) - зеленый */
.section:nth-child(4)::before {
    background: var(--green);
}

/* Перед секцией 5 (Pick) - голубой */
.section:nth-child(5)::before {
    background: var(--blue);
}

/* Перед секцией 6 (ISO 3D) - желтый */
.section:nth-child(6)::before {
    background: var(--yellow);
}

/* Перед секцией 7 (Gems) - зеленый */
.section:nth-child(7)::before {
    background: var(--green);
}

/* Перед секцией 8 (Onyx) - голубой */
.section:nth-child(8)::before {
    background: var(--blue);
}

/* Разделители после секций (начиная со второй, кроме последней) */
.section:nth-child(n+2):not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
    z-index: 10;
}

/* После секции 2 (Smokie) - голубой */
.section:nth-child(2):not(:last-child)::after {
    background: var(--blue);
}

/* После секции 3 (Qlint) - желтый */
.section:nth-child(3):not(:last-child)::after {
    background: var(--yellow);
}

/* После секции 4 (Courier) - зеленый */
.section:nth-child(4):not(:last-child)::after {
    background: var(--green);
}

/* После секции 5 (Pick) - голубой */
.section:nth-child(5):not(:last-child)::after {
    background: var(--blue);
}

/* После секции 6 (ISO 3D) - желтый */
.section:nth-child(6):not(:last-child)::after {
    background: var(--yellow);
}

/* После секции 7 (Gems) - зеленый */
.section:nth-child(7):not(:last-child)::after {
    background: var(--green);
}

/* После секции 8 (Onyx) - голубой */
.section:nth-child(8):not(:last-child)::after {
    background: var(--blue);
}

/* После секции 8 (Onyx) - голубой (если это последняя секция) */
.section:nth-child(8):last-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
    z-index: 10;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: var(--black);
    border: none;
    transition: all 0.3s ease;
    min-height: 600px;
    position: relative;
}

.section-content::before {
    display: none;
}

.section-content.reverse {
    grid-template-columns: 65% 35%;
}


.section-content.reverse .text-block {
    order: 2;
}

.section-content.reverse .video-block {
    order: 1;
}

/* Обратное соотношение для секций с вертикальными видео (3, 5, 7) */
.section:nth-child(3) .section-content.reverse {
    grid-template-columns: 35% 65%;
}

.section:nth-child(5) .section-content.reverse {
    grid-template-columns: 35% 65%;
}

.section:nth-child(7) .section-content.reverse {
    grid-template-columns: 35% 65%;
}

.section-content.full-width {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 100%;
    margin: 0;
    background: transparent;
    color: #efefef;
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 4rem;
    padding-right: 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: auto;
}

.section-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.section-content.full-width > *:not(.section-bg-video) {
    position: relative;
    z-index: 1;
}

.section-content.full-width::before {
    display: none;
}

/* Текстовый блок */
.text-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 3rem 4rem 3rem 4rem;
    background: var(--yellow);
    color: var(--black);
    border-right: 4px solid var(--black);
    border-left: none;
    position: relative;
    overflow: hidden;
}

/* Изображение dots.png в правом нижнем углу информационных блоков */
.text-block::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 250px;
    height: 250px;
    background-image: url('dots.png');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Убираем dots.png для секции "о себе" */
.section-full .text-block::after,
.section:nth-child(1) .text-block::after {
    display: none;
}


/* Шахматный порядок: секции с описанием слева (2, 4, 6, 8) */
.section:nth-child(2) .text-block {
    background: var(--blue);
    color: var(--black);
    border-right: 4px solid var(--black);
}

.section:nth-child(4) .text-block {
    background: var(--green);
    color: var(--black);
    border-right: 4px solid var(--black);
}

.section:nth-child(6) .text-block {
    background: var(--yellow);
    color: var(--black);
    border-right: 4px solid var(--black);
}

.section:nth-child(8) .text-block {
    background: var(--blue);
    color: var(--black);
    border-right: 4px solid var(--black);
}

/* Шахматный порядок: секции с описанием справа (3, 5, 7) */
.section:nth-child(3) .text-block {
    background: var(--yellow);
    color: var(--black);
    border-right: none;
    border-left: 4px solid var(--black);
}

.section:nth-child(5) .text-block {
    background: var(--blue);
    color: var(--black);
    border-right: none;
    border-left: 4px solid var(--black);
}

.section:nth-child(7) .text-block {
    background: var(--green);
    color: var(--black);
    border-right: none;
    border-left: 4px solid var(--black);
}


.section-title-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.section-title-right {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: inherit;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.1;
    z-index: 1;
}

.section-tag {
    padding: 0.3rem 0.8rem;
    background: #222;
    border: 2px solid #222;
    font-size: 0.7rem;
    color: #efefef;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.section-tag-link {
    padding: 0.3rem 0.8rem;
    background: #00a0f9;
    border: 2px solid #00a0f9;
    font-size: 0.7rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
}

.section-tag-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    z-index: 2;
}

.section-tag-link:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.section-tag-offline {
    padding: 0.3rem 0.8rem;
    background: #9a0726;
    border: 2px solid #9a0726;
    font-size: 0.7rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--black);
}


.section-description {
    font-size: 1.05rem;
    color: inherit;
    line-height: 1.4;
    opacity: 0.85;
    font-weight: 400;
    max-width: 90%;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

/* Аккордеон */
.accordion {
    width: 100%;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.accordion-item {
    border-bottom: 1px solid #444;
    margin-bottom: 0;
}

/* Стили для аккордеона в секциях с белым текстом */
.section:nth-child(3) .accordion-item,
.section:nth-child(5) .accordion-item,
.section:nth-child(7) .accordion-item {
    border-bottom-color: #444;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 0.75rem 0 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.2s ease;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-item.active .accordion-header:hover {
    opacity: 1;
}

.accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-right: 1rem;
    flex-shrink: 0;
    transform-origin: center;
    display: inline-block;
}

.accordion-item.active .accordion-header {
    background: #222;
    color: #efefef;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

/* Стили для блока SKILLS в секции About */
.section-full .accordion-header {
    background: #222;
    color: #efefef;
}

.section-full .accordion-header:hover {
    opacity: 1;
}

.section-full .accordion-item.active .accordion-header {
    background: #222;
    color: #efefef;
}

.section-full .accordion-item.active .accordion-content {
    background: #0d0d0d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}

.accordion-content p {
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: inherit;
    opacity: 0.85;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link img {
    width: 24px;
    height: 24px;
    display: block;
}

.accordion-item.active .accordion-content {
    max-height: none;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #efefef;
}

.section-full .accordion-item.active .accordion-content {
    max-height: none;
}

.accordion-content .tech-list {
    margin-top: 0;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.tech-list li {
    padding: 0.3rem 0.8rem;
    background: #222;
    border: 2px solid #222;
    font-size: 0.7rem;
    color: #cdcdcd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
}

.tech-group-header {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #cdcdcd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.tech-group-header:first-child {
    margin-top: 0;
}

.tech-group-start {
    margin-top: 0;
}

/* Квадратики для групп тегов в блоке SKILLS */
.tech-group-1::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #ffec55;
    z-index: 2;
}

.tech-group-1::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #ffec55;
    z-index: 2;
}

.tech-group-2::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #60ceff;
    z-index: 2;
}

.tech-group-3::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #78ff80;
    z-index: 2;
}

.tech-group-4::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #ff6b9d;
    z-index: 2;
}

.tech-group-5::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #9d6bff;
    z-index: 2;
}

.tech-group-6::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: #ff9d6b;
    z-index: 2;
}


/* Видео блок */
.video-block {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 255, 0.02) 10px,
            rgba(0, 255, 255, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: var(--dark);
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-wrapper:hover {
    border: none;
    box-shadow: none;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    filter: brightness(0.85) contrast(1.15);
}

/* Галерея проектов */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: none;
    position: relative;
    z-index: 1;
}

.section:nth-child(3) .project-gallery,
.section:nth-child(5) .project-gallery,
.section:nth-child(7) .project-gallery {
    border-top: none;
}

.gallery-image {
    width: 180px;
    max-height: 100px;
    height: 100px;
    display: block;
    border: 2px solid #222;
    transition: all 0.3s ease;
    background: var(--dark);
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
}

.gallery-image:hover {
    transform: translateY(-4px);
    border-color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Кликабельные элементы галереи */
.gallery-item {
    position: relative;
    width: 180px;
    max-height: 100px;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #222;
    transition: all 0.3s ease;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-video-thumb {
    transform: translate(-50%, calc(-50% - 4px));
}

.gallery-item.video-item {
    padding-bottom: 0;
    height: 100px;
}

.gallery-item.video-item .gallery-video-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    filter: brightness(0.85) contrast(1.15);
    object-fit: contain;
    object-position: center;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item-icon {
    font-size: 2.1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--cyan);
    transform: scale(1.2);
}

.modal-media {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media video,
.modal-media img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-media video {
    display: block;
    outline: none;
}

/* Футер */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--black);
    border-top: none;
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    position: relative;
}

.footer::before {
    display: none;
}

/* Адаптивность */
@media (max-width: 680px) {
    .banner-title-small {
        background: rgba(255, 255, 255, 0.6);
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.25rem;
    }

    .banner-title-large {
        background: rgba(255, 255, 255, 0.6);
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.25rem;
    }

    .banner-subtitle {
        background: rgba(255, 255, 255, 0.6);
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 769px) {
    .section-content {
        grid-template-columns: 1fr !important;
        gap: 0;
        min-height: auto;
    }

    /* Для всех типов секций на мобильных: одна колонка */
    .section-content.reverse {
        grid-template-columns: 1fr !important;
    }

    .section:nth-child(3) .section-content.reverse {
        grid-template-columns: 1fr !important;
    }

    .section:nth-child(5) .section-content.reverse {
        grid-template-columns: 1fr !important;
    }

    .section:nth-child(7) .section-content.reverse {
        grid-template-columns: 1fr !important;
    }

    .text-block {
        border-right: none !important;
        border-left: none;
        border-bottom: 4px solid var(--black);
        padding: 4rem 2.5rem 4rem 2.5rem;
        order: 2;
    }

    /* Убираем правый border для секций с описанием слева в мобильной версии */
    .section:nth-child(2) .text-block,
    .section:nth-child(4) .text-block,
    .section:nth-child(6) .text-block,
    .section:nth-child(8) .text-block {
        border-right: none !important;
    }


    .video-block {
        order: 1;
        border-bottom: 4px solid var(--black);
    }

    /* Для всех секций на мобильных: видео сверху, текст снизу */
    .section-content.reverse .video-block {
        order: 1;
    }

    .section-content.reverse .text-block {
        order: 2;
        border-left: none;
    }

    .main-content {
        padding: 0;
    }

    .section {
        margin-bottom: 0;
    }

    .section-content.full-width {
        padding: 4rem 2rem;
    }

}

@media (max-width: 640px) {
    .banner {
        justify-content: flex-end;
    }

    .banner-content {
        text-align: right;
        padding: 2rem 1.5rem 2rem 2rem;
        margin-left: auto;
        max-width: 100%;
    }

    .banner-title-small,
    .banner-title-large,
    .banner-subtitle {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 359px;
        background-size: cover;
        background-position: right center;
    }

    .banner-content {
        padding: 1rem 1.5rem 1rem 1rem;
    }

    .banner-title-small {
        font-size: clamp(1.17rem, 3vw, 2rem);
        margin-bottom: 0.25rem;
    }

    .banner-title-large {
        font-size: clamp(1.75rem, 4.5vw, 3rem);
        margin-bottom: 0.25rem;
    }

    .banner-subtitle {
        font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    }

    .text-block {
        padding: 3rem 1.5rem 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .section-content.full-width {
        padding: 3rem 1.5rem;
    }

    .tech-list li {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }

    .project-gallery {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .modal-close {
        top: -2rem;
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .modal-media video,
    .modal-media img {
        max-height: 85vh;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border: 2px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yellow);
}
