@import url("fonts.css");
/* @import url('responsive.css'); */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --primary-color: #e74133;
    --body-color: #eeece7;
    --grey-color: #7b7b7b;
    --text-color: #1a1a1a;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Helvetica", sans-serif;
    background-color: var(--body-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 700;
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.flex {
    display: flex;
    gap: 32px;
}
.social {
    cursor: pointer;
}
.primary {
    color: var(--primary-color);
}
.uppercase {
    text-transform: uppercase;
}

.header-logos {
    height: 90px;
    display: flex;
    gap: 8px;
    margin: 32px;
    padding: 2px 0;
    position: sticky;
    top: 32px;
    z-index: 101;
}
.header-logos img {
    height: 100%;
}

.hero {
    width: 100%;
    min-height: 80vh;
    position: relative;
}
.hero-slider {
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    position: relative;
}
.hero-slider .hero-slider__slide {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.hero-slider .hero-slider__slide.active {
    opacity: 1;
}

.hero__links {
    z-index: 100;
    width: 100%;
    min-height: 100%;
    position: absolute;
}
.hero__links .hero_section_link:nth-child(1){
    left: 100px;
    top: 192px;
}
.hero__links .hero_section_link:nth-child(2){
    right: 30%;
    top: 321px;
}
.hero__links .hero_section_link:nth-child(3){
    left: 25%;
    top: 60vh;
}
.hero__links .hero_section_link:nth-child(4){
    right: 13%;
    top: 50vh;
}
.hero__links a {
    position: absolute;
    text-decoration: none;
    color: #fff;
    background-color: var(--primary-color);
    font-size: 20px;
    padding: 4px 6px;
    transition: all 0.15s ease-in-out;
}
.hero__links a:hover {
    padding-left: 16px;
}

.lang {
    position: fixed;
    top: 700px;
    right: 40px;
    padding: 4px 8px 6px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background-color: var(--primary-color);
    z-index: 101;
}

section .lang {
    right: 32px;
    top: auto;
    bottom: 165px;
}
.mobile {
    display: none;
}
.lang a {
    display: flex;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.24px;
}
.lang a.active {
    text-decoration: underline;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.24px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
}

.menu {
    position: fixed;
    top: 40px;
    right: 40px;
    color: #fff;
    z-index: 101;
    overflow: hidden;
    pointer-events: none;
}

.menu .label {
    position: absolute;
    width: 96px;
    top: 0;
    right: 0;
    max-width: max-content;
    padding: 5px 12px;
    text-align: center;
    font-size: 20px;
    background-color: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    color: #fff;
    border: none;
    text-transform: uppercase;
}
.menu .menu-list {
    background-color: var(--primary-color);
    min-width: 243px;
    width: max-content;
    transform: translateX(100%);
    opacity: 0;
    overflow: hidden;
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    pointer-events: auto;
}
.menu.active .menu-list {
    transform: translateX(0);
    opacity: 1;
}
.menu .menu-list li {
    width: 110%;
    text-align: center;
    position: relative;
    margin: 0 10px;
    transition: 0.15s;
}
.menu .menu-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    opacity: 0;
}
.menu .menu-list a {
    position: relative;
    width: 100%;
    display: inline-block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    transition: 0.15s;
}
.menu .menu-list li.active,
.menu .menu-list li:hover {
    opacity: 1;
    transform: translateX(5px);
}
.menu .menu-list li:hover::before,
.menu .menu-list li.active::before
{
    opacity: 1;
    transform: translateX(10px);
}
.menu .menu-list li.active a,
.menu .menu-list li:hover a
{
    font-weight: 900;
}

/* ABOUT */
main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main section {
    width: 100%;
    position: relative;
    flex: 1 0 auto;
    /* min-height: calc(100vh - (75px + 64px)); */
}
.image-wrapper {
    width: 40%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section .content {
    position: relative;
    left: 40%;
    width: calc(60% - 232px);
    /* width: 672px; */
    margin: 0 64px 64px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
section .content h1,
section .content h2,
section .content h3 {
    font-size: 48px;
    letter-spacing: 0.528px;
    text-transform: uppercase;
    margin: 0;
    color: var(--primary-color);
}
section .content h2 {
    font-size: 28px;
}
section .content h3 {
    font-size: 24px;
}

section .content .subtitle {
    color: var(--grey-color);
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
}
section .content .subtitle.subtitle--meta {
    font-size: 16px;
    font-style: normal;
    line-height: 1.2;
}
section .content .text-content {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.24px;
    text-align: justify;
}

section .card-holder {
    display: flex;
    flex-direction: column;
    gap: 64px;
}
section .card-holder article {
    max-width: 672px;
    width: 100%;
    /* height: 320px; */
    display: flex;
    justify-content: space-between;
    gap: 32px;
}
section .card-holder article .card-image {
    display: flex;
    max-width: 256px;
    width: 100%;
    height: 320px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}
section .card-holder article .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции, заполняя весь блок */
}

section .card-holder article .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
section .card-holder article .card-content h3 {
    margin-bottom: 16px;
}
section .card-holder article .card-content .publication {
    color: var(--grey-color);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.24px;
    margin-bottom: 24px;
    font-style: italic;
}
section .card-holder article .card-content .card-text {
    color: var(--text-color);
    text-align: justify;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.21px;
}

main footer {
    background-color: #fff;
    width: 60%;
    left: 40%;
    position: relative;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 36px 11px 32px;
}

a.btn {
    width: max-content;
    text-transform: uppercase;
    text-decoration: none;
    padding: 7px 8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16.586px;
    letter-spacing: 0.249px;
    border: 1px solid var(--primary-color);
    transition: 0.15s;
}
a.btn:hover {
    color: var(--primary-color);
    background-color: #fff;
    border-color: var(--primary-color);
}

main footer {
    background-color: #fff;
    width: 60%;
    left: 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 36px 11px 32px;
}
main footer .footer__info {
    max-width: 588px;
    width: 100%;
    display: flex;
    gap: 10px;
}
.links {
    display: flex;
    gap: 16px;
    list-style-type: none;
}
main footer .footer__socials,
main footer .footer__socials > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}
main footer .footer__socials {
    gap: 22px;
}
main footer .footer__socials .socials__title {
    text-align: center;
    font-size: 9.624px;
    font-weight: 700;
}

/* BUILDINGS */
/* Reusable gallery carousel: any `.img-content` block containing `.img-item`
   images becomes a carousel (2-up desktop, 1-up mobile) via script.js */
.img-content {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.img-content__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    transition: transform 0.5s ease;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.img-content__track.dragging {
    transition: none;
    cursor: grabbing;
}
.img-item {
    flex: 0 0 calc(50% - 16px);
    min-width: 0;
    aspect-ratio: 3 / 2;
}
.img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
}
.card-grid .card-item {
    position: relative;
    width: 100%;
    aspect-ratio: 320.47/213.67;
    overflow: hidden;
}
.card-grid article,
.card-grid article img {
    width: 100%;
    height: 100%;
}
.card-grid article img {
    object-fit: cover;
    display: block;
    transition: 0.5s;
}
.card-grid .card-item .card-item__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.63) 7.69%,
        rgba(255, 255, 255, 0) 100%
    );
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 4px;
    padding: 0 64px 18px 16px;
    opacity: 0;
    transition: 0.3s;
}
.card-grid .card-item .card-item__content h3 {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.24px;
}
.card-grid .card-item .card-item__content a {
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.165px;
}
.card-grid .card-item .card-item__content a::after {
    content: ">";
    margin: 0 0 0 5px;
    transition: 0.15s;
}
.card-grid .card-item .card-item__content a:hover::after {
    margin: 0 0 0 10px;
}
.card-grid .card-item:hover .card-item__content {
    opacity: 1;
}
.card-grid .card-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px 10px;
    }
    .card-grid li {
        aspect-ratio: 255.83/169.49;
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox__img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    user-select: none;
}
.lightbox__close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}
.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    z-index: 1;
}
.lightbox__arrow--prev {
    left: 16px;
}
.lightbox__arrow--next {
    right: 16px;
}
.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.24px;
}

