@font-face {
  font-family: 'TT Firs Neue';
  src: url('../fonts/TTFirsNeue/TTFirsNeue-Regular.woff2') format('woff2'),
       url('../fonts/TTFirsNeue/TTFirsNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.about-btn {
  display: inline-block;
  cursor: pointer;
  padding: 1rem 5rem;
  background: #fff;
  border: 2px solid #111;
  border-radius: 2rem;
  font-size: 1.18rem;
  font-weight: 500;
  color: #111;
  transition: 0.2s;
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'TT Firs Neue', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

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


/* Header  */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #eee;
}
.main-nav {
  display: flex;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #555;
}

.cta-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 10;
  margin-top: 0px;
  padding: 0.5rem 0;
  min-width: 220px;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  color: #111;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f8f8f8;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}


.btn-discuss {
  padding: 1rem 2rem;
  background: #fff;
  color: #333;
  border: 1px solid #333;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.btn-discuss:hover {
  background: #333;
  color: #fff;
}
.btn-secondary {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: 0.2s;
}
.btn-secondary:hover {
  background: #f5f5f5;
}
.logo {
  width: 80px;  
  align-items: center;
  /* можно добавить padding если нужно отступы сверху/снизу */
}

.logo img {
  width: 100%;
  height: auto;       /* сохраняет пропорции */
  max-width: 340px;   /* максимальная ширина лого, по желанию */
  display: block;
}
@media (max-width: 700px) {
  .logo img {
    max-width: 220px;
  }
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 2px;
  z-index: 202;
}

.burger span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #111;
  transition: all 0.35s;
  display: block;
}

.fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12rem 3rem 4rem;
}
.fullscreen_offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-right {
  display: flex;
  gap: 4rem;
  width: 70%;
}

.advantage {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #111;
}

