:root{
  --bg-color:#282a2f;
  --panel:#1a1c20;

  --text-primary:#f8f8f8;
  --text-secondary:#8b8d9d;
  --accent-gold: #E4BB7A;

  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.18);

  --radius-xl: 30px;
  --radius-lg: 28px;
  --radius-md: 22px;

  --container-max: 1920px;
  --container-pad: clamp(16px, 5vw, 100px);

  --h1: clamp(40px, 5.2vw, 80px);
  --h2: clamp(30px, 3vw, 60px);
  --p-lg: clamp(16px, 2.1vw, 34px);
  --p-md: clamp(16px, 1.2vw, 20px);
  --p-sm: 16px;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* IE / old Edge */
* {
  -ms-overflow-style: none;
}


/* reset */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:var(--bg-color);
  color:var(--text-primary);
  font-family:'Red Hat Display', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4,h5,h6,p{ margin:0; }

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  position: relative;
}

/* common */
.section-title{
  font-size: var(--h2);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.divider{
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.18);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: clamp(12px, 0.9vw, 14px);
  cursor:pointer;
  transition: .25s ease;
}
.btn:hover{ background: var(--text-primary); color: var(--bg-color); }

.btn-pill{
  display:inline-flex;
  align-items:center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: clamp(12px, 0.9vw, 14px);
  text-transform: uppercase;
  background: transparent;
  transition: .25s ease;
  white-space: nowrap;
}
.btn-pill img{
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}
.btn-pill:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  cursor: pointer;
}

/* merged images */
.merged-image-wrapper{
  position:absolute;
  /* inset:0; */
  pointer-events:none;
  z-index:0;
}
.merged-image-wrapper img{ position:absolute; }

/* ===== Header ===== */
.site-header{
  padding: 20px 0;
  position: relative;
  z-index: 10;
}
.header-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 24px;
}
.logo-svg{ height: 32px; }
.main-nav{
  display:flex;
  gap: clamp(18px, 3vw, 60px);
  align-items:center;
  flex-wrap: wrap;
}
.nav-link{
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  text-transform: capitalize;
}
@media (max-width: 1024px){
  .main-nav{ display:none; }
}

/* ===== Hero (fix layout like Figma) ===== */
.hero-section {
    padding: clamp(70px, 6vw, 120px) 0;
}

/* Image block sits naturally under divider */
.hero-image-wrapper {
    margin-top: clamp(40px, 4vw, 70px);
    width: 100%;
    height: clamp(320px, 35vw, 500px); /* ~70% of previous visual height */
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .hero-image.is-visible {
        opacity: 1;
    }


.hero-title {
    font-size: var(--h1);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: clamp(22px, 3.4vw, 56px);
    text-transform: uppercase;
}

/* ✅ key change: grid instead of flex */
.hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto; /* текст = 1fr, кнопка = авто */
    align-items: end;
    column-gap: clamp(18px, 3vw, 56px);
    row-gap: 20px;
    margin-bottom: clamp(22px, 3.4vw, 56px);
}

.hero-desc {
    max-width: 72ch; /* ✅ красивое “как в фигме” по длине строки */
    font-size: var(--p-lg);
    line-height: 1.35;
    font-weight: 400;
}

/* ✅ чтобы кнопка не “жала” текст */
.hero-btn {
    justify-self: end;
    white-space: nowrap;
    flex: none;
    min-width: 150px; /* можно подогнать */
}





.hero-image:hover {
    transform: scale(1.04);
}

/* ===== Breakpoints ===== */
@media (max-width: 1100px) {
    .hero-desc {
        max-width: 60ch;
    }
    /* чуть короче строка на ноутбуках */
}

@media (max-width: 768px) {
    .hero-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-btn {
        justify-self: start;
    }

    .hero-desc {
        max-width: none;
    }
}

