html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
}

/* Главная страница: гостевой режим */
.hi {
    background: url("../img/designer/fon_web.jpg") no-repeat center center fixed;
    backdrop-filter: blur(5px);
    background-size: cover;
    min-height: 100vh;
}

.header_index {
    position: absolute;
    left: 1.5%;
    right: 1.5%;
    top: 2.08%;
    bottom: 87.5%;
    background: rgba(136, 191, 155, 0.55);
    border: 5px solid #32A664;
    border-radius: 20px;
}

footer {
    background-color: #0A4031;
}

/* Кнопки header */
.regist, .forym, .help, .info {
    position: absolute;
    background: linear-gradient(256.23deg, rgba(184, 217, 213, 0.15) 40.16%, rgba(42, 130, 140, 0.5) 100%), rgba(10, 64, 49, 0.7);
    color: #B8D9D5;
    font-size: 24px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #32A664;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regist:hover, .forym:hover, .help:hover, .info:hover {
    background: linear-gradient(256.23deg, rgba(184, 217, 213, 0.3) 40.16%, rgba(42, 130, 140, 0.7) 100%), rgba(10, 64, 49, 0.9);
}

.regist {
    left: 48.93%;
    right: 38.23%;
    top: 27%;
    bottom: 25%;
}

.forym {
    left: 36.52%;
    right: 54.92%;
    top: 27%;
    bottom: 25%;
}

.help {
    left: 25.18%;
    right: 66.98%;
    top: 27%;
    bottom: 25%;
}

.info {
    left: 15.19%;
    right: 77.67%;
    top: 27%;
    bottom: 25%;
}

/* Бургер меню */
.menu {
    position: relative;
    min-height: 100px;
}

.burger-checkbox {
    position: absolute;
    visibility: hidden;
}

.burger {
    position: absolute;
    top: -3%;
    left: 2%;
    z-index: 100;
    cursor: pointer;
    display: block;
    border: none;
    background: transparent;
    width: 50px;
    height: 40px;
    padding: 5px;
}

.burger-line {
    position: relative;
    display: block;
    width: 100%;
    height: 7.5px;
    margin: 10px 0;
    background: rgba(10, 64, 49, 0.6);
    border-radius: 10px;
    transition: all 0.4s ease;
    border: none;
    box-sizing: border-box;
}

.burger-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to right, #32A664, #2A828C);
    border-radius: 13px; 
    z-index: -1;
    transition: inherit; 
}

.burger-line-middel {
    position: relative;
    display: block;
    width: 75%;
    height: 7.5px;
    margin: 10px 0;
    background: rgba(10, 64, 49, 0.6);
    border-radius: 10px;
    transition: all 0.4s ease;
    border: none;
    box-sizing: border-box;
}

.burger-line-middel::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to right, #32A664, #2A828C);
    border-radius: 13px; 
    z-index: -1;
    transition: inherit; 
}    

.burger-checkbox:checked + .burger .burger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger-checkbox:checked + .burger .burger-line-middel:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-checkbox:checked + .burger .burger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.menu-list {
    top: -19%;
    left: -1.9%;
    position: absolute;
    display: grid;
    gap: 12px;
    padding: 100px 0 0;
    margin: 0;
    background: rgba(10, 64, 49, 0.85);
    border-right: 2px solid #32A664;
    border-bottom: 2px solid #32A664;
    list-style-type: none;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    width: 220px;
    z-index: 99;
    backdrop-filter: blur(5px);
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: white;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
}

.menu-item:hover {
    background: rgba(50, 166, 100, 0.3);
}

.burger-checkbox:checked ~ .menu-list {
    transform: translateX(0);
}

/* Поисковик */
.finder {
    position: absolute;
    left: 70%;
    right: 6%;
    top: 20%;
    bottom: 20%;
    background: rgba(10, 64, 49, 0.7);
    border: 3px solid #32A664;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    outline: none;
    font-size: 24px;
    color: #B8D9D5;
    padding: 0 10px;
}

