@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Noto+Sans+Armenian:wdth,wght@62.5..100,100..900&display=swap');
@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(66, 105, 107, 1) 0%, rgba(190, 222, 224, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preloader-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: rgb(29, 129, 135);
    --text-color: rgb(36, 36, 36);

}

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

html,
body {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
    padding: 0;
    margin: 0;
    user-select: none;
    transition: ease 1s;
}

a,
a:hover {
    color: inherit;
    text-decoration: inherit;
    background: inherit;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pContent {
    background-color: rgb(255 255 255 / 97%);
    min-height: 100vh;
    border-radius: 20px;
}



.pNav {
    position: sticky;
    top: 12px;
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 1100px;
    margin: 12px auto 0;
    height: auto;


    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 22px;
    box-shadow: 0px 0px 20px 3px #adadad;
    color: var(--text-color);
    transition: all 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.pNav:hover {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pNav.courses {
    background: #ffffff;
}


.pNav.collapsed {
    max-width: 68px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pNav.collapsed .navItems,
.pNav.collapsed .languageChoice {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    flex: 0;
}

.pNav.collapsed .navWrapper {
    justify-content: center;
    padding: 8px;
    gap: 0;
}


.pNav.collapsed:hover,
.pNav.collapsed.nav-hover {
    max-width: 1100px;
    border-radius: 22px;
}

.pNav.collapsed:hover .navItems,
.pNav.collapsed.nav-hover .navItems,
.pNav.collapsed:hover .languageChoice,
.pNav.collapsed.nav-hover .languageChoice {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    width: auto;
    overflow: visible;
    flex: 1;
}

.pNav.collapsed:hover .languageChoice,
.pNav.collapsed.nav-hover .languageChoice {
    flex: 0;
    padding: 0;
    margin: 0;
}

.pNav.collapsed:hover .navWrapper,
.pNav.collapsed.nav-hover .navWrapper {
    justify-content: space-between;
    padding: 8px 16px;
    gap: 8px;
}

.navLogotype {
    padding: 4px;
    height: 42px;
    width: 42px;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.8s;
    cursor: pointer;
}

.navLogotype:hover {
    transform: scale(1.08);
    opacity: 0.85;
}

.navWrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
}

.navItems {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

.navItem {
    position: relative;
    padding: 8px 18px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: pointer;
    white-space: nowrap;

    &.highlighted {
        color: rgb(44, 97, 90);
    }
}


.navItem:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: none;
}

.navItem:active {
    transform: scale(0.97);
    background: rgba(0, 0, 0, 0.1);
}

.navItem.active {
    color: var(--primary-color);
    border-bottom: 2px dotted;
}


.languageChoice {
    flex-shrink: 0;
}

.languageSwitcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.04);
    padding: 5px 8px;
    border-radius: 14px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
}

.languageSwitcher:hover {
    background: rgba(0, 0, 0, 0.07);
}

.langFlag {
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    width: 32px;
    opacity: 0.5;
}

.langFlag.active {
    opacity: 1;
}

.langFlag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.langSwitchBtn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 2px 6px rgba(29, 129, 135, 0.3);
}

.langSwitchBtn:hover {
    background-color: rgba(29, 129, 135, 0.85);
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(29, 129, 135, 0.4);
}

.langSwitchBtn:active {
    transform: rotate(180deg) scale(0.92);
}


.pSections {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    width: 100%;
}

.pSections>section {
    width: 100% !important;
    min-height: 100vh;
}

.contentAbout {
    position: relative;
    overflow: hidden;
}

.contentAbout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/bg.jpg");
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: 0;
}

.contentAbout>* {
    position: relative;
    z-index: 1;
}


.homeTitle,
.aboutTitle {
    padding-top: 30px;
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 3px 3px 2px rgba(248, 248, 248, 10);
}

