/* =========================================================
   BASE
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    color: #ffffff;

    font-family: Arial, sans-serif;

    background: #252525;
}

h1,
h2,
h3,
button,
.minecraft-btn,
.enter-btn,
.project-btn,
.telegram-btn,
.craft-slot span,
.logo,
.language-switch button {
    font-family: "Press Start 2P", monospace;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.language-switch {
    position: fixed;

    top: 18px;
    right: 18px;

    display: flex;
    gap: 6px;

    z-index: 1000;
}

.language-switch button {
    min-width: 48px;
    height: 38px;

    padding: 0 10px;

    color: #ffffff;

    background: #3f3f3f;

    border: 3px solid #1b1b1b;
    border-top-color: #8c8c8c;
    border-left-color: #8c8c8c;

    cursor: pointer;

    transition: 0.15s ease;
}

.language-switch button:hover {
    filter: brightness(1.15);
}

.language-switch button:active {
    transform: translateY(2px);
}

.language-switch button.active {
    background: #5c913e;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;

    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;
    padding: 25px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: bold;

    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.5);
}


/* =========================================================
   INDEX / LANDING PAGE
========================================================= */

.landing {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    /*
       Если background.jpg существует —
       он будет использоваться.

       Если картинки пока нет,
       останется тёмный фон.
    */

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.55)
        ),
        url("../img/background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.4)
        );
}

.landing-content {
    position: relative;

    z-index: 2;

    width: min(800px, 100%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 32px;
}


/* =========================================================
   INDEX SIGN
========================================================= */

.minecraft-sign {
    width: min(760px, 100%);

    padding: 42px 45px;

    text-align: center;

    background:
        linear-gradient(
            rgba(120, 70, 30, 0.88),
            rgba(85, 45, 18, 0.88)
        );

    border: 6px solid #4e2d16;

    box-shadow:
        0 10px 0 #301b0d,
        0 20px 45px rgba(0, 0, 0, 0.45);
}

.minecraft-sign h1 {
    margin-bottom: 20px;

    font-size: clamp(36px, 6vw, 68px);

    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.45);
}

.minecraft-sign p {
    font-size: 19px;

    line-height: 1.6;

    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.35);
}

.minecraft-sign p + p {
    margin-top: 10px;
}


/* =========================================================
   INDEX ENTER BUTTON
========================================================= */

.enter-btn {
    min-width: 300px;

    padding: 17px 30px;

    text-align: center;

    background:
        linear-gradient(
            #6f6f6f,
            #4c4c4c
        );

    border: 4px solid #202020;
    border-top-color: #b8b8b8;
    border-left-color: #b8b8b8;

    box-shadow:
        0 6px 0 #151515;

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}

.enter-btn:hover {
    filter: brightness(1.15);

    transform:
        translateY(-3px);
}

.enter-btn:active {
    transform:
        translateY(3px);

    box-shadow:
        0 2px 0 #151515;
}


/* =========================================================
   WORKSHOP PAGE
========================================================= */

#workshop {
    min-height: 100vh;

    padding: 40px 25px 80px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.12),
            rgba(0, 0, 0, 0.12)
        ),
        #5b564d;
}


/* =========================================================
   WORKSHOP HERO
========================================================= */

.hero {
    width: min(1100px, 100%);

    margin: 0 auto 50px;

    text-align: center;
}

.hero h1 {
    margin-bottom: 14px;

    font-size: clamp(42px, 7vw, 72px);

    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;

    color: #dddddd;
}


/* =========================================================
   CRAFT SECTION
========================================================= */

.craft-section {
    width: min(1100px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 45px;

    align-items: center;
}


/* =========================================================
   CRAFTING TABLE
========================================================= */

.crafting-table {
    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #9a6030,
            #71421f
        );

    border: 7px solid #452715;

    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, 0.06),
        0 10px 0 #28170c,
        0 20px 35px rgba(0, 0, 0, 0.35);
}

.crafting-table h2 {
    margin-bottom: 25px;

    font-size: 30px;

    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.45);
}


/* =========================================================
   CRAFT GRID
========================================================= */

.craft-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    padding: 10px;

    background: #4b2c18;

    border: 5px solid #2d1a0e;
}


/* =========================================================
   CRAFT SLOT
========================================================= */