.advantage img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.advantage_span {
  font-size: 60px;
}
.hero h1 {
  font-size: 4rem;
  color: #111;
  width: 540px;
  line-height: 1.2;
  font-weight: 500;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

.services {
  padding: 3rem 0;
  overflow: hidden;
}
.services-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.services-track {
  display: inline-flex;
  gap: 0.5rem;
  will-change: transform;
}

.services-track a {
  flex: 0 0 auto;
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #007AFF;
  border-radius: 999px;
  background: white;
  color: #111;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.services-track a:hover {
  background: #007AFF;
  color: #fff;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.about,
.cta {
  padding: 8rem 2rem;
  text-align: center;
}
.portfolio-grid {
  width: 100%;
  max-width: 1600px;
  padding: 2rem 0rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.services-grid a {
  flex: none;
  min-width: 220px;
  text-align: center;
  padding: 2rem 4rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: white;
  color: #111;
  transition: background 0.2s;
}
.portfolio-block {
  text-align: left;
}
.portfolio-grid a {
  align-items: center;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.services-grid a:hover {
  background: #f5f5f5;
}

.about p {
  max-width: 600px;
  margin: 2rem auto 0;
  color: #333;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #333;
  color: white;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #222;
}
.portfolio {
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 2rem;
  text-align: center;
}

.portfolio-video-wrapper {
  max-width: 1650px;
  width: 100%;
  height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px; /* можно убрать, если не нужен скруглённый край */
  position: relative;
}

.portfolio-video {
  position: absolute;
  inset: 0;
  padding: 2rem 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* или contain */
  object-position: center;
  border-radius: 80px;
  display: block;
}
.text_card__a {
  width: 100%;
  display: flex;
  background: none;
  border: none;
  padding: 0;
}
.portfolio-card {
  display: flex;
  position: relative; 
  overflow: hidden;
  justify-content: flex-start;
  align-items: flex-end;  
  padding: 16px;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}
.card-buttons {
  position: absolute;
  left: 16px;      /* отступ от левого края */
  bottom: 16px;    /* отступ от нижнего края */
  display: flex;
  gap: 8px;        /* расстояние между кнопками */
}
.portfolio-card__btn {
  background-color: #fff;
  color: #333;
  padding: 0.5rem  1rem;
  box-shadow: none;
  border: none;
  border-radius: 22px;
}

.portfolio-card_1 {
  /* путь к вашему файлу */
  background-image: url("../img/cases/saga_case.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
}
.portfolio-card_2 {
  /* путь к вашему файлу */
  background-image: url("../img/cases/express24.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
}
.portfolio-card_3 {
  background-image: url("../img/cases/pandora_case.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  box-shadow: 0 12px 24px rgba(153, 6, 121, 0.158);
}

.portfolio-card_4 {
  background-image: url("../img/cases/evos_case.png");
  background-size: cover;
  background-position: center;
}
.portfolio-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}
.portfolio-card_3:hover {
  box-shadow: 0 12px 24px rgba(153, 6, 121, 0.158);
}
.text_card {
  display: flex;
  align-items: center;
}
.text_card img {
  margin-bottom: 1rem;
}
.portfolio-card-title {
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}
.portfolio-button-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.portfolio-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #333;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.portfolio-button:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Секция растягивается на весь экран */
.directions-section {
  width: 100vw;
  align-items: center;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  padding: 4rem 3rem;
}
/* Заголовок секции сверху */
.directions-section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;

  color: #333;
}

/* Главное меню */
.directions-nav-full {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1600px;
  align-items: center;
  margin-left: 8rem;
}

.directions-nav-full .nav-item {
  padding: 0.8rem 1.5rem;
  background: none;
  border: 2px solid #ccc;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.directions-nav-full .nav-item.active {
  background: #007aff;
  border-color: #007aff;
  color: #fff;
}

.directions-nav-full .nav-item:hover:not(.active) {
  border-color: #007aff;
  color: #007aff;
}

/* Контент внутренний центрируется */
.directions-content {
  display: flex;
  height: 350px;
  gap: 20rem;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

/* Левая колонка */
.directions-left {
  flex: 1;
}

.direction-desc {
  font-size: 1rem;
  line-height: 1.5;
  height: 150px;
  color: #333;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.direction-subservices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.direction-subservices button {
  padding: 0.5rem 1rem;
  background: #333;
  color: #fff;
  border: 1px solid #333;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.direction-subservices button:hover {
  background: #fff;
  color: #333;
  border: 1px solid#333;
}
.readmore-button {
  display: inline-block;
  margin-top: 5rem;
  padding: 0.7rem 3rem;
  background: none;
  color: 333;
  border: 1px solid #333;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.readmore-button:hover {
  background: #333;
  color: #fff;

}

/* Правая колонка */
.directions-right {
  position: relative;
  overflow: hidden;
  /* подберите вашу нужную высоту */
  height: 400px;
  flex: 1;
}

.direction-big-title {
  position: relative;
  z-index: 2;
}

.direction-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

@keyframes rotateBG {
  from { transform: rotate(0deg)   scale(1.2); }
  to   { transform: rotate(360deg) scale(1.2); }
}



.clients {
  padding: 6rem 2rem;
}

.clients-container {

  margin: 0 auto;
}

.clients-intro {
  font-size: 2.5rem;
  color: #333;
  line-height: 1.2;
  max-width: 1300px;
  margin-bottom: 3rem;
  margin-left: 8rem;
}

/* Показываем ровно 5 логотипов по ширине и 3 ряда по высоте */
/* Разворачиваем секцию на всю ширину экрана */
.clients-logos-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  /* высота ровно под 3 ряда по 180px + 2 gaps по 2.5rem */
  max-height: calc(3 * 180px + 2 * 2.5rem);
}

/* Слайдер остаётся flex-контейнером */
.clients-slider {
  display: flex;
  will-change: transform;
}

/* Грид-трек с 3 рядами по 180px и автоколонками */
.clients-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 180px);
  grid-auto-columns: 180px;
  gap: 0 2.5rem;
  padding-right: 2.5rem; 
  box-sizing: content-box;
}

/* Логотипы фиксированного размера */
.clients-track img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: grayscale(100%);

  transition: filter .3s, opacity .3s, transform .3s;
}
.clients-track img:hover {
  filter: none;

  transform: scale(1.1);
}


.testimonials {
  padding: 6rem 10rem;
  background: #000;
  

}

.testimonials-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.testimonial-card {
  background: #161616;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(236, 236, 236, 0.06);
  display: flex;
  flex-direction: column;
  align-items: start;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  height: 100px;
}

.testimonial-author {
  font-size: 0.95rem;
  color: #ebebeb;
  font-style: italic;
}

.contacts-address span:hover {
  color: #fff;
}







.footer {
  background: #000;
  color: #fff;
  padding: 8rem 2rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-description {
  color: #aaa;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-socials a:hover img {
  opacity: 1;
}

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  margin-bottom: 2rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #aaa;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col span {
  color: #aaa;
}

.footer-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.footer-cta:hover {
  background: #ccc;
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #333;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}
/* Canvas *//* Canvas *//* Canvas *//* Canvas *//* Canvas */
.menu-bg-particles {
 position: absolute;
  inset: 0; /* top: 0; left: 0; right: 0; bottom: 0; */
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particles-bg {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff; /* если нужен */
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}
.hero, .fullscreen {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero.fullscreen > *:not(.menu-bg-particles) {
  position: relative;
  z-index: 1;
}

.info_8bit {
  width: 50%;
  font-size: 0.8rem;
  color: #ffffff73;
  font-weight: 400;
  text-align: left;
}
.info_8bit__about {
  color: #333;
}

/* loader *//* loader *//* loader *//* loader *//* loader *//* loader *//* loader */
#loader-overlay {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s;
}

#loader-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#loaderLogo {
  width: 250px;
  max-width: 60vw;
  display: block;
  opacity: 0;
  transition: opacity 0.1s linear;
}








.mobile-menu {
  display: none;
}
.footer-mobile {
  display: none;
}
  .footer-services-popover {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 0;
  z-index: 99999;
  background: rgba(30,30,30,0.13);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: flex-end;
}
@media (max-width: 1700px) {
  .directions-nav-full {
    margin: 0;
  }
  .portfolio-video {
    padding: 2rem 0;
  }
  .clients-intro {
    margin-left: 0;
  }
}

/* --- МОБИЛЬНАЯ ВЕРСТКА: до 400px --- */
@media (max-width: 700px) {
  .cta-nav { display: none !important; }
  .mobile-menu, .menu-overlay { display: none; }
  .mobile-menu.active, .menu-overlay.active { display: block; }
  body {
    font-size: 0.97rem;
    padding: 0;
    overflow-x: hidden;
  }
  body.menu-open {
  overflow: hidden;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #eee;
}
  .burger {
    display: flex;
    position: absolute;
    right: 2.5rem;
    top: 2.4rem;
  }
  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    margin-top: 0.4rem;
  }

  /* Мобильное меню */
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 5.3rem 1.3rem 1.8rem 1.3rem;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    transform: translateX(-120%);
    transition: transform 0.37s cubic-bezier(.79,0,.07,1);
    box-shadow: 0 10px 48px rgba(80,80,100,0.09);
  }
  .main-nav.active {
    transform: translateX(0%);
  }
  .mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
    background: #fff;
    z-index: 3000;
    overflow-y: auto;
    transition: transform 0.38s cubic-bezier(.8,0,.19,1);
    transform: translateX(100%);
  }
  .mobile-menu.active { transform: translateX(0); }
  .menu-overlay {
    position: fixed;
    z-index: 2999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,20,20,0.13);
    display: none;
  }
  .mobile-services-btn {
  background: none;
  border: none;
  color: #111;
  font-size: 1.12rem;
  font-weight: 400;
  text-align: left;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
}