.courseTitle {
    padding-top: 30px;
    font-size: 64px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.homeTitle2 {
    color: #ffffff;
    text-shadow: 3px 3px 2px var(--primary-color);
}

.homeDescription,
.aboutDescription {
    color: var(--text-color);
    width: 50%;
}

.homeDescription {
    width: 100%;
}


.homeAboutBtn,
.corusesBtn {
    width: 250px;
    margin-top: 30px;
    color: #ffffff;
    background: var(--primary-color);
    padding: 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 2px 1px 7px rgb(0, 0, 0, 1);
    transition: ease 1s;
}

.homeAboutBtn:hover,
.corusesBtn:hover {
    cursor: pointer;
    background-color: #05af9eb2;
    transform: scale(1.1);
}



.faq-section {
    width: 100%;
    max-width: 700px;
    margin: 48px auto 0;
    text-align: left;
}

.faq-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 16px;
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0;
    transform: translateY(16px);
    animation: faqAppear 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.faq-item:nth-child(1) {
    animation-delay: 0.05s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.15s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes faqAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item.open {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 8px 28px rgba(29, 129, 135, 0.12);
    border-color: rgba(29, 129, 135, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-item.open .faq-question {
    color: var(--primary-color);
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.35s ease,
        padding 0.35s ease;
    opacity: 0;
    padding: 0 22px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding: 0 22px 20px;
    overflow-y: auto;
}


.faq-answer::-webkit-scrollbar {
    width: 5px;
}

.faq-answer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.faq-answer::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.faq-answer::-webkit-scrollbar-thumb:hover {
    background: #05af9eb2;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    padding-top: 4px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.contentWrapper.about {
    display: flex;
    align-items: center;
}



.contentImage.aboutRobot1,
.contentImage.aboutRobot2,
.contentImage.welcome {
    width: 200px;
    will-change: transform;
    transition: filter 0.3s ease;
}

.contentImage.aboutRobot1 {
    padding-bottom: 150px;
}

.contentImage.aboutRobot2 {
    transform: scaleX(-1);
}

.contentCourses {
    position: relative;
    background: linear-gradient(93deg, var(--primary-color), rgb(29, 135, 121));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Pull up to cover the white background of .pContent that shows
       above this section when the nav is embedded inside .pSections */
    margin-top: -82px;
    padding-top: 82px;
}

#aboutCanvas,
#coursesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.contentCourses>* {
    position: relative;
    z-index: 1;
}


.courseTitle {
    padding-bottom: 30px;
}

.contentWrapper.courses {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    padding: 40px 30px;
}

.courseItems {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    cursor: grab;
    padding: 10px 0;
    gap: 20px;
}

.courseItems::-webkit-scrollbar {
    display: none;
}

.courseItems.dragging {
    cursor: grab;
    scroll-behavior: auto;
    user-select: none;
}


.courseItem {
    flex: 0 0 280px;
    max-width: 280px;
    box-sizing: border-box;
    width: auto;
    margin: 0;
    position: relative;
    backdrop-filter: blur(60px) saturate(1.8);
    -webkit-backdrop-filter: blur(60px) saturate(1.8);
    padding: 0;
    border-radius: 22px;
    min-height: 280px;
    transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    overflow: hidden;
    cursor: grab;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
}


.courseItem .courseInfo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 25px;
    overflow: hidden;
    transform: translateZ(20px);
}


.courseItem .courseInfo::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 160, 255, 0.15) 0%, transparent 70%);
    filter: blur(25px);
    transition: all 0.5s ease;
    z-index: 0;
}

.courseItem:hover .courseInfo::before {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(80, 150, 255, 0.25) 0%, transparent 70%);
}


.courseItem .contentImage {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), filter 0.4s ease;
}

.courseItem:hover .contentImage {
    transform: scale(1.1) translateY(-4px);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}


.courseItem .courseName {
    padding: 16px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    letter-spacing: -0.01em;
    transform: translateZ(30px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    margin: 0;
}


.courseItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
    transition: 0.6s;
    pointer-events: none;
    z-index: 2;
}

.courseItem:hover::before {
    left: 100%;
}

.courseItem:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 1px 0 0 rgba(255, 255, 255, 0.5),
        0 0 60px -10px rgba(100, 200, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.6);
    border-top-color: rgba(255, 255, 255, 0.9);
}


.courseItem .courseDescription,
.courseItem .courseSkills,
.courseItem .courseAge,
.courseItem .courseShort {
    display: none;
}

