/* ================================================================
   front-page.css — главная страница
   ================================================================ */

/* ── Общий надзаголовок с линией ─────────────────────────────── */
.fp-section-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 140px;
}
.fp-section-label span:first-child {
    color: var(--active);
    font-family: var(--text4-font-family);
    font-size: var(--text4-font-size);
    font-weight: var(--text4-font-weight);
    white-space: nowrap;
}
.fp-section-label__line {
    display: block;
    flex: 1;
    height: 1px;
    background: var(--active);
}

/* ================================================================
   HERO
   ================================================================ */
.fp-hero {
    background: #0b0c0f;
   margin-bottom: 150px;
    display: flex;
    flex-direction: column;
}

/* Имя сверху */
.fp-hero__heading {
    padding-top: 50px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.fp-hero__position {
    color: var(--text2);
    font-family: var(--text2-font-family);
    font-size: var(--text2-font-size);
    font-weight: var(--text2-font-weight);
    margin-bottom: 8px;
    max-width: 1360px;
    width: 100%;
}

.fp-hero__name {
    font-family: var(--h1-font-family);
    font-size: var(--h1-font-size);   /* 128px */
    font-weight: var(--h1-font-weight);
    line-height: 1;
    text-align: center;
    max-width: 1360px;
}
.fp-hero__name-white  { color: var(--white); }
.fp-hero__name-accent { color: var(--active); }

/* Три колонки */
.fp-hero__columns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 600px;
       justify-content: center;
    gap: 30px;
}

/* Левая — метрики */
.fp-hero__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 19px;
    flex-shrink: 0;
    max-width: 420px;
    width:30%;
    padding: 40px 0;
    align-items: flex-end;
}

.fp-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    max-width:247px;
}

.fp-hero__stat-value {
    color: var(--active);
    font-family: var(--text3-zifr-font-family);
    font-size: var(--text3-zifr-font-size);
    font-weight: var(--text3-zifr-font-weight);
    line-height: 1;
    text-align: right;
}

.fp-hero__stat-label {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    text-align: right;
}

/* Центр — фото */
.fp-hero__center {

    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    max-width:740px;
    width: 40%;
}

.fp-hero__blur {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70%;
    height: 100%;
    background: rgba(146, 152, 177, 0.5);
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 3;
}

.fp-hero__photo,
.fp-hero__photo-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.fp-hero__photo-placeholder {
    background: #d9d9d9;
    min-height: 500px;
}

/* Правая — подпись + кнопка */
.fp-hero__right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    max-width: 420px;
    width: 30%;
    padding: 40px 0 60px;
}

.fp-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fp-hero__tagline {
    color: var(--text2);
    font-family: var(--text2-font-family);
    font-size: var(--text2-font-size);
    font-weight: var(--text2-font-weight);
}

.fp-hero__desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
}

.fp-hero__btn {
    background: var(--active);
    padding: 20px 40px;
    color: #000000;
    font-family: var(--text-button1-font-family);
    font-size: var(--text-button1-font-size);
    font-weight: var(--text-button1-font-weight);
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}
.fp-hero__btn:hover { opacity: 0.85; }

/* Разделитель */
.fp-hero__line {
    height: 1px;
    background: var(--active);
    margin: 0 -140px; /* выходит за padding секции */
}

/* ================================================================
   ABOUT
   ================================================================ */
.fp-about {
    background: #0b0c0f;
}

.fp-about__inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 60px 140px 150px;
    gap: 60px;
}

.fp-about__left {
    flex-shrink: 0;
    width: 420px;
    position: relative;
}

.fp-about__title {
    color: var(--white);
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    position: relative;
    z-index: 1;
}

.fp-about__decor {
    position: absolute;
    left: 75px;
    pointer-events: none;
    z-index: 0;
    width: 65%;
}

