@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@keyframes shake {
    0% {
      transform: rotate(0deg);
    }
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-15deg);
    }
    60% {
        transform: rotate(10deg);
    }
    80% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes line-cross {
    0% {
        
    }
    15%{
        left: -120%;
        width: 50%;
    }
    85% {
        width: 0;
        left: 120%;
    }
    100%{

    }
}


*{
    box-sizing: border-box;
    scrollbar-width: thin;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
}

a{
    text-decoration: none;
}

body{
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("/bitrix/templates/spds/img/background.png") center top / cover no-repeat;
    pointer-events: none;
}

.wrapper{
    max-width: 1200px;
    margin: 0px auto;
    width: 100%;
}

/* tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip__text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);

    background: rgba(255, 255, 255, 1);
    color: #000000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;

    z-index: 9999;
    pointer-events: none;
}

.tooltip:hover .tooltip__text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip__text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 1) transparent transparent transparent;
}

/*header*/
header{
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 150px;

}

header a{
    color: #ffffff;
}

header .header-content{
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
        gap: 20px;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: all 0.3s ease-in-out;
    height: 150px;
}

.content-top {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.content-top ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    list-style: none;
}

.content-top ul li a{
    padding: 0 10px;
    position: relative;
    display: flex;
    justify-content: center;
    font-weight: 500;
}

.content-top ul li a::before{
    content: '';
    background: #ffffff;
    height: 1px;
    width: 0%;
    bottom: -5px;
    left: 0;
    position: absolute;
    transition: all 0.3s ease;
}

.content-top ul li a:hover::before{
    width: 100%;
}

.content-bottom {
    position: relative;
    z-index: 1;
    max-height: 100px; 
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.header-list{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-list ul {
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 14px;
}

header .contact-block{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

header .contact-block a{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
}

header .contact-block a:hover img{
    animation: shake ease 0.6s;
}


header .contact-block img{
    height: 25px;
    filter: brightness(0) saturate(100%) invert(99%) sepia(2%) saturate(676%) hue-rotate(206deg) brightness(108%) contrast(100%);;
}

header.scrolled .header-content {
  gap: 0; 
  height: 105px;
}

header.scrolled .content-bottom {
  opacity: 0;
  max-height: 0;
  transform: translateY(-5px);
  pointer-events: none; 
}

header .content-top-recall{
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 16px;
    border: none;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    background: #2281f5;
    white-space: nowrap;
    position: relative;
    overflow: clip;
}

header .content-top-recall::after{
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background: rgb(255 255 255 / 20%);
    pointer-events: none;
    transform: skewX(-20deg);
    animation: line-cross 2.1s ease;
    animation-iteration-count: infinite;
}

header .content-top-recall:hover::after{
    animation: none;
}

header .content-top-recall::before{
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 0;
    left: 0;
    background: rgb(255 255 255 / 20%);
    pointer-events: none;
    transform: skewX(-20deg);
    transition: width 0.6s ease;
}

header .content-top-recall:hover::before{
    width: 100%;
}



main{
    padding: 50px 0;
}


/*footer*/
footer h2, footer a{
    color: #ffffff;
} 

footer h2{
    font-size: 20px;
    height: 39px;
    display: flex;
    align-items: flex-end;
}

footer .footer-content{
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

footer .footer-content-top{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 39px;
    gap: 20px;
}

.footer-content-cont, .footer-content-spds, .footer-content-sect, .footer-content-soc{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-content-cont>a{
    width: max-content;
}

.spds-project-list, .sections-spds-list{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spds-project-list-item {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: flex-start;
    font-size: 14px;
}

.spds-project-list-item img, .sections-spds-list-item img{
    filter: brightness(0) saturate(100%) invert(99%) sepia(2%) saturate(676%) hue-rotate(206deg) brightness(108%) contrast(100%);
}

.sections-spds-list-item{
    font-size: 14px;
}

.spds-society-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.spds-society-list-item{
    display: flex;
    padding: 7px;
    background: #ffffff;
    border-radius: 50%;
}

.spds-society-list img{
    filter: brightness(0) saturate(100%) invert(0%) sepia(2%) saturate(7456%) hue-rotate(171deg) brightness(111%) contrast(101%);
    height: 25px;
}

.contact-mail, .contact-address, .contact-numb{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-mail p, .contact-address p, .contact-numb p{
    color: #a9a9a9;
    font-size: 14px;
}