body {
    align-content: center;
    margin: 0;
    background-color: #BBC6A9;
    font-family: serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.container {
    min-height: 100%;
}

.content h4 {
    color: white;
    text-shadow: 2px 2px 4px black;
    font-size: 56px;
    text-align: center;
    padding: 10px
}

.content h1 {
    color: white;
    text-shadow: 2px 2px 4px black;
    font-size: 40px;
    text-align: center;
}

.content h2 {
    font-size: 24px;
    color: whitesmoke;
}

.content h1 a {
    text-decoration: none;
    color: white;
    font-size: 28px;
    border-radius: 24px;
    border: 12px solid #BC6C25;
    background-color: #BC6C25;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;

}

.content h1 a:hover {
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
}

.navbar {
    width: 100%;
    background-color: #3A5A40
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.menu li {
    position: relative;
    margin: 0;
}

.menu li:not(:first-child) {
    margin-right: auto;
}

.menu a {
    padding: 18px 20px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.3s ease;
}

.menu a:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.menu li:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #3A5A40;
    list-style-type: none;
    padding: 5px 0;
    z-index: 1000;
}

.submenu li {
    display: block;
}

.submenu a {
    padding: 15px 20px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.3s ease;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    color: #BBC6A9;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
}

.news-block {
    width: 30%;
    height: 300px;
    margin: 10px;
    color: black;
    text-decoration: none;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: box-shadow 0.3s ease, width 0.3s ease, opacity 1.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    border-image: fill 0 linear-gradient(to bottom, #0001, 80%, #000);
}

.news-block:hover {
    width: 31%;
    opacity: 1;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5));
}

.news-block.visible {
    opacity: 1;
}

.news-block h3 {
    z-index: 1;
    border-radius: 0px 0px 8px 8px;
    color: white;
    width: 100%;
    padding: 20px;
}

.news-block:nth-child(1) {
    background-image: url(prigashynyafoto/1.1.3.webp3.webp)
}

.news-block:nth-child(2) {
    background-image: url(seminarikfoto/zlav.webp)
}

.news-block:nth-child(3) {
   background-image: url(maslenicafoto/16.webp)
       
}

.media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100vh;
    width: 100%;
}

.socialmedia {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;
}

.text-block {
    width: 500px;
    height: 486px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    font-size: 50px;
}

.link-block {
    width: 290px;
    height: 490px;
    border-radius: 40px;
    transition: box-shadow 0.3s ease;
    padding: 10px;
    opacity: 1;
     background-size: cover;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;

}

.link-block:hover {
    opacity: 1;
    transform: translateY(0);

}

.link1 {
    background-image: url(img/instaphone.svg);
}

.link2 {
    background-image: url(img/tiktokphone.svg);
}

.background-figure {
    position: absolute;
    top: 50%;
    right: -40%;
    width: 52%;
    height: 400px;
    background-color: #bc6c25;
    transform: translateY(-50%);
    transition: right 2s ease;
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
}

.block.visible .background-figure {
    right: 0;

}

.openspace {
    width: 100%;
    height: 100px;
}

footer {
    padding: 20px;
    text-align: left;
    position: absolute;
    display: flex;
    justify-content: space-around;
    color: black;
    background-color:#BBC6A9;
    width: 100%;
    padding-top: 100px
}

.footer-link {
    text-decoration: none;
    color: black;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    transition: color 0.5s ease;
}

.footer-link:hover {
    color: dimgrey;
}

.footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.phone-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    margin-top: 10px;
}

.calendar-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    margin-top: 10px;
    margin-left: 4px
}

.scroll-to-top {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
}

.scroll-to-top:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.history_etc {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px;
}

.left-container {
    width: 43.3%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    background-color: #588157;
    border-radius: 20px;
}

.right-container {
    justify-content: space-between;
    width: 55.5%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    background-color: #588157;
    border-radius: 20px;
}

.block {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    margin: 30px;
    padding: 20px;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block h2 {
    margin: 0 0 20px;
    text-align: center;
    color: white;
}

.block p {
    margin: 0;
    font-size: 21px;
    color: white;
}

#faq {
    margin: auto;
    padding: 0 15px;
    text-align: center;
}

section.faq {
    padding-top: 2em;
    padding-bottom: 3em;
}

#faq ul {
    text-align: left;
}

.transition,
p,
ul li i:before,
ul li i:after {
    transition: all 0.3s;
}