.services-arrow {
  font-size: 1em;
  margin-left: 0.4em;
  transition: transform 0.22s;
}

/* Скрываем dropdown по умолчанию */
.mobile-services-dropdown {
  display: none;
  flex-direction: column;
  padding-left: 1.1rem;
  margin-top: 0.2em;
  gap: 0.6em;
  animation: fadeIn .2s;
}
.mobile-services-dropdown.active {
  display: flex;
}
.mobile-services-dropdown a {
  font-size: 1rem;
  color: #222;
  padding: 0.4em 0;
  border-radius: 6px;
  transition: background 0.13s;
}
.mobile-services-dropdown a:hover {
  background: #f3f3f3;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px);}
  to   { opacity: 1; transform: none;}
}
.mobile-services-btn.open .services-arrow {
  transform: rotate(180deg);
}
.mobile-menu-services-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #111;
  font-size: 1.5rem;
  text-align: left;
  padding: 0.7rem 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 0.2rem;
  border-radius: 7px;
  transition: background 0.15s;
}
.mobile-menu-services-toggle:hover,
.mobile-menu-services-toggle.open {
  background: #f3f6fa;
}

.mobile-menu-services-toggle .chevron {
  font-size: 1em;
  margin-left: 0.6em;
  transition: transform 0.22s cubic-bezier(.77,-0.17,.4,1.07);
}