.panel-short-desc {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.panel-full-desc,
.panel-skills {
    display: none;
}

.course-info-panel.maximized .panel-short-desc {
    display: none;
}

.course-info-panel.maximized .panel-full-desc {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-info-panel.maximized .panel-skills {
    display: flex;
}

.panel-age {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}


.carousel-btn {
    display: none;
}

.coursesWrapper {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.coursesWrapper.expanded {
    transform: translateY(-50px);
}



.course-info-panel {
    position: relative;
    max-width: 860px;
    margin: 20px auto 0;
    overflow: hidden;


    background: #f6f6f6;
    border-radius: 10px;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    box-shadow:
        0 22px 70px 4px rgba(0, 0, 0, 0.15),
        0 0 0 0.5px rgba(0, 0, 0, 0.1);


    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}

.course-info-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}


.course-info-panel.minimized {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.course-info-panel.minimized .panel-body {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        padding 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.25s ease;
}

.panel-body {
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        padding 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.25s ease;
}


.panel-header {
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0 14px;
    background: linear-gradient(180deg, #ececec, #e0e0e0);
    border-bottom: 1px solid #c8c8c8;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}


.panel-traffic-lights {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.panel-traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: filter 0.15s ease;
}

.panel-traffic-light.red {
    background: #ff5f57;
    border: 0.5px solid #e14640;
}

.panel-traffic-light.yellow {
    background: #febc2e;
    border: 0.5px solid #dfA123;
    display: none;

}


.course-info-panel.maximized .panel-traffic-light.yellow {
    display: block;
}


.course-info-panel.maximized .panel-traffic-light.green {
    display: none;
}

.panel-traffic-light.green {
    background: #28c840;
    border: 0.5px solid #1EAD2B;
}

.panel-traffic-light:hover {
    filter: brightness(1.15);
}


.panel-traffic-light.red:hover::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: 700;
    color: rgba(80, 0, 0, 0.8);
    line-height: 1;
}

.panel-traffic-light.yellow:hover::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: rgba(80, 60, 0, 0.6);
    line-height: 1;
}

.panel-traffic-light.green:hover::after {
    content: '⤢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 700;
    color: rgba(0, 60, 10, 0.6);
    line-height: 1;
}


.course-info-panel.maximized .panel-header:hover .panel-traffic-light.green::after {
    content: '⤓';
    font-size: 10px;
}


.panel-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4d4d4d;
    pointer-events: none;
    letter-spacing: 0;
}



.panel-body {
    padding: 24px 28px 28px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    max-height: 300px;
    overflow-y: auto;
}


.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}


.panel-content-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.panel-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-text-area {
    flex: 1;
    min-width: 0;
}

.panel-course-name {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.panel-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

.panel-body .panel-skills {
    list-style: none;
    padding: 0;
    margin: 14px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.panel-body .panel-skills li {
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
    font-weight: 500;
}

.panel-body .panel-skills li:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111;
}


.courseItem.selected {
    border-color: rgba(100, 160, 255, 0.3) !important;
    box-shadow: rgb(134 255 243 / 40%) 0px 0px 20px 20px;
    transform: scale(1.02) translateY(-2px);
}

.panel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    pointer-events: none;
}

.panel-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.course-info-panel.maximized {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 80% !important;
    max-width: 900px !important;
    height: auto !important;
    max-height: 80vh !important;
    z-index: 3000 !important;
    margin: 0 !important;
    border-radius: 12px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

.course-info-panel.maximized .panel-body {
    max-height: none;
    flex: 1;
    overflow-y: auto;
    padding: 30px 36px 36px;
}

.course-info-panel.maximized .panel-content-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
}

.course-info-panel.maximized .panel-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    padding: 16px;
}

.course-info-panel.maximized .panel-course-name {
    font-size: 24px;
}

.course-info-panel.maximized .panel-desc {
    font-size: 15px;
    line-height: 1.75;
}

.course-info-panel.maximized .panel-body .panel-skills li {
    padding: 6px 14px;
    font-size: 13px;
}




@media (max-width: 1024px) {
    .carousel-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .courseItem .courseInfo {
        height: 180px;
        padding: 20px;
    }

    .courseItem .contentImage {
        width: 100px;
        height: 100px;
    }

    .courseItem .courseName {
        font-size: 15px;
        padding: 14px 16px 16px;
    }

    .course-info-panel {
        max-width: 95%;
    }
}