::placeholder {
    color: #B8D9D5;
}

.finder-item {
    position: absolute;
    left: 93.88%;
    right: 2.5%;
    top: 20%;
    bottom: 20%;
    background: rgba(10, 64, 49, 0.7);
    border: 3px solid #32A664;  
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.finder-item:hover {
    background: rgba(10, 64, 49, 0.9);
}

.finder-item img {
    height: 100%;
    width: auto;
}

/* Актуальные темы */
.box {
    width: 300px;
    height: 330px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
}

.box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(to bottom, #32A664, #2A828C);
    border-radius: 20px; 
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 5px;
}

.box-stop {
    width: 100%;
    height: 100%;
    background: rgba(136, 191, 155, 0.7);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.box-space {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 78.5%;
    top: 15%;
}

.text-box {
    width: 130px;
    height: 40px;
    background: rgba(10, 64, 49, 0.6);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1% auto 0.5%;
}

.text-item {
    font-size: 24px;
    color: #B8D9D5;
    margin: 0;
}

.line {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #32A664, #0A4031, #32A664);
    margin: 0.5% auto;
}

.box-item {
    width: 250px;
    height: 55px;
    background: rgba(10, 64, 49, 0.8);
    border: 2px solid #32A664;
    border-radius: 0px 15px 15px 0px;
    margin: 5px auto;
}

.box-content {
    flex: 1;
    padding: 1% 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #32A664 rgba(0, 0, 0, 0.1);
    margin-top: 1%;
}

/* Реклама */
.space {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
}

.view {
    width: 210px;
    height: 95px;
    background: rgba(136, 191, 155, 0.4);
    border-radius: 10px;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0A4031;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view:hover {
    transform: scale(1.05);
    background: rgba(136, 191, 155, 0.6);
}

.view::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #32A664 -25%, #0A4031, #B8D9D5 125%);
    border-radius: 15px;     
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 5px;
}

/* Карусель рекламы — теперь не заезжает под правый блок */
.carousel-view {
    position: absolute;
    top: 15%;
    left: 1.5%;
    width: calc(100% - 350px);  /* освобождаем место для блока актуальных тем */
    max-width: 1150px;
    height: 130px;
    border: 3px solid #32A664;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(10, 64, 49, 0.2);
    z-index: 10;
}

.info-box {
    position: fixed;
    top: 25%;
    left: 25%;
    transform: translate(-50%, -50%);
    background: rgba(10, 64, 49, 0.95);
    border: 2px solid #32A664;
    border-radius: 15px;
    padding: 20px;
    color: #B8D9D5;
    z-index: 100;
    display: none;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #B8D9D5;
    font-size: 20px;
    cursor: pointer;
}

/* Верхняя карусель курсов — возвращаем left:40% */
.border-height-box {
    width: 150px;
    height: 70px;
    background: rgba(136, 191, 155, 0.3);
    border-radius: 17px;
    z-index: 1;
    position: relative;
}

.border-height-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to left, #B8D9D5 5%, #32A664, #0A4031);
    border-radius: 20px;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 3px;
}

.height-space {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    position: absolute;
    top: 35%;
    left: 40%;                  /* смещаем левее, чтобы не наезжать на правый блок */
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 266px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.height-track {
    display: flex;
    flex: 0 0 auto;
    gap: 20px;
    transition: none;
}

/* 3D карусель (нижняя) — тоже left:40% */
.carousel-3d {
    position: absolute;
    top: 70%;
    left: 40%;                  /* смещаем аналогично */
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 410px;
    perspective: 2000px;
    overflow: visible;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-3d figure {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    margin: 0;
}

.carousel-3d .course-block {
    position: absolute;
    width: 600px;
    height: 260px;
    left: 50%;
    top: 50%;
    margin-left: -300px;
    margin-top: -130px;
    background: rgba(136, 191, 155, 0.3);
    border-radius: 15px;
    z-index: 1;
    box-sizing: border-box;
}

.carousel-3d .course-block::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #B8D9D5 15%, #32A664, #0A4031);
    border-radius: 15px;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 5px;
}

.carousel-3d .carousel-oval {
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 50px;
    background: rgba(10, 64, 49, 0.7);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-3d .carousel-oval::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to top, #32A664, #B8D9D5, #32A664);
    border-radius: 30px;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 3px;
}

.carousel-3d nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-3d button {
    width: 50px;
    height: 50px;
    border: 2px solid #32A664;
    background: rgba(10, 64, 49, 0.7);
    color: #B8D9D5;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.carousel-3d button:hover {
    background: rgba(10, 64, 49, 0.9);
    transform: scale(1.1);
}

.border-text {
    width: 180px;
    height: 50px;
    background: rgba(10, 64, 49, 0.4);
    border-radius: 30px;
    z-index: 1;
    position: absolute;
    top: -25%;
    left: 35%;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.border-text::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to top, #32A664, #B8D9D5, #32A664);
    border-radius: 30px;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 3px;
}

.back-oval {
    position: absolute;
    width: 50px;
    height: 15px;
    background: rgba(10, 64, 49, 0.4);
    border-radius: 30px;
    z-index: 2;
}

.back-oval::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(to top, #32A664, #B8D9D5, #32A664);
    border-radius: 30px;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    padding: 3px;
}

.border-height-box .back-oval {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================================== */
/* ПОЛНАЯ АДАПТАЦИЯ index.css                            */
/* 15.6" — БАЗОВЫЕ СТИЛИ (НЕ ТРОГАЕМ)                    */
/* ===================================================== */

/* ===== 13"–14" НОУТБУКИ (до 1440px) ===== */
@media (max-width: 1440px) {
    .header_index {
        left: 1.5%;
        right: 1.5%;
        top: 2.08%;
        bottom: 87.5%;
        border-width: 4px;
        border-radius: 16px;
    }
    .regist, .forym, .help, .info {
        font-size: 18px;
        border-width: 2px;
        border-radius: 6px;
    }
    .regist { left: 48.93%; right: 38.23%; top: 27%; bottom: 25%; }
    .forym { left: 36.52%; right: 54.92%; top: 27%; bottom: 25%; }
    .help { left: 25.18%; right: 66.98%; top: 27%; bottom: 25%; }
    .info { left: 15.19%; right: 77.67%; top: 27%; bottom: 25%; }

    .burger { width: 42px; height: 34px; padding: 4px; }
    .burger-line { height: 6px; margin: 8px 0; border-radius: 8px; }
    .burger-line::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 10px; }
    .burger-line-middel { height: 6px; margin: 8px 0; border-radius: 8px; }
    .burger-line-middel::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 10px; }
    .burger-checkbox:checked + .burger .burger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-checkbox:checked + .burger .burger-line-middel:nth-child(2) { transform: translateX(-16px); }
    .burger-checkbox:checked + .burger .burger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .menu-list { width: 190px; padding: 85px 0 0; gap: 10px; border-right-width: 2px; border-bottom-width: 2px; }
    .menu-item { padding: 10px 16px; font-size: 15px; }

    .finder {
        left: 62%; right: 10%; top: 20%; bottom: 20%;
        font-size: 18px; border-width: 2px;
        border-bottom-left-radius: 12px; border-top-left-radius: 12px;
        padding: 0 8px;
    }
    .finder-item {
        left: 89%; right: 5%; top: 20%; bottom: 20%;
        border-width: 2px;
        border-bottom-right-radius: 12px; border-top-right-radius: 12px;
    }
    .finder-item img { height: 100%; width: auto; }

    .box { width: 260px; height: 290px; border-radius: 16px; }
    .box::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 16px; padding: 4px; }
    .box-stop { border-radius: 12px; }
    .box-space { left: 76%; top: 15%; gap: 16px; }
    .text-box { width: 110px; height: 34px; border-radius: 34px; margin: 1% auto 0.5%; }
    .text-item { font-size: 20px; }
    .line { height: 3px; }
    .box-item { width: 220px; height: 48px; border-width: 2px; border-radius: 0 12px 12px 0; margin: 4px auto; }
    .box-content { padding: 1% 0; margin-top: 1%; }

    .space { gap: 16px; padding: 0 8px; }
    .view { width: 180px; height: 80px; border-radius: 8px; font-size: 16px; }
    .view::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 12px; padding: 4px; }

    .carousel-view {
        top: 12%; left: 1.5%;
        width: calc(100% - 300px); max-width: 900px; height: 110px;
        border-width: 2px; border-radius: 12px;
    }
    .info-box { top: 25%; left: 25%; padding: 16px; border-radius: 12px; max-width: 340px; border-width: 2px; }
    .close-btn { top: 8px; right: 12px; font-size: 17px; }

    .border-height-box { width: 120px; height: 60px; border-radius: 14px; }
    .border-height-box::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 16px; padding: 2px; }
    .height-space { top: 33%; left: 35%; max-width: 700px; height: 220px; gap: 24px; }
    .height-track { gap: 16px; }

    .carousel-3d { top: 65%; left: 35%; max-width: 850px; height: 350px; }
    .carousel-3d .course-block { width: 450px; height: 200px; margin-left: -225px; margin-top: -100px; border-radius: 12px; }
    .carousel-3d .course-block::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 12px; padding: 4px; }
    .carousel-3d .carousel-oval { width: 150px; height: 42px; border-radius: 24px; font-size: 1rem; top: 1%; }
    .carousel-3d .carousel-oval::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 24px; padding: 2px; }
    .carousel-3d nav { margin-top: 16px; }
    .carousel-3d button { width: 40px; height: 40px; font-size: 20px; border-width: 2px; margin: 0 8px; }

    .border-text { width: 150px; height: 42px; border-radius: 24px; top: -25%; left: 35%; }
    .border-text::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 24px; padding: 2px; }
    .back-oval { width: 42px; height: 12px; border-radius: 24px; }
    .back-oval::before { top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 24px; padding: 2px; }
    .border-height-box .back-oval { top: -20px; }
}

