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

html, body {
    height: 100%;
}

body {
    background-image: url('images/1.jpg');
    background-size: 107%;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    background-color: #666666;
    background-blend-mode: multiply;
    overflow: hidden;
    height: 100vh;
}

.top-bar {
    position: fixed;
    top: 140px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    display: flex;
    justify-content: center;
    gap: 115px;
    white-space: nowrap;
}

.top-bar a.active {
    text-decoration: none;
}

.contacts {
    position: relative;
    top: -16px;
    right: 20.3%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.email {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contacts a {
    color: #ffffff;
    text-decoration: none;
    text-transform: none;
    transition: 0.3s;
}

#content {
    position: fixed;
    top: 220px;
    left: 20%;
    padding-left: 25px;
    z-index: 500;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: left;
    width: 90%;
    max-width: 1300px;
}

#content h1 {
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: none;
    margin: 0;
}

#content h1 .bold {
    font-weight: 900;
}

.sub-text {
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    text-align: left;
    line-height: 1.3;
}

.sub-text p {
    margin: 0;
    margin-bottom: 6px;
}

.footer-text {
    margin-top: 23px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 23px;
    font-weight: 750;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: left;
}

.footer-text p {
    margin: 0;
}

.categories {
    margin-top: 100px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 750;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cat-row a {
    color: #ffffff;
    text-decoration: underline;
    text-transform: none;
    transition: 0.3s;
}

.line {
    width: 88%;
    height: 2px;
    background-color: #ffffff;
    margin-top: 50px;
    opacity: 1;
}

.copyright {
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    text-align: center;
    margin-left : -150px;
    opacity: 0.8;
}

.signature-img {
    display: block;          /* чтобы картинка была на отдельной строке */
    margin-top: 60px;        /* отступ от текста сверху */
    max-width: 200px;        /* максимальная ширина — подбери под свою картинку */
    height: auto;            /* высота подстроится автоматически */
}

@media (max-width: 768px) {
    .loader-letter {
        font-size: 28px;
    }

    .loader-space {
        width: 10px;
    }
}

@media (max-width: 480px) {
    .loader-letter {
        font-size: 20px;
    }

    .loader-space {
        width: 6px;
    }
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        background-size: cover;
        background-attachment: scroll;
        background-position: center top;
    }

    .contacts {
        position: absolute;
        top: 14px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 14px;
        align-items: flex-end;
        gap: 4px;
        font-size: clamp(11px, 3.2vw, 15px);
    }

    .phones {
        gap: 2px;
    }

    .email {
        align-items: flex-end;
    }

    .top-bar {
        position: relative;
        top: 82px;
        width: 100%;
        padding: 10px 10px;
        gap: 8px 14px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .top-bar a {
        font-size: clamp(10px, 2.8vw, 13px);
        letter-spacing: .5px;
    }

    #content {
        position: relative;
        top: 125px;
        left: 0;
        width: 100%;
        max-width: none;
        padding: 0 16px 70px;
    }

    #content h1 {
        font-size: clamp(36px, 10vw, 56px);
        line-height: 1.05;
        letter-spacing: 1px;
    }

    .sub-text {
        font-size: 14px; line-height: 1.4; margin-top: 18px;
    }

    .sub-text p {
        margin-bottom: 8px;
    }

    .footer-text {
        font-size: 17px; line-height: 1.3; margin-top: 20px;
    }

    .line {
        width: 100%; margin: 40px 0 0;
    }

    .copyright {
        margin: 16px 0 0; font-size: 12px;
    }
}

@media (max-width: 420px) {
    .top-bar {
        gap: 7px 11px;
    }

    #content {
        top: 115px;
    }
}

@media (max-width: 768px) {
    html, body { min-height: 100%; height: auto; }
    .signature-img { max-width: 150px; margin-top: 35px; }
}
