/* ==========================================================
   NTMC v2 - style.css
   Combined stylesheet (Parts 1-4)
   ========================================================== */



/* =================== PART 1 =================== */

/* ==========================================================================
   NTMC v2 - style.css (Part 1)
   Reset • Base • Typography • Layout • Buttons • Header
   ========================================================================== */

/* RESET */

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

html{
    scroll-behavior:smooth;
}

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

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

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

button{
    font:inherit;
    border:none;
    background:none;
    cursor:pointer;
}

ul{
    list-style:none;
}

/* TYPOGRAPHY */

h1,h2,h3{
    font-weight:var(--fw-bold);
    line-height:1.1;
}

h1{font-size:var(--font-size-h1);}
h2{font-size:var(--font-size-h2);}
h3{font-size:var(--font-size-h3);}

p{
    color:var(--color-text-secondary);
}

/* LAYOUT */

.container{
    width:min(var(--container-width),calc(100% - 2 * var(--container-padding)));
    margin-inline:auto;
}

section{
    padding:var(--section-space) 0;
}

/* BUTTONS */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.75rem;
    padding:16px 34px;
    border-radius:var(--radius-round);
    font-weight:var(--fw-semibold);
    transition:var(--transition);
}

.btn-primary{
    background:var(--gradient-primary);
    color:#fff;
    box-shadow:var(--shadow-glow);
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-outline{
    border:1px solid var(--color-border);
    color:var(--color-white);
}

.btn-outline:hover{
    background:rgba(255,255,255,.06);
}

/* HEADER */

.header{
    position:fixed;
    inset:0 0 auto 0;
    height:var(--header-height);
    z-index:var(--z-header);
    transition:var(--transition);
}

.header.scrolled{
    background:rgba(7,19,29,.75);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.header .container{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:1.5rem;
    font-weight:var(--fw-black);
    letter-spacing:.04em;
}

.nav{
    display:flex;
    gap:2rem;
    align-items:center;
}

.nav a{
    color:var(--color-text-secondary);
    transition:var(--transition-fast);
    position:relative;
}

.nav a:hover{
    color:var(--color-white);
}

.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:var(--color-primary);
    transition:var(--transition);
}

.nav a:hover::after{
    width:100%;
}


/* =================== PART 2 =================== */

/* ==========================================================================
   NTMC v2 - style.css (Part 2)
   Hero Section
   ========================================================================== */

.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    overflow:hidden;
    isolation:isolate;
    background:
        linear-gradient(
            rgba(7,19,29,.78),
            rgba(7,19,29,.92)
        ),
        url("../images/hero.webp") center/cover no-repeat;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%,
        rgba(0,183,255,.18),
        transparent 45%),
        radial-gradient(circle at 80% 70%,
        rgba(0,183,255,.10),
        transparent 35%);
    animation:heroGlow 8s ease-in-out infinite alternate;
    z-index:-1;
}

.hero__content{
    max-width:760px;
    padding-top:120px;
}

.hero__subtitle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    margin-bottom:28px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    color:var(--color-primary);
    font-weight:600;
}

.hero__title{
    margin-bottom:28px;
    font-size:var(--font-size-h1);
    line-height:.95;
    letter-spacing:-2px;
}

.hero__title span{
    color:var(--color-primary);
}

.hero__text{
    max-width:620px;
    margin-bottom:48px;
    font-size:1.2rem;
    color:var(--color-text-secondary);
}
.hero__details-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:-10px;
    margin-bottom:20px;
    padding:10px 0;
    border:none;
    background:none;
    color:var(--color-primary);
    font-family:inherit;
    font-size:1rem;
    font-weight:700;
    cursor:pointer;
    transition:opacity .3s ease;
}

.hero__details-btn:hover{
    opacity:.75;
}

.hero__details-btn span{
    display:inline-block;
    transition:transform .3s ease;
}

.hero__details-btn.active span{
    transform:rotate(180deg);
}

.hero__details{
    max-width:620px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    margin:0;
    font-size:1.05rem;
    line-height:1.6;
    color:var(--color-text-secondary);
    transition:
        max-height .5s ease,
        opacity .4s ease,
        margin .4s ease;
}