@media (max-width: 850px) {
    .courseItem {
        min-height: 240px;
        border-radius: 16px;
    }

    .courseItem .courseInfo {
        height: 160px;
        padding: 18px;
    }

    .courseItem .contentImage {
        width: 90px;
        height: 90px;
    }

    .courseItem .courseName {
        font-size: 14px;
        padding: 12px 14px 14px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .course-info-panel {
        max-width: 100%;
        margin: 15px 10px 0;
    }

    .panel-body {
        padding: 20px 22px 24px;
    }

    .panel-course-name {
        font-size: 18px;
    }
}


@media (max-width: 768px) {


    .carousel-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .carousel-window {
        overflow: visible;
        padding: 20px 0px;
        box-shadow: none;
    }

    .courseItems {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 16px;
        padding: 0 15px;
    }

    .courseItem {
        flex: none !important;
        max-width: 100% !important;
        width: calc(50% - 8px) !important;
        margin: 0 !important;
        min-height: auto;
        border-radius: 14px;
    }

    .courseItem .courseInfo {
        height: 140px;
        padding: 15px;
    }

    .courseItem .contentImage {
        width: 85px;
        height: 85px;
    }

    .courseItem .courseName {
        font-size: 14px;
        padding: 12px 16px 14px;
    }




    .courseItem {
        transform-style: flat;
    }

    .courseItem:hover {
        transform: none;
    }

    .courseItem.selected {
        transform: none;
    }


    .coursesWrapper.expanded {
        transform: none;
    }


    .course-info-panel {
        margin: 12px 10px 0;
        border-radius: 10px;
        max-width: 100%;
    }

    .panel-header {
        height: 34px;
        padding: 0 12px;
    }

    .panel-title {
        font-size: 12px;
    }

    .panel-body {
        padding: 16px 16px 18px;
        max-height: 250px;
    }

    .panel-content-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .panel-icon-wrap {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        padding: 10px;
    }

    .panel-course-name {
        font-size: 17px;
    }

    .panel-desc {
        font-size: 13px;
    }

    .panel-body .panel-skills {
        justify-content: center;
    }


    .course-info-panel.maximized {
        width: 96% !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 10px;
    }

    .course-info-panel.maximized .panel-body {
        padding: 20px 18px 24px;
    }

    .course-info-panel.maximized .panel-content-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .course-info-panel.maximized .panel-icon-wrap {
        width: 72px;
        height: 72px;
    }

    .course-info-panel.maximized .panel-course-name {
        font-size: 19px;
    }
}


@media (max-width: 480px) {
    .courseItems {
        padding: 0 10px;
        gap: 12px;
    }

    .courseItem {
        border-radius: 12px;
    }

    .courseItem .courseInfo {
        height: 120px;
        padding: 12px;
    }

    .courseItem .contentImage {
        width: 70px;
        height: 70px;
    }

    .courseItem .courseName {
        font-size: 13px;
        padding: 10px 12px 12px;
    }


    .courseItem .courseInfo::before {
        width: 80px;
        height: 80px;
        filter: blur(20px);
    }

    .courseItem::before {
        display: none;

    }

    .course-info-panel {
        margin: 8px 6px 0;
        border-radius: 8px;
    }

    .panel-header {
        height: 30px;
        padding: 0 10px;
    }

    .panel-traffic-light {
        width: 10px;
        height: 10px;
    }

    .panel-traffic-lights {
        gap: 6px;
    }

    .panel-title {
        font-size: 11px;
    }

    .panel-body {
        padding: 12px 12px 14px;
        max-height: 200px;
    }

    .panel-icon-wrap {
        width: 56px;
        height: 56px;
    }

    .panel-course-name {
        font-size: 15px;
    }

    .panel-desc {
        font-size: 12px;
    }

    .panel-body .panel-skills li {
        padding: 4px 8px;
        font-size: 11px;
    }


    .course-info-panel.maximized {
        width: 98% !important;
        height: 94vh !important;
        max-height: 94vh !important;
        border-radius: 8px;
    }

    .course-info-panel.maximized .panel-body {
        padding: 14px 14px 18px;
    }

    .course-info-panel.maximized .panel-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .course-info-panel.maximized .panel-course-name {
        font-size: 16px;
    }
}


.footerWrapper {
    padding: 50px;
    background: var(--contentBg);
    box-shadow: 0px 0px 6px 6px rgb(0 0 0 / 10%);
}

.footer-contact-blocks {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    align-items: center;
    margin-top: 12px;
}

.footer-addresses,
.footer-contacts {
    min-width: 250px;
}

.footer-address-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    color: var(--text-color);
    font-size: 14px;
}

.footer-address-list .filial-item,
.footer-contact-list .contact-item {
    margin: 6px 0;
}

.filial-item {
    position: relative;
}

.filial-item i,
.contact-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.filial-text {
    font-weight: bold;
    color: var(--primary-color);
}