.craft-slot {
    position: relative;

    min-height: 125px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px;

    background:
        linear-gradient(
            135deg,
            #4a4a4a,
            #303030
        );

    border: 5px solid #1b1b1b;

    border-top-color: #8d8d8d;
    border-left-color: #8d8d8d;

    box-shadow:
        inset 0 0 0 2px #555555;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        background 0.15s ease;
}

.craft-slot:hover {
    transform: translateY(-4px);

    filter: brightness(1.2);

    background:
        linear-gradient(
            135deg,
            #555555,
            #383838
        );
}

.craft-slot:active {
    transform: translateY(1px);
}


/* =========================================================
   TECHNOLOGY ICON
========================================================= */

.craft-slot img {
    width: 54px;
    height: 54px;

    object-fit: contain;

    image-rendering: pixelated;

    filter:
        drop-shadow(
            3px 3px 0 rgba(0, 0, 0, 0.45)
        );

    transition:
        transform 0.15s ease;
}

.craft-slot:hover img {
    transform: scale(1.08);
}


/* =========================================================
   TECHNOLOGY NAME
========================================================= */

.craft-slot span {
    font-size: 14px;

    font-weight: bold;

    color: #ffffff;

    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.6);
}


/* =========================================================
   CRAFT RESULT
========================================================= */

.craft-result {
    position: relative;

    padding: 30px;

    text-align: center;

    background: #6b6b6b;

    border: 7px solid #2c2c2c;

    border-top-color: #a0a0a0;
    border-left-color: #a0a0a0;

    box-shadow:
        0 10px 0 #222222,
        0 20px 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   CRAFT ARROW
========================================================= */

.craft-arrow {
    margin-bottom: 18px;

    font-size: 48px;

    font-weight: bold;

    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.5);

    animation:
        arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(7px);
    }
}


/* =========================================================
   RESULT SLOT
========================================================= */

.result-slot {
    width: 190px;
    height: 190px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #292929;

    border: 6px solid #111111;

    border-top-color: #777777;
    border-left-color: #777777;

    box-shadow:
        inset 0 0 0 3px #444444;
}

.result-slot .project-logo {
    width: 100%;
    height: 100%;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;

    border: none;

    box-shadow: none;
}

.result-slot .project-logo img {
    max-width: 80%;
    max-height: 80%;

    object-fit: contain;
}


/* =========================================================
   RESULT TEXT
========================================================= */

.craft-result h3 {
    margin-bottom: 10px;

    font-size: 25px;

    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.4);
}

.craft-result p {
    margin-bottom: 22px;

    color: #dddddd;

    line-height: 1.5;
}


/* =========================================================
   PROJECT BUTTON
========================================================= */

.project-btn {
    display: block;

    padding: 14px;

    background: #568e3b;

    border: 4px solid #29481d;

    border-top-color: #8bc56c;
    border-left-color: #8bc56c;

    box-shadow:
        0 5px 0 #1e3215;

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}

.project-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.15);
}

.project-btn:active {
    transform: translateY(2px);

    box-shadow:
        0 2px 0 #1e3215;
}


/* =========================================================
   SCREENSHOTS
========================================================= */

.screenshots {
    width: min(1100px, 100%);

    margin: 80px auto 0;
}

.screenshots h2 {
    margin-bottom: 25px;

    font-size: 30px;

    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.45);
}

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.shot {
    position: relative;

    min-height: 240px;

    overflow: hidden;

    background: #222222;

    border: 5px solid #111111;

    border-top-color: #777777;
    border-left-color: #777777;

    box-shadow:
        0 7px 0 #171717;

    transition:
        transform 0.2s ease;
}

.shot:hover {
    transform: translateY(-5px);
}

.shot img {
    width: 100%;
    height: 100%;

    min-height: 240px;

    display: block;

    object-fit: cover;
}


/* =========================================================
   MORE PROJECTS
========================================================= */

.more-projects {
    width: min(750px, 100%);

    margin: 80px auto 0;

    text-align: center;
}

.more-projects h2 {
    margin-bottom: 18px;

    font-size: 30px;

    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.45);
}

.more-projects p {
    margin-bottom: 25px;

    color: #dddddd;

    line-height: 1.6;
}

.telegram-btn {
    display: inline-block;

    padding: 14px 25px;

    background: #3f3f3f;

    border: 4px solid #202020;

    border-top-color: #999999;
    border-left-color: #999999;

    box-shadow:
        0 5px 0 #202020;

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}

