@font-face {
    font-family: 'Rubik';
    src:  url('../fonts/Rubik.ttf') format(truetype);
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Akrobat';
    src:  url('../fonts/Akrobat.otf') format(opentype);
    font-style: normal;
    font-display: block;
}

* {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 1em;
}

*,
*::after,
*::before {
       box-sizing: border-box;
}

/* img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
} */

.color-midnight {
    color: #2A3038;
}

.color-white {
    color: white;
}

.background-gray {
    background-color: #252727;
}

.background-black {
    background-color: black;
}

.background-white {
    background-color: white;
}

.solid {
    font-weight: 500 !important;
}

h1 {
    font-family: Rubik;
    font-size: 2em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

h2 {
    font-family: Rubik;
    font-size: 2em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

h3 {
    font-family: Rubik;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

h4 {
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

p {
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

body {
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    width: 100vw;
    transition: 0.2s ease-out;
    z-index: 10;
}

.navbar .navbar__container {
    display: flex;
    height: 60px;
    padding: 0px 2em;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.navbar-active {
    background-color: #252727;
    border-bottom: 1px solid #1d1f1f;
}

.navbar__logo {
    text-align: center;
}

.navbar__logo > a {
    color: #FFF;
    font-size: 2em;
    font-weight: 500;
    font-family: Rubik;
    font-style: normal;
    line-height: normal;
    text-decoration: none;
}

.navbar__elements {
    display: flex;
    padding: 0.625em;
    justify-content: center;
    align-items: center;
    gap: 1.25em;
    align-self: stretch;
    list-style-type: none;
}

.navbar__elements > li {
    text-align: center;
}

.navbar__elements > li > a {
    color: #FFF;
    text-align: center;
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-decoration: none;
}

.navbar-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 2px;
    background-color: white;
}

.navbar-toggle:is(:focus, :hover) .icon-bar {
    background-color: white;
}

.navbar-toggle[aria-expanded="true"] .icon-bar:is(:first-child, :last-child) {
    position: absolute;
    margin: 0;
    width: 30px;
}

.navbar-toggle[aria-expanded="true"] .icon-bar:first-child {
    transform: rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .icon-bar:last-child {
    transform: rotate(-45deg);
}

.navbar:has(.navbar-toggle[aria-expanded="true"]) {
    transition: 0s;
    background-color: #252727;
}

.navbar-menu {
    position: fixed;
    top: 60px;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    left: 0;
    right: 0;
}

.navbar-toggle[aria-expanded="true"] + .navbar-menu {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
}

.navbar__elements {
    list-style: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 0;
    right: 0;
    margin: 1.4rem;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background-color: #252727;
}

.navbar-toggle[aria-expanded="true"] + .navbar-menu .navbar__elements {
    padding: 1em;
}

.main {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
    background: linear-gradient(0deg, rgba(37, 39, 39, 0.80) 0%, rgba(37, 39, 39, 0.80) 100%), url('/img/Main.png'), lightgray 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

.main__content {
    display: flex;
    padding: 0px 60px;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;
    flex: 1 0 0;
    align-self: stretch;
}

.main__content > h1 {
    color: #FFF;
    text-align: center;
    width: 70%;
    font-size: 3em;
}

.projects {
    display: flex;
    padding: 5.625em 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.75em;
    align-self: stretch;
}

.tabs {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    align-self: stretch;
    box-sizing: border-box;

    border-bottom: 5px solid #E5E0DF;
}

.tabs > h1 {
    display: flex;
    padding-bottom: 15px;   
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    cursor: pointer;
    color: rgba(42, 48, 56, 0.70);
}

.tabs > .active {
    color: #2A3038;
    box-shadow: 0px 5px 0px 0px #2A3038;
}

.projects__photo_container {
    width: 100%;
    position: relative;
}

.swiper-slide {
    cursor: pointer;
    width: 350px !important;
    height: 400px !important;
}

.swiper-slide.swiper-slide-active {
    width: 450px !important;
    height: 500px !important;
}

.swiper {
    width: 100%;
}

.swiper-slide.swiper-slide-active .swiper-card-wrapper {
    display: flex;
    width: 450px;
    height: 450px;
    overflow: hidden;
    justify-content: center;
}

.swiper-slide .swiper-card-wrapper {
    display: flex;
    width: 350px;
    height: 350px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;

    transition: 300ms ease;
}

.swiper-slide .swiper-card-img {
    height: 100%;
    object-fit: fill;
    transition: none;
}

.swiper-slide > .swiper-card-header {
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 300;
    line-height: normal;   
}

.swiper-control-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    align-self: stretch;
}

.swiper-control-wrapper > button {
    cursor: pointer;
}

.swiper-button-prev {
    background-color: transparent;
}

.swiper-button-next {
    background-color: transparent;
}

.swiper-button-next > img {
    transform: rotate(180deg);
}

.swiper-pagination {
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 300;
    line-height: normal;     
}

.mfp-title {
    font-family: Rubik;
    font-style: normal;
    font-weight: 300;
    line-height: normal;  
}

.mfp-counter {
    font-family: Rubik;
    font-style: normal;
    font-weight: 300;
    line-height: normal; 
}

.photo__card {
    width: 32%;
    margin-bottom: 20px;
    cursor: pointer;
}

.photo__card:hover {
    width: 32.5%;
}

.services {
    display: flex;
    padding: 5.625em 0px 5.625em 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5em;
    align-self: stretch;
}

.services__card__container {
    display: flex;
    flex: 1 1;
    scrollbar-width: none;
    overflow-x: scroll;
    -ms-overflow-style: none;
    gap: 1.875em;
    width: 100%;
}

.services__card__container::-webkit-scrollbar {
    display: none;
}

.services__card {
    display: flex;
    min-width: 40%;
}

.services__card:last-child {
    padding-right: 1.875em;
}

.services__card-content {
    display: flex;
    padding: 1.875em;
    gap: 1em;
    flex-direction: column;
    align-items: flex-start;
    background: #252727;
    border-radius: 10px;
}

.services__card-content > p {
    flex: 1 0 0;
    align-self: stretch;
    color: var(--bone, #E5E0DF);
}

.about {
    display: flex;
    padding: 5.625em 7.5em;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.75em;
    align-self: stretch;
}

.about__header {
    width: 100%;
    padding-bottom: 1.875em;
    border-bottom: 3px #252727 solid;
}

.about__content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3.75em;
    align-self: stretch;
    justify-content: end;
}

.about__content__header {
    display: flex;
    color: #2A3039;
    text-align: right;
}

.about__content__text {
    display: flex;
    color: #696969;
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 80%;
}

.contacts {
    display: flex;
    padding: 3.75em 60px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
    align-self: stretch;
}

.contacts__content {
    display: flex;
    justify-content: center;
    gap: 3.75em;
    align-self: stretch;
}

.contacts__content__info {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25em;
}

.contacts__content__info > li {
    display: flex;
    align-items: center;
    gap: 1.25em;
    align-self: stretch;
}

.contacts__content__blocks {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25em;
}

.contacts__content__blocks > a {
    text-align: center;
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    color: #2A3038;
    text-decoration: none;
}

.photogrid__container {
    width: 100%;
    height: 90%;
} 

.grid__card {
    width: 32%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 1px 1px 5px #2527275b;
    cursor: pointer;

    transition: 0.2s linear;
}

.grid__card:hover {
    width: 32.5%;
}

.scroller {
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.scroller__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625em;
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.20);
    cursor: pointer;
    transition: 0.3s ease-out;
}

.scroller__item-active {
    background-color: white;
}

.scroller-theme-black > .scroller__item  {
    background: rgba(0, 0, 0, 0.20);
}

.scroller-theme-black > .scroller__item-active {
    background-color: black;
}

.projects__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625em;
    align-self: stretch;
}

.projects__slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.875em;
    align-self: stretch;
}

.slider {
    display: flex;
    height: 500px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1em;
    padding: 0 0 2.5em 3.75em;
    background: lightgray 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    transition: 0.3s ease-out;
    flex: 1 0 0;
}

.slider__buttons {
    cursor: pointer;
    color: #00000099;
    transition: 0.3s ease-out;
    font-size: 3em;
}

.slider__buttons-color:hover {
    color: black;
}
.slider > p {
    width: 60%;
}

details[data-popover] > summary:focus {
    outline: none;
}

details[data-popover] > summary::-webkit-details-marker {
    display: none;
}

details[data-popover] > summary {
    list-style: none;
    text-decoration: underline;

    color: #2A3038;
    text-align: center;
    font-family: Rubik;
    font-size: 1.25em;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
}

details[data-popover] {
    position: relative;
}

details[data-popover] > summary + * {
    position: absolute;
}

details[data-popover="right"] > summary + * {
    bottom: calc(0.5em + 100%);
    right: 0%;
    transform: translateX(50%);
}

.overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 20;
    transition: .3s all;
}

.modal__wrap {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    padding: 30px 0;
    align-items: center;
    z-index: 30;

    opacity: 0;
    visibility: hidden;
}

.modal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5em;

    min-width: 80%;
    max-width: 95%;
    height: fit-content;
    padding: 2.5em 2.5em;
    border-radius: 10px;
    background: white;
    box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .25); 
    transition: 0.3s all;
}