/* ===== Stats ===== */
.stats-section{ padding: clamp(40px, 4vw, 60px) 0 clamp(70px, 6vw, 100px); }
.stats-container{
  display:flex;
  justify-content:space-between;
  gap: clamp(40px, 6vw, 100px);
  align-items: stretch;
}
.stats-intro{
  max-width: 760px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  gap: 24px;
}
.stats-icon{ width:24px; }
.stats-intro p{
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.7;
}
.stats-intro span{
  font-size: clamp(16px, 1.25vw, 20px);
}
.author{
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-secondary);
}
.stats-data{
  flex:1;
  max-width: 765px;
  width: 100%;
  display:flex;
  flex-direction:column;
  gap: clamp(20px, 2.5vw, 40px);
}
.stat-label{
  font-size: clamp(14px, 1.1vw, 16px);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.stat-value{
  font-weight: 400;
  font-size: clamp(44px, 4.2vw, 80px);
  line-height: 1.05;
  letter-spacing: clamp(2px, .6vw, 10px);
  margin-bottom: 24px;
}
.stat-item{
      display: flex;
    flex-direction: column;
}
@media (max-width: 1024px){
  .stats-container{ flex-direction:column; }
}

/* ===== Features ===== */
.features-section{
  padding: clamp(70px, 6vw, 120px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.features-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 6vw, 120px);
  position:relative;
}
.features-grid::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:1px;
  background: rgba(255,255,255,0.18);
  transform: translateX(-50%);
}
.feature-card{ padding-right: clamp(0px, 2vw, 40px); }
.feature-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: 24px;
}
.feature-desc{
  font-size: var(--p-md);
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}
@media (max-width: 900px){
  .features-grid{ grid-template-columns:1fr; }
  .features-grid::after{ display:none; }
  .feature-card{ padding-right:0; }
  .feature-head{ flex-direction:column; align-items:flex-start; }
}

/* ===== About ===== */
.about-section{
  padding: clamp(70px, 6vw, 110px) 0;
  overflow:hidden;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position:relative;
}
.about-section::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.35;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 16px
    );
  mix-blend-mode: overlay;
}
.about-container {
    position: relative;
    z-index: 1;
    display: block;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(34px, 4.5vw, 80px);
    align-items: center;
}
.about-content{ max-width: 100%; }
.about-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: 22px;
}
.btn-pill.btn-pill--sm{
  padding: 8px 14px;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: .08em;
  gap: 10px;
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(6px);
}
.btn-pill.btn-pill--sm img{ width:12px; height:12px; }
.about-text p {
    /* Large font size, just smaller than the H2 title */
    font-size: clamp(24px, 3vw, 25px);
    line-height: 1.4; /* Tighter line height for large text */
    color: rgba(255, 255, 255, 0.85); /* Brighter white for impact */
    margin-bottom: 40px;
    max-width: 100%; /* Spans full length */
    opacity: 1;
}

.btn-pill.btn-white {
    background-color: #F8F8F8;
    color: var(--bg-color); /* Dark text */
    border-color: #F8F8F8;
}

    .btn-pill.btn-white:hover {
        background-color: rgba(255, 255, 255, 0.85);
        border-color: rgba(255, 255, 255, 0.85);
    }

    .btn-pill.btn-white img {
        transform: rotate(0deg); 
    }
.about-image{ display:flex; justify-content:center; }
.image-mask{ width:100%; display:flex; justify-content:center; }
.about-bg-svg{
  width:100%;
  height:auto;
}
@media (max-width: 1024px){
  .about-container{ grid-template-columns:1fr; }
  .about-head{ flex-direction:column; align-items:flex-start; }
  .about-text p{ max-width: 100%; }
}

/* ===== Portfolio ===== */
.portfolio-section{
  padding: clamp(70px, 6vw, 100px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.portfolio-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 60px);
}
.portfolio-section .btn-pill{
  background:#F8F8F8;
  color: var(--bg-color);
  border-color: transparent;
}
.portfolio-section .btn-pill img{ transform:none; }

.portfolio-slider{
  display:flex;
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
}
.portfolio-info{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  max-width: 600px;
  min-width: min(600px, 42vw);
}