.filial-text:hover {
    cursor: pointer;
}



.filial-map-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    width: 320px;
    height: 220px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        visibility 0.35s;
}

.filial-item:hover .filial-map-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}


.filial-map-popup::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 28px;
}

.filial-map-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #1a1a2e;
    border-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.filial-map-content {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.filial-map-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.filial-map-content .map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .filial-map-popup {
        display: none;
    }
}

.footer-contact-list .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.footer-contact-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.footer-contact-center .footer-contact-blocks {
    justify-content: center;
}

.footerSocialMedia.centered {
    margin-top: 12px;
    justify-content: center;
    display: flex;
    gap: 12px;
}

.footerElemetns {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.copyrightLogo {
    font-size: 56px;
    padding-bottom: 10px;
}

.copyrightText {
    font-size: 14px;
    width: 300px;
}

.footerRight {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 2.6;
}

.footerSocialMedia {
    font-size: 28px;
}

.footerSocialMedia .social-item.linkedin i,
.footerSocialMedia i.fa-linkedin {
    color: #0A66C2 !important;
}

.fa-brands:hover,
.fa-gamepad:hover {
    transform: scale(1.1);
}

.fa-brands.fa-facebook {
    color: #1877F2;
}

.fa-brands.fa-instagram {
    color: transparent;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background: -webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-clip: text;
}

.fa-brands.fa-youtube {
    color: #FF0000;
}

.fa-brands.fa-vk {
    color: #4C75A3;
}

.fa-brands.fa-telegram {
    color: #24A1DE;
}

.fa-brands.fa-x-twitter {
    color: #14171A;
}

@keyframes langFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes langFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lang-switching {
    animation: langFadeOut 0.3s ease forwards;
}

.lang-switched {
    animation: langFadeIn 0.3s ease forwards;
}

.pBody {
    min-height: 100vh;
    padding: 0px;
    box-sizing: border-box;
}


.contentWrapper {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
    padding: 40px 0;
}

.contentWrapper.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contentWrapper.home .contentImage {
    max-width: min(400px, 100%);
    height: auto;
}

.contentWrapper.home {
    position: relative;
    z-index: 2;
}

.homeDescription,
.aboutDescription {
    margin: 0;
    width: 100%;
    line-height: 1.6;
}

.mobileNavToggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobileNavToggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.mobileNavToggle span {
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--text-color);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobileNavToggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobileNavToggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobileNavToggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1199px) {
    .courseItem {
        width: 100%;
        box-sizing: border-box;
        min-height: 220px;
        height: auto;
    }

    .homeTitle,
    .aboutTitle,
    .courseTitle {
        font-size: 50px;
    }

    .footerElemetns {
        flex-direction: column;
        gap: 20px;
    }

    .footerRight,
    .copyrightBlock {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .copyrightText {
        width: auto;
    }
}

@media (max-width: 900px) {
    .pBody {
        padding: 0;
    }

    .pNav {
        top: 8px;
        width: calc(100% - 16px);
        margin: 8px auto 0;
        border-radius: 18px;
        overflow: visible !important;
    }

    .pNav.collapsed {
        max-width: 150px;
        border-radius: 18px;
        overflow: visible !important;
    }

    .pNav.collapsed .navWrapper {
        justify-content: space-evenly;
        padding: 6px 12px;
    }

    .pNav.collapsed .navItems,
    .pNav.collapsed .languageChoice {
        opacity: 1;
        width: auto;
        pointer-events: auto;
        transform: none;
        flex: 1;
    }

    .pNav.collapsed .languageChoice {
        flex: 0;
        width: 100%;
    }

    .pNav.collapsed .navItems {
        width: 100%;
        flex: initial;
    }

    .mobileNavToggle {
        display: inline-flex;
        order: 2;
    }

    .navWrapper {
        position: relative;
        min-height: 56px;
        padding: 6px 12px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .mobileNavToggle {
        display: inline-flex;
        order: 2;
    }

    .languageChoice {
        order: 3;
        margin-left: 0;
        width: auto;
    }

    .languageSwitcher {
        gap: 4px;
        padding: 4px 6px;
    }

    .langFlag {
        width: 28px;
    }

    .navItems {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        z-index: 999;

        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(40px) saturate(1.8);
        -webkit-backdrop-filter: blur(40px) saturate(1.8);
        border-radius: 18px;
        border: 0.5px solid rgba(255, 255, 255, 0.6);
        padding: 8px;
        box-sizing: border-box;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        margin: 0;
    }
    .navItems.mobile-open {
        display: flex;
        animation: menuSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes menuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.96);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .navItem {
        margin: 2px 0;
        padding: 14px 18px;
        border-radius: 12px;
        text-align: left;
        font-size: 15px;
        background: transparent;
    }

    .navItem:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .contentWrapper {
        width: calc(100% - 24px);
        padding: 24px 0;
    }

    .contentWrapper.about {
        flex-direction: column;
        gap: 18px;
    }

    .contentImage.aboutRobot1,
    .contentImage.aboutRobot2,
    .contentImage.welcome {
        width: min(160px, 50vw);
    }

    .contentImage.aboutRobot1 {
        padding-bottom: 0;
    }

    .homeTitle,
    .aboutTitle,
    .courseTitle {
        font-size: 40px;
        line-height: 1.2;
    }

    .homeDescription,
    .aboutDescription {
        width: 100%;
    }

    .homeAboutBtn,
    .corusesBtn {
        width: min(280px, 100%);
        box-sizing: border-box;
        padding: 16px;
    }

    .course-info-panel.maximized {
        height: auto !important;
        max-height: 85vh !important;
        position: fixed !important;
    }

    .course-info-panel.maximized .panel-body {
        overflow-y: auto;
    }

    .courseInfo {
        gap: 10px;
    }

    .courseInfo .contentImage {
        width: 80px;
        flex-shrink: 0;
    }

    .footerWrapper {
        padding: 24px 16px;
    }

    .footer-contact-blocks {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .navLogotype {
        width: 42px;
        height: 42px;
    }

    .languageChoice {
        margin-left: 0;
        display: flex;
    }

    .homeTitle,
    .aboutTitle,
    .courseTitle {
        font-size: 32px;
        padding-top: 10px;
    }

    .homeDescription,
    .aboutDescription,
    .courseDescription {
        font-size: 15px;
    }

    .courseName {
        font-size: 20px;
    }

    .courseItem {
        padding: 20px;
        width: 100% !important;
    }

    .courseItems {
        flex-direction: column !important;
    }

    .courseInfo {
        align-items: flex-start;
    }

    .courseDescription {
        margin: 0;
        padding-left: 18px;
    }

    .footerSocialMedia {
        font-size: 24px;
    }
}



.contentHome {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

.contentHome .wave {
    margin-top: -100px;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}



.contentHome .wave span {
    position: absolute;
    width: 325vh;
    height: 325vh;
    top: 0;
    left: 50%;
    transform: translate(-50%, -95%);
    background: #ffffff;
}


.contentHome .wave span:nth-child(1) {
    border-radius: 45%;
    background: #ffffff;
    animation: waveRotate 5s linear infinite;
}

.contentHome .wave span:nth-child(2) {
    border-radius: 40%;
    background: #ffffff;
    animation: waveRotate 10s linear infinite;
}

.contentHome .wave span:nth-child(3) {
    border-radius: 42.5%;
    background: #ffffff;
    animation: waveRotate 15s linear infinite;
}


@keyframes waveRotate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

.stars {
    width: 1px;
    height: 1px;
    position: absolute;
    background: var(--primary-color);
    box-shadow: 2vw 5vh 2px var(--primary-color), 10vw 8vh 2px var(--primary-color), 15vw 15vh 1px var(--primary-color),
        22vw 22vh 1px var(--primary-color), 28vw 12vh 2px var(--primary-color), 32vw 32vh 1px var(--primary-color),
        38vw 18vh 2px var(--primary-color), 42vw 35vh 1px var(--primary-color), 48vw 25vh 2px var(--primary-color),
        53vw 42vh 1px var(--primary-color), 58vw 15vh 2px var(--primary-color), 63vw 38vh 1px var(--primary-color),
        68vw 28vh 2px var(--primary-color), 73vw 45vh 1px var(--primary-color), 78vw 32vh 2px var(--primary-color),
        83vw 48vh 1px var(--primary-color), 88vw 20vh 2px var(--primary-color), 93vw 52vh 1px var(--primary-color),
        98vw 35vh 2px var(--primary-color), 5vw 60vh 1px var(--primary-color), 12vw 65vh 2px var(--primary-color),
        18vw 72vh 1px var(--primary-color), 25vw 78vh 2px var(--primary-color), 30vw 85vh 1px var(--primary-color),
        35vw 68vh 2px var(--primary-color), 40vw 82vh 1px var(--primary-color), 45vw 92vh 2px var(--primary-color),
        50vw 75vh 1px var(--primary-color), 55vw 88vh 2px var(--primary-color), 60vw 95vh 1px var(--primary-color),
        65vw 72vh 2px var(--primary-color), 70vw 85vh 1px var(--primary-color), 75vw 78vh 2px var(--primary-color),
        80vw 92vh 1px var(--primary-color), 85vw 82vh 2px var(--primary-color), 90vw 88vh 1px var(--primary-color),
        95vw 75vh 2px var(--primary-color);
    animation: twinkle 8s infinite linear;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: shoot 3s infinite ease-in;
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 35%;
    left: -100px;
    animation-delay: 1s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: -100px;
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(25deg);
        opacity: 1;
    }

    100% {
        transform: translateX(120vw) translateY(50vh) rotate(25deg);
        opacity: 0;
    }
}


.stars::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--primary-color);
    box-shadow: 8vw 12vh 2px var(--primary-color), 16vw 18vh 1px var(--primary-color), 24vw 25vh 2px var(--primary-color),
        33vw 15vh 1px var(--primary-color), 41vw 28vh 2px var(--primary-color), 49vw 35vh 1px var(--primary-color),
        57vw 22vh 2px var(--primary-color), 65vw 42vh 1px var(--primary-color), 73vw 28vh 2px var(--primary-color),
        81vw 48vh 1px var(--primary-color), 89vw 32vh 2px var(--primary-color), 97vw 45vh 1px var(--primary-color),
        3vw 68vh 2px var(--primary-color), 11vw 75vh 1px var(--primary-color), 19vw 82vh 2px var(--primary-color),
        27vw 88vh 1px var(--primary-color), 35vw 72vh 2px var(--primary-color), 43vw 85vh 1px var(--primary-color),
        51vw 92vh 2px var(--primary-color), 59vw 78vh 1px var(--primary-color);
    animation: twinkle 6s infinite linear reverse;
}

.contentPath {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 5;
}

/* Canvas for three.js effect in the "Путь инженера" block - sits behind content */
#pathCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.contentWrapper.path {
    position: relative;
    z-index: 2;
}