/* ===== 17"–18" НОУТБУКИ (1921px–2560px) ===== */
@media (min-width: 1921px) and (max-width: 2560px) {
    .header_index {
        left: 1.5%; right: 1.5%; top: 2.08%; bottom: 87.5%;
        border-width: 6px; border-radius: 24px;
    }
    .regist, .forym, .help, .info {
        font-size: 30px; border-width: 3px; border-radius: 10px;
    }
    .regist { left: 48.93%; right: 38.23%; top: 27%; bottom: 25%; }
    .forym { left: 36.52%; right: 54.92%; top: 27%; bottom: 25%; }
    .help { left: 25.18%; right: 66.98%; top: 27%; bottom: 25%; }
    .info { left: 15.19%; right: 77.67%; top: 27%; bottom: 25%; }

    .burger { width: 60px; height: 48px; padding: 6px; }
    .burger-line { height: 9px; margin: 12px 0; border-radius: 12px; }
    .burger-line::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 16px; }
    .burger-line-middel { height: 9px; margin: 12px 0; border-radius: 12px; }
    .burger-line-middel::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 16px; }
    .burger-checkbox:checked + .burger .burger-line:nth-child(1) { transform: translateY(14px) rotate(45deg); }
    .burger-checkbox:checked + .burger .burger-line-middel:nth-child(2) { transform: translateX(-24px); }
    .burger-checkbox:checked + .burger .burger-line:nth-child(3) { transform: translateY(-14px) rotate(-45deg); }
    .menu-list { width: 260px; padding: 120px 0 0; gap: 14px; border-right-width: 3px; border-bottom-width: 3px; }
    .menu-item { padding: 14px 24px; font-size: 22px; }

    .finder {
        left: 72%; right: 5%; top: 20%; bottom: 20%;
        font-size: 30px; border-width: 4px;
        border-bottom-left-radius: 18px; border-top-left-radius: 18px;
        padding: 0 14px;
    }
    .finder-item {
        left: 94.5%; right: 2%; top: 20%; bottom: 20%;
        border-width: 4px;
        border-bottom-right-radius: 18px; border-top-right-radius: 18px;
    }
    .finder-item img { height: 100%; width: auto; }

    .box { width: 360px; height: 400px; border-radius: 24px; }
    .box::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 24px; padding: 6px; }
    .box-stop { border-radius: 18px; }
    .box-space { left: 80%; top: 15%; gap: 24px; }
    .text-box { width: 160px; height: 50px; border-radius: 50px; margin: 1% auto 0.5%; }
    .text-item { font-size: 30px; }
    .line { height: 5px; }
    .box-item { width: 310px; height: 68px; border-width: 3px; border-radius: 0 18px 18px 0; margin: 6px auto; }
    .box-content { padding: 1% 0; margin-top: 1%; }

    .space { gap: 24px; padding: 0 14px; }
    .view { width: 260px; height: 120px; border-radius: 12px; font-size: 22px; }
    .view::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 18px; padding: 6px; }

    .carousel-view {
        top: 15%; left: 1.5%;
        width: calc(100% - 420px); max-width: 1400px; height: 160px;
        border-width: 4px; border-radius: 18px;
    }
    .info-box { top: 25%; left: 25%; padding: 24px; border-radius: 18px; max-width: 480px; border-width: 3px; }
    .close-btn { top: 12px; right: 18px; font-size: 24px; }

    .border-height-box { width: 185px; height: 85px; border-radius: 20px; }
    .border-height-box::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 24px; padding: 4px; }
    .height-space { top: 35%; left: 40%; max-width: 1000px; height: 320px; gap: 36px; }
    .height-track { gap: 24px; }

    .carousel-3d { top: 70%; left: 40%; max-width: 1350px; height: 500px; }
    .carousel-3d .course-block { width: 740px; height: 320px; margin-left: -370px; margin-top: -160px; border-radius: 18px; }
    .carousel-3d .course-block::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 18px; padding: 6px; }
    .carousel-3d .carousel-oval { width: 220px; height: 60px; border-radius: 36px; font-size: 1.5rem; top: 1%; }
    .carousel-3d .carousel-oval::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 36px; padding: 4px; }
    .carousel-3d nav { margin-top: 24px; }
    .carousel-3d button { width: 60px; height: 60px; font-size: 28px; border-width: 3px; margin: 0 12px; }

    .border-text { width: 220px; height: 60px; border-radius: 36px; top: -25%; left: 35%; }
    .border-text::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 36px; padding: 4px; }
    .back-oval { width: 60px; height: 18px; border-radius: 36px; }
    .back-oval::before { top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 36px; padding: 4px; }
    .border-height-box .back-oval { top: -30px; }
}