.hero__details.active{
    max-height:600px;
    opacity:1;
    margin-bottom:30px;
}

.hero__details p{
    margin:0 0 14px;
    color:var(--color-text-secondary);
}

.hero__details strong{
    color:var(--color-white);
}

.hero__details ul{
    list-style:disc;
    padding-left:24px;
    margin:0 0 16px;
}

.hero__details li{
    margin-bottom:6px;
}
.hero__buttons{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}

.hero__scroll{
    position:absolute;
    left:50%;
    bottom:40px;
    transform:translateX(-50%);
    width:42px;
    height:72px;
    border-radius:999px;
    border:2px solid rgba(255,255,255,.2);
    display:flex;
    justify-content:center;
    padding-top:12px;
}

.hero__scroll::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--color-primary);
    animation:scrollDown 2s infinite;
}

.hero__grid{
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size:70px 70px;
    mask-image:linear-gradient(to bottom,
        rgba(0,0,0,.25),
        rgba(0,0,0,0));
    opacity:.35;
    pointer-events:none;
}

@keyframes scrollDown{

    0%{
        transform:translateY(0);
        opacity:0;
    }

    30%{
        opacity:1;
    }

    100%{
        transform:translateY(28px);
        opacity:0;
    }

}

@keyframes heroGlow{

    from{
        transform:scale(1);
        opacity:.8;
    }

    to{
        transform:scale(1.15);
        opacity:1;
    }

}


/* =================== PART 3 =================== */

/* ==========================================================================
   NTMC v2 - style.css (Part 3)
   Directions • Features • Project Banner • Statistics
   ========================================================================== */

/* =======================
   DIRECTIONS
   ======================= */

.directions{
    background:var(--color-bg-alt);
}

.section-title{
    text-align:center;
    margin-bottom:18px;
}

.section-text{
    max-width:760px;
    margin:0 auto 60px;
    text-align:center;
}

.directions__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.direction-card{
    position:relative;
    overflow:hidden;
    min-height:420px;
    border-radius:var(--radius-lg);
    background:var(--color-surface);
    box-shadow:var(--shadow);
    transition:transform var(--transition), box-shadow var(--transition);
}

.direction-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg), var(--shadow-glow);
}

.direction-card__image{
    position:absolute;
    inset:0;
}

.direction-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .8s ease;
}

.direction-card:hover .direction-card__image img{
    transform:scale(1.08);
}

.direction-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
        rgba(7,19,29,.96) 10%,
        rgba(7,19,29,.55) 45%,
        rgba(7,19,29,.08) 100%);
}

.direction-card__content{
    position:absolute;
    left:32px;
    right:32px;
    bottom:32px;
    z-index:2;
}

.direction-card h3{
    margin-bottom:12px;
}

.direction-card p{
    margin-bottom:24px;
}

.direction-card a{
    display:inline-flex;
    gap:10px;
    align-items:center;
    color:var(--color-primary);
    font-weight:600;
}

/* =======================
   FEATURES
   ======================= */

.features__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}

.feature-card{
    padding:36px;
    border:1px solid var(--color-border);
    border-radius:var(--radius);
    background:rgba(255,255,255,.03);
    backdrop-filter:blur(10px);
    transition:all var(--transition);
}

.feature-card:hover{
    transform:translateY(-8px);
    border-color:rgba(0,183,255,.35);
    background:rgba(255,255,255,.05);
}

.feature-icon{
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    margin-bottom:24px;
    border-radius:20px;
    background:var(--gradient-primary);
    box-shadow:var(--shadow-glow);
    font-size:28px;
}

/* =======================
   PROJECT BANNER
   ======================= */

.project-banner{
    position:relative;
    overflow:hidden;
    border-radius:36px;
    padding:90px;
    background:
      linear-gradient(rgba(7,19,29,.82),rgba(7,19,29,.82)),
      url("../images/projects/bas.webp") center/cover;
}

.project-banner h2{
    max-width:700px;
    margin-bottom:20px;
}

.project-banner p{
    max-width:650px;
    margin-bottom:36px;
    font-size:1.1rem;
}

/* =======================
   STATS
   ======================= */

.stats{
    background:var(--color-bg-alt);
}

.stats__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:28px;
}