#faq .no-select,
#faq h2 {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#faq h1 {
    margin-bottom: 30px;
    margin-top: 30px;
}

#faq h2 {
    color: white;
    font-size: 22px;
    line-height: 20px;
    text-align: left;
    padding: 20px 15px 0;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
    margin: 0;
    cursor: pointer;
}

#faq p {
    text-align: left;
    font-size: 28px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    will-change: max-height;
    contain: layout;
    opacity: 1;
    transform: translate(0, 0);
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 0 50px 0 15px;
    transition: .3s opacity, .6s max-height;
    hyphens: auto;
    z-index: 2;
    color: white
}

#faq p text {
    float: right;
}

#faq h2:first-letter {
    text-transform: uppercase
}

#faq p:first-letter {
    text-transform: uppercase
}

#faq p img {
    float: left;
    width: 50%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right:20px;
    margin-top: 12px;
}

#faq ul {
    list-style: none;
    perspective: 900;
    padding: 0;
    margin: 0;
}

#faq ul li {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: #3A5A40;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.5s ease;
}

#faq ul li:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1)
}

#faq ul li + li {
    margin-top: 15px;
}

#faq ul li:last-of-type {
    padding-bottom: 0;
}

#faq ul li i {
    position: absolute;
    transform: translate(-6px, 0);
    margin-top: 28px;
    right: 15px;
}

#faq ul li i:before,
ul li i:after {
    content: "";
    position: absolute;
    background-color: #BC6C25;
    width: 3px;
    height: 9px;
}

#faq ul li i:before {
    transform: translate(-2px, 0) rotate(45deg);
}

#faq ul li i:after {
    transform: translate(2px, 0) rotate(-45deg);
}

#faq ul li input[type=checkbox] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    touch-action: manipulation;
}

#faq ul li input[type=checkbox]:checked ~ h2 {
    color: white;
}

#faq ul li input[type=checkbox]:checked ~ p {
    max-height: 0;
    transition: .3s;
    opacity: 0;
}

#faq ul li input[type=checkbox]:checked ~ i:before {
    transform: translate(2px, 0) rotate(45deg);
}

#faq ul li input[type=checkbox]:checked ~ i:after {
    transform: translate(-2px, 0) rotate(-45deg);
}

.photo_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 30px;
}