.fp-about__inner::before {
    content: '';
    position: absolute;
    left: -259px;
   
    transform: translateY(0%);
    width:100%;
    height:100%;
    max-width: 816px;
    max-height: 816px;
    pointer-events: none;
    z-index: 0;
    
    border-radius: 100%;
background: rgba(146, 152, 177, 0.60);
filter: blur(219.3000030517578px);
    
    
}

.fp-about__right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fp-about__text {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
}

.fp-about__text-accent { color: var(--active); }

.fp-about__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fp-about__card {
    background: #161820;
    padding: 27px 36px 27px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease;
}

.fp-about__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.fp-about__card:hover { background: #1e212c; }
.fp-about__card:hover::before { transform: scaleX(1); }

.fp-about__card-label {
    color: var(--active);
    font-family: var(--text2-caps-font-family);
    font-size: var(--text2-caps-font-size);
    font-weight: 600;
    text-transform: uppercase;
}

.fp-about__card-text {
    color: var(--text);
    font-family: var(--text2-font-family);
    font-size: var(--text2-font-size);
    font-weight: var(--text2-font-weight);
    line-height:140%;
}


/* ================================================================
   PROJECTS
   ================================================================ */
.fp-projects {
    background: #0b0c0f;
    padding-bottom: 120px;
}

.fp-projects__head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 140px 60px;
}

.fp-projects__title {
    color: var(--white);
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    flex-shrink: 0;
    width: 476px;
}

.fp-projects__desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    max-width: 450px;
    padding-top: 8px;
}

/* ── Общие стили карточек ────────────────────────────────────── */
.fp-proj__zagolovok { display: flex; flex-direction: column; gap: 20px; }

.fp-proj__tag {
    color: var(--active);
    font-family: var(--text4-font-family);
    font-size: var(--text4-font-size);
    font-weight: var(--text4-font-weight);
}

.fp-proj__title {
    color: var(--white);
    font-family: var(--h3-font-family);
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
    font-weight: var(--h3-font-weight);
}

.fp-proj__title--sm { font-size: clamp(24px, 2.5vw, 36px); }

.fp-proj__role {
    color: var(--text);
    font-family: var(--text2-caps-font-family);
    font-size: var(--text2-caps-font-size);
    font-weight: var(--text2-caps-font-weight);
    text-transform: uppercase;
    line-height: 140%;
}

.fp-proj__excerpt {
    color: var(--text);
    font-family: var(--text2-font-family);
    font-size: var(--text2-font-size);
    font-weight: var(--text2-font-weight);
    line-height: 140%;
}

.fp-proj__stats { display: flex; flex-direction: column; gap: 12px; }
.fp-proj__stats--sm { gap: 8px; }

.fp-proj__stat { display: flex; flex-direction: row; gap: 12px; align-items: center; }

.fp-proj__stat-value {
    color: var(--active);
    font-family: var(--text-font-family);
    font-size: var(--text-font-size);
    font-weight: var(--text-font-weight);
    white-space: nowrap;
}

.fp-proj__stat-label {
    color: var(--text);
    font-family: var(--text2-font-family);
    font-size: var(--text2-font-size);
    font-weight: var(--text2-font-weight);
}

.fp-proj__btn {
    border: 1px solid var(--text);
    padding: 20px 40px;
     color: var(--text);
    font-family: var(--text-button1-font-family);
    font-size: var(--text-button1-font-size);
    font-weight: var(--text-button1-font-weight);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}


/* Широкая карточка */
.fp-proj-featured {
    background: #161820;
    padding: 36px;
    display: flex;
    flex-direction: row;
    gap: 76px;
    align-items: center;
    justify-content: space-between;
    margin: 0 140px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease;
        margin-bottom: 20px;
}

.fp-proj-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.fp-proj-featured:hover { background: #1e212c; }
.fp-proj-featured:hover::before { transform: scaleX(1); }

.fp-proj-featured__text {
    display: flex;
    flex-direction: column;
    gap: 29px;
    flex: 1;
    min-width: 0;
    max-width: 873px;
}

.fp-proj-featured__aside {
    display: flex;
    flex-direction: column;
    gap: 29px;
    align-items: flex-end;
    flex-shrink: 0;
    width: 411px;
}

/* Сетка 2×2 */
.fp-proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 140px;
}

