/* ============================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ============================================ */

* {
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  color: #505050;
}

html {
  scroll-behavior: smooth;
  /* min-height: 100%; */
  /* background-attachment: fixed; */
}

::-webkit-scrollbar {
  width: 0 !important;
}

body {
  margin: 0;
  padding: 0;
}

p {
  margin-block-start: 0;
  margin-block-end: 0;
}

h2 {
  margin: 0;
  text-align: left;
  font-weight: 600;
  font-size: 32px;
  line-height: 46px;
  text-transform: uppercase;
}

button {
  cursor: pointer;
}

/* Градиентная маска сверху */
body::before {
  content: "";
  position: fixed;
  top: -40px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 60%,
    transparent 100%
  );
  z-index: 99;
  pointer-events: none;
}

/* ============================================
   LAYOUT - ОСНОВНАЯ СТРУКТУРА
   ============================================ */

/* Верхняя панель слева */
.top-left {
  position: fixed;
  top: 20px;
  left: 20px;
  width: calc(20vw - 30px);
  height: 90px;
  z-index: 100;
}

/* Верхняя панель справа */
.top-right {
  position: fixed;
  top: 20px;
  left: calc(20vw + 10px);
  right: 20px;
  height: 90px;
  z-index: 100;
}

/* Левая колонка (меню) */
.left-column {
  position: fixed;
  top: 130px;
  left: 20px;
  width: calc(20vw - 30px);
  bottom: 20px;
  z-index: 50;
}

/* Правая колонка (основной контент) */
.right-column {
  position: absolute;
  top: 130px;
  left: calc(20vw + 10px);
  right: 20px;
  padding-bottom: 20px;
}
.container {
  margin-bottom: 100px;
}

/* ============================================
   HEADER - ШАПКА САЙТА
   ============================================ */

/* Логотип */
.left-topbar {
  outline: 1px #b9b9b95c solid;
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  color: #0066ff;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  width: 320px;
  justify-content: flex-end;
}

.logo img {
  width: auto;
  height: 50px;
}

