/* ================================================
   Дизайн Будущего — Landing Page Styles
   Mobile-First Adaptive Design
   ================================================ */

/* CSS Variables */
:root {
    --color-bg: #ffffff;
    --color-text: #1d1321;
    --color-accent: #2bf996;
    --color-footer-bg: #1d1321;
    --color-footer-text: #ffffff;
    --font-main:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        sans-serif;
    --header-height: 70px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================================================
   Header & Navigation
   ================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20vw;
}

.header__logo img {
    width: 120px;
    height: auto;
}

.header__tagline {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: var(--color-text);
    opacity: 0.8;
}

.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 110;
}

.header__burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.header__nav {
    width: 100%;
    display: none;
}

.header__nav.active {
    display: block;
}

.header__menu {
    list-style: none;
    text-align: right;
    padding: 10px 20px 20px;
}

.header__menu li {
    margin-bottom: 12px;
}

.header__menu a {
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.header__menu a:hover {
    color: var(--color-accent);
}

/* ================================================
   Mission Section
   ================================================ */
.mission {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: var(--color-bg);
}

.mission__container {
    max-width: 800px;
    margin: 0 auto;
}

.mission__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.mission__text {
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.85;
}

/* ================================================
   Banner Section
   ================================================ */
.banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner__overlay {
    position: relative;
    z-index: 2;
    background: rgba(29, 19, 33, 0.36);
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner__subtitle {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
    max-width: 90%;
}

/* ================================================
   Projects Section
   ================================================ */
.projects {
    padding: 60px 20px;
    background-color: var(--color-bg);
}

.projects__container {
    max-width: 1000px;
    margin: 0 auto;
}

.projects__title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-text);
}

.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    min-height: 600px;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(29, 19, 33, 0.95), transparent);
    color: #fff;
}

.project-card__overlay h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--color-accent);
}

.project-card__overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ================================================
   Documents Section
   ================================================ */
.documents {
    padding: 60px 20px;
    background: rgba(29, 19, 33, 0.36);
}

.documents__container {
    max-width: 1000px;
    min-height: 540px;
    margin: 0 auto;
}

.documents__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    margin-top: 64px;
    color: var(--color-accent);
}

.documents__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.document-card {
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-3px);
}

.document-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 20px;
    background: #fafafa;
}

.document-card h3 {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 15px 8px;
    color: var(--color-text);
}

.document-card p {
    font-size: 13px;
    padding: 0 15px 15px;
    color: var(--color-text);
    opacity: 0.75;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px 20px 20px;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer__column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.footer__column ul {
    list-style: none;
}

.footer__column ul li {
    margin-bottom: 10px;
}

.footer__column ul a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__column ul a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer__column p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

.footer__map {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.footer__map iframe {
    display: block;
}

.footer__phone {
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.footer__phone:hover {
    color: var(--color-accent);
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15%;
    transition: all 0.3s ease;
}

.footer__social svg {
    width: 20px;
    height: 20px;
}

.footer__social:hover {
    background: var(--color-accent);
    color: var(--color-footer-bg);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    font-size: 12px;
    opacity: 0.6;
}

/* ================================================
   Modal
   ================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 19, 33, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--color-bg);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--color-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal__close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.modal__image {
    margin-bottom: 20px;
}

.modal__image img {
    width: 100%;
    border-radius: 8px;
}

.modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.modal__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

/* ================================================
   Desktop Styles (768px+)
   ================================================ */
@media (min-width: 768px) {
    .header__container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0px 40px;
    }

    .header__logo {
        flex-direction: row;
        align-items: center;
    }

    .header__logo img {
        width: 120px;
        margin-right: 15px;
    }

    .header__tagline {
        font-size: 18px;
        text-align: left;
    }

    .header__burger {
        display: none;
    }

    .header__nav {
        display: block;
        width: auto;
    }

    .header__menu {
        display: flex;
        gap: 24px;
        padding: 0;
    }

    .header__menu li {
        margin-bottom: 0;
    }

    .mission {
        padding: 80px 40px 60px;
    }

    .mission__title {
        font-size: 48px;
    }

    .mission__text {
        font-size: 18px;
    }
    .static-box {
        position: fixed; /* Закрепляем элемент */
        top: 0px; /* Отступ сверху */
        left: 0px; /* Отступ справа */
        width: 100vw;
        height: 100vh;
        background-image: url("imgs/banner.webp");
        z-index: -9999; /* Поверх всех элементов */
    }

    .banner {
        min-height: 600px;
        background: none;
    }

    .banner__overlay {
        min-height: 600px;
        padding: 60px;
    }

    .banner__title {
        font-size: 56px;
    }

    .banner__subtitle {
        font-size: 18px;
    }

    .projects {
        padding: 80px 40px;
    }

    .projects__title {
        font-size: 36px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card__overlay h3 {
        font-size: 24px;
    }

    .project-card__overlay p {
        font-size: 16px;
    }

    .documents {
        padding: 80px 40px;
    }

    .documents__title {
        font-size: 64px;
    }

    .documents__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .document-card h3 {
        font-size: 15px;
    }

    .footer {
        padding: 60px 40px 30px;
    }

    .footer__container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__column {
        flex: 1;
    }

    .footer__column:last-child {
        text-align: right;
    }

    .footer__socials {
        justify-content: flex-end;
    }

    .modal__content {
        padding: 30px;
    }
}

/* ================================================
   Large Desktop Styles (1024px+)
   ================================================ */
@media (min-width: 1024px) {
    .header__container {
        padding: 12px 60px;
    }

    .header__logo img {
        width: 120px;
    }

    .header__tagline {
        font-size: 20px;
    }

    .header__menu {
        gap: 32px;
    }

    .header__menu a {
        font-size: 18px;
    }

    .banner__title {
        font-size: 64px;
    }

    .banner__subtitle {
        font-size: 20px;
    }

    .footer__phone {
        font-size: 20px;
    }
}