/* only hovered image scales */
.portfolio-images img {
  transform: scale(1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.portfolio-images img:hover {
  transform: scale(1.06);
}


.year{
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.project-title{
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 10px;
}
.project-location{
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-secondary);
  margin-bottom: clamp(18px, 3vw, 40px);
}
.project-desc{
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
  margin-bottom: clamp(24px, 4vw, 60px);
  max-width: 52ch;
}
.slider-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.control-buttons{ display:flex; gap: 14px; }
.control-btn{
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: .2s ease;
}
.control-btn:hover{
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.95);
}
.control-btn img{ width: 18px; height:18px; }
.prev img{ transform: rotate(-180deg); }

/* hover swap (оставляю твою идею, но без content:url, оно нестабильно) */
.control-btn:hover img{ filter: invert(1); } /* simple & reliable */

.slide-counter{
  display:flex;
  gap: 18px;
  font-size: clamp(12px, 0.9vw, 14px);
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: .85;
  white-space: nowrap;
}

/* images area */
.portfolio-images{
  flex: 1.5;
  overflow:hidden;
  position:relative;
  align-items:flex-start;
  padding-right: 0;
}
@media (min-width: 1024px){
  .portfolio-images{ padding-right: 120px; } /* "обрез справа" */
}

/* track used by JS */
.portfolio-track{
  display:flex;
  gap: 22px;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.portfolio-track.is-animating{
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}

.p-image{
  flex: 0 0 clamp(280px, 32vw, 420px);
  height: clamp(360px, 46vw, 580px);
  border-radius: var(--radius-xl);
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.p-image img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.p-image.preview{ opacity: .78; }
.p-image.main{ opacity: 1; }

/* portfolio responsive layout */
@media (max-width: 1024px){
  .portfolio-slider{
    flex-direction:column;
    gap: 34px;
  }
  .portfolio-info{
    min-width: 0;
    max-width: none;
  }
  .portfolio-images{
    padding-right: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-images::-webkit-scrollbar{ display:none; }
}
@media (max-width: 768px){
  .project-desc{ max-width: none; }
  .slide-counter{ margin-left: 0; }
}

/* ===== Team ===== */
.team-section{
  padding: clamp(70px, 6vw, 100px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.team-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: 40px;
}
.team-nav{ display:flex; gap: 12px; }
.team-nav-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: .2s ease;
}
.team-nav-btn:hover{
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}
.team-nav-btn:disabled{ opacity:.35; cursor:default; transform:none; }

.team-slider{ overflow:hidden; }
.team-track{
  display:flex;
  gap: 28px;
  overflow-x:auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.team-track::-webkit-scrollbar{ display:none; }

.team-card{
  flex: 0 0 clamp(260px, 28vw, 330px);
  scroll-snap-align: start;
  display:flex;
  flex-direction:column;
}
.team-img{
  height: clamp(210px, 22vw, 260px);
  border-radius: var(--radius-md);
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 18px;
}
.team-img img{ width:100%; height:100%; object-fit:cover; }

.member-name{
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 400;
  margin-bottom: 6px;
}
.member-role{
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text-secondary);
  opacity: .85;
}
.member-bio{
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  margin-bottom: 18px;
  opacity: .9;
  max-width: 36ch;
}
.member-social{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: .85;
}
.member-social:hover{ opacity:1; }


/* =========================
   NEWS (fixed like Figma)
========================= */
.news-section{
  padding: clamp(70px, 6vw, 100px) 0;
}

.news-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 60px);
}

.news-header .btn-pill{
  background:#F8F8F8;
  color: var(--bg-color);
  border-color: transparent;
}
.news-header .btn-pill img{ transform:none !important; }

.news-list{
  display:flex;
  flex-direction:column;
  gap: clamp(26px, 3vw, 40px);
}

/* row = image + content */
.news-row{
  display:grid;
  grid-template-columns: minmax(360px, 620px) 1fr;
  gap: clamp(22px, 3.2vw, 56px);
  align-items: stretch; /* важно: чтобы справа можно было растянуться по высоте */
}

/* thumb */
.news-thumb{
  display:block;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* right column = body grows + footer sticks to bottom */
.news-content{
  display:grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(240px, 22vw, 360px); /* совпадает с картинкой */
  padding-top: 0;
}

/* body = 2 columns like on screenshot */
.news-body{
  display:grid;
  grid-template-columns: minmax(220px, 340px) minmax(420px, 1fr);
  gap: clamp(26px, 5vw, 90px);
  align-items:start;
}

/* title (left mini block) */
.news-title{
  font-size: clamp(18px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.25;
  max-width: 22ch; /* чтобы заголовок выглядел компактно как на макете */
}

/* text (right wide block) */
.news-excerpt{
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.85;
  opacity: .92;
  max-width: 980px; /* ✅ больше места, не “узкая колонка” */
}

/* footer pinned to bottom */
.news-footer{
  margin-top: 0;
  padding-top: clamp(18px, 2.2vw, 26px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
}

.news-meta{
  display:flex;
  gap: 28px;
  align-items:center;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: .75;
}

.news-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 46px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: .2s ease;
  min-width: 190px;
}
.news-more:hover{
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.news-divider{
  height:1px;
  width:100%;
  background: rgba(255,255,255,0.18);
}
/* ===== News & Media Section ===== */

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: .3s ease;
    text-decoration: none;
    /* 1. REMOVED padding: 24px from here */
    padding: 0;
    /* 2. ADDED overflow hidden to clip the image to the card's rounded corners */
    overflow: hidden;
}

    .news-card:hover {
        border-color: var(--border-strong);
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.03);
    }

.news-image {
    width: 100%;
    height: 240px;
    /* 3. REMOVED margin-bottom and border-radius so it touches the edges */
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        /* 4. This ensures the image stretches to fill the container without gaps */
        object-fit: cover;
        display: block;
    }

.news-content {
    /* 5. ADDED the 24px padding here so the text is indented, but the image isn't */
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}}
/* ===== Responsive ===== */

/* на “узких десктопах” чуть уменьшаем левую колонку и gap */
@media (max-width: 1400px){
  .news-row{
    grid-template-columns: minmax(320px, 520px) 1fr;
  }
  .news-body{
    grid-template-columns: minmax(200px, 300px) minmax(360px, 1fr);
    gap: clamp(18px, 3.6vw, 56px);
  }
  .news-excerpt{ max-width: 900px; }
}

/* tablet / mobile */
@media (max-width: 1100px){
  .news-row{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-thumb img{
    height: clamp(220px, 52vw, 320px);
  }

  .news-content{
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .news-body{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-title{ max-width: none; }
  .news-excerpt{ max-width: none; }

  .news-footer{
    padding-top: 16px;
  }

  .news-more{
    min-width: 0;
    padding: 0 26px;
    height: 44px;
  }
}

/* ===== Partners Marquee ===== */
.partners-section{
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.partners-marquee{
  position: relative;
  overflow:hidden;
  width:100%;
}
.partners-track{
  display:flex;
  width:max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: partners-marquee linear infinite;
  animation-duration: var(--marquee-duration, 20s);
}
@keyframes partners-marquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-distance, 1000px)),0,0); }
}
.partners-marquee:hover .partners-track{ animation-play-state: paused; }

.partners-group{
  display:flex;
  align-items:center;
  gap: clamp(36px, 5vw, 72px);
  padding: 0 40px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.partner-logo{
  height: clamp(26px, 2.5vw, 34px);
  width:auto;
  flex: 0 0 auto;
  opacity: .75;
  transition: opacity .25s ease, transform .25s ease;
  user-select:none;
  -webkit-user-drag:none;
}
.partner-logo:hover{ opacity: 1; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce){
  .partners-track{ animation:none; }
  .partners-marquee{ overflow-x:auto; }
}

/* ===== Footer ===== */
.footer-section{
  /* background: var(--panel); */
  padding-top: clamp(60px, 5vw, 90px);
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  margin-bottom: 46px;
}
.footer-map-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  height: clamp(260px, 30vw, 420px);
  position: relative;
}

/* контейнер leaflet */
.footer-map{
  width: 100%;
  height: 100%;
}

/* Leaflet fixes: чтобы тайлы не “ломались” в flex/grid */
.footer-map .leaflet-container{
  width: 100%;
  height: 100%;
  background: #1a1c20;
  outline: none;
}

/* Ч/Б + “как на макете” контраст/яркость */
.footer-map .leaflet-tile{
  filter: grayscale(1) contrast(1.08) brightness(1.08);
  opacity: 0.92;
}

/* скрыть кредиты/контролы (если хочешь прям как картинка) */
.footer-map .leaflet-control-container{
  display: none;
}

/* лёгкий затемняющий слой, чтобы карта была “вписана” в стиль */
.footer-map-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(0deg, rgba(40,42,47,0.25), rgba(40,42,47,0.25));
}
.footer-map-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity: .85;
  filter: grayscale(1) contrast(1.05) brightness(1.1);
}
.footer-info{
  margin-top: 44px;
  padding-top: 26px;
  display:grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items:center;
}
.footer-info__logo img{
  width:100%;
  max-width: 256px;
  opacity: .9;
}
.footer-label{
  display:block;
  text-transform: uppercase;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: .08em;
  color: var(--text-secondary);
  opacity: .7;
}
.footer-text{
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.45;
  opacity: .95;
}
.footer-link:hover{ text-decoration: underline; }
.footer-social{
  display:flex;
  justify-content:flex-end;
  gap: 30px;
}
.footer-social__btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: .2s ease;
}
.footer-social__btn img{ width:44px; height:44px; opacity:.95; }
.footer-social__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}
.footer-bottom{
  margin-top: 70px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
  text-align:center;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-secondary);
  opacity: .75;
}