.contentPath .path-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1d1d1f;
}

.cards-stack-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.stack-card {
    position: sticky;
    top: 15vh;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform-origin: center top;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stack-card:nth-child(1) {
    top: 15vh;
    z-index: 1;
    background: #fff;
}

.stack-card:nth-child(2) {
    top: 17vh;
    z-index: 2;
    background: #fafafa;
}

.stack-card:nth-child(3) {
    top: 19vh;
    z-index: 3;
    background: #f5f5f5;
}

.stack-card:nth-child(4) {
    top: 21vh;
    z-index: 4;
    background: #f0f0f0;
}

.stack-card .step-number {
    font-size: 60px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}

.stack-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stack-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}


.contentGallery {
    background: #EFEFEF;
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 6;
}

.external {
    overflow: hidden;
    height: 100vh;
}

.gallery-drag-wrapper {
    display: flex;
    overflow-x: auto;
    cursor: grab;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    height: 100vh;
    align-items: center;
    padding: 0 50px;
}

.gallery-drag-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-drag-wrapper.active {
    cursor: grab;
    scroll-behavior: auto;
    user-select: none;
}

.gallery-item {
    min-width: 400px;
    height: 60vh;
    margin: 0 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Prevent image drag interfering with scroll drag */
    display: block;
}

.gallery-header-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.pFooter {
    position: relative;
    z-index: 10;
    background: #fff;
}

@media (max-width: 768px) {
    .contentGallery {
        height: auto;
        min-height: 100vh;
    }

    .external {
        height: auto;
        overflow: visible;
    }

    .gallery-drag-wrapper {
        height: auto;
        min-height: 60vh;
        padding: 40px 20px;
        scroll-snap-type: x mandatory;
    }

    .gallery-item {
        min-width: 85%;
        height: 50vh;
        margin: 0 10px;
        scroll-snap-align: center;
        transform: scale(1);
        /* Reset hover effect for mobile */
    }

    .gallery-header-overlay {
        position: relative;
        padding: 40px 20px 0;
    }
}