/* ===== 27"–32" МОНИТОРЫ (2561px–3840px) ===== */
@media (min-width: 2561px) and (max-width: 3840px) {
    .header_index {
        left: 2%; right: 2%; top: 2.08%; bottom: 87.5%;
        border-width: 7px; border-radius: 28px;
    }
    .regist, .forym, .help, .info {
        font-size: 36px; border-width: 3px; border-radius: 12px;
    }
    .regist { left: 48.93%; right: 38.23%; top: 27%; bottom: 25%; }
    .forym { left: 36.52%; right: 54.92%; top: 27%; bottom: 25%; }
    .help { left: 25.18%; right: 66.98%; top: 27%; bottom: 25%; }
    .info { left: 15.19%; right: 77.67%; top: 27%; bottom: 25%; }

    .burger { width: 72px; height: 56px; padding: 7px; }
    .burger-line { height: 11px; margin: 14px 0; border-radius: 14px; }
    .burger-line::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 18px; }
    .burger-line-middel { height: 11px; margin: 14px 0; border-radius: 14px; }
    .burger-line-middel::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 18px; }
    .burger-checkbox:checked + .burger .burger-line:nth-child(1) { transform: translateY(17px) rotate(45deg); }
    .burger-checkbox:checked + .burger .burger-line-middel:nth-child(2) { transform: translateX(-28px); }
    .burger-checkbox:checked + .burger .burger-line:nth-child(3) { transform: translateY(-17px) rotate(-45deg); }
    .menu-list { width: 310px; padding: 140px 0 0; gap: 16px; border-right-width: 3px; border-bottom-width: 3px; }
    .menu-item { padding: 16px 28px; font-size: 26px; }

    .finder {
        left: 74%; right: 4%; top: 20%; bottom: 20%;
        font-size: 36px; border-width: 5px;
        border-bottom-left-radius: 22px; border-top-left-radius: 22px;
        padding: 0 16px;
    }
    .finder-item {
        left: 95%; right: 1.5%; top: 20%; bottom: 20%;
        border-width: 5px;
        border-bottom-right-radius: 22px; border-top-right-radius: 22px;
    }
    .finder-item img { height: 100%; width: auto; }

    .box { width: 440px; height: 480px; border-radius: 28px; }
    .box::before { top: -7px; left: -7px; right: -7px; bottom: -7px; border-radius: 28px; padding: 7px; }
    .box-stop { border-radius: 22px; }
    .box-space { left: 82%; top: 15%; gap: 28px; }
    .text-box { width: 190px; height: 58px; border-radius: 58px; margin: 1% auto 0.5%; }
    .text-item { font-size: 36px; }
    .line { height: 6px; }
    .box-item { width: 380px; height: 82px; border-width: 3px; border-radius: 0 22px 22px 0; margin: 7px auto; }
    .box-content { padding: 1% 0; margin-top: 1%; }

    .space { gap: 28px; padding: 0 16px; }
    .view { width: 310px; height: 145px; border-radius: 14px; font-size: 26px; }
    .view::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 20px; padding: 7px; }

    .carousel-view {
        top: 15%; left: 2%;
        width: calc(100% - 520px); max-width: 1800px; height: 190px;
        border-width: 5px; border-radius: 22px;
    }
    .info-box { top: 25%; left: 25%; padding: 28px; border-radius: 22px; max-width: 560px; border-width: 3px; }
    .close-btn { top: 14px; right: 20px; font-size: 28px; }

    .border-height-box { width: 220px; height: 100px; border-radius: 24px; }
    .border-height-box::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 28px; padding: 5px; }
    .height-space { top: 35%; left: 40%; max-width: 1300px; height: 380px; gap: 42px; }
    .height-track { gap: 28px; }

    .carousel-3d { top: 70%; left: 40%; max-width: 1700px; height: 600px; }
    .carousel-3d .course-block { width: 900px; height: 390px; margin-left: -450px; margin-top: -195px; border-radius: 22px; }
    .carousel-3d .course-block::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 22px; padding: 7px; }
    .carousel-3d .carousel-oval { width: 260px; height: 72px; border-radius: 42px; font-size: 1.8rem; top: 1%; }
    .carousel-3d .carousel-oval::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 42px; padding: 5px; }
    .carousel-3d nav { margin-top: 28px; }
    .carousel-3d button { width: 72px; height: 72px; font-size: 34px; border-width: 3px; margin: 0 14px; }

    .border-text { width: 260px; height: 72px; border-radius: 42px; top: -25%; left: 35%; }
    .border-text::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 42px; padding: 5px; }
    .back-oval { width: 72px; height: 22px; border-radius: 42px; }
    .back-oval::before { top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 42px; padding: 5px; }
    .border-height-box .back-oval { top: -36px; }
}

