* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Golos Text", sans-serif;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background: #060910;
  color: #fff;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.logo {
  position: relative;
  z-index: 1002;
}

/* Мобильные устройства (≤768px) */
@media (max-width: 768px) {
  .logo {
    position: relative;
    left: 16%;
    transform: translateX(-50%);
    margin: 0; /* Убираем стандартные отступы */
  }
  
  /* Дополнительно: если логотип в шапке */
  header .logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Очень маленькие экраны (≤390px) */
@media (max-width: 390px) {
  .logo {
    max-width: 120px; /* Опционально: уменьшаем лого на tiny-экранах */
  }
}

section {
  width: 100%;
  box-sizing: border-box;
}

.hero-section {
  padding: 100px 0; /* убираем боковой паддинг — теперь он внутри .hero-inner */
  color: #fff;
}

.hero-container.centered {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}
.hero-text {
  max-width: 720px;
}
.hero-text h1 {
  text-align: center;
}
.hero-text p {
  text-align: center;
}

.hero-inner {
  max-width: 1280px;
  padding: 0 40px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
  padding-top: 60px;
  padding-left: 44px;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #cfd6e0;
}


@media (max-width: 768px) {
  .hero-section {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    margin-bottom: -100px;
  }

  .hero-container {
    padding: 320px 0 0; /* чуть ниже чем раньше */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-text {
    margin-bottom: 24px;
  }

  .hero-text h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-btn-uslugi,
.hero-btn-outline {
  width: 100%;
  max-width: 320px;
  padding: 18px 24px;
  font-size: 17px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.25s ease;
}

  .hero-image-wrapper {
    position: absolute;
    top: 42%; /* фон пониже */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
  }

  .hero-icon {
    max-width: 400px;
    height: auto;
  }
}

/* Шапка */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header-hidden {
  transform: translateY(-100%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px; /* регулируй как нужно */
  gap: 24px; /* если нужно */
}

.nav-menu {
  padding: 1rem 2rem;
  border-radius: 2rem;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav li {
  text-decoration: none;
}

.nav-menu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  border-radius: 1rem;
  transition: background 0.3s ease;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  z-index: 1001;
}

.contact-btn {
  margin-left: 2rem;
 padding: 1rem 2rem;
  border-radius: 2rem;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid hwb(0 100% 0% / 0.30);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-btn:hover {
  background-color: #4A90E2;
  box-shadow:
    0 0 14px rgba(95, 160, 255, 0.5),
    0 0 28px rgba(95, 160, 255, 0.25);
  transform: scale(1.015);
  
}

@media (max-width: 1024px) {
  .contact-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
      display: none;
      border-radius: 0px;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(30px);
      padding-top: 5rem;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 999;
  }
  .nav-menu.show {
      display: flex;
  }
  .nav-menu ul {
      flex-direction: column;
      gap: 2rem;
      align-items: center;
  }
  .nav-menu a {
      font-size: 1.8rem;
      font-weight: 500;
  }
  .menu-toggle {
      display: block;
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 1001;
      transition: transform 0.3s ease;
  }
  .menu-toggle.active {
      transform: rotate(90deg);
  }
  .navbar {
      padding: 1rem;
  }
  
  header {
      padding: 1rem;
      transition: transform 0.3s ease;
  }
  .header-hidden {
      transform: translateY(-100%);
  }
  
  .nav-menu.show ~ .menu-toggle {
      position: fixed;
      top: 1rem;
      right: 1rem;
  }
  
}


body.case-page {
    background-color: #0b0c10;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Белая область статьи как на скрине */
.article-container {
    background: #ffffff;
    border-radius: 40px 40px 0 0;
    margin-top: -60px; /* Наложение на Hero-картинку */
    position: relative;
    padding: 60px 0;
    color: #1a1a1a;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили заголовка */
.article-header {
    margin-bottom: 50px;
}

/* Стили тегов сверху */
.tags {
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border: 1px solid #E5E5E5;
    padding: 4px 12px;
    border-radius: 100px;
}

/* Сетка для Года и Инструментов */
.project-info-grid {
    display: flex;
    gap: 80px; /* Отступ между колонками */
    padding: 30px 0;
    margin: 30px 0;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-label {
    font-size: 13px;
    color: #A0A0A0; /* Мягкий серый для подписей */
    font-weight: 500;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* Стили плашек инструментов */
.tools-wrapper {
    display: flex;
    gap: 8px;
}

.tool-badge {
    background: #F7F7F7; /* Тон плашек как на скрине */
    color: #333;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Основной заголовок */
.article-header h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: #000;
}

.intro-text {
    font-size: 20px;
    line-height: 1.5;
    color: #444;
    max-width: 90%;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .project-info-grid {
        flex-direction: column;
        gap: 24px;
        padding: 20px 0;
    }
}

/* Блок инструментов */
.tool-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 5px;
}

/* Контентные блоки */
.text-block h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.text-block p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.image-placeholder {
    background: #eee; /* Заглушка пока нет фото */
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    display: block;
}

/* Разделитель */
.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}


.footer {
  position: relative;
  padding: 60px 20px;
  background: #060910;
  overflow: hidden;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 800px;
  height: 600px;
  background: radial-gradient(
    70% 60% at 90% 100%,
     rgba(59, 91, 140, 0.35) 0%,
    rgba(59, 91, 140, 0.15) 40%,
    rgba(59, 91, 140, 0.10) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: white;
}

.footer-menu {
  display: flex;
  gap: 32px;
  font-weight: 400;
  font-size: 16px;
}

.footer-menu a {
  color: #B0B8C2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu a:hover {
  font-weight: 600;
  color: #ffffff;
}

.footer-cta h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background-color: #11141A;
  border: 1px solid #2A2B2E;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

.button:hover {
  background-color: #2b2c31;
}

.button.vk {
  min-width: 85px; /* задаёт минимальную ширину, чтобы текст не вылезал */
  padding: 12px 16px;
}

.button.vk img.icon-vk {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0; /* предотвращает сжатие иконки */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 60px;
  font-size: 14px;
  border-top: 1px solid #2a2a2d;
  padding-top: 20px;
}

.footer-bottom .privacy-link {
  color: #B0B8C2;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.footer-bottom .privacy-link:hover {
  text-decoration: none;
  color: #ffffff;
}

.crafted {
  display: flex;
  align-items: center;
  gap: 10px;
  
}

.crafted img {
  height: 40px;
}

.scroll-top {
  position: absolute;
  right: 0;
  bottom: 125px; /* сдвиг выше, чтобы не наезжать на crafted */
  color: #fff;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15); 
  padding: 12px 24px;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.scroll-top:hover {
  background-color: #2a2b30;
}

.footer-content {
  position: relative; /* важно! чтобы absolute работал */
}


@media (max-width: 768px) {
  .footer {
    padding: 40px 16px;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-menu {
    display: none;
    flex-direction: column;
    gap: 18px;
    font-size: 17px;
  }

  .footer-menu a {
    padding: 6px 0; /* небольшой вертикальный отступ для касания */
    display: block;
  }

  .footer-cta h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px; /* увеличенный отступ между кнопками */
    margin-top: 32px;
  }

  .button {
    width: 100%;
    max-width: 320px;
    padding: 18px 28px; /* увеличенный padding */
    font-size: 17px;
    justify-content: center;
    border-radius: 12px;
  }

  .button img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 16px;
    text-align: center;
  }

  .footer-bottom p {
    margin-bottom: 8px; /* разделим текст и ссылку */
    line-height: 1.6;
  }

  .crafted img {
    margin-top: 8px;
    height: 32px;
  }

  .scroll-top {
    position: static;
    margin: 36px auto 0;
    width: 100%;
    max-width: 180px;
    padding: 16px 0;
    font-size: 16px;
    display: block;
    border-radius: 9999px;
  }
}

/* --- ОБНОВЛЕННЫЙ БЛОК ДЛЯ КЕЙСА --- */

.hero-section {
    position: relative;
    width: 100%;
    /* Картинка будет занимать ровно высоту экрана за вычетом наплыва */
    height: 100vh; 
    padding: 0; /* Убираем твои 100px 0, чтобы картинка прилипла к краям */
    overflow: hidden;
    background: #000;
}

/* Настройки самой картинки, чтобы она не сплющивалась */
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; 
    display: block;
}

/* Белая область статьи */
.article-container {
    background: #ffffff;
    border-radius: 40px;
    margin-top: -10vh; 
    position: relative;
    z-index: 10;
    padding: 80px 0 120px 0;
    color: #1a1a1a;
    /* Добавляем мягкую тень, чтобы статья "отрывалась" от картинки */
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.article-content {
    max-width: 800px; /* Сузил для лучшей читаемости лонгрида */
    margin: 0 auto;
    padding: 0 24px;
}

/* Исправление для мобилок */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh; /* На мобильных чуть меньше высоту, чтобы контент был ближе */
        margin-bottom: 0;
    }
    
    .article-container {
        margin-top: -40px;
        padding: 40px 0;
    }

    .article-header h1 {
        font-size: 32px; /* Уменьшаем заголовок под мобилки */
    }
}


/* ДРУГИЕ ПРОЕКТЫ */
/* --- Контейнер и Сетка --- */
.cases-shelf {
    padding: 80px 0;
    background: #000;
    width: 100%;
    padding-bottom: 120px;
}

.cases-shelf .container {
    max-width: 1200px; /* Твоя рабочая ширина контента */
    margin: 0 auto;
    padding: 0 24px;
}

.shelf-header {
    color: rgba(255, 255, 255, 0.6); /* Приглушаем, чтобы не "кричал" */
    font-size: 14px; /* Делаем акцент на карточки, а не на подпись */
    text-transform: uppercase;
    letter-spacing: 0.2em; /* Добавляем воздуха */
    font-weight: 500;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Карточка (Типографика + Эффекты) --- */
.project-item {
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    height: 240px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Большие буквы на фоне (из JS data-abbr) */
.project-item::before {
    content: attr(data-abbr);
    position: absolute;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Едва заметные */
    transition: all 0.6s ease;
    z-index: 1;
}

/* Призрачная картинка */
.project-preview {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(110%);
    opacity: 0.12; /* "Призрачный" эффект */
    transition: all 0.6s ease;
    z-index: 0;
}

/* Состояние при наведении */
.project-item:hover {
    background: #111;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.project-item:hover .project-preview {
    opacity: 0.25;
    transform: scale(1.05);
}

.project-item:hover::before {
    color: rgba(255, 255, 255, 0.07);
    transform: scale(1.1);
}

/* Текст (Заголовок) */
.project-details {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.project-details h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cases-shelf { padding: 50px 0; }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .project-item { height: 200px; } /* Чуть ниже на мобилках */
}

/* Сетка из 4 колонок */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #B0B8C2;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: white;
  transform: translateX(3px);
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 900px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .footer-col h4 {
    margin-bottom: 15px;
  }
}

@media (max-width: 550px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 {
    cursor: pointer;
    margin-bottom: 12px;
  }
  /* Можно добавить аккордеон на мобильных, но для простоты оставим как есть */
}