.fp-proj-card {
    background: #161820;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 29px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(146, 152, 177, 0.15);
    border-left: 1px solid rgba(146, 152, 177, 0.15);
    transition: background 0.25s ease;
}
.fp-proj-card:nth-child(odd) { border-left: none; }

.fp-proj-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 100%; height: 2px;
    background: var(--active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.fp-proj-card:hover { background: #1e212c; }
.fp-proj-card:hover::before { transform: scaleX(1); }

.fp-proj-card__bottom {
    display: flex;
    flex-direction: row;
  
    justify-content: space-between;
    gap: 24px;
    margin-top: auto;
}

.fp-projects__footer {
    display: flex;
    justify-content: flex-end;
    padding: 40px 140px 0;
}

.fp-projects__all-btn {
    background: var(--active);
    padding: 20px 40px;
    color: #000000;
    font-family: var(--text-button1-font-family);
    font-size: var(--text-button1-font-size);
    font-weight: var(--text-button1-font-weight);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}
.fp-projects__all-btn:hover { opacity: 0.85; }

/* ================================================================
   АДАПТИВ
   ================================================================ */
@media (max-width: 1440px) {
    .fp-hero         { padding-inline: 80px; }
    .fp-hero__line   { margin-inline: -80px; }
    .fp-section-label { padding-inline: 80px; }
    .fp-hero__position { max-width:1020px;}
       .fp-hero__name { max-width:1020px;}
    .fp-about__inner { padding-inline: 80px; }
    .fp-projects__head { padding-inline: 80px; }
    .fp-proj-featured { margin-inline: 80px; }
    .fp-proj-grid    { margin-inline: 80px; }
    .fp-projects__footer { padding-inline: 80px; }
    .fp-hero__name   { font-size: 96px; }
    .fp-hero__left { width:25%;}
        .fp-hero__right { width:25%;}
        .fp-hero__center { width:50%;}

}

@media (max-width: 1200px) {
    .fp-hero         { padding-inline: 40px; }
    .fp-hero__line   { margin-inline: -40px; }
    .fp-section-label { padding-inline: 40px; }
    .fp-about__inner { padding-inline: 40px; gap: 40px; }
    .fp-projects__head { padding-inline: 40px; }
    .fp-proj-featured { margin-inline: 40px; gap: 40px; }
    .fp-proj-grid    { margin-inline: 40px; }
    .fp-projects__footer { padding-inline: 40px; }
    .fp-hero__name   { font-size: 72px; }
    .fp-hero__columns { min-height: 480px; }
    .fp-about__left  { width: 300px; }
    .fp-projects__title { width: auto; font-size: 48px; }
   
}

@media (max-width: 900px) {
    .fp-hero { padding-inline: 24px;  margin-bottom: 60px;}
    .fp-hero__line { margin-inline: -24px; }
    .fp-section-label { padding-inline: 24px; }

    .fp-hero__name { font-size: clamp(40px, 10vw, 64px); width: 100%; text-align: left;  }
      
    /* Колонки → вертикаль */
    .fp-hero__columns {
        flex-direction: column;
        min-height: auto;
        gap: 32px;
        align-items: center;
        margin-top:30px;
    }

    .fp-hero__left {
        max-width:100%;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        padding: 0;
        order: 2;
    }
    
    
    .fp-proj-card__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: auto;
}
    
    
    
    
    .fp-about__decor {
    position: absolute;
    left: 75%;
    top: -110px;
    pointer-events: none;
    z-index: 0;
    width: 25%;
}
    .fp-hero__stat { align-items: flex-start;   width: 46%; }
    .fp-hero__stat-value,
    .fp-hero__stat-label { text-align: left; font-size: 16px; }
    .fp-hero__stat-value { font-size: 36px; }

    .fp-hero__center { min-height: 300px; width: 100%;  order: 1;  max-width:100%;}
    .fp-hero__blur   { filter: blur(80px); }

    .fp-hero__right {
        width: 100%;
         max-width:100%;
        padding: 0 0 40px;
         order: 3;
    }

    /* About */
    .fp-about__inner { flex-direction: column; padding-inline: 24px; gap: 32px; }
    .fp-about__left  { width: 100%; }
    .fp-about__cards { grid-template-columns: 1fr; }
    

    /* Projects */
    .fp-projects__head { flex-direction: column; padding-inline: 24px; gap: 16px; }
    .fp-proj-featured { margin-inline: 24px; flex-direction: column; gap: 24px; align-items: flex-start; }
    .fp-proj-featured__aside { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .fp-proj-grid    { margin-inline: 24px; grid-template-columns: 1fr; }
    .fp-proj-card    { border-left: none; }
    .fp-projects__footer { padding-inline: 24px; }
}

@media (max-width: 480px) {
    .fp-hero { padding-inline: 20px; }
    .fp-hero__line { margin-inline: -20px; }
    .fp-section-label { padding-inline: 20px; }
    .fp-about__inner { padding-inline: 20px; padding-bottom:80px;}
    .fp-projects__head { padding-inline: 20px; }
    .fp-projects {padding-bottom:80px;}
    .fp-proj-featured { margin-inline: 20px; padding: 36px 16px; }
    .fp-proj-card{ padding: 36px 16px;}
    .fp-proj-grid    { margin-inline: 20px; }
    .fp-projects__footer { padding-inline: 20px; }
    .fp-hero__name   { font-size: clamp(32px, 12vw, 48px); }
    .fp-proj__btn, .fp-projects__all-btn { padding: 14px 24px; font-size: 16px; margin-top:20px;}
    .fp-proj__title{ font-size:24px;}
    .fp-proj__excerpt{ font-size:14px;}
    .fp-about__text{ font-size:18px;}
    .fp-about__decor {
    position: absolute;
    left: 75%;
    top: -60px;
    pointer-events: none;
    z-index: 0;
    width: 30%;
    
}

}



/* ── Декоративный разделитель справа ─────────────────────────── */
.fp-decor-right {
    position: relative;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.fp-decor-right__blur {
    position: absolute;
    right: -259px;
    top: -408px;
    width: 816px;
    height: 816px;
    border-radius: 50%;
    background: rgba(146, 152, 177, 0.60);
    filter: blur(219.3px);
    z-index: 0;
}

.fp-decor-right__star {
    position: absolute;
    right: 0;
    top: -300px;
    z-index: 1;
    
    height: auto;
    display: block;
    width: 30%;
}


/* ── Декоративный разделитель слева ──────────────────────────── */
.fp-decor-left {
    position: relative;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.fp-decor-left__blur {
    position: absolute;
    left: -259px;
    top: -408px;
    width: 816px;
    height: 816px;
    border-radius: 50%;
    background: rgba(146, 152, 177, 0.60);
    filter: blur(219.3px);
    z-index: 0;
}

.fp-decor-left__img {
    position: absolute;
    left: 0;
    top: -465px;
    z-index: 1;
    width: 15%;
    height: auto;
    display: block;
}




@media (max-width: 1440px) {
    .fp-decor-right__star { width: 380px;     top: -200px;}
  .fp-decor-left__img   { top: -305px;}
}



@media (max-width: 1200px) {
  .fp-decor-right__star { width: 350px; top: -200px;}

}


@media (max-width: 900px) {
  .fp-decor-right__star { width: 320px; top: -200px;}
  .fp-decor-left__img   { width: 20%; top: -150px;}
  .fp-decor-left { margin-bottom: 100px;}
   

}


@media (max-width: 600px) {
  .fp-decor-right {  margin-bottom: 125px;}
     .fp-decor-left__img   { width: 30%; top: -160px;}
}


@media (max-width: 480px) {

  .fp-decor-left { margin-bottom: 30px;}
   

}