/* Wrapper that sits between sections without taking up vertical space */
.page-decoration-strip {
    position: relative;
    width: 100%;
    height: 0; /* Zero height ensures it doesn't create a gap */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Sits behind the section content */
    overflow: visible; /* Allows the image to spill out over the sections */
    pointer-events: none; /* Ensures you can click items 'through' the image */
}

    /* The vector image positioning */
    .page-decoration-strip img {
        position: absolute;
        top: -300px; /* Adjust this value to move the image up or down */
        width: 100%; /* Spans full width */
        max-width: 1400px; /* Optional: Prevents it from getting too huge on large screens */
        opacity: 0.8; /* Subtle blend */
        transform: scale(1.1); /* Adjust scale if you need it larger/smaller */
    }

/* IMPORTANT: Ensure Stats and Features sit ON TOP of the decoration */
.stats-section,
.features-section {
    position: relative;
    z-index: 2; /* Higher than the decoration strip */
    background: transparent; /* Ensures the vector shows through */
}

@media (max-width:1240px){
  .footer-text{
    white-space:nowrap;
  }
}

@media (max-width: 1024px){
  .footer-info{
    grid-template-columns: 1fr 1fr;
    align-items:start;
  }
  .footer-social{ justify-content:flex-start; }
}
@media (max-width: 640px){
  .footer-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-info{ grid-template-columns: 1fr; }

  .footer-info{
    text-align: center;
  }

  .footer-info__logo img{
    margin: auto;
  }

  .footer-social {
        justify-content: center;
  }
}