.mobile-menu-services-list {
  display: none;
  flex-direction: column;
  gap: 2.6rem;
  margin-bottom: 0.6rem;
  margin-top: 0.1rem;
  padding-left: 1rem;
  animation: fadeIn 0.21s;
}
.mobile-menu-services-list.open {
  display: flex;
}
.mobile-menu-services-list a {
  color: #007aff;
  font-weight: 400;
  font-size: 1.08rem;
  padding: 0.2rem 0;
  transition: color 0.18s;
  border-radius: 4px;
}
.mobile-menu-services-list a:hover {
  color: #0055aa;
  background: #f3f6fa;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-12px);}
  to { opacity: 1; transform: none;}
}


  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
  .mobile-menu-close {
    font-size: 2.1rem;
    background: none;
    border: none;
    color: #111;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    padding: 0 2px;
  }
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.6rem;
  }
  .mobile-menu-nav a {
    font-size: 1.5rem;
    color: #111;
    letter-spacing: -0.02em;
    font-weight: 400;
    padding: 0.5rem 0;
    line-height: 1.1;
  }
  .mobile-menu-nav a:hover {
    color: #007aff;
  }
  .mobile-menu-contacts {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
  }
  .mobile-menu-discuss-btn {
    display: block;
    margin: 0 auto;
    font-size: 1.08rem;
    font-weight: 500;
    border: 1.7px solid #222;
    border-radius: 999px;
    padding: 1.08rem 0.6rem;
    color: #111;
    background: #fff;
    text-align: center;
    width: 100%;
    max-width: 340px;
    transition: background .19s, color .19s;
  }
  .mobile-menu-discuss-btn:hover {
    background: #111;
    color: #fff;
  }
  /* Offer */  /* Offer */  /* Offer */  /* Offer */
  .hero h1{
    background: none;
    font-size: 2.4rem;
  }
  .hero-right {
    display: none;
  }
  #particles-bg {
    width: 100vdh;
  }
  .hero.fullscreen {
    min-height: 100vdh;
    height: 100dvh;
    padding: 0 0.6rem 0 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
  }
  .fullscreen_offer {
    margin-top: 3rem;
  }
  .fullscreen {
    padding: 12rem 2rem;
    height: 100%;
  }
  .services {
    display: none;
  }

  
/* portfolio *//* portfolio *//* portfolio *//* portfolio *//* portfolio */