.stat-card{
    padding:48px 30px;
    text-align:center;
    border-radius:var(--radius);
    background:var(--color-surface);
    transition:var(--transition);
}

.stat-card:hover{
    transform:translateY(-8px);
}

.stat-card__number{
    font-size:3.4rem;
    font-weight:800;
    color:var(--color-primary);
    margin-bottom:12px;
}

.stat-card__text{
    color:var(--color-text-secondary);
}


/* =================== PART 4 =================== */

/* ==========================================================================
   NTMC v2 - style.css (Part 4)
   News • Partners • Contacts • Footer • Utilities
   ========================================================================== */

/* NEWS */

.news{
    background:var(--color-bg);
}

.news__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.news-card{
    overflow:hidden;
    border-radius:var(--radius-lg);
    background:var(--color-surface);
    transition:all var(--transition);
    box-shadow:var(--shadow);
}

.news-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
}

.news-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.news-card__content{
    padding:30px;
}

.news-card__date{
    display:inline-block;
    margin-bottom:14px;
    color:var(--color-primary);
    font-size:.9rem;
    font-weight:600;
}

.news-card h3{
    margin-bottom:16px;
}

.news-card p{
    margin-bottom:24px;
}

/* PARTNERS */

.partners{
    background:var(--color-bg-alt);
}

.partners__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:24px;
    align-items:center;
}

.partner-card{
    display:flex;
    align-items:center;
    justify-content:center;
    height:120px;
    border-radius:var(--radius);
    background:rgba(255,255,255,.03);
    border:1px solid var(--color-border);
    transition:var(--transition);
}

.partner-card:hover{
    transform:translateY(-6px);
    border-color:rgba(0,183,255,.35);
}

/* CONTACTS */

.contacts__wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:start;
}

.contact-card{
    padding:36px;
    border-radius:var(--radius);
    background:var(--color-surface);
}

.contact-item{
    margin-bottom:22px;
}

.contact-item strong{
    display:block;
    margin-bottom:8px;
    color:var(--color-white);
}

/* FOOTER */

.footer{
    padding:70px 0 35px;
    background:#050D15;
    border-top:1px solid var(--color-border);
}

.footer__top{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    margin-bottom:60px;
}

.footer h4{
    margin-bottom:20px;
}

.footer ul{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.footer a{
    color:var(--color-text-secondary);
    transition:var(--transition-fast);
}

.footer a:hover{
    color:var(--color-primary);
}

.footer__bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:30px;
    border-top:1px solid var(--color-border);
    color:var(--color-text-muted);
    font-size:.9rem;
}

/* UTILITIES */

.text-center{
    text-align:center;
}

.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}
.mt-4{margin-top:40px;}

.fade-up{
    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;
}

.fade-up.show{
    opacity:1;
    transform:none;
}

@media(max-width:992px){

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

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

}

@media(max-width:640px){

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

    .footer__bottom{
        flex-direction:column;
        gap:12px;
        text-align:center;
    }

}