/* ===== Mobile Burger ===== */
.burger-btn{
  display:none;
  width: 56px;
  height: 56px;
  border-radius: 999px;      /* хитбокс круглый */
  border: none;              /* без бордера */
  background: transparent;   /* без фона */
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items:center;
  justify-content:center;
  transition: transform .2s ease, background .2s ease;
}

/* 3 короткие линии по центру */
.burger-btn span{
  position: absolute;
  left: 50%;
  width: 22px;              /* короткие */
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}

/* расстояние между линиями */
.burger-btn span:nth-child(1){ top: 22px; }
.burger-btn span:nth-child(2){ top: 27px; width: 18px; } /* средняя чуть короче как в фигме */
.burger-btn span:nth-child(3){ top: 32px; }

.burger-btn:hover{
  transform: translateY(-1px);
}

/* show burger on mobile */
@media (max-width: 1024px){
  .burger-btn{ display:inline-flex; }
}

/* open state -> X (если хочешь оставлять крестик) */
body.menu-open .burger-btn span:nth-child(1){
  top: 27px;
  transform: translateX(-50%) rotate(45deg);
}
body.menu-open .burger-btn span:nth-child(2){
  opacity: 0;
}
body.menu-open .burger-btn span:nth-child(3){
  top: 27px;
  transform: translateX(-50%) rotate(-45deg);
}
/* overlay container */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.mobile-menu.is-open{ display:block; }

