/* Подключение шрифтов Noah */
@font-face {
    font-family: 'Noah';
    src: url('./fonts/Noah-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noah';
    src: url('./fonts/Noah-Regular-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

img {
    vertical-align: bottom;
}

/* Пример использования шрифтов */
body {
    font-family: 'Noah', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #111;
    background-color: #f9f9f9;
}

.italic-text {
    font-family: 'Noah', sans-serif;
    font-weight: normal;
    font-style: italic;
}

* {
    padding: 0px;
    margin: 0px;
}

.page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.page#about {
    display: grid;
    grid-template-columns: 50% 1fr;
    min-height: 100dvh;
}

#about footer {
    margin-top: auto;
}

.about-text {
    font-size: 14px;
    line-height: 18px;
}

.about-text p:not(:last-child){
    margin-bottom: 18px;
}

.about-text p, #atomic-item-page p, #atomic-item-page img {
    max-width: 630px;
}

.main-bg img, .main-bg {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}

header, footer {
    position: absolute;
    padding: 20px;
    display: grid;
    grid-template-columns: 50% 1fr auto;
    z-index: 99;
    left: 0px;
    width: 100%;
    box-sizing: border-box;
    /* backdrop-filter: blur(10px); */
    background-color: #f9f9f9;
}
header {
    top: 0px;
}
footer {
    bottom: 0px;
}

.darkBg .snap-container>header,
.darkBg .snap-container>footer {
    background-color: initial;
}

a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

a::after {
    content: '';
    height: 1px;
    background-color: #111;
    transition: all 0.2s ease-in;
    bottom: 0px;
    left: 0px;
    position: absolute;
    width: 0px;
}

.lined-text {
    position: relative;
}


.lined-text::after {
    content: '';
    height: 1px;
    background-color: #111;
    transition: all 0.2s ease-in;
    bottom: 0px;
    left: 0px;
    position: absolute;
    width: 100%;
}

a:hover::after {
    width: 100%;
}
a.lined-text:hover::after {
    width: 0px;
}

.mobile-home-text {
    display: none;
}

#home {
    max-height: 100vh;
    max-height: 100dvh;

}

#about{
    box-sizing: border-box;
    padding: 90px 20px;
    padding-bottom: 0px;
}
.about-text {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center; */
}

.darkBg {
    color: #fff !important;
}

.darkBg header, .darkBg footer {
    backdrop-filter: none;
}

.darkBg .lined-text::after {
    background-color: #fff;
}

.darkBg a::after {
    background-color: #fff;
}

#atomic {
    box-sizing: border-box;
    padding: 90px 0px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.04em;
    display: grid;
    grid-template-columns: 50% 1fr;

    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    align-items: flex-start;
    
    max-height: 100dvh;

    padding-bottom: 0px;
}

#atomic-item-page {
    box-sizing: border-box;
    padding: 90px 20px;
    padding-bottom: 150px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.04em;
    display: grid;
    grid-template-columns: 50% 1fr;
}

#atomic>div{
    scroll-snap-align: end;
}

.atomic-item {
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.atomic-item a{
    align-items: flex-start;
    justify-content: center;
    display: flex;
    flex-direction: column;

    gap: 24px;
}

.atomic-item a::after {
    display: none;
}
.atomic-item a {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}
.atomic-item a:hover {
    opacity: 0.6;
}

.item-text {
    display: grid;
    grid-template-columns: 40px 1fr;
}
.item-text p{
    max-width: 260px;
}

.item-text i, .item-text em {
    font-size: 12px;
}

.atomic-item img {
    width: 320px;
    height: 400px;
    object-fit: cover;
}

#atomic-item-page .atomic-item-page-grid {
    margin-right: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 20px;
    width: calc(100% - 80px);
    max-width: 620px;
}

.atomic-item-page-grid.one-item {
    grid-template-columns: 100% !important;
}

.atomic-item-page-grid img {
    width: 100%;
    vertical-align: bottom;
}

#atomic-item-page p {
    padding-right: 60px;
}

#atomic-item-page p:not(:last-child) {
    margin-bottom: 18px;
}

#atomic-item-page .references {
    margin-top: 36px;
    font-size: 10px;
}

#atomic-item-page p img {
    display: block;
    width: 100%;
    margin-top: 36px;
}

#atomic-item-page p span {
    display: block;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 36px;
}