/* =======================
   DETAILS MODAL
======================== */
body.modal-open{overflow:hidden}
.details-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;visibility:hidden;opacity:0;transition:opacity .3s ease,visibility .3s ease}
.details-modal.is-open{visibility:visible;opacity:1}
.details-modal__backdrop{position:absolute;inset:0;background:rgba(2,8,14,.78);backdrop-filter:blur(8px)}
.details-modal__dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(80vh,760px);overflow:auto;padding:44px;border:1px solid var(--color-border);border-radius:28px;background:linear-gradient(145deg,#102033,#091521);box-shadow:0 30px 100px rgba(0,0,0,.5);transform:translateY(30px) scale(.97);transition:transform .35s ease;outline:none}
.details-modal.is-open .details-modal__dialog{transform:translateY(0) scale(1)}
.details-modal__close{position:absolute;top:16px;right:18px;width:42px;height:42px;border:1px solid var(--color-border);border-radius:50%;background:rgba(255,255,255,.05);color:#fff;font-size:28px;line-height:1;cursor:pointer;transition:.25s}
.details-modal__close:hover{background:rgba(0,183,255,.2);transform:rotate(90deg)}
.details-modal__tag{margin-bottom:14px;color:var(--color-primary);font-size:.8rem;font-weight:800;letter-spacing:.12em}
.details-modal__dialog h2{margin:0 40px 24px 0;font-size:2rem}
.details-modal__body{color:var(--color-text-secondary);font-size:1.05rem;line-height:1.8}
.details-modal__body p{margin:0 0 18px}
.details-placeholder{padding:16px 18px;border-left:3px solid var(--color-primary);background:rgba(0,183,255,.06);color:var(--color-text-muted)}
@media(max-width:640px){.details-modal{padding:12px}.details-modal__dialog{padding:32px 24px;border-radius:22px}.details-modal__dialog h2{font-size:1.6rem}}



/* =======================
   PROJECTS — CARD GRID
   ======================= */

.projects{
    background:var(--color-bg);
    padding:var(--section-space) 0;
}

.projects .container{
    width:min(1100px, calc(100% - 40px));
}

.section-header{
    text-align:center;
    margin-bottom:42px;
}

.section-header .section-tag{
    display:inline-flex;
    align-items:center;
    padding:7px 14px;
    margin-bottom:12px;
    border-radius:999px;
    background:rgba(0,183,255,.10);
    border:1px solid rgba(0,183,255,.18);
    color:var(--color-primary);
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.10em;
}

.section-header h2{
    margin:0 0 8px;
    font-size:clamp(2rem,4vw,2.8rem);
}

.section-header p{
    margin:0 auto;
    color:var(--color-text-secondary);
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:24px;
    align-items:stretch;
}

.project-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:365px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    border-radius:24px;
    background:#102338;
    border:1px solid rgba(255,255,255,.035);
    box-shadow:0 18px 45px rgba(0,0,0,.16);
    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}

.project-card:hover{
    transform:translateY(-8px);
    border-color:rgba(0,183,255,.18);
    box-shadow:
        0 26px 60px rgba(0,0,0,.28),
        0 0 34px rgba(0,183,255,.08);
}

.project-card__image{
    position:relative;
    height:185px;
    flex:none;
    overflow:hidden;
    background:#0b1b2c;
}

.project-card__image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(7,19,29,0) 45%,
        rgba(7,19,29,.35) 100%
    );
}

.project-card__image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .7s ease;
}

.project-card:hover .project-card__image img{
    transform:scale(1.06);
}

.project-card__content{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    flex:1;
    padding:22px 24px 24px;
}

.project-card__label{
    display:inline-flex;
    align-self:flex-start;
    padding:6px 11px;
    margin-bottom:12px;
    border-radius:999px;
    background:rgba(0,183,255,.10);
    color:var(--color-primary);
    font-size:.72rem;
    font-weight:700;
}

.project-card h3{
    margin:0 0 10px;
    font-size:1.35rem;
    line-height:1.2;
}

.project-card p{
    margin:0 0 18px;
    color:var(--color-text-secondary);
    line-height:1.55;
}

.project-card__link{
    margin-top:auto;
    color:var(--color-primary);
    font-weight:700;
    transition:transform .3s ease;
}

.project-card:hover .project-card__link{
    transform:translateX(4px);
}

/* Cards marked "Скоро" stay visually balanced even without an image. */
.project-card.disabled{
    justify-content:flex-start;
    cursor:default;
}

.project-card.disabled:hover{
    transform:translateY(-6px);
}

.project-card.disabled .project-card__content{
    padding-top:28px;
}

.project-card.disabled h3{
    font-size:1.35rem;
    color:var(--color-text);
}

/* Reveal animation for the project cards */
.projects .project-card{
    opacity:0;
    transform:translateY(28px);
}

.projects.is-visible .project-card{
    opacity:1;
    transform:translateY(0);
}

.projects.is-visible .project-card:nth-child(1){transition-delay:.05s}
.projects.is-visible .project-card:nth-child(2){transition-delay:.12s}
.projects.is-visible .project-card:nth-child(3){transition-delay:.19s}
.projects.is-visible .project-card:nth-child(4){transition-delay:.26s}

@media (max-width:992px){
    .projects-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

@media (max-width:768px){
    .projects{
        padding:80px 0;
    }

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

    .project-card{
        min-height:340px;
    }

    .project-card__image{
        height:210px;
    }
}