/* ===== 49" МОНИТОРЫ (3841px+) ===== */
@media (min-width: 3841px) {
    .header_index {
        left: 2.5%; right: 2.5%; top: 2.08%; bottom: 87.5%;
        border-width: 9px; border-radius: 34px;
    }
    .regist, .forym, .help, .info {
        font-size: 46px; border-width: 4px; border-radius: 14px;
    }
    .regist { left: 48.93%; right: 38.23%; top: 27%; bottom: 25%; }
    .forym { left: 36.52%; right: 54.92%; top: 27%; bottom: 25%; }
    .help { left: 25.18%; right: 66.98%; top: 27%; bottom: 25%; }
    .info { left: 15.19%; right: 77.67%; top: 27%; bottom: 25%; }

    .burger { width: 90px; height: 70px; padding: 9px; }
    .burger-line { height: 14px; margin: 18px 0; border-radius: 18px; }
    .burger-line::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 22px; }
    .burger-line-middel { height: 14px; margin: 18px 0; border-radius: 18px; }
    .burger-line-middel::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 22px; }
    .burger-checkbox:checked + .burger .burger-line:nth-child(1) { transform: translateY(22px) rotate(45deg); }
    .burger-checkbox:checked + .burger .burger-line-middel:nth-child(2) { transform: translateX(-36px); }
    .burger-checkbox:checked + .burger .burger-line:nth-child(3) { transform: translateY(-22px) rotate(-45deg); }
    .menu-list { width: 380px; padding: 170px 0 0; gap: 20px; border-right-width: 4px; border-bottom-width: 4px; }
    .menu-item { padding: 20px 34px; font-size: 32px; }

    .finder {
        left: 76%; right: 3%; top: 20%; bottom: 20%;
        font-size: 46px; border-width: 6px;
        border-bottom-left-radius: 26px; border-top-left-radius: 26px;
        padding: 0 20px;
    }
    .finder-item {
        left: 96%; right: 1%; top: 20%; bottom: 20%;
        border-width: 6px;
        border-bottom-right-radius: 26px; border-top-right-radius: 26px;
    }
    .finder-item img { height: 100%; width: auto; }

    .box { width: 560px; height: 620px; border-radius: 34px; }
    .box::before { top: -9px; left: -9px; right: -9px; bottom: -9px; border-radius: 34px; padding: 9px; }
    .box-stop { border-radius: 28px; }
    .box-space { left: 84%; top: 15%; gap: 36px; }
    .text-box { width: 240px; height: 72px; border-radius: 72px; margin: 1% auto 0.5%; }
    .text-item { font-size: 46px; }
    .line { height: 7px; }
    .box-item { width: 480px; height: 100px; border-width: 4px; border-radius: 0 26px 26px 0; margin: 9px auto; }
    .box-content { padding: 1% 0; margin-top: 1%; }

    .space { gap: 36px; padding: 0 20px; }
    .view { width: 390px; height: 180px; border-radius: 18px; font-size: 32px; }
    .view::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 24px; padding: 9px; }

    .carousel-view {
        top: 15%; left: 2.5%;
        width: calc(100% - 660px); max-width: 2400px; height: 250px;
        border-width: 6px; border-radius: 26px;
    }
    .info-box { top: 25%; left: 25%; padding: 36px; border-radius: 26px; max-width: 700px; border-width: 4px; }
    .close-btn { top: 18px; right: 24px; font-size: 36px; }

    .border-height-box { width: 280px; height: 130px; border-radius: 30px; }
    .border-height-box::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 34px; padding: 6px; }
    .height-space { top: 35%; left: 40%; max-width: 1700px; height: 500px; gap: 54px; }
    .height-track { gap: 36px; }

    .carousel-3d { top: 70%; left: 40%; max-width: 2300px; height: 780px; }
    .carousel-3d .course-block { width: 1150px; height: 500px; margin-left: -575px; margin-top: -250px; border-radius: 26px; }
    .carousel-3d .course-block::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 26px; padding: 9px; }
    .carousel-3d .carousel-oval { width: 330px; height: 90px; border-radius: 52px; font-size: 2.2rem; top: 1%; }
    .carousel-3d .carousel-oval::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 52px; padding: 6px; }
    .carousel-3d nav { margin-top: 36px; }
    .carousel-3d button { width: 92px; height: 92px; font-size: 44px; border-width: 4px; margin: 0 18px; }

    .border-text { width: 330px; height: 90px; border-radius: 52px; top: -25%; left: 35%; }
    .border-text::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 52px; padding: 6px; }
    .back-oval { width: 90px; height: 28px; border-radius: 52px; }
    .back-oval::before { top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 52px; padding: 6px; }
    .border-height-box .back-oval { top: -46px; }
}