footer.main-page {
    position: relative;
    width: 100%;
    background-color: var(--body-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 250px;
    padding: 42px 32px;
    z-index: 100;
    bottom: 0;
}
footer.main-page .logos {
    max-height: 95px;
    max-width: 256px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
footer.main-page .logos img {
    max-height: 95px;
}
footer.main-page .footer__info {
    max-width: 588px;
    display: flex;
    gap: 12.5px;
    font-size: 15.398px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.231px;
}
footer.main-page .footer__socials {
    max-width: 102px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}
footer.main-page .footer__socials .links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16.541px;
    margin-top: 5px;
}
footer.main-page .socials__title {
    text-align: center;
    font-size: 9.624px;
}
.links .social {
    width: 30.075px;
    height: 30.075px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.social a
{
    display: flex;
    background: var(--primary-color);
    text-align: center;
    align-items: center;
    border-radius: 50%;
    padding: 5px;
    transition: 0.5s ease all;
}

.social a svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.social a:hover
{
    background: white;
}

.social a:hover svg
{
    fill: var(--primary-color);
}


@media (max-width: 1400px) {
    footer.main-page {
        gap: 100px !important;
    }
}
@media (max-width: 1200px) {
    section .card-holder article {
        flex-direction: column;
        gap: 5px;
    }
    main footer .footer__socials {
        gap: 22px;
    }
    main footer .footer__socials .socials__title {
        text-align: center;
        font-size: 9.624px;
        font-weight: 700;
    }

    footer.main-page {
        position: relative;
        width: 100%;
        background-color: var(--body-color);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 250px;
        padding: 42px 32px;
        z-index: 100;
    }
    footer.main-page .logos {
        max-height: 95px;
        max-width: 256px;
        width: 100%;
    }
}
@media (max-width: 1024px) {
    footer.main-page {
        flex-direction: column;
        gap: 22px !important;
    }
}

@media (max-width: 425px) {
    .lang.mobile {
        display: flex;
        position: relative;
        top: 0;
        left: 0;
        width: max-content;
        height: max-content;
    }
    .not-mobile {
        display: none !important;
    }

    footer.main-page {
        padding: 14px 19px 14px 18px;
    }
    .mobile-footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .mobile-footer__top,
    .mobile-footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .mobile-footer__bottom {
        gap: 30px;
    }
    .mobile-footer__top .links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .mobile-footer__bottom .logos {
        height: 50px;
    }
    footer.main-page .mobile-footer__bottom .footer__info {
        font-size: 10px;
        gap: 5px;
    }
    main footer .footer__info {
        font-size: 8px;
    }
    main footer .footer__socials .socials__title {
        font-size: 5px;
    }
    main footer .social {
        width: 30px;
        height: 30px;
    }
}
footer.main-page .socials__title {
    text-align: center;
    font-size: 9.624px;
}
footer.main-page .footer__socials .links .social {
    width: 30.075px;
    height: 30.075px;
    flex-shrink: 0;
    cursor: pointer;
}

@media (max-width: 1400px) {
    footer.main-page {
        gap: 100px !important;
    }
}
@media (max-width: 1200px) {
    section .card-holder article {
        flex-direction: column;
        max-width: 256px;
        width: 100%;
    }
}
@media (max-width: 1024px) {
    footer.main-page {
        flex-direction: column;
        gap: 22px !important;
    }
}
@media (max-width: 768px) {

    .footer__info
    {
        font-size: 10px;
    }
    a.btn
    {
        font-size: 12.68px;
        margin-top: 22px;
        padding: 5.35px 6.12px;
    }
    .hero__links a {
        font-size: 12.682px;
    }
    .menu .label {
        padding: 3.323px 7.976px;
        font-size: 13px;
    }
    .menu .menu-list a {
        font-size: 13px;
    }
    .lang {
        padding: 2.667px 5.333px 4px 5.333px;
    }
    .lang a {
        font-size: 10.667px;
    }
    .image-wrapper {
        height: 448px;
        width: 100%;
        position: relative;
    }
    section .content {
        width: 100%;
        margin: 0;
        left: 0;
        padding: 32px;
    }
    section .card-holder {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    main footer {
        width: 100%;
        left: 0;
    }

    section .content h1,
    section .content h2 {
        font-size: 20px;
    }
    section .content .subtitle,
    section .content .text-content {
        font-size: 10px;
    }

    .header-logos {
        height: 50px;
        position: absolute;
    }

    .hero__links a {
        font-size: 12.682px;
    }


    .hero__links .hero_section_link:nth-child(1){
        left: 100px;
        top: 192px;
    }
    .hero__links .hero_section_link:nth-child(2){
        left: auto;
        right: 100px;
        top: 321px;
    }
    .hero__links .hero_section_link:nth-child(3){
        left: 25%;
        top: 50vh;
    }
    .hero__links .hero_section_link:nth-child(4){
        left: auto;
        right: 150px;
        top: 60vh;
    }

    .image-wrapper {
        height: 448px;
        width: 100%;
        position: relative;
    }
    .img-item {
        flex-basis: 100%;
    }
    .img-content__track {
        gap: 16px;
    }
    section .content {
        width: calc(100% - 64px - 32px);
        margin: 0;
        left: 0;
        padding: 32px;
    }

    section .card-holder {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    main footer {
        width: 100%;
        left: 0;
    }

    section .content h1,
    section .content h2 {
        font-size: 20px;
    }
    section .content .subtitle,
    section .content .text-content {
        font-size: 10px;
    }


    .image-grid {
        grid-template-columns: 1fr;
    }

    .card-grid .card-item .card-item__content h3
    {
        font-size: 12.79px;
    }
    .card-grid .card-item .card-item__content a
    {
        font-size: 8.79px;
    }

    section .card-holder article .card-content h3
    {
        font-size: 16px;
    }

    section .card-holder article .card-content .publication
    {
        font-size: 12px;
    }
    section .card-holder article .card-content .card-text
    {
        font-size: 10px;
    }
    main footer .footer__socials
    {
        gap: 10px;
    }
    .links
    {
        gap: 10px;
    }
    .links .social
    {
        width: 20px;
        height: 20px;
    }
    .social a
    {
        padding: 3px;
    }
    main footer .social svg
    {
        width: 100%;
        height: 100%;
    }

}

@media (max-width: 425px) {
    .lang.mobile {
        display: flex;
        position: relative;
        top: 0;
        left: 0;
        width: max-content;
        height: max-content;
    }
    .not-mobile {
        display: none !important;
    }

    footer.main-page {
        padding: 14px 19px 14px 18px;
    }
    .mobile-footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .mobile-footer__top,
    .mobile-footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .mobile-footer__bottom {
        gap: 30px;
    }
    .mobile-footer__top .links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .mobile-footer__bottom .logos {
        height: 50px;
    }
    footer.main-page .mobile-footer__bottom .footer__info {
        font-size: 10px;
        gap: 5px;
    }
    main footer .footer__info {
        font-size: 8px;
    }
    main footer .footer__socials .socials__title {
        font-size: 5px;
    }
}

@media (max-width: 360px){
    .mobile-footer__bottom
    {
        flex-direction: column-reverse;
        margin-top: 30px;
    }
}

/* TipTap rich editor color spans */
span.color {
    color: var(--color);
}

/* Hide Yandex Metrica badge */
.ym-badge, .__ymDebuggerOpener  { display: none !important; }