#atomic-item-page p span.lined-text {
    display: inline-block !important;
    font-style: normal;
    margin-bottom: 0px;
    font-size: 14px;
}

#atomic-item-page p b {
    display: inline-block !important;
    font-style: normal;
    margin-bottom: 0px;
    font-size: 14px;
    position: relative;
}

#atomic-item-page p b::after {
    content: '';
    height: 1px;
    background-color: #111;
    transition: all 0.2s ease-in;
    bottom: 0px;
    left: 0px;
    position: absolute;
    width: 100%;
}


.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: none;
    justify-content: flex-start;
    padding: 90px 20px 0px;
    box-sizing: border-box;
    align-items: center;
    z-index: 1000;
}

.image-popup.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-content {
    position: relative;
    max-width: calc(100vw - 40px);
    height: calc(100dvh - 180px);
}

.image-popup footer {
    padding: 20px 0px;
}


.popup-image-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: calc(100vw - 40px);
}

.popup-image {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}


.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-home-about-text {
    display: none;
}

.mobile-only {
    display: none;
}

.atomic-item-body footer, main footer {
    position: static !important;
}

main footer {
    transform: none;
    width: 100%;
    grid-column: 1/3;
    margin-top: 90px;
    scroll-snap-align: end;
}

#about footer {

    padding: 20px 0px ;
}

#phoneV, #desctopV {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#phoneV {
    display: none;
}

@media screen and (max-width: 600px) {
    main footer {
        grid-column: 1/2;
        padding: 20px 0px;
    }
    #desctopV {
        display: none;
    }
    #phoneV {
        display: block;
    }
    #home {
        height: 100vh;
        background-color: #080707;
        position: relative;
    }

    .snap-container {
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        scrollbar-width: none; /* Firefox */

        height: 100dvh;
    }

    .snap-scroll {
        scroll-snap-align: start;
    }

    .mobile-home-about-text {
        display: block;
        padding: 90px 20px 80px;
        color: #111 !important;
        position: relative;
        background-color: #f9f9f9;
        z-index: 100;
    }

    .mobile-home-about-text header {
        color: #111 !important;
    }

    .mobile-home-about-text header .lined-text::after {
        background-color: #111 !important;
    }

    .main-bg img {
        opacity: 0.9;
    }

    .mobile-only.item-text{
        display: grid;
    }

    body:not(.atomic-item-body) header>div:last-child {
        display: none;
    }
    body.atomic-item-body header>div:nth-child(2) {
        display: none;
    }

    header {
        grid-template-columns: 1fr auto;
        position: absolute;
    }

    header .desctop-only {
        display: none;
    }

    header .mobile-only {
        display: inline-block;
    }

    body>footer, .snap-container>footer, main footer {
        position: relative;
        color: #111 !important;
        grid-template-columns: 1fr auto;
    }

    body>footer>div:nth-last-child(2),
    .snap-container>footer>div:nth-last-child(2),
    main>footer>div:nth-last-child(2) {
        display: none;
    }

    /* #atomic-item-page>div:first-child {
        display: none;
    } */

    .mobile-home-text {
        display: flex;
        position: absolute;
        bottom: 20px;
        left: 20px;
        flex-direction: column;
        gap: 18px;
        max-width: 320px;
    }

    .arrow-bottom {
        padding-top: 20px;
    }
    .arrow-bottom img {
        width: 9px;
        display: inline-block;
        padding-top: 20px;
    }

    #atomic {
        grid-template-columns: 100%;
        padding: 90px 20px 0px;
    }

    #atomic>div:not(:nth-child(1)):not(:nth-child(2)) {
        scroll-snap-align: start;
    }

    .atomic-item:nth-child(2n+1) {
        padding-left: 40px;
        padding-right: 0px;
        padding-top: 40px;
        padding-bottom: 0px;
    }
    .atomic-item:nth-child(2n) {
        padding-left: 0px;
        padding-right: 40px;
        padding-top: 40px;
        padding-bottom: 0px;
    }
    .atomic-item a {
        gap: 15px;
    }

    #atomic-item-page {
        grid-template-columns: 100%;
        gap: 30px;
    }

    #atomic-item-page .atomic-item-page-grid {
        width: 100%;
        margin-right: 0px;
    }
    #atomic-item-page p {
        padding-right: 0px;
    }

    .popup-image {
        
    }
}