/* Django-адаптация исходной главной страницы дизайнера. */
body.hi {
    position: relative;
    width: 100%;
    height: max(720px, 100vh);
    min-height: 720px;
    overflow-x: hidden;
    color: #0A4031;
    font-family: Georgia, "Times New Roman", serif;
}

.designer-home-main {
    min-height: 100%;
}

.designer-logout {
    position: absolute;
    inset: 0;
    margin: 0;
}

.designer-logout button {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.view,
.box-item,
.carousel-3d .course-block {
    overflow: hidden;
    text-decoration: none;
}

.view {
    padding: 10px 14px;
    text-align: center;
}

.box-item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #B8D9D5;
    font-size: 14px;
    line-height: 1.15;
}

.box-item:hover {
    background: rgba(10, 64, 49, 0.95);
}

.border-height-box .back-oval {
    box-sizing: border-box;
    width: max-content;
    min-width: 92px;
    height: 28px;
    padding: 5px 12px;
    color: #0A4031;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
}

.carousel-3d .course-block {
    color: #B8D9D5;
    background-position: center;
    background-size: cover;
}

.designer-course-shade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(10, 64, 49, .05), rgba(10, 64, 49, .92));
}

.designer-course-shade h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
}

.designer-course-shade p {
    margin: 0;
    color: #B8D9D5;
    font-size: 16px;
}