.modal__wrap.active, .overlay.active{
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

body:has(.modal__wrap.active) {
    overflow-y: hidden;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.modal__header > i {
    transition: 0.2s ease-out;
}

.modal__header > i:hover {
    color: #c23c3c;
}

.modal__content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5em;
    flex: 1 0 0;
    align-self: stretch;
}

.modal__info + .modal__slider {
    width: 70%;
}

.modal__slider {
    display: flex;
    flex-direction: column;
    width: 95%;
    height: 550px;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 72.29%, #000 97.81%), url('/img/mriya.jpg'), lightgray 10% / cover no-repeat;
    background-size: 100%, cover;
}

.modal__slider-content {
    display: flex;
    flex-direction: row;
    height: 97%;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.modal__silder-preview {
    display: flex;
    align-self: stretch;
    flex: 1 0 0;
    cursor: pointer;
}

.modal__slider-buttons-container {
    display: flex;
    justify-content: space-between;
    padding: 0 0 2.5em 0;
    height: 96%;
    align-items: center;
}

.modal__slider-buttons-container:first-child {
    padding: 0 0 0 2.5em;
}

.modal__slider-buttons-container:last-child {
    padding: 0 2.5em 0 0;
}

.modal__slider-buttons-container > i {
    font-size: 3em;
    opacity: 60%;
    transition: 0.3s ease-out;
    cursor: pointer;
}

.modal__slider-buttons-container > i:hover {
    opacity: 100%;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3); 
}

.modal__info {
    display: flex;
    width: 30%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25em;
    align-self: stretch;
}

.dh {
    display: flex;
    height: 3px;
    align-items: flex-start;
    gap: 0.625em;
    align-self: stretch;
    background: #000;
}

@media screen and (min-width: 700px) {
    .navbar-toggle,
    .navbar-toggle[aria-expanded="true"] {
        display: none;
    }
  
    .navbar-menu,
    .navbar-toggle[aria-expanded="true"] .navbar-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        display: block;
        height: 100%;
    }
  
    .navbar__elements,
    .navbar-toggle[aria-expanded="true"] .navbar-menu .navbar__elements {
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static;
        flex-direction: row;
        width: 100%;
        height: 100%;
        background-color: transparent;
    }
}