.telegram-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.1);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: min(750px, 100%);

    margin: 70px auto 0;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.minecraft-btn {
    display: block;

    padding: 15px 20px;

    text-align: center;

    background: #707070;

    border: 4px solid #242424;

    border-top-color: #b5b5b5;
    border-left-color: #b5b5b5;

    box-shadow:
        0 5px 0 #1e1e1e;

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}

.minecraft-btn:hover {
    filter: brightness(1.15);

    transform: translateY(-2px);
}

.minecraft-btn:active {
    transform: translateY(2px);

    box-shadow:
        0 2px 0 #1e1e1e;
}


/* =========================================================
   PROJECT PAGE
========================================================= */

.project-hero {
    width: min(900px, 100%);

    margin: 0 auto;

    padding: 70px 25px;

    text-align: center;
}

.project-logo-large {
    width: min(400px, 100%);
    height: 230px;

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #202020;

    border: 6px solid #111111;
}

.project-logo-large img {
    max-width: 80%;
    max-height: 80%;

    object-fit: contain;
}

.project-hero h1 {
    margin-bottom: 18px;

    font-size: clamp(35px, 6vw, 60px);

    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.4);
}

.project-hero p {
    margin-bottom: 25px;

    color: #dddddd;

    font-size: 18px;
}

.content-block {
    width: min(900px, 100%);

    margin: 0 auto 55px;

    padding: 30px;

    background: #3c3c3c;

    border: 5px solid #222222;

    border-top-color: #777777;
    border-left-color: #777777;

    box-shadow:
        0 8px 0 #1d1d1d;
}

.content-block h2 {
    margin-bottom: 18px;

    font-size: 28px;
}

.content-block p {
    color: #dddddd;

    line-height: 1.7;
}

.tech-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.tech-item {
    padding: 10px 15px;

    background: #555555;

    border: 3px solid #252525;

    border-top-color: #888888;
    border-left-color: #888888;
}

.project-links {
    display: flex;

    gap: 15px;
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contacts-page {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    background:
        linear-gradient(
            135deg,
            #70471f,
            #4b2d16
        );
}

.contact-book {
    width: min(750px, 100%);

    padding: 40px;

    background: #593a20;

    border: 6px solid #2f1d0e;

    box-shadow:
        0 12px 0 #211309,
        0 25px 40px rgba(0, 0, 0, 0.4);
}

.book-header {
    margin-bottom: 30px;

    text-align: center;
}

.book-header h1 {
    margin-bottom: 12px;

    font-size: clamp(36px, 6vw, 58px);

    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.4);
}

.book-header p {
    color: #dddddd;

    line-height: 1.6;
}

.contact-list {
    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-bottom: 30px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 16px;

    background: #383838;

    border: 4px solid #1e1e1e;

    border-top-color: #777777;
    border-left-color: #777777;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.contact-item:hover {
    transform: translateX(5px);

    filter: brightness(1.1);
}

.contact-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #222222;

    border: 3px solid #111111;

    font-weight: bold;
}

.contact-item h2 {
    margin-bottom: 5px;

    font-size: 19px;
}

.contact-item p {
    color: #aaaaaa;

    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .craft-section {
        grid-template-columns: 1fr;
    }

    .craft-result {
        max-width: 650px;

        width: 100%;

        margin: 0 auto;
    }

    .gallery {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 550px) {

    .language-switch {
        top: 10px;
        right: 10px;
    }

    .header {
        width: calc(100% - 30px);
    }

    .landing {
        padding: 20px;
    }

    .minecraft-sign {
        padding: 30px 20px;
    }

    .minecraft-sign h1 {
        font-size: 40px;
    }

    .minecraft-sign p {
        font-size: 16px;
    }

    .enter-btn {
        min-width: 240px;
    }

    #workshop {
        padding: 30px 15px 60px;
    }

    .hero {
        margin-bottom: 35px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .crafting-table,
    .craft-result,
    .content-block,
    .contact-book {
        padding: 20px;
    }

    .craft-grid {
        gap: 7px;

        padding: 7px;
    }

    .craft-slot {
        min-height: 95px;

        border-width: 4px;
    }

    .craft-slot img {
        width: 42px;
        height: 42px;
    }

    .craft-slot span {
        font-size: 11px;
    }

    .result-slot {
        width: 160px;
        height: 160px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }

    .contact-item {
        padding: 12px;
    }
}