.designer-empty-card {
    background: linear-gradient(135deg, rgba(136, 191, 155, .48), rgba(10, 64, 49, .72));
}

.home-footer {
    position: absolute;
    right: 0;
    bottom: -120px;
    left: 0;
    min-height: 80px;
}

@media (max-width: 760px) {
    body.hi {
        box-sizing: border-box;
        height: auto;
        min-height: 100vh;
        padding: 12px;
        background-attachment: fixed;
    }

    .header_index {
        position: relative;
        inset: auto;
        min-height: 142px;
        border-width: 3px;
        border-radius: 14px;
    }

    .menu { min-height: 70px; }
    .burger { top: 7px; left: 14px; }
    .menu-list { top: -3px; left: -3px; padding-top: 74px; }
    .regist { left: auto; right: 14px; top: 12px; bottom: auto; width: 132px; height: 40px; }
    .forym, .help, .info { display: none; }
    .finder {
        left: 14px;
        right: 60px;
        top: 78px;
        bottom: auto;
        height: 46px;
        font-size: 16px;
    }
    .finder-item {
        left: auto;
        right: 14px;
        top: 78px;
        bottom: auto;
        width: 48px;
        height: 52px;
    }

    .designer-home-main {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 26px 0 40px;
    }

    .carousel-view,
    .height-space,
    .carousel-3d,
    .box-space {
        position: relative;
        inset: auto;
        transform: none;
        width: 100%;
        max-width: none;
    }

    .carousel-view { order: 1; height: 105px; }
    .height-space { order: 2; height: 150px; justify-content: flex-start; }
    .carousel-3d { order: 3; height: 300px; perspective: 1200px; }
    .box-space { order: 4; display: grid; grid-template-columns: 1fr; gap: 22px; }
    .box { width: 100%; height: 290px; }
    .box-item { width: calc(100% - 28px); }
    .info-box { top: 50%; left: 50%; width: calc(100% - 48px); }

    .carousel-3d .course-block {
        width: 290px;
        height: 180px;
        margin-left: -145px;
        margin-top: -90px;
    }

    .carousel-3d .carousel-oval { top: -2px; }
    .designer-course-shade { padding: 18px; }
    .designer-course-shade h2 { font-size: 20px; }
    .designer-course-shade p { font-size: 13px; }
    .home-footer { display: none; }
}