.portfolio-video-wrapper {
  padding: 0;
  border-radius: 0;
  height: 50vh;
}
.portfolio-video { 
  padding: 0;
  border-radius: 12px;
}
.portfolio-grid {
    grid-template-columns: 1fr !important; /* Только одна колонка */
    gap: 1rem;
    padding: 0.5rem 0;
    max-width: 98vw;
    margin-top: 3rem;
  }
  .portfolio-card {
    height: 200px;    /* Можешь поменять высоту под свой макет */
  }
  .card-buttons {
    display: none;
  }

/* directions *//* directions *//* directions *//* directions *//* directions */

  .directions-section {
    padding: 2rem;
    width: 100vw;
    margin: 0;
    left: 0;
    right: 0;
  }
  .directions-section__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    
  }
   .directions-nav-full {
    flex-direction: column;
    align-items: stretch;    /* кнопки на всю ширину */
    gap: 0.4rem;
    padding: 0;
    max-width: 99vw;
    margin-left: 0;
    margin-right: 0;
  }
   .directions-nav-full .nav-item {
    width: 100%;
    min-width: unset;
    text-align: left;
    border-radius: 999px;
    margin: 0;              /* убрать лишние отступы между кнопками */
  }
  .directions-content {
    flex-direction: column;
    gap: 0.7rem;
    height: auto;
    padding: 0 0.12rem;
    align-items: stretch;
  }
  .directions-left {
    margin-bottom: 0.7rem;
  }
  .direction-desc {
    margin-top: 2rem;
    font-size: 0.93rem;
    height: 200px;
  }
  .direction-readmore {
    margin-top: 1.1rem;
  }
 .directions-right,
  .direction-visual {
    display: none;
  }

.direction-subservices  {
    display: none;
}
.readmore-button {
  margin-top: 1rem;
}

/* clients *//* clients *//* clients *//* clients *//* clients */
.clients {
  padding: 2rem 2rem 6rem;
}
.clients-intro {
  display: none;
}

/* footer *//* footer *//* footer *//* footer *//* footer *//* footer */
.footer {
  display: none;
}
.footer, .footer-bottom, .footer-container { display: none !important; }
  .footer-mobile {
    display: block;
    width: 100vw;
    background: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -3px 24px rgba(40,40,40,0.07);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    padding: 0.6rem 0 0.3rem 0;
  }
  .footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 0;
  }
  .footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    text-align: center;
    color: #111;
    font-size: 0.97rem;
    text-decoration: none;
    padding: 0.1rem 0;
    font-weight: 500;
    transition: color 0.15s;
  }
  .footer-nav-item:active,
  .footer-nav-item:hover {
    color: #007aff;
  }
  .footer-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    margin-bottom: 4px;
  }
  .footer-nav-label {
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    margin-top: 0.1rem;
    font-weight: 500;
  }
  /* Акцент для svg (можно по классу, если надо) */
  .footer-nav-item:active svg,
  .footer-nav-item:hover svg {
    filter: drop-shadow(0 0 2px #007aff70);
    color: #007aff;
  }

.footer-services-popover.active {
  display: flex;
  animation: popoverIn 0.22s cubic-bezier(.71,-0.18,.28,1.12);
}
@keyframes popoverIn {
  from { opacity: 0; transform: translateY(80px);}
  to   { opacity: 1; transform: none;}
}
.popover-inner {
  position: relative;  /* Вот это добавь! */
  background: #fff;
  width: 100vw;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -3px 24px rgba(20,20,30,0.08);
  padding: 2rem 1.2rem 1.7rem 1.2rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  animation: popoverIn 0.22s;
}

.popover-inner h3 {
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  color: #111;
}
.popover-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.popover-inner li {
  margin: 0.8rem 0;
}
.popover-inner a {
  color: #111;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.16s;
}
.popover-inner a:hover {
  color: #007aff;
}
.popover-close {
  position: absolute;
  right: 1.3rem;
  top: 1.3rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  z-index: 10;
  font-weight: 300;
  line-height: 1;
}
.footer-services-popover.active .popover-inner {
  animation: popoverIn 0.22s;
}

}