* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: auto;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'tt-livret'; /*a name to be used later*/
    src: url('fonts/tt-livret.ttf'); /*URL to font*/
}

html, body {
    position: relative;
}

body {
    background-color: #eae6e3;
}

a {
    color: #0969da;
    text-decoration: none;
}

ul {
    list-style: none;
}

html {
    font-size: 10pt;
    line-height: 1.4;
    font-weight: 400;
    font-family: 'Source Sans Pro', 'Open Sans', Roboto, 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Myriad Pro', 'Segoe UI', Myriad, Helvetica, 'Lucida Grande', 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, Geneva, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.last-footer {
    bottom: 0;
    text-align: center;
    color: rgb(227, 219, 219);
    background-color: rgb(56, 54, 54);
}

.footer {
    padding-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7vw;
    height: 20vh;
    background-color: #ff9500;
    color: #f4ece1;
    font-size: 11pt;
}

.footer h1 {
    font-size: 12pt;
    font-weight: 600;
}

.description {
    width: 40%;
    font-size: 12pt;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3vw;
    background-color: #ff9500;
    color: #f4ece1;
}

.header a {
    transition: 0.2s;
    color: #f4ece1; 
}

.header a:hover {
    color: #ecdbc3; 
}

.header ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5vw;
    font-size: 13pt;
}

.header li {
    box-sizing: border-box;
    padding: 3vh 5px;
    height: 100%;
}

.header li#selected {
    background-color: #c98246;
    opacity: 0.8;
}

.slogans {
    height: 40vh;
    display: flex;
    flex-direction: column;
    gap: 10vh;
    align-items: center;
    justify-content: center;
    background-color: #c98246;
    position: relative;
    box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.slogans p {
    font-family: 'tt-livret';
    color: #e7dacf;
    font-size: 27pt;
    font-weight: 600;
}

.slogans-buttons {
    display: flex;
    gap: 10px;
    font-size: 15pt;
}

.slogans-buttons a {
    opacity: 0.7;
    padding: 10px;
    border-radius: 4px;
    color: #f6f6f6;
    background-color: #bd5907;
    box-shadow: 0px 1px;
    font-weight: 600;
    transition: 0.5s;
    border: 3px solid transparent;
}

.slogans-buttons a:hover {
    border: 3px solid #a54c03;
}

.people {
    display: flex;
    flex-wrap: wrap;
    padding: 5vh 17vw;
    gap: 4vw;
    z-index: 0;
    position: relative;
    box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.3);
}

.people-photo img {
    border-radius: 5px;
    height: 65vh;
}

.people-text {
    color: #904104;
    font-size: 12pt;
}

.people-photo, .people-text {
    display: none;
}

.people-photo.active, .people-text.active {
    display: block;
}

.dots-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #904104;
}

.documents, .rem-photos {
    z-index: 1;
    box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    color: #693004;
    background-color: #e9cdb5;
    font-size: 15pt;
}

.documents h1, .rem-photos h1 {
    width: 50%;
    position: relative;
    text-align: center;
    border-bottom: 1px solid grey;
    margin-bottom: 20px;
}

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

.carousel-content {
    display: flex;
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.carousel-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 10px;
    transition: transform 0.5s ease;
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.carousel-button.prev {
    left: -40px;
}

.carousel-button.next {
    right: -40px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-buttons-mobile {
    display: none; /* По умолчанию скрыты */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.img-item {
    text-align: center;
}

.img-item img {
    height: 80vh;
}

.images-carousel {
    background-color: #c98246;
    overflow: hidden;
    padding: 2vh 0;
    white-space: nowrap;
    position: relative;
}

.images-carousel:before,
.images-carousel:after {
  position: absolute;
  top: 0;
  width: 10vw;
  height: 100%;
  content: "";
  z-index: 2;
}

.images-carousel:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #efd9c7);
}

.images-carousel:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #efd9c7);
}

.images-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.images-carousel:hover .images-slide {
    animation-play-state: paused;
}

.images-slide img {
    height: 60vh;
    margin: 0 0.5vw;
}

.project-video {
    background-color: #e9cdb5;
    flex-direction: column;
    display: flex;
    align-items: center;
    padding: 2vh 0;
}

.project-video h1 {
    width: 50%;
    position: relative;
    text-align: center;
    border-bottom: 1px solid #ff7d12;
    color: #693004;
    margin-bottom: 20px;
}

.presentations {
    gap: 5vw;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    color: #e6dcd4;
    display: flex;
    background-color: #c98246;
    height: 60vh;
}

.presentations h1 {
    background-color: #cd6815;
    padding: 3vh;
}

.presentations ul {
    font-size: 13pt;
}

.presentations a {
    color: #d6d5d4;
    transition: 0.3s;
}

.presentations a:hover {
    color: #e8c3a4;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    html {
        font-size: 8pt;
    }

    body {
        width: 100%;
    }

    .presentations {
        padding: 10vh 0;
        flex-direction: column;
        align-items: center;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0 0 0;
        width: 100vw;
    }

    .header ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .header li {
        text-align: center;
    }

    .slogans {
        height: auto;
        padding: 20px 10px;
    }

    .slogans p {
        font-size: 20pt;
        text-align: center;
    }

    .slogans-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .slogans-buttons a {
        font-size: 12pt;
        padding: 8px;
    }

    .documents {
        height: auto;
        padding: 20px 10px;
    }

    .documents h1 {
        width: 90%;
        font-size: 18pt;
    }

    .carousel {
        width: 100%;
    }

    .carousel-button {
        display: none;
    }

    .carousel-buttons-mobile {
        display: flex;
    }

    .carousel-buttons-mobile .carousel-button {
        position: static;
        transform: none;
        background-color: #904104;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-buttons-mobile .carousel-button:hover {
        background-color: #a54c03;
    }

    .people {
        height: auto;
        padding: 20px 10px;
        flex-direction: column;
    }

    .people-photo img {
        height: auto;
        max-width: 100%;
    }

    .people-text {
        font-size: 10pt;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 15px;
    }

    .description, .contacts {
        width: 80%;
    }

    .last-footer {
        font-size: 10pt;
    }
}