.mobile-menu__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}

/* drawer panel */
.mobile-menu__panel{
  position:absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 86vw);
  background: rgba(26,28,32,0.96);
  border-left: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  padding: 22px 18px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.mobile-menu.is-open .mobile-menu__panel{ transform: translateX(0); }

.mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu__title{
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.mobile-menu__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  cursor:pointer;
  transition: .2s ease;
}
.mobile-menu__close:hover{ background: rgba(255,255,255,0.10); }

/* links */
.mobile-menu__nav{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-top: 8px;
}

/* Mobile submenu – CLOSED by default */
.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 30px;
    padding: 6px 0 6px 14px;
}

    /* Open state controlled by JS */
    .mobile-submenu:not([hidden]) {
        display: flex;
    }


.mobile-sublink {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

    .mobile-sublink:hover {
        background: rgba(255,255,255,0.08);
    }


.mobile-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(255,255,255,0.92);
  transition: .2s ease;
}
.mobile-link:hover{ background: rgba(255,255,255,0.08); }

/* lock scroll when menu open */
body.menu-open{
  overflow: hidden;
  touch-action: none;
}

/* ===== Universal image hover (content only) ===== */

/* контейнеры с изображениями */
.card-image,
.about-image,
.news-thumb,
.team-card,
.feature-card img,
.stats-section img,
.partners-section img {
  overflow: hidden;
}

/* сами изображения */
.card-image img,
.about-image img,
.news-thumb img,
.team-card img,
.feature-card img,
.stats-section img,
.partners-section img {
  transform: scale(1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* hover */
.card-image:hover img,
.about-image:hover img,
.news-thumb:hover img,
.team-card:hover img,
.feature-card:hover img,
.stats-section img:hover,
.partners-section img:hover {
  transform: scale(1.06);
}

/* =========================
   DESKTOP DROPDOWN
========================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0; /* Adds hover buffer so menu doesn't disappear */
}

/* The Dropdown Box */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position right below the link */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--panel);
    min-width: 180px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show on Hover */
.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

/* Dropdown Links */
.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.05);
        color: var(--text-primary);
    }

/* =========================
   MOBILE SUB-LINKS
========================= */
 

/* Indent the sub-links slightly */
.mobile-link.sub-link {
    background: transparent;
    border: none;
    padding: 10px 14px;
    font-size: 15px;
}

    .mobile-link.sub-link:hover {
        background: rgba(255,255,255,0.02);
    }

/* =========================
   MOBILE DROPDOWN FIXES
========================= */



/* 4. Make Sub-Buttons Smaller ("Fix Huge Buttons") */
.mobile-link.sub-link {
    padding: 10px 14px; /* Less padding than main links (14px) */
    font-size: 14px; /* Slightly smaller text */
    background: transparent; /* Remove background box */
    border: none; /* Remove border */
    color: var(--text-secondary);
}

    .mobile-link.sub-link:hover {
        color: var(--text-primary);
        background: rgba(255,255,255,0.05);
    }

/* Portfolio trigger should look like normal mobile link */
.mobile-link[data-menu-dropdown] {
    padding: 14px 14px;
    font-size: clamp(14px, 1.1vw, 16px);
}

/* =========================
   INDEX PAGE – GOLD ACCENT TEXT
========================= */

/* Hero title */
.hero-title {
    color: var(--accent-gold);
}

/* Stats numbers */
.stat-value {
    color: var(--accent-gold);
}

/* Author title in stats section */
.stats-intro .author {
    color: var(--accent-gold);
}

/* About Us main text */
.about-text p {
    color: var(--accent-gold);
}

/* Portfolio project title */
.project-title {
    color: var(--accent-gold);
}

/* Team member names */
.member-name {
    color: var(--accent-gold);
}

/* News titles */
.news-title {
    color: var(--accent-gold);
}
.footer-social__btn img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(23%) saturate(555%) hue-rotate(355deg);
}