/* Верхняя панель справа */
.right-topbar2 {
  outline: 1px #b9b9b95c solid;
  width: 100%;
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-action {
  display: flex;
  gap: 20px;
}

.contact-info {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Социальные сети */
.socials {
  height: 40px;
  align-items: center;
  width: 100%;
  display: flex;
  max-width: 280px;
  justify-content: flex-end;
  gap: 15px;
}

/* Кнопка в шапке */
.button-header {
  font-size: 16px;
  color: #505050;
  width: 255px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background-color: #ffffff;
  outline: 1px #b9b9b95c solid;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color ease 0.3s, color ease 0.3s;
}

.button-header:hover {
  background-color: #1891c8;
  color: #ffffff;
}

/* ============================================
   NAVIGATION - НАВИГАЦИЯ
   ============================================ */

nav {
  display: flex;
  gap: 20px;
  padding: 20px;
  text-align: end;
  outline: 1px #b9b9b95c solid;
  border-radius: 15px;
  height: 100%;
  background: #ffffff;
  flex-direction: column;
}

.desktop_menu_bar {
  height: 100%;
}

.menu {
  height: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  font-size: 16px;
  padding: 0;
  list-style-type: none;
  gap: 20px;
}

.menu a {
  text-decoration: none;
}

.menu a:hover {
  color: #1891c8;
}

.menu_item {
}

.menu_item::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #ffffff 0%, #b9b9b9 200%);
  margin-top: 20px;
}

.menu_item.last_item::after {
  display: none;
}

.active_item > .parent-link {
  color: #1891c8;
}

.parent-link {
  padding-right: 24px;
}

.submenu-toggle {
  position: absolute;
  right: 20px;
  width: 16px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  transition: rotate 0.4s ease;
}

.submenu {
  opacity: 0;
  height: fit-content;
  margin-top: 0px;
  max-height: 0px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  list-style-type: none;
  transition: max-height 0.4s ease, opacity 0.1s ease;
}

.submenu-toggle.open {
  transform: rotate(180deg);
}

.submenu-toggle svg {
  width: 16px;
  height: 20px;
}

.submenu.open {
  margin-top: 20px;
  max-height: fit-content;
  opacity: 1;
}

.submenu_item {
  font-size: 14px;
}

.copywrite {
  text-align: center;
  font-size: 12px;
  margin-top: auto;
}

/* ============================================
   MAIN CONTENT - ОСНОВНОЙ КОНТЕНТ
   ============================================ */

.main-content {
  display: flex;
  gap: 120px;
  border-radius: 15px;
  padding: 40px 60px 40px 40px;
  flex-direction: column;
}

.top-block {
  padding-top: 80px;
}

/* ============================================
   FIRST SCREEN - ПЕРВЫЙ ЭКРАН
   ============================================ */

.fs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fs-content-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fs-text {
  width: 200%;
}

.main-title {
  font-size: 42px;
  margin-bottom: 30px;
  font-weight: normal;
}

.description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

.cta-section {
  display: flex;
  gap: 30px;
  align-items: center;
}

.fs-button {
  background: #ffffff;
  display: flex;
  outline: 1px #b9b9b95c solid;
  width: 100%;
  padding: 20px;
  border-radius: 15px;
  justify-content: center;
  height: 60px;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  transition: all ease 0.3s;
}

.portfolio-link:hover {
  background: #f8f8f8;
  outline: 1px #1891c8 solid;
}

.portfolio_list {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.cta-button {
  background: #1891c8;
  color: white;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #1577a8;
}

.cases-link {
  background: #ffffff;
  outline: 1px #b9b9b95c solid;
  color: #666;
}

.cases-link:hover {
  background: #f5f5f5;
}

/* Правая часть первого экрана */
.fs-content-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  text-align: left;
  text-decoration: none;
  outline: 1px #b9b9b95c solid;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  transition: background-color ease 0.3s, color ease 0.3s;
}

.service-card:hover {
  background-color: #1891c8;
}

.service-card:hover .service-title {
  color: #ffffff;
}

.service-card:hover .service-svg {
  stroke: #ffffff;
}

.service-card:hover .service-svg2 {
  fill: #ffffff;
}

.service-icon {
  display: flex;
  flex-shrink: 0;
}

.solo {
  display: flex;
  align-items: flex-end;
}

/* ============================================
   BENEFITS - ПРЕИМУЩЕСТВА
   ============================================ */

.benefits {
  display: flex;
  text-align: center;
  gap: 40px;
  flex-direction: column;
}

.benefits_content {
  display: grid;
  gap: 40px 20px;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.benefits_element {
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.benefits_element h4 {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  margin: 0;
}

.benefits_element p {
  font-size: 16px;
  line-height: 20px;
}

/* ============================================
   STRATEGY - СТРАТЕГИЯ (ШАГИ)
   ============================================ */

.strategy {
  display: flex;
  text-align: center;
  gap: 40px;
  flex-direction: column;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.step-card {
  gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(24, 145, 200, 1) 0%,
    rgba(38, 112, 217, 1) 100%
  );
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
}

.step-title {
  text-align: left;
  display: flex;
  align-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 500;
  height: 56px;
  text-transform: uppercase;
  line-height: 24px;
}

.step-description {
  text-align: left;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #505050;
}

/* ============================================
   CAROUSEL - КАРУСЕЛЬ ЛОГОТИПОВ
   ============================================ */

.client-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients_item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 15px;
  padding: 13px;
  flex-shrink: 0;
  border: 1px #b9b9b95c solid;
}

.clients_item img {
  width: 80%;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 28px;
  font-weight: bold;
  color: #667eea;
  text-align: center;
}

/* Градиентные маски по краям карусели */

.client-wrapper::before,
.client-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.client-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.client-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   REVIEWS - ОТЗЫВЫ
   ============================================ */

.reviews {
  display: flex;
  gap: 40px;
  flex-direction: column;
}

.reviews-content {
  width: 100%;
}

.reviews-content .slider {
  width: 100%;
  margin: 0 auto;
}

.slider__item {
  display: grid;
  grid-template: 1fr / 250px 1fr;
  outline: none;
}

.slider__picture {
  border: 1px #b9b9b95c solid;
  border-radius: 15px;
  overflow: hidden;
}

.slider__picture a {
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  outline: none;
  display: block;
}

.slider__picture img {
  width: 100%;
  height: auto;
  display: block;
}

.slider__text {
  text-align: left;
  display: flex;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}
.slider__text p {
  margin-block-end: 10px;
}

.slider__subscription {
  display: flex;
  align-items: center;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 600;
}

.slider__subscription img {
  height: 50px;
  margin-right: 30px;
  width: auto;
}

/* Fancybox Carousel стили */

.carousel-container {
  margin-bottom: 0px;
  display: flex;
  gap: 40px;
  flex-direction: column;
}

.f-carousel {
  --f-arrow-pos: 10px;
  --f-arrow-width: 23px;
  --f-arrow-height: 23px;
  --f-arrow-svg-width: 18px;
  --f-arrow-svg-height: 18px;
  --f-arrow-svg-stroke-width: 2.5;
}

.f-carousel__viewport {
  padding-bottom: 20px;
}

.f-carousel__dot:after {
  background-color: #b9e1f3;
}

.f-carousel__dot.is-selected:after {
  background-color: #1891c8;
}

.f-carousel__dot:hover:after {
  background-color: #1891c8;
}

.f-carousel > .is-arrow {
  inset: calc(100% + 10px) auto auto !important;
  transform: translateY(-50%);
}

.f-carousel > .is-prev {
  left: 0 !important;
}

.f-carousel > .is-next {
  right: 0 !important;
}

.carousel-cirle-dot {
  border: none;
  background: none;
  padding: 0 4px;
  cursor: pointer;
}

.is-selected svg {
  border: 2px solid #1697c5;
  border-radius: 100px;
}

#client-logo {
  --f-carousel-gap: 20px;
  --f-carousel-slide-width: calc(100% / 6);
}

.breadcrumbs li {
  margin-right: 4px;
}

.bread-nav {
  padding: 0px;
  outline: none;
  font-size: 14px;
  line-height: 20px;
}

.bread-nav ul {
  list-style-type: none;
  display: flex;
  padding: 0px;
  margin: 0px;
}

.breadcrumb-item a {
  text-decoration-thickness: 0.1em;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.on-dev {
  height: 524px;
}

/* ============================================
   FAQ - АККОРДЕОН
   ============================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion {
  gap: 20px;
  outline: 1px #b9b9b95c solid;
  border-radius: 15px;
  background: #ffffff;
  border: 0;

  cursor: pointer;
  display: flex;
  min-height: 62px;
  padding: 30px 20px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  width: 100%;
  color: #505050;
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
  transition: background-color ease 0.66s;
}

.accordion:hover {
  outline: 1px #1891c8 solid;
  background-color: #f8f8f8;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
}

.accordion svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  flex-shrink: 0;
  stroke: #505050;
  transition: transform 0.4s;
}

.faq-grid > .active {
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
  background: #1891c8;
}

.faq-grid > .active > .faq_headline {
  color: #ffffff;
}

.faq-grid > .active svg {
  transform: rotate(0deg);
  stroke: #ffffff;
}

.panel {
  display: none;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
  font-size: 16px;
  line-height: 20px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.panel.active {
  display: flex;
}

/* ============================================
   FORM - ФОРМА ОБРАТНОЙ СВЯЗИ
   ============================================ */

.form-block {
  padding: 40px 60px 40px 40px;
}

.form-bg {
  background: linear-gradient(
    135deg,
    rgba(24, 145, 200, 1) 0%,
    rgba(38, 112, 217, 1) 100%
  );
  outline: 1px #b9b9b95c solid;
  border-radius: 15px;
}

.form-content {
  width: 100%;
  gap: 20px;
  background-image: url(../img/chart.svg);
  background-repeat: no-repeat;
  background-position: bottom 25% right 40px;
  background-size: 40%;
  display: flex;
  border-radius: 15px;
  padding: 40px;
  flex-direction: column;
}

.form-text {
  display: flex;
  gap: 20px;
  flex-direction: column;
  max-width: 800px;
}

.form-text h1,
.form-text p,
.form-text span {
  color: #ffffff;
}

.form-text span {
  text-align: left;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  text-transform: uppercase;
}

.form-column {
  display: flex;
  flex-direction: column;
}

.form-column {
  flex-wrap: wrap;
  display: flex;
  gap: 20px;
}

.form-column input,
.form-column button {
  font-size: 16px;
  color: #505050;
  border: none;
  background: #ffffff;
  outline: 1px #b9b9b95c solid;
  width: 255px;
  height: 50px;
  border-radius: 15px;
  padding: 0 20px;
  transition: all ease 0.3s;
}

.form-column input:focus {
  outline: 2px solid #1891c8;
}

.form-column button:hover {
  background: #1891c8;
  color: #ffffff;
}

.form-row {
  flex-wrap: wrap;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, max-content);
}

.form-row input,
.form-row button {
  font-size: 16px;
  color: #505050;
  border: none;
  background: #ffffff;
  outline: 1px #b9b9b95c solid;
  width: 255px;
  height: 50px;
  border-radius: 15px;
  padding: 0 20px;
  transition: all ease 0.3s;
}

.form-row input:focus {
  outline: 2px solid #1891c8;
}

.form-row button:hover {
  background: #1891c8;
  color: #ffffff;
}

.prices_block {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.price_item {
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  outline: 1px #b9b9b95c solid;
  transition: background-color ease 0.3s, color ease 0.3s;
  height: fit-content;
  display: flex;
  gap: 20px;
  flex-direction: column;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
}

.price {
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(24, 145, 200, 1) 0%,
    rgba(38, 112, 217, 1) 100%
  );
  padding: 20px;
  min-height: 80px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.price > h4 {
  font-size: 24px;
  color: #ffffff;
  margin: 0px;
  font-weight: 600;
  text-transform: uppercase;
}

.price > p {
  font-size: 14px;
  line-height: 16px;
  color: #ffffff;
}

.price_item > h3 {
  font-size: 24px;
  line-height: 24px;
  margin: 10px 0px 0px 0px;
  font-weight: 500;
}

.price_description {
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.price_description > p {
  font-size: 14px;
  line-height: 18px;
}

.contacts_button {
  background-color: #ffffff;
  border: none;
  outline: 1px #b9b9b95c solid;
  display: flex;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  transition: all ease 0.3s;
}

.contacts_button:hover {
  background-color: #1891c8;
  color: #ffffff;
}

.show_more {
  height: 90%;
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: none;
}

.show_more p {
  max-width: 70%;
  margin: 0 auto;
}

.show_more p::after {
  content: "";
  background-image: url(../img/cases-2/arrow-white.svg);
  width: 150px;
  height: 14px;
  background-size: contain;
  position: relative;
  background-repeat: no-repeat;
  background-position: left center;
  display: inline-block;
  transition-duration: 0.2s;
}

.show_more:hover p::after {
  margin-left: 80px;
}

.modal {
  display: none;
  overflow-x: hidden;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: scroll;
}

.modal-content {
  position: relative;
  max-width: 1024px;
  width: 85vw;
  margin: 0% auto;
  animation-name: animatetop;
  animation-duration: 0.8s;
  min-width: min-content;
  text-align: center;
  border-radius: 15px;
  color: #ffffff;
}

.close {
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  position: absolute;
  top: -70px;
  right: 0px;
}
.close:hover,
.close:focus {
  color: rgb(255, 230, 0);
  text-decoration: none;
  cursor: pointer;
}
.modal_active {
  display: block;
  align-content: center;
}
.overflow_hidden {
  overflow: hidden;
}

#modal-form > .is-close-button svg {
  border: none;
}

#modal-form {
  width: 80%;
  padding: 0px;
}

/* CASES PROJECT BACKGROUNDS */

.fi-1 {
  background-color: #344b71;
}

.pr-mi-1 {
  background-color: #26497a;
}

.si-sc-1 {
  background-color: #55785b;
}

.mt-1 {
  background-color: #252525;
}

.mg-tex1 {
  background-color: #fed526;
}

.sz-kh-1 {
  background-color: #ff3e35;
}

.ak-1 {
  background-color: #f6f7fb;
}

.or-bu-1 {
  background-color: #ebf5ef;
}

.sp-1 {
  background-color: #ff9800;
}

.vs-1 {
  background-color: #f07e2c;
}

.bl-1 {
  background-color: #154001;
}

.pb-1 {
  background-color: #bf3007;
}

.vi-1 {
  background-color: #000000;
}

.as-in-1 {
  background-color: #3a3e59;
}

.mi-ag-1 {
  background-color: #f3f4ef;
}

.cases {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cases-item {
  outline: 1px #b9b9b95c solid;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases-item::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.cases-item img {
  filter: grayscale(70%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cases-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cases-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.cases-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  color: #505050;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
}

/* Широкие блоки 1х2 */
.cases-item:nth-child(1),
.cases-item:nth-child(6),
.cases-item:nth-child(7),
.cases-item:nth-child(12),
.cases-item:nth-child(13) {
  grid-column: span 2;
  grid-row: span 1;
}

.cases-item:nth-child(1)::before,
.cases-item:nth-child(6)::before,
.cases-item:nth-child(7)::before,
.cases-item:nth-child(12)::before,
.cases-item:nth-child(13)::before {
  padding-bottom: 50%;
}

.all-cases-item {
  background: #000;
}

.all-cases-item::before {
  display: none;
}

.all-cases-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.all-cases-btn:hover {
  background: white;
  color: #000;
}

.portfolio-page {
  gap: 60px;
}

.portfolio-page h1 {
  margin: 0;
  text-align: left;
  font-weight: 600;
  font-size: 32px;
  line-height: 46px;
  text-transform: uppercase;
}

.portfolio_nav {
  margin: 0;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  justify-content: left;
}

.portfolio_nav a {
  color: #505050;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
.portfolio_nav li {
  list-style-type: none;
}

.portfolio_nav_item:hover {
  color: #505050;
  outline: 1px #1891c8 solid;
}

.portfolio_nav_item {
  display: flex;
  height: 50px;
  transition: border-color 0.4s ease-out 10ms;
  border-color: transparent;
  padding: 10px 30px;
  border-radius: 15px;
  align-self: center;
  outline: 1px #b9b9b95c solid;
  align-items: center;
}

.portfolio_nav_active_item {
  background-color: #1891c8;
  color: #ffffff;
  cursor: default;
}

.portfolio_nav_active_item:hover {
  color: #ffffff;
  outline: 1px #b9b9b95c solid;
}

.portfolio_item {
  text-decoration: none;
  outline: 1px #b9b9b95c solid;
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow 0.4s ease-out 10ms;
}

.portfolio_item:hover {
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
}

.portfolio_description {
  width: 50%;
  padding: 20px;
  color: #505050;
}

.portfolio_image {
  justify-content: center;
  display: flex;

  border-radius: 15px;
  overflow: hidden;
}

.portfolio_image img {
  height: 100%;
}

.case_about_page h1 {
  margin: 0;
  text-align: left;
  font-weight: 600;
  font-size: 32px;
  line-height: 46px;
  text-transform: uppercase;
}

.charts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.chart-card {
  grid-template-columns: 2fr 1fr;
  display: grid;
  flex-direction: column;
  gap: 20px;
  border-radius: 15px;
  padding: 20px;
  border: 1px #b9b9b95c solid;
}
.subtitle {
  font-size: 20px;
  color: #505050;
  font-weight: 500;
}

.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-card {
  display: flex;
  border-radius: 15px;

  align-content: center;
  justify-content: center;
  flex-direction: column;
}

.chart-portfolio-link {
  background: #ffffff;
  display: flex;
  outline: 1px #b9b9b95c solid;
  width: 100%;
  padding: 15px 20px;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  transition: all ease 0.3s;
}

.chart-portfolio-link:hover {
  color: #ffffff;
  background: #1891c8;
  outline: 1px #1891c8 solid;
}

/*
.metric-card.cyan {
  background: #e0f7f7;
  border-color: #67e8f9;
}

.metric-card.yellow {
  background: #fef3c7;
  border-color: #fde047;
}

.metric-card.red {
  background: #fee2e2;
  border-color: #fca5a5;
}

.metric-card.blue {
  background: #dbeafe;
  border-color: #93c5fd;
}

.metric-card.gray {
  background: #f3f4f6;
  border-color: #d1d5db;
}
*/
.metrics-block {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.metric-label {
  font-size: 16px;
  color: #505050;
}

.metric-value {
  font-size: 22px;
  font-weight: 600;
  color: #505050;
}

.chart-container {
  position: relative;
  height: 400px;
}
.case_group_ppc {
  background-color: #2279d4;
}
.case_group_dev {
  background-color: #db3c4c;
}

.case_group_ui {
  background-color: #252525;
}
.case_group_seo {
  background-color: #109d70;
}

.case_group {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  padding: 10px 20px;
  width: 150px;
  border-radius: 10px;
}

.portfolio_description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.portfolio_description h4 {
  margin: 0;
  padding-bottom: 20px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
}

.porfolio_short_description {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.porfolio_short_description p {
  font-size: 14px;
}

.porfolio_short_description a {
  text-decoration: none;
}

.show_case {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #505050;
  background-color: #ffffff;
  padding: 10px 20px;
  width: 150px;
  border-radius: 10px;
  border: 1px #b9b9b95c solid;
  transition: background-color ease 0.3s, color ease 0.3s;
}

.show_case:hover {
  background-color: #1891c8;
  color: #ffffff;
}

.portfolio_list_block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-content {
  gap: 60px;
}

.case_about {
  padding: 20px;
  outline: 1px #b9b9b95c solid;
  border-radius: 15px;
  display: flex;
  gap: 20px;
  flex-direction: column;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
}

.case_about h2 {
  text-align: left;
  margin: 0;
  font-size: 24px;
  line-height: 28px;
}

.case_about ol {
  margin: 0;
}

.case_type {
  font-size: 14px;
  line-height: 18px;
  gap: 20px;
  display: flex;
  flex-direction: row;
}

.case_type > :nth-child(n) {
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 500;
  color: #ffffff;
  width: fit-content;
}

.case_type :nth-child(1) {
  background-color: #11b792;
}

.case_type :nth-child(2) {
  background-color: #db3c4c;
}

.case_type :nth-child(4) {
  background-color: #ff9b19;
}

.case_type :nth-child(3) {
  background-color: #1891c8;
}

.case_about img {
  border-radius: 15px;
  border: 1px #b9b9b95c solid;
}
.social__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  padding: 0px;
  border-radius: 10px;
  background: #000000;
  transition: opacity ease 0.3s;
  outline: 1px #b9b9b95c solid;
}

.social__item svg {
  height: 22px;
  width: 22px;
}

.social__item:hover {
  opacity: 0.8;
}

.telegram {
  background: #0088cc;
}

.viber {
  background: #6f5cea;
}

.whatsapp {
  background: #13bc52;
}

.linkedin {
  background: #006a9d;
}

.email-icon {
  background: #db3c4c;
}

/* .telegram {
  background: linear-gradient(135deg, #0088cc 0%, #01679a 100%);
}

.viber {
  background: linear-gradient(135deg, #6f5cea 0%, #594ea2 100%);
}

.whatsapp {
  background: linear-gradient(135deg, #13bc52 0%, #28874c 100%);
}

.linkedin {
  background: linear-gradient(135deg, #008bd0 0%, #006a9d 100%);
}

.email-icon {
  background: linear-gradient(135deg, #db3c4c 0%, #a9193d 100%);
}
*/

.mobile-menu {
  width: 100%;
  height: 100vh;
  padding: 15px;
  border-radius: 15px;
  outline: 1px #b9b9b95c solid;
}

#mobile-menu > .is-close-button {
  display: none;
}

.menu-logo-block {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.menu-logo {
  display: none;
}

.menuButton {
  display: none;
  border: none;
  height: 36px;
  width: 36px;
  background: #1891c8;
  flex-direction: column;
  padding: 10px;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  outline: 1px #b9b9b95c solid;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.menu-logo img {
  width: auto;
  height: 36px;
}

.menu-close-button {
  display: flex;
  border: none;
  background: none;
  padding: 0px;
  align-content: center;
  align-items: center;
  outline: 1px #b9b9b95c solid;
  padding: 10px;
  height: 36px;
  width: 36px;
  align-content: center;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.menu-close-button svg {
  stroke-width: 1.5px;
  width: 20px;
  height: 20px;
  transform: rotate(0deg);
  flex-shrink: 0;
  stroke: #505050;
  transition: transform 0.4s;
  border: none;
}

.menu-socials .social__item {
  height: 44px;
  width: 44px;
}

.menu-socials {
  width: 100%;
  gap: 20px;
  display: flex;
  justify-content: center;
}

.menu-socials svg {
  border: none;
  border-radius: 0px;
}

.menu-socials a {
  display: flex;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.mobile-menu-button {
  font-size: 16px;
  color: #505050;
  border: none;
  background-color: #ffffff;
  outline: 1px #b9b9b95c solid;
  width: 100%;
  height: 50px;
  border-radius: 15px;
  transition: background-color ease 0.3s, color ease 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.modal-form-content {
  height: 100%;
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px 10px 10px;
}

.mobile-menu-list li {
  font-size: 14px;
  line-height: 16px;
}

.mobile-menu-list {
  height: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0 10px;
}

.mobile-menu-list li {
  margin: 20px 0;
  list-style-type: none;
}
.menu_item {
  text-decoration: none;
}

.mobile-footer {
  display: none;
  background: transparent;
  position: fixed;
  bottom: 0px;
  margin-bottom: 20px;
  height: min-content;
  left: 20px;
  right: 20px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
  box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
  border-radius: 15px;
}

.mobile-footer-links {
  align-items: center;
  height: 66px;
  background: #ffffff;
  display: flex;
  outline: 1px #b9b9b95c solid;
  padding: 15px 25px;
  border-radius: 15px;
  justify-content: space-between;
}

.mobile-footer-links svg {
  width: 36px;
  height: 36px;
}

.mobile-social-links a {
  align-items: center;
  height: 36px;
  width: 36px;
  display: flex;
}

.mobile-social-links svg {
  height: 18px;
  width: 18px;
}

.mobile-social-links {
  display: none;
  opacity: 0;
  position: fixed;
  bottom: 20px;
  left: 10px;
  right: 10px;
  z-index: 4;
  transition: all 0.3s ease;
}

.activePanel {
  opacity: 1;
  bottom: 96px;
}

.phonemenuButton {
  border: 0px;
  padding: 8px;
  height: 36px;
  width: 36px;
  background: #db3c4c;
  /* background: linear-gradient(135deg, #db3c4c 0%, #a9193d 100%);*/
  outline: 1px #b9b9b95c solid;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.phonemenuButton svg {
  height: 18px;
  width: 18px;
}

.socialmenuButton {
  border: none;
  height: 36px;
  width: 36px;
  background: #505050;
  flex-direction: column;
  padding: 10px;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  outline: 1px #b9b9b95c solid;
}

.gotop-btn {
  background: #1891c8;
  width: 40px;
  height: 40px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: 0;
  border-radius: 10px;
  outline: 1px #b9b9b95c solid;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  justify-content: center;
  align-items: center;
  display: flex;
}
.gotop-btn.visible:hover {
  transform: scale(1.1);
}

.gotop-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gotop-btn svg {
  height: 12px;
  width: 16px;
}

.mobile-gotop-btn {
  border: none;
  height: 36px;
  width: 36px;
  background: #1891c8;
  flex-direction: column;
  padding: 10px;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  outline: 1px #b9b9b95c solid;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.mobile-gotop-btn svg {
  height: 12px;
  width: 16px;
}

#modal-form {
  border-radius: 15px;
  padding: 20px;
  border: 1px #b9b9b95c solid;
}
.modal-form {
  grid-template-columns: 1fr 2fr;
  display: grid;
  flex-direction: column;
  gap: 20px;
}

@media screen and (max-width: 1366px) {
  #client-logo {
    --f-carousel-slide-width: calc(100% / 5);
  }

  .top-left,
  .left-column {
    width: calc(25vw - 30px);
  }
  .top-right,
  .right-column {
    left: calc(25vw + 10px);
  }
}

@media screen and (max-width: 1199px) {
  .cases-label {
    bottom: 15px;
    left: 15px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .left-topbar {
    padding: 15px;
  }

  .top-right,
  .right-topbar2,
  .top-left {
    height: 80px;
  }

  .top-left {
    height: 80px;
  }

  .left-column {
    top: 120px;
  }

  .top-block {
    padding: 60px 20px 20px 20px;
  }

  .main-content {
    padding: 20px;
  }

  .form-block {
    padding: 40px 20px;
  }

  .form-content {
    padding: 40px 30px;
  }
  .button-header {
    width: 220px;
  }
  .socials {
    max-width: 280px;
  }

  .social__item {
    height: 38px;
    width: 38px;
  }

  .menu_item li {
    font-size: 14px;
    line-height: 16px;
  }

  .logo img {
    width: auto;
    height: 50px;
  }
}

@media (min-width: 1949px) {
  .top-right {
    left: calc(20vw + 5%);
    right: 5%;
  }

  .top-left {
    left: 5%;
  }

  .right-column {
    max-width: 1506px;
    left: calc(20vw + 5%);
    right: 5%;
  }
  .left-column {
    left: 5%;
  }
}

@media (min-width: 1999px) {
  .top-right {
    left: calc(20vw + 10%);
    right: 10%;
  }

  .top-left {
    left: 10%;
  }

  .right-column {
    left: calc(20vw + 10%);
    right: 10%;
  }
  .left-column {
    left: 10%;
  }
}

@media (min-width: 2299px) {
  .top-right {
    left: calc(20vw + 15%);
    right: 15%;
  }

  .top-left {
    left: 15%;
  }

  .right-column {
    left: calc(20vw + 15%);
    right: 15%;
  }
  .left-column {
    left: 15%;
  }
}

@media (max-width: 1099px) {
  .cases-label {
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .all-cases-item {
    height: 100px;
    grid-column: 1 / 3;
    background: #000;
  }

  #client-logo {
    --f-carousel-slide-width: calc(100% / 3);
  }

  .menu-logo {
    display: flex;
  }

  .menuButton {
    display: flex;
  }

  .fs-text {
    width: 150%;
  }
  .main-content {
    gap: 60px;
  }

  .fs-content-right {
    grid-column: 1 / 3;
  }

  .fs {
    row-gap: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Все блоки становятся прямоугольными (высота 50% от ширины) */
  .cases-item::before {
    padding-bottom: 50%;
  }

  .cases-item:nth-child(1),
  .cases-item:nth-child(6),
  .cases-item:nth-child(7),
  .cases-item:nth-child(12),
  .cases-item:nth-child(13) {
    grid-column: span 1;
  }

  .cases-item:nth-child(1)::before,
  .cases-item:nth-child(6)::before,
  .cases-item:nth-child(7)::before,
  .cases-item:nth-child(12)::before,
  .cases-item:nth-child(13)::before {
    padding-bottom: 50%;
  }
  .mobile-footer {
    left: 10px;
    right: 10px;
    margin-bottom: 20px;
  }

  .top-right {
    left: 10px;
    right: 10px;
    top: 20px;
  }
  .top-left {
    display: none;
  }
  .left-column {
    display: none;
  }
  .right-column {
    left: 10px;
    right: 10px;
  }
  .benefits_content {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h2 {
    line-height: 36px;
  }
  .right-topbar2 {
    box-shadow: 0px 0px 20px 0px rgba(80, 80, 80, 0.1);
    padding: 15px;
  }
}

@media (max-width: 1024px) {
  body::before {
    display: none;
  }
  .mobile-footer {
    display: block;
  }
  .mobile-social-links {
    display: flex;
  }
  .carousel-container {
  }
  #client-logo {
    --f-carousel-slide-width: calc(100% / 3);
  }

  .client-wrapper::before,
  .client-wrapper::after {
    width: 80px;
  }

  .portfolio_image {
    width: 306px;
  }
  .contact-info {
    display: none;
  }
  .form-content {
    padding: 30px 30px;
  }
  .form-content {
    flex-direction: row;
  }
  .form-row {
    display: flex;
    flex-direction: column;
  }
  .form-text span {
    font-size: 28px;
    line-height: 32px;
  }
  .subtitle {
    font-size: 18px;
  }
  .case_about_page h1 {
    font-size: 30px;
    line-height: 32px;
  }
  .bread-nav {
    padding-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .form-row input,
  .form-row button {
    width: auto;
  }

  .cases-item {
    grid-column: 1 / 2;
  }
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cases-label {
    font-size: 12px;
    bottom: 15px;
    left: 15px;
    padding: 8px 14px;
  }
  .benefits_content {
    grid-template-columns: repeat(1, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .cases-item:nth-child(1),
  .cases-item:nth-child(6),
  .cases-item:nth-child(7),
  .cases-item:nth-child(12),
  .cases-item:nth-child(13) {
    grid-column: 1;
    grid-row: span 1;
  }
  .contact-info {
    display: none;
  }
  .fs-text {
    width: 100%;
  }
  .right-topbar2 {
    background: #ffffff;
  }
  .socials {
    display: none;
  }
  .fancybox__slide.has-close-btn {
    padding: 10px;
  }

  .form-content {
    flex-direction: column;
  }
}

@media (max-width: 450px) {
  .slider__item {
    border: 1px #b9b9b95c solid;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .slider__picture {
    height: 300px;
    border-radius: 10px;
  }
  .slider__subscription {
    padding-top: 0px;
    font-size: 14px;
    line-height: 16px;
    height: 80px;
  }
  .slider__subscription img {
    height: 36px;
    margin-right: 20px;
  }
  .slider__text {
    padding-left: 0px;
    font-size: 14px;
    line-height: 18px;
  }

  .slider__text p {
    display: none;
  }

  .price_item,
  .case_about,
  .slider__item,
  .service-card,
  .panel,
  .chart-card {
    padding: 15px;
  }
  .accordion {
    padding: 20px 15px;
  }
  .chart-card {
    grid-template-columns: 1fr;
  }
  .chart-container {
    height: 200px;
  }
  #client-logo {
    --f-carousel-slide-width: calc(100% / 2);
  }
  .form-row {
    grid-template-columns: repeat(1, max-content);
  }
  .prices_block {
    grid-template-columns: repeat(1, max-content);
  }
  .fs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .fs-content-right {
    grid-column: auto;
  }
  .right-topbar2 {
    height: 66px;
  }
  .fancybox__slide.has-close-btn {
    padding: 20px 10px;
  }

  .client-wrapper::before,
  .client-wrapper::after {
    width: 60px;
  }
  .portfolio_item {
    flex-direction: column-reverse;
  }
  .portfolio_description {
    width: 100%;
  }
  .portfolio_image {
    width: auto;
    height: 200px;
  }
  .faq_headline {
    line-height: 18px;
    font-size: 16px;
  }
  .panel {
    line-height: 18px;
    font-size: 14px;
  }
}