.photo_block {
    width: 24%;
    height: auto;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.photo_block.wide {
    width: 32%;
    height: auto;
}

.photo_block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo_block:hover img {
    transform: scale(1.05);
}

.photo-accordion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.phlink {
    width: 210px;
    height: 450px;
    margin: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.2);
    transition: width 0.3s;
    overflow: hidden;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.phlink:hover {
    width: 600px;
}

.phlink-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.accordion {
    display: flex;
    flex-direction: row;
    transition: all 1s ease;
}

.link {
    width: 15%;
    height: 600px;
    position: relative;
    transition: width 0.3s ease;
    overflow: hidden;
    color: black;
    cursor: pointer;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.link:nth-child(1).active {
    background-image: url(img/ivents.png);
    background-size: cover;
    background-position: center;
}

.link:nth-child(2).active {
    background-image: url(img/teams.png);
    background-size: cover;
    background-position: center;
}

.link:nth-child(3).active {
    background-image: url(img/culture.png);
    background-size: cover;
    background-position: center;
}

.link.active {
    width: 70%;
}

.more a {
    text-decoration: underline;
    color: gainsboro;
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    transition: all 0.3s ease;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    pointer-events: none;
    color: whitesmoke
}

.link.active .text {
    right: 25%;
    left: 25%;
    top: -45%;
    transform: translate(0, 0);
    writing-mode: horizontal-tb;
    padding: 10px;
    font-size: 45px;
    pointer-events: auto;
}

.more {
    display: none;
    position: sticky;
    right: 25%;
    left: 25%;
    top: 85%;
    padding: 10px;
    font-size: 20px;
}

.link.active .more {
    display: block;
}

.novosti {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news {
    display: flex;
    width: 47%;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 2px 1px #6e749b17, 0 4px 2px #6e749b17, 0 8px 4px #6e749b17, 0 16px 8 px #6e749b17, 0 32px 16px #6e749b17;
    background-color: #FEFAE0;
    transition: box-shadow 0.5s ease, width 0.5s ease;
    position: relative;
}

.news:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 48%;
}

.news-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    background-color: whitesmoke
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    width: 44%;
}

.text-content h2 {
    font-size: 24px;
    margin: 10px 0;
    text-align: center;
    color: black;
}

.text-content p {
    font-size: 18px;
    margin: 30px 0;
    text-align: left;
    color: black;
}

.text-content h3 {
    background-color: black;
    height: 2px;
    margin: 10px auto;
    width: 120px;
    position: sticky;
}

.text-content p1 {
    text-align: center;
}

.text-content p1 a {
    font-size: 18px;
    text-align: center;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    background-color: #3A5A40;
    padding: 8px;
}

.text-content p1 a:hover {
    text-decoration: none;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    /* Начальная позиция для анимации */
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in:nth-child(1) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(2) {
    animation-delay: 1s;
}

.fade-in:nth-child(3) {
    animation-delay: 1.5s;
}

.fade-in:nth-child(4) {
    animation-delay: 2s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.1s
}

.fade-in:nth-child(6) {
    animation-delay: 0.4s
}

.mihsvecha {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
    background-color: #3A5A40;
    border-radius: 20px;
}

.mihsvecha p {
    font-size: 30px;
}

.slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 600px;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.description {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 35px 15px 35px;
    font-size: 24px;
}

.description a {
    text-decoration: ;
    color: white;
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.employees {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
}

.employee {
    position: relative;
    width: 320px;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 0 40px 0 40px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}


.employee img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.employee:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1);
}

.bio {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: white;
    color: black;
    text-align: center;
    padding: 10px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.bio p {
    font-size: 17px;
    color: black;
    height: 40px;
    align-content: center;
}

.bio p:first-letter {
    text-transform: uppercase
}

.bio h1 {
    color: black;
    text-shadow: none;

}

.employee h1 {
    font-size: 24px;
}

.bio h3 {
    background-color: black;
    height: 2px;
    margin: 10px auto;
    width: 120px;
    position: sticky;
}

.hiring {
    margin: 10px 0;
    font-size: 100px;
    text-align: center;
    color: #bc6c25;
    font-family: fantasy;
}

.carousel-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    text-align: center;
}

.carousel-item {
    width: 290px;
    height: 435px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
    align-content: center;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item:hover {
    transform: translateY(0);
}

.carousel-item h3 {
    background-color: white;
    height: 2px;
    margin: 20px auto;
    width: 120px;
}

.carousel-item h1 {
    color: white;
    padding: 10px 0 0 0;
    font-size: 32px
}

.carousel-item p {
    font-size: 24px;
    color: white;
    padding: 0 10px 10px 20px;
    text-align: start;
}

.carousel-item p1 a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    border: 6px solid #bc6c25;
    border-radius: 16px;
    background-color: #bc6c25;
    padding-left: 8px;
    padding-right: 8px;
}

.carousel-item p1 a:hover {
    text-decoration: none;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.corner-image {
    position: absolute;
    padding: 5px;
    width: 100px;
    height: 100px;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

.bio:hover {
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
}

.color2 {
    background: linear-gradient(to bottom, #3A5A40, 90%, #BBC6A9)
}

.color3 {
    background: linear-gradient(to bottom, #BBC6A9, 90%, #3A5A40);
}

.main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: auto;
    background-image: url(img/wave.svg);
    background-position: 97px bottom;
    background-repeat: no-repeat;
}

.image {
    width: 73%;
    background-image: url(img/main.png);
    aspect-ratio: 16/9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.main_text {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    width: 25%
}

.main_text h4 {
    text-align:left;
    font-size: clamp(1rem, 0.2344rem + 1.75vw, 1.875rem);
    text-transform: uppercase
}

.photography {
    display: flex;
    justify-content: space-around;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.go_to_page {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news:hover .go_to_page {
    opacity: 1;
}

.board_image {
    width: 100%;
    height: auto;
   /*  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); */
    transition: box-shadow 0.3s ease;
    margin-top: 70px;
/*    transform: translateY(10px);*/
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-radius: 16px;
    align-content: center;
}

.board_image:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    ;
}

th,
td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
    color: black;
    font-size: 24px;
}

th {
    background-color: white;
}

.footer_left {
    margin-top: 16px;
    width: auto;
    float: left;
}

.footer_right {
    margin-top: 4px;
    width: auto;
}

.ornament {
    width: 100px;
    height:750px;
    overflow: hidden;
}

#block6 {
   display: none;
}

#block3 {
    display: block;
}
