.study-body {
    min-height: 100%;
}

.study-header {
    border-bottom: 1px solid var(--border);
    background: rgba(7,16,29,.88);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.study-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.study-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.study-nav {
    margin-left: auto;
    display: flex;
    gap: 7px;
}

.study-nav a {
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.study-nav a:hover,
.study-nav a.active {
    color: white;
    background: rgba(255,255,255,.06);
}

.study-main {
    padding: 46px 0 90px;
}

.study-hero {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr);
    gap: 25px;
    border: 1px solid var(--border);
    border-radius: 27px;
    padding: 44px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(74,163,255,.15),
            transparent 24rem
        ),
        rgba(255,255,255,.024);
}

.study-hero h1 {
    max-width: 700px;
}

.study-hero p {
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.study-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.study-button {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 900;
}

.study-button-primary {
    color: #07101d;
    background: var(--blue);
}

.study-button-outline {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
}

.study-road-signs {
    min-height: 280px;
    position: relative;
}

.study-sign {
    position: absolute;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.study-sign.stop {
    width: 92px;
    height: 92px;
    right: 24%;
    top: 20px;
    color: white;
    background: #ca3036;
    clip-path: polygon(
        30% 0,
        70% 0,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0 70%,
        0 30%
    );
}

.study-sign.diamond {
    width: 88px;
    height: 88px;
    left: 18%;
    top: 118px;
    transform: rotate(45deg);
    border-radius: 6px;
    background: #f4c536;
    border: 4px solid #111;
}

.study-sign.yield {
    width: 0;
    height: 0;
    right: 9%;
    bottom: 17px;
    border-left: 46px solid transparent;
    border-right: 46px solid transparent;
    border-top: 82px solid #cf3037;
}

.study-sign.yield::after {
    content: "";
    position: absolute;
    left: -35px;
    top: -73px;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 62px solid white;
}

.study-road {
    position: absolute;
    bottom: -55px;
    left: -15%;
    right: -15%;
    height: 105px;
    background: #343a42;
    transform: rotate(-6deg);
}

.study-road div {
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    height: 5px;
    background:
        repeating-linear-gradient(
            90deg,
            white 0 37px,
            transparent 37px 70px
        );
}

.study-tools {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.study-search {
    min-width: 300px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.study-search input {
    width: 100%;
    height: 50px;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font: inherit;
}

.study-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.study-jump a {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.memory-section {
    margin-top: 65px;
}

.memory-section h2 {
    margin: 6px 0 22px;
    font-size: 35px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.memory-card {
    min-height: 135px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}

.memory-card strong {
    display: block;
    color: var(--yellow);
    font-size: 28px;
}

.memory-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 12px;
}

.study-topics {
    margin-top: 70px;
    display: grid;
    gap: 19px;
}

.study-topic {
    scroll-margin-top: 100px;
    border: 1px solid var(--border);
    border-radius: 23px;
    padding: 29px;
    background: rgba(255,255,255,.023);
}

.topic-heading {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 16px;
}

.topic-number {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(74,163,255,.11);
    color: var(--blue);
    font-size: 13px;
    font-weight: 950;
}

.topic-heading h2 {
    margin: 4px 0 4px;
    font-size: 30px;
}

.topic-heading p {
    margin: 0;
    color: var(--muted);
}

.topic-body {
    margin-top: 23px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 11px;
}

.study-fact {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.021);
}

.study-fact.important {
    border-color: rgba(255,213,74,.27);
    background: rgba(255,213,74,.045);
}

.study-fact strong {
    display: block;
}

.study-fact p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
}

.sign-shape-study {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 11px;
    margin-top: 16px;
}

.sign-shape-study > div {
    padding: 17px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.sign-shape-study strong,
.sign-shape-study small {
    display: block;
}

.sign-shape-study strong {
    margin-top: 12px;
}

.sign-shape-study small {
    margin-top: 4px;
    color: var(--muted);
}

.shape {
    display: block;
    margin: auto;
}

.shape.octagon {
    width: 62px;
    height: 62px;
    background: #ca3036;
    clip-path: polygon(
        30% 0,
        70% 0,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0 70%,
        0 30%
    );
}

.shape.diamond {
    width: 53px;
    height: 53px;
    transform: rotate(45deg);
    border-radius: 4px;
    background: #f4c536;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 33px solid transparent;
    border-right: 33px solid transparent;
    border-top: 58px solid #cf3037;
}

.shape.pentagon {
    width: 66px;
    height: 62px;
    background: #d7ef49;
    clip-path: polygon(
        50% 0,
        100% 38%,
        82% 100%,
        18% 100%,
        0 38%
    );
}

.topic-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.topic-practice {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 0 15px;
    border-radius: 11px;
    background: var(--blue);
    color: #07101d;
    font-size: 12px;
    font-weight: 900;
}

.topic-practice.secondary {
    color: white;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
}

.manual-section {
    margin-top: 65px;
    padding: 28px;
    border: 1px solid rgba(74,163,255,.2);
    border-radius: 20px;
    background: rgba(74,163,255,.045);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.manual-section h2 {
    margin: 6px 0 7px;
}

.manual-section p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.study-empty {
    display: none;
    margin-top: 30px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 1000px) {

    .study-nav {
        display: none;
    }

    .study-hero {
        grid-template-columns: 1fr;
    }

    .study-road-signs {
        min-height: 210px;
    }

    .memory-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 750px) {

    .study-main {
        padding-top: 25px;
    }

    .study-header-inner {
        gap: 10px;
    }

    .study-hero {
        padding: 27px 21px;
    }

    .study-hero h1 {
        font-size: 46px;
    }

    .study-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .study-search {
        min-width: 0;
    }

    .memory-grid,
    .topic-body,
    .sign-shape-study {
        grid-template-columns: repeat(2,1fr);
    }

    .manual-section {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .memory-grid,
    .topic-body,
    .sign-shape-study {
        grid-template-columns: 1fr;
    }
}