@media (min-width: 481px) and (max-width: 1400px) {
    h1 {
        font-family: Rubik;
        font-size: 1.75em;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    
    h2 {
        font-family: Rubik;
        font-size: 1.75em;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    
    p {
        font-family: Rubik;
        font-size: 1.25em;
        font-style: normal;
        font-weight: 300;
        line-height: normal;
    }

    .main__content {
        padding: 2em;
    }

    .navbar__logo > a{
        font-size: 1.75em;
    }

    details[data-popover] > summary {
        list-style: none;
        text-decoration: underline;
    
        color: #2A3038;
        text-align: center;
        font-family: Rubik;
        font-size: 1.25em;
        font-style: normal;
        font-weight: 300;
        line-height: normal;
        cursor: pointer;
    }

    
    .swiper-control-wrapper {
        justify-content: center;
    }

    .swiper-slide {
        width: 300px !important;
        height: 300px !important;
    }
    
    .swiper-slide.swiper-slide-active {
        width: 300px !important;
        height: 400px !important;
    }

    .swiper-slide.swiper-slide-active .swiper-card-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .swiper-slide .swiper-card-wrapper {
        width: 300px;
        height: 300px;
    }

    .projects {
        padding: 4em 2em;
        gap: 2em;
    }

    .projects__slider {
        gap: 1em;
    }

    .services {
        padding: 4em 0px 4em 2em;
        gap: 2em;
    }
    
    .services__card__container {
        width: 100%;
        overflow-x: scroll;
        gap: 1.5em;
    }

    .slider {
        padding: 0 0 2em 2em;
        gap: 0.5em;
    }

    .slider > p {
        width: 90%;
    }

    .services__card {
        min-width: 70%;
    }

    .services__card-content {
        padding: 1.25em;
        gap: .5em;
    }

    .about {
        padding: 4em 2em;
        gap: 2em;
    }

    .about__header {
        padding-bottom: 1em;
    }

    .about__content {
        justify-content: start;
        gap: .5em;
    }

    .about__content__text:nth-child(2) {
        padding-bottom: 2em;
    }

    .about__content__header {
        text-align: left;
    }

    .about__content__text {
        width: 100%;
    }

    .contacts__content__info {
        gap: 1.25em;
    }

    .contacts__content__blocks {
        gap: 1.25em;
    }

    .contacts__content__blocks > a {
        font-size: 1.25em;
    }

    .contacts {
        padding: 2em 2em;
    }

    .contacts__content {
        gap: 2em;
        flex-direction: column;
    }

    .projects__photo_container {
        gap: 2em;
    }

    .modal {
        height: 100%;
        max-width: 100%;
        width: 100%;
    }

    .modal__header > h2 {
        font-size: 1.4em;
    }

    .modal__slider {
        min-height: 200px;
        max-height: 230px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-family: Rubik;
        font-size: 1.5em;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    
    h2 {
        font-family: Rubik;
        font-size: 1.5em;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

    p {
        font-size: 1em;
    }

    .grid__card {
        width: 45%;
    }
    
    .grid__card:hover {
        width: 45.5%;
    }

    .scroller {
        gap: 1em;
    }

    .scroller__item {
        width: 30px;
    }

    .navbar-menu > a {
        font-size: 1em;
        font-weight: 300;
    }

    .navbar__logo > a {
        font-size: 1.25em;
    }
    
    .main__content {
        padding: 2em;
    }

    .main__content br {
        display: none;
    }

    .main__content > p {
        text-align: center;
    }

    .swiper-control-wrapper {
        justify-content: center;
    }

    .swiper-slide {
        width: 300px !important;
        height: 300px !important;
    }
    
    .swiper-slide.swiper-slide-active {
        width: 300px !important;
        height: 400px !important;
    }

    .swiper-slide.swiper-slide-active .swiper-card-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .swiper-slide .swiper-card-wrapper {
        width: 300px;
        height: 300px;
    }

    .swiper-slide > .swiper-card-header {
        font-size: 1em !important;
    }

    .swiper-pagination {
        font-size: 1em; 
    }

    .projects {
        padding: 2em 2em;
        gap: 2em;
    }

    .projects__slider {
        gap: 1em;
    }

    .projects__container .scroller__item {
        width: 20px;
    }

    .tabs {
        gap: 20px;
    }

    .slider {
        padding: 0 0 1em 1em;
        gap: 0.5em;
        height: 500px;
    }

    .slider > p {
        width: 90%;
    }

    .slider > h2 {
        font-size: 1em;
    }

    .slider__buttons {
        font-size: 2em;
    }

    .services {
        padding: 2em 0px 2em 2em;
        gap: 2em;
    }

    .services__card__container {
        width: 100%;
        overflow-x: scroll;
        gap: 1.5em;
    }

    .services__card {
        min-width: 90%;
    }

    .services__card-content {
        padding: 1.25em;
        gap: .5em;
    }

    .about {
        padding: 2em;
        gap: 2em;
    }

    .about__header {
        padding-bottom: 1em;
    }

    .about__content {
        justify-content: start;
        gap: .5em;
    }

    .about__content__text:nth-child(2) {
        padding-bottom: 1.5em;
    }

    .about__content__header {
        text-align: left;
    }

    .about__content__text {
        width: 100%;
    }
    
    .contacts__content__info {
        gap: .8em;
    }

    .contacts__content__blocks {
        gap: .8em;
    }

    .contacts__content__blocks > a {
        font-size: 1em;
    }

    .contacts {
        padding: 2em 2em;
    }

    .contacts__content {
        gap: 2em;
        flex-direction: column;
    }

    details[data-popover] > summary {
        list-style: none;
        text-decoration: underline;
    
        color: #2A3038;
        text-align: center;
        font-family: Rubik;
        font-size: 1em;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        cursor: pointer;
    }

    .modal__wrap {
        padding: 0;
    }

    .overlay {
        background-color: #FFF;
    }

    .modal {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        padding: 2em;
        gap: 1.5em;
        border-radius: 0;
        box-shadow: none;
    }

    .modal__content {
        flex-direction: column;
        gap: 1.5em;
    }

    .modal__slider {
        width: 100%;
        height: 90%;
    }

    .modal__slider .scroller__item {
        width: 20px;
    }

    .modal__slider-buttons-container {
        padding: 0 1em;
    }

    .modal__slider-buttons-container > i {
        font-size: 2em;
    }

    .modal__info {
        width: 100%;
    }
 
    .projects__photo_container {
        gap: 2em;
    }

    .photo__card {
        width: 45%;
    }

    .photo__card:hover {
        width: 45.5%;
    }
}