* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

body {
    background-color: #ECEEF7;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    color: #2c2f37;
    padding: 0 60px;
    position: relative;
    border-bottom: 1px solid rgba(94, 114, 145, 0.22);
    flex-wrap: nowrap; 
    min-width: 0;
}
.logo a{
    text-decoration: none;
     color: #2c2f37;
}
/* Левый блок с информацией о расстоянии */
.header-left {
    width: 33%;
    display: flex;
    flex-direction: column;
}

.distance-block {
    display: flex;
    flex-direction: column;
}

.distance-row h4 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #2c2f37;
}

.city-text {
    margin: 5px 0 0 28px;
    font-size: 14px;
    opacity: 0.7;
    color: #2c2f37;
    text-wrap: nowrap;
}

/* Центральный блок с навигацией */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.social-icons img {
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: brightness(0) invert(1);
}

.logo {
    font-family: "Montserrat Alternates";
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.02em;
    color: #2c2f37;
    margin-bottom: 10px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    align-items: center;
    display: flex;
    font-size: 13px;
    color: #737c8a;
    text-decoration: none;
    text-wrap: nowrap;
    font-weight: 500;
    gap: 10px;
}

.nav-menu a:hover {
    color: #2c2f37;
    transition: color 0.3s;
}

/* Правый блок с контактами */
.header-right {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.phone-info p {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
    color: #2c2f37;
}

.help-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-info p {
    margin: 0;
    font-size: 13px;
    color: #737c8a;
}

.help-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.help-icons a {
    color: #737c8a;
    display: flex;
    align-items: center;
}

.help-icons a:hover {
    color: #2c2f37;
    transition: color 0.3s;
}

.help-info p:hover {
    color: #2c2f37;
    transition: color 0.3s;
}

.phone-info img,
.help-icons img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.projects {
    margin: 40px 80px 0px 80px;
}

.logo-projects {
    gap: 32px;
    display: flex;
}

.projects-count {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.projects-count p {
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    color: #737C8A;
    opacity: 0.44;
}

.projects-count-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.projects-count-body h1 {
    font-weight: 600;
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -0.04em;
    color: #040506;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

.contact-btn-dark {
    flex-shrink: 0;
    width: 239px;
    height: 61px;
    background: #000000;
    border-radius: 64px;
    gap: 16px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.contact-btn-dark svg {
    fill: #ffffff;
}

.logo-projects .logo-container {
    display: flex;
    justify-content: flex-end;
    white-space: nowrap;
}

.projects-header {
    border-bottom: 1px solid rgba(94, 114, 145, 0.22);
    padding-bottom: 48px;
}

.call-me {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0px 48px 48px 48px;
    height: 298px;
    margin: 40px 80px 32px 80px;
    background-image: url(../../img/call-me.webp);
    border-radius: 32px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.call-me-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.call-me-body p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #C0C6D8;
}

.contact-row-mobile {
    display: none;
}

.call-me-body h3 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -0.04em;
    color: #F0F6FF;
}

.call-me-btn-light {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 189px;
    height: 61px;
    background: rgba(240, 246, 255, 0.08);
    border: 1.5px solid #F0F6FF;
    box-shadow: inset 0px -2px 16px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(2px);
    border-radius: 64px;
    gap: 16px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #F0F6FF;
    cursor: pointer;
}

.call-me-btn-light svg {
    fill: #ffffff;
}

.projects-list {
    margin: 0px 80px 0px 80px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.project-stage{

    padding-top: 24px;
}
.project-desc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
   padding-top: 9px;
}

.project-desc-row h3 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #1A1C1F;
}

.project-desc-row span {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #272A2E;
    opacity: 0.4;
}

.cost-btn {
    gap: 16px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #272A2E;
    background: none;
    box-sizing: border-box;
    width: 200px;
    height: 61px;
    border: 1.5px solid rgba(39, 42, 46, 0.5);
    border-radius: 64px;
    cursor: pointer;
}

.project-button {
    padding-top: 24px;
}

sup {
    font-size: 13px;
    margin-left: 2px;
}

.project {
    padding-bottom: 48px;
}

.project img {
    width: 100%;
    border-radius: 24px;
}
/* ==================== КОНТАКТНАЯ ФОРМА ==================== */
.contact-text {
    /* margin-top: 20px; */
    background-image: url(../../img/map2.webp);
    background-repeat: no-repeat;
}

.contact-text h1 {
    margin: 6px 0px 0px 50px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #040506;
    max-width: calc(100% - 160px);
}

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

.contact-row {
    display: flex;
    flex-direction: row;
    gap: 100px;
    flex-wrap: wrap;
}

.contact-row p {
    padding-top: 21px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #2C2F37;
}

.sec-desc span {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #262830;
    opacity: 0.4;
}

.contact-desc {
    display: flex;
    margin-right: 80px;
    flex-direction: column;
    justify-content: center;
}

.contact-row-mobile {
    display: none;
}
.details {
    /* min-height: 210vh; */
    padding-top: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #ECEEF7;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
/* ==================== FOOTER ==================== */
.footer {
    width: 100%;
    height: 100px;
    background-color: #ECEEF7;
    backdrop-filter: blur(10px);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__nav {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer__nav a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
      text-wrap: nowrap;
}

.footer__nav a svg {
    stroke: #000000;
}

.footer__nav a:hover {
    color: #555555;
}

.footer__help {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__help span {
    font-size: 13px;
    color: #000000;
}

.footer__help-icons {
    display: flex;
    gap: 15px;
}

.footer__help-icons svg {
    opacity: 0.7;
    filter: none;
}

.footer__help-icons svg path {
    fill: #000000;
}

.footer__help-icons a:hover svg {
    opacity: 1;
}
@media screen and (max-width: 1060px) {
.projects-count-body h1 {
        font-size: 42px;
        line-height: 42px;
    }
}
/* ==================== АДАПТИВ ДЛЯ ПЛАНШЕТОВ (768px - 1024px) ==================== */
@media screen and (max-width: 1024px) {
    .header {
        padding: 0 30px;
        height: 100px;
    }

    .header-left,
    .header-right {
        width: auto;
    }

    .header-center {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .projects {
        margin: 30px 40px 0px 40px;
    }

    .projects-count-body h1 {
        font-size: 42px;
        line-height: 42px;
    }

    .contact-btn-dark {
        width: 200px;
        height: 61px;
        font-size: 13px;
    }

    .call-me {
        margin: 30px 40px 32px 40px;
        padding: 0px 30px 30px 30px;
        height: 250px;
    }

    .projects-list {
        margin: 0px 40px 0px 40px;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-text h1 {
        margin: 40px 40px 0px 40px;
        font-size: 42px;
        line-height: 42px;
    }

    .contact-desc {
        margin: 0 40px;
    }

    .contact-row {
        gap: 60px;
        flex-wrap: wrap;
    }
}

/* ==================== АДАПТИВ ДЛЯ МОБИЛЬНЫХ (768px и меньше) ==================== */
@media screen and (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        gap: 0;
    }

    .contact-row span {
        display: none;
    }

    .contact-row-mobile {
        padding-top: 32px;
        display: block;
    }

    .contact-section {
        padding-bottom: 20px;
    }

    .header-left,
    .header-right,
    .nav-menu,
    .phone-info,
    .help-info,
    .distance-block {
        display: none !important;
    }

    .header-center {
        width: auto;
        margin: 0;
        order: 0;
        display: flex;
        justify-content: flex-start;
        flex: 1;
        flex-direction: row-reverse;
    }

    .logo-container {
        margin-bottom: 0;
        align-items: flex-start;
    }

    .social-icons {
        display: flex;
        justify-content: flex-start;
    }

    .logo {
        margin-bottom: 0;
        font-size: 16px;
        text-align: left;
    }

    .burger-menu {
        display: flex;
        justify-content: flex-end;
        margin-top: 0;
        margin-left: auto;
        flex-shrink: 0;
    }

    .burger-menu svg {
        width: 24px;
        height: 18px;
    }

    .burger-menu svg path {
        fill: #2C2F37;
    }

    .projects {
        margin: 20px 20px 0px 20px;
    }

    .projects-count-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .projects-count-body h1 {
        font-size: 36px;
        line-height: 36px;
    }

    .logo-projects .logo-container {
        display: none;
    }

    .logo-projects {
        gap: 0;
    }

    .contact-btn-dark {
        width: 200px !important;
        height: 61px !important;
        max-width: 200px;
        flex-shrink: 0;
        font-size: 14px;
    }

    .projects-header {
        padding-bottom: 32px;
        padding-left: 20px;
    }

    .call-me {
        margin: 20px 20px 24px 20px;
        padding: 0;
        height: 472px;
        background-image: url('../../img/callme-mobile.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 32px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .call-me-body {
        gap: 12px;
        max-width: 100%;
        padding: 0px 20px 30px 20px;
    }

    .call-me-btn-light {
        width: 160px;
        height: 54px;
        font-size: 13px;
        margin-left: 20px;
        margin-bottom: 30px;
    }

    .projects-list {
        margin: 0px 20px 0px 20px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project {
        padding-bottom: 32px;
    }

    .project img {
        width: 100%;
        border-radius: 24px;
    }

    .project-desc-row {
        padding-bottom: 16px;
        flex-wrap: wrap;
        padding-top: 9px;
    }

    .project-desc-row h3 {
        font-size: 20px;
        line-height: 20px;
    }

    .project-desc-row span {
        font-size: 20px;
        line-height: 20px;
    }

    .project-desc p {
        font-size: 14px;
        line-height: 1.4;
    }

    .project-desc p br {
        display: none;
    }

    .project-button {
        padding-top: 20px;
    }

    .cost-btn {
        width: 200px;
        height: 61px;
        font-size: 14px;
    }

    /* Контактная форма мобильная */
    .contact-form {
        display: block;
        position: relative;
        background-image: url('../../img/map2.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
        height: auto;
    }

    .contact-form::before {
        display: none;
    }

    .contact-text,
    .contact-desc {
        position: relative;
        z-index: 1;
        max-width: 100%;
        overflow-x: hidden;
    }

    .contact-text {
        background-image: none;
        min-height: auto;
        display: block;
        margin-bottom: 30px;
        width: 100%;
    }

    .contact-text h1 {
        margin: 0 20px 30px 20px;
        font-size: 28px;
        line-height: 32px;
        max-width: 100%;
        word-wrap: break-word;
        color: #040506;
    }

    .contact-desc {
        margin: 0 20px;
        max-width: calc(100% - 40px);
        overflow-x: hidden;
    }

    .contact-row {
        flex-direction: column;
        gap: 25px;
        padding-bottom: 25px !important;
        width: 100%;
        max-width: 100%;
    }

    .contact-row p {
        padding-top: 10px;
        flex-wrap: wrap;
        font-size: 14px;
        line-height: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        word-break: break-word;
        max-width: 100%;
    }

    .contact-row p svg {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    .contact-row span {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }

    .contact-row span br {
        display: none;
    }

    .sec-desc {
        width: 100%;
        max-width: 100%;
    }

    .sec-desc span {
        font-size: 22px;
        line-height: 22px;
        display: block;
        margin-bottom: 5px;
    }

    .contact-row[style*="border-bottom"] {
        border-bottom: 1px solid rgba(94, 114, 145, 0.22) !important;
        padding-bottom: 25px !important;
        width: 100%;
    }

    .contact-row span {
        font-size: 15px;
        line-height: 1.5;
        color: #2C2F37;
        opacity: 0.9;
        display: none;
        width: 100%;
    }

    .contact-row:last-child {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding-top: 25px !important;
        padding-bottom: 0 !important;
        flex-wrap: nowrap;
        gap: 15px;
        width: 100%;
    }

    .contact-row:last-child .projects-block-3__btn--primary {
        width: auto !important;
        min-width: 200px;
        height: 61px !important;
        padding: 0 25px;
        white-space: nowrap;
    }

    .contact-row:last-child .projects-block-3__btn--primary p {
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-row:last-child .help-icons {
        display: flex;
        gap: 15px;
        flex-shrink: 0;
    }

    .contact-row:last-child .help-icons a svg {
        width: 28px;
        height: 28px;
    }

    .contact-row:last-child .help-icons a svg path {
        fill: #2C2F37;
    }

    .contact-row-mobile {
        padding-top: 32px;
        display: block;
        width: 100%;
    }

    .contact-section {
        padding-bottom: 20px;
        width: 100%;
    }

    .footer {
        display: none !important;
        height: auto;
        min-height: 80px;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background-color: #ffffff;
        border-top: 1px solid rgba(94, 114, 145, 0.22);
    }

    .footer__nav {
        display: flex;
        flex-direction: row;
        gap: 20px;
        position: static;
        transform: none;
        margin: 0;
    }

    .footer__nav a {
        color: #000000;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
      
    }

    .footer__help {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .footer__help span {
        font-size: 13px;
        color: #000000;
        white-space: nowrap;
    }

    .footer__help-icons {
        display: flex;
        gap: 12px;
    }

    .footer__help-icons svg {
        width: 20px;
        height: 20px;
    }

    .footer__help-icons svg path {
        fill: #000000;
    }

    .footer hr {
        display: none;
    }
}

/* ==================== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ==================== */
@media screen and (max-width: 640px) {
    .footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-row:last-child {
        flex-wrap: wrap;
    }
    
    .contact-row:last-child .contact-btn-dark {
        width: 233px !important;
    }
}

@media screen and (max-width: 480px) {
    .projects-count-body h1 {
        font-size: 32px;
        line-height: 32px;
    }

  
    .contact-text h1 {
        font-size: 24px;
        line-height: 28px;
        margin: 0 15px 20px 15px;
    }

    .contact-desc {
        margin: 0 15px;
    }

    .contact-row p {
        font-size: 13px;
        gap: 8px;
    }

    .sec-desc span {
        font-size: 20px;
        line-height: 20px;
    }

    .contact-row:last-child {
        flex-wrap: wrap;
        gap: 15px;
    }

    .contact-row:last-child .projects-block-3__btn--primary {
        width: 50% !important;
        min-width: 50%;
        justify-content: center;
    }

    .contact-row:last-child .help-icons {
        justify-content: center;
    }
    
    .project-button {
        display: flex;
        justify-content: flex-start;
    }
    
    .cost-btn {
        width: 200px;
    }
}

/* ==================== БУРГЕР-МЕНЮ ==================== */
.burger-menu {
    display: none;
}

@media screen and (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
}

/* Исправление для блока "logo-projects" - скрываем лишний логотип */
.logo-projects .logo-container {
    display: flex;
}

@media screen and (max-width: 768px) {
    .logo-projects .logo-container {
        display: none !important;
    }
}

/* Исправление для кнопок - фиксированные размеры */
.cost-btn,
.contact-btn-dark,
.call-me-btn-light,
.projects-block-3__btn--primary {
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.cost-btn {
    width: 200px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    color: #272A2E;
    background: none;
    border: 1.5px solid rgba(39, 42, 46, 0.5);
    border-radius: 64px;
}

.contact-btn-dark {
    width: 233px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #000000;
    border-radius: 64px;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    color: #ffffff;
    border: none;
}

@media screen and (max-width: 768px) {
    .contact-btn-dark {
        width: 233px !important;
    }
}

/* Исправление для гридов */
.projects-list {
    grid-auto-rows: minmax(auto, auto);
}

/* Исправление для изображений */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Исправление для текста в проектах */
.project-desc p {
    word-wrap: break-word;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: #2C2F37;
}

/* Стили для модального окна (фото на весь экран) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Стили для галлереи проектов (только для ПК) */
@media screen and (min-width: 769px) {
    .project {
        position: relative;
    }
    
    .project .project-image-container {
        position: relative;
        width: 100%;
        border-radius: 24px;
        overflow: hidden;
        cursor: pointer;
        background-color: #2C2F37;
    }

    .project .main-project-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .project .thumbnail-list {
        position: absolute;
        bottom: 16px;
        left: 16px;
        right: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        z-index: 10;
        max-width: calc(100% - 32px);
        pointer-events: auto;
    }

    .project .thumbnail {
        width: 41px;
        height: 34px;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        opacity: 0.8;
        flex-shrink: 0;
        object-fit: cover;
        object-position: center;
        display: block;
        background-color: #2C2F37;
        pointer-events: auto;
    }

    .project .thumbnail:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    .project .thumbnail.active {
        border-color: #ffffff;
        opacity: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Для планшетов - уменьшаем размер миниатюр */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .project .thumbnail {
        width: 50px;
        height: 40px;
    }
}

/* На мобильных устройствах скрываем миниатюры */
@media screen and (max-width: 768px) {
      .project .thumbnail {
        width: 50px;
        height: 40px;
    }
   
}html {
scroll-behavior: smooth;
}/* Стили для мобильной галереи */
/* Стили для мобильной галереи (как на ПК - миниатюры поверх изображения) */
@media (max-width: 768px) {
    .project {
        position: relative;
    }
    
    .project .project-image-container {
        position: relative;
        width: 100%;
        border-radius: 24px;
        overflow: hidden;
        cursor: pointer;
        background-color: #2C2F37;
    }

    .project .main-project-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .project .thumbnail-list {
        position: absolute;
        bottom: 16px;
        left: 16px;
        right: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        z-index: 10;
        max-width: calc(100% - 32px);
        pointer-events: auto;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .project .thumbnail {
        width: 50px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        opacity: 0.8;
        flex-shrink: 0;
        object-fit: cover;
        object-position: center;
        display: block;
        background-color: #2C2F37;
        pointer-events: auto;
    }

    .project .thumbnail:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    .project .thumbnail.active {
        border-color: #ffffff;
        opacity: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Для очень маленьких экранов (меньше 480px) - чуть уменьшаем миниатюры */
@media (max-width: 480px) {
    .project .thumbnail {
        width: 45px;
        height: 36px;
    }
}
/* =========================================================
   Доработка модального просмотра проектов: стрелки + миниатюры
   ========================================================= */
body.project-gallery-modal-open {
    overflow: hidden;
}

.project-gallery-modal.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 32px 72px;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    cursor: default;
    align-items: center;
    justify-content: center;
}

.project-gallery-modal.modal.active {
    display: flex;
}

.project-gallery-modal__inner {
    position: relative;
    width: min(1180px, 100%);
    height: min(86vh, 820px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.project-gallery-modal__stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    touch-action: pan-y;
}

.project-gallery-modal .project-gallery-modal__image,
.project-gallery-modal #modalImage {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    transition: transform 0.22s ease;
}

.project-gallery-modal .project-gallery-modal__image.is-zoomed,
.project-gallery-modal #modalImage.is-zoomed {
    cursor: zoom-out;
}

.project-gallery-modal .modal-close {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 42px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    z-index: 10002;
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.project-gallery-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.04);
}

.project-gallery-modal__arrow {
    position: absolute;
    top: calc(50% - 44px);
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.project-gallery-modal__arrow:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.48);
}

.project-gallery-modal__arrow--prev {
    left: -84px;
}

.project-gallery-modal__arrow--next {
    right: -84px;
}

.project-gallery-modal__arrow span {
    width: 15px;
    height: 15px;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    display: block;
}

.project-gallery-modal__arrow--prev span {
    transform: translateX(3px) rotate(-45deg);
}

.project-gallery-modal__arrow--next span {
    transform: translateX(-3px) rotate(135deg);
}

.project-gallery-modal__thumbs {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 4px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.project-gallery-modal__thumb {
    width: 74px;
    height: 56px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.68;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-gallery-modal__thumb:hover,
.project-gallery-modal__thumb.is-active {
    opacity: 1;
    border-color: #ffffff;
}

.project-gallery-modal__thumb.is-active {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.project-gallery-modal__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project .main-project-image {
    cursor: zoom-in;
}

.project .thumbnail-list {
    scrollbar-width: thin;
}

@media (max-width: 1360px) {
    .project-gallery-modal.modal {
        padding-left: 32px;
        padding-right: 32px;
    }

    .project-gallery-modal__arrow--prev {
        left: 16px;
    }

    .project-gallery-modal__arrow--next {
        right: 16px;
    }
}

@media (max-width: 768px) {
    .project-gallery-modal.modal {
        padding: 56px 12px 18px;
        align-items: stretch;
    }

    .project-gallery-modal__inner {
        width: 100%;
        height: 100%;
        gap: 12px;
    }

    .project-gallery-modal__stage {
        border-radius: 14px;
    }

    .project-gallery-modal .project-gallery-modal__image,
    .project-gallery-modal #modalImage {
        border-radius: 14px;
        max-height: 100%;
    }

    .project-gallery-modal .modal-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 36px;
    }

    .project-gallery-modal__arrow {
        top: calc(50% - 52px);
        width: 46px;
        height: 46px;
        background: rgba(0, 0, 0, 0.42);
    }

    .project-gallery-modal__arrow--prev {
        left: 10px;
    }

    .project-gallery-modal__arrow--next {
        right: 10px;
    }

    .project-gallery-modal__arrow span {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .project-gallery-modal__thumbs {
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 4px;
    }

    .project-gallery-modal__thumb {
        width: 62px;
        height: 48px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .project-gallery-modal__thumb {
        width: 56px;
        height: 43px;
    }

    .project-gallery-modal__arrow {
        width: 42px;
        height: 42px;
    }
}


/* ===== Inline style 1 moved from projects.html ===== */
/* ==================== БУРГЕР-МЕНЮ ==================== */

        /* Кнопка бургера */
        .hero__burger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 101;
            position: relative;
        }

        .hero__burger span {
            width: 100%;
            height: 3px;
            background-color: #F0F6FF;
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        /* Анимация бургера в крестик (как в hero-слайдере) */
        .hero__burger.active span:nth-child(1) {
            width: 100% !important;
            transform: translateY(9px) rotate(135deg);
        }

        .hero__burger.active span:nth-child(2) {
            transform: translateX(-20px);
            opacity: 0;
        }

        .hero__burger.active span:nth-child(3) {
            width: 100% !important;
            margin-left: 0;
            transform: translateY(-9px) rotate(-135deg);
        }

        /* Мобильное меню */
        .hero__mobile-menu {
            position: fixed;
            right: -100%;
            top: 70px;
            width: 80%;
            max-width: 400px;
            backdrop-filter: blur(10px);
            padding: 40px 30px;
            z-index: 100;
            transition: right 0.3s;
            display: flex;
            border-radius: 0 0 0 25px;
            flex-direction: column;
        }

        .hero__mobile-menu.active {
            right: 0;
                gap: 30px;
        }

        /* Навигация в меню */
        .hero__mobile-nav {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 50px;
        }

        .hero__mobile-nav a {
            color: #F0F6FF;
            text-decoration: none;

            font-weight: 500;
            padding: 12px 0;
            /* border-bottom: 1px solid rgba(240, 246, 255, 0.1); */
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: block;
        }

        .hero__mobile-nav a:hover {
            opacity: 0.7;
            transform: translateX(5px);
        }

        /* Контакты в меню */
        .hero__mobile-contacts {
            border-top: 1px solid rgba(240, 246, 255, 0.2);
            padding-top: 30px;
            margin-top: auto;
        }

        .hero__mobile-phone {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 25px;
        }

        .hero__mobile-phone a {
            color: #F0F6FF;
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
            transition: opacity 0.3s ease;
        }

        .hero__mobile-phone a:hover {
            opacity: 0.7;
        }

        .hero__mobile-social {
            display: flex;
            gap: 20px;
        }

        .hero__mobile-social a {
            display: inline-flex;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .hero__mobile-social a:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }

        .hero__mobile-social svg {
            width: 32px;
            height: 32px;
        }

        /* Оверлей (темный фон при открытом меню) */
        .hero__menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 99;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .hero__menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Показываем бургер только на мобильных устройствах */
        @media (max-width: 768px) {
            .hero__burger {
                display: flex;
            }
        }

        /* Адаптация для маленьких экранов */
        @media (max-width: 480px) {
            .hero__mobile-menu {
                width: 80%;
                gap: 30px;
                /* padding: 90px 25px 30px; */
            }

            .hero__mobile-nav a {
                font-size: 24px;
                padding: 10px 0;
            }

            .hero__mobile-phone a {
                font-size: 16px;
            }

            .hero__mobile-social svg {
                width: 28px;
                height: 28px;
            }
        }

        /* Для экранов с высотой меньше 600px */
        @media (max-height: 600px) {
            .hero__mobile-menu {
                padding: 80px 25px 20px;
            }

            .hero__mobile-nav {
                gap: 15px;
                margin-bottom: 30px;
            }

            .hero__mobile-nav a {
                font-size: 22px;
                padding: 8px 0;
            }
        }

        /* Стили для оригинального бургер-меню в projects.html */
        .burger-menu {
            display: none;
            cursor: pointer;
            z-index: 1001;
            position: relative;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            background: transparent;
            border: none;
            padding: 0;
        }

        .burger-menu span {
            display: block;
            height: 3px;
            background-color: #2C2F37;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .burger-menu span:nth-child(1) {
            width: 50%;
        }

        .burger-menu span:nth-child(2) {
            width: 100%;
        }

        .burger-menu span:nth-child(3) {
            width: 50%;
            margin-left: auto;
        }

        /* Анимация оригинального бургера (крестик с вылетом) */
        .burger-menu.active span:nth-child(1) {
            width: 100% !important;
            transform: translateY(9px) rotate(135deg);
        }

        .burger-menu.active span:nth-child(2) {
            transform: translateX(-20px);
            opacity: 0;
        }

        .burger-menu.active span:nth-child(3) {
            width: 100% !important;
            margin-left: 0;
            transform: translateY(-9px) rotate(-135deg);
        }

        @media (max-width: 768px) {
            .burger-menu {
                display: flex;
            }

            .nav-menu {
                display: none;
            }
        }

        /* Стили для модального окна */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            /* background-color: rgba(0, 0, 0, 0.9); */
            cursor: pointer;
        }

        .modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 2001;
        }

        .modal-close:hover {
            color: #bbb;
        }

        #modalImage {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

/* ===== navigation update: added page "О союзе" ===== */
@media (min-width: 821px) {
    .nav-menu, .footer__nav { gap: 28px; }
}
