* {
    font-family: "Montserrat", sans-serif;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background-color: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    visibility: hidden;
}

body {
    background-color: #000;
    overflow-x: hidden;
    cursor: url('../img/icons/cursor.svg'), auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #fff;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        top: -10%;
        opacity: 0.7;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .snowflake {
        opacity: 0.15 !important;
        filter: grayscale(1) brightness(1) contrast(1);
        -webkit-filter: grayscale(1) brightness(1) contrast(1);
    }
}

.bg-nav {
    background-color: rgba(25, 25, 25, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid #ffffff36;
    border-radius: 40px;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1320px;
}

.logo {
    width: 200px;
}


.btnn {
    background-color: #ffffff2a;
    border-radius: 15px;
    border: 1px solid #ffffff6b;
}

.banneer {
    height: 400px;
}

.banneer-small {
    height: 400px;
    background-position: center center !important;
    background-size: cover !important;
    box-shadow: inset 0 -150px 100px -50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.banneer-category {
    height: 900px;
    background-position: center center !important;
    background-size: cover !important;
    box-shadow: inset 0 -200px 200px -50px rgba(0, 0, 0, 0.938);
    position: relative;
}

.banner-content {
    height: 600px;
}

.banner-content-small {
    height: 300px;
}

.dashed-wrapper {
    position: relative;
    display: inline-block;
}

.dashed-border {
    border: 2px dashed #fff;
    padding: 10px 20px;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.dashed-wrapper::before,
.dashed-wrapper::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
}

.dashed-wrapper::before {
    top: -7px;
    left: -7px;
}

.dashed-wrapper::after {
    top: -7px;
    right: -7px;
}

.dashed-border::before,
.dashed-border::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
}

.dashed-border::before {
    bottom: -7px;
    left: -7px;
}

.dashed-border::after {
    bottom: -7px;
    right: -7px;
}


.nav-link {
    border: 1px solid #ffffff36;
    border-radius: 40px;
    margin: 0 10px;
    padding: 8px 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    background-color: #fff;
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.nav-link:hover * {
    color: #000 !important;
}

.nav-link:hover img {
    filter: brightness(0) saturate(100%);
}

.nav-link:hover i,
.nav-link:hover svg,
.nav-link:hover span {
    color: #000 !important;
    fill: #000 !important;
}

.nav-link.active {
    background-color: #fff;
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.nav-link.active * {
    color: #000 !important;
}

.nav-link.active img {
    filter: brightness(0) saturate(100%);
}

.nav-link-exclusive {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-link-exclusive::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.nav-link-exclusive:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

.banner-text { 
    font-size: 22px;
    font-weight: 600;
}



  @media screen and (min-width: 760px) {
    .hidden2 {
        display: none;
    }


    .navbar-expand-lg .navbar-nav .nav-link{
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    
  }

  @media screen and (max-width: 760px){ 

    .hidden {
        display: none;
    }

    .banneer {
        height: 350px;
    }

    .banneer-small {
        height: 300px;
        box-shadow: inset 0 -80px 60px -30px rgba(0, 0, 0, 0.8);
    }

    .banneer-category {
        height: 500px;
        box-shadow: inset 0 -100px 80px -30px rgba(0, 0, 0, 0.938);
    }

    .banner-content {
        height: 250px;
    }

    .banner-content-small {
        height: 300px;
    }

    .nav-link {
        margin: 5px 0;
    }
    .logo {
      width: 150px;
    }

  
    
  }

  @media screen and (min-width: 1440px) {
    .banneer {
        height: 1200px;
    }
    .banneer-small {
        height: 700px;
    }

    .banner-content-small {
        height: 500px;
    }

  }


  p {
    color: #5D5D5D;
  }

  .trust-banner {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 0%, rgba(15, 15, 15, 0.9) 30%, rgba(50, 50, 50, 0.8) 100%);
    border-radius: 20px;
    padding: 20px 40px;
    border: 1px solid #ffffff20;
  }

  .text-trust {
    color: #B5B5B5;
    font-size: 20px;
    text-align: center;
    margin: 0;
  }
  .mt-10 {
    margin-top: 220px !important;
  }
  #portfolio .fw-semibold {
    padding: 40px 0 10px 10px;
    margin: 300px 0 0 0;
  }
  #portfolio .fw-medium {
    color: #5D5D5D;
  }

  .portfolio-section-bg {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.9) 40%, rgba(30, 30, 30, 0.85) 100%);
    border-radius: 30px;
    padding: 20px 10px;
    border: 1px solid #ffffff15;
  }

  .portfolio-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1D1D1D;
    border: 1px solid #ffffff20;
    border-radius: 15px;
    padding: 15px 20px;
    color: #464646;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .portfolio-category-btn:hover {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: #ffffff40;
    color: #fff;
    transform: translateY(-2px);
  }

  .portfolio-category-btn img {
    width: 24px;
    height: 24px;
  }

  .portfolio-category-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 10px;
    color: #464646;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#1D1D1D, #1D1D1D) padding-box,
      linear-gradient(45deg, #fff 0%, #696969 25%, #fff 50%, #585858 75%, #fff 100%) border-box;
    background-size: 100% 100%, 300% 300%;
    background-origin: padding-box, border-box;
    animation: borderGradient 5s linear infinite;
  }

  .portfolio-category-btn-small::before,
  .portfolio-category-btn-small::after {
    content: none;
  }

  @keyframes borderGradient {
    0%, 100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  .portfolio-category-btn-small:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    animation-duration: 2s;
  }

  .portfolio-category-btn-small img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    position: relative;
    z-index: 1;
  }

  /* Price Cards */
  .price-card {
    background-image: url('../img/pricesbg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    border: 1px solid #ffffff15;
  }

  .price-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff20;
  }

  .price-card-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }

  .price-card-header img {
    width: 24px;
    height: 24px;
  }

  .price-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
  }

  .price-item-info h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
  }

  .price-item-info p {
    color: #888;
    font-size: 13px;
    margin: 0;
  }

  .price-item .price {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Big Price Card */
  .price-card-big {
    background-image: url('../img/pricesbig.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #ffffff15;
  }

  .price-card-big-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ffffff20;
  }

  .price-card-big-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
  }

  .price-card-big-header img {
    width: 30px;
    height: 30px;
  }

  .price-card-big-body {
    padding: 0 20px;
  }

  .price-item-big {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
  }

  .price-item-big .price {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
  }
  .icn {
    width: 20px;
    height: 20px;
  }

  /* Logos slider */
  .logos-slider-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 30px 0;
  }

  .logos-slider {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
  }

  .logos-slide {
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .logos-slide img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media screen and (max-width: 760px) {
    .price-card {
      padding: 20px;
    }

    .price-card-header h3 {
      font-size: 18px;
    }

    .price-item {
      flex-direction: column;
      gap: 10px;
    }

    .price-card-big {
      padding: 20px;
    }

    .price-card-big-header h2 {
      font-size: 18px;
    }

    .price-item-big {
      flex-direction: column;
      gap: 10px;
    }

    .logos-slide {
      gap: 30px;
    }

    .logos-slide img {
      height: 50px;
      min-width: 60px;
    }

    .portfolio-category-btn-small {
      font-size: 12px;
      padding: 6px 10px;
      white-space: normal;
    }

    .portfolio-category-btn-small img {
      width: 16px;
      height: 16px;
      margin-right: 6px;
    }
  }

  .borderblock {
    -moz-border-radius: 0px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    border: 1px solid #fff;
  }

  .videoblock {
    -moz-border-radius: 0px;
    -webkit-border-radius: 20px 20px 0px 0px;
    border-radius: 20px 20px 0px 0px; 
    padding: 0;
    border-bottom: none;
  }
  .videotext {
    padding: 17px 0 17px;
    font-size: 12px;
    border-top: none;
    color: #A0A0A0;
    text-align: center;
    text-decoration: none;
  }

  video {
    border-radius: 20px;
  }

 .portbutton {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portbutton:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portbutton img {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.portbutton:hover img {
    transform: scale(1.1);
}

/* Простые CSS правила для устранения дерганий на мобильных */
@media screen and (max-width: 768px) {
    [data-aos] {
        transition-duration: 0.6s !important;
    }
    
    /* Плавные переходы для футера */
    #contact [data-aos] {
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    /* Отключаем анимации, которые создают горизонтальный скролл */
    [data-aos="slide-right"],
    [data-aos="slide-left"],
    [data-aos="slide-up"],
    [data-aos="flip-left"],
    [data-aos="flip-right"],
    [data-aos="flip-up"],
    [data-aos="flip-down"],
    [data-aos="zoom-in"],
    [data-aos="zoom-out"] {
        transform: none !important;
    }

    [data-aos="slide-right"].aos-animate,
    [data-aos="slide-left"].aos-animate,
    [data-aos="slide-up"].aos-animate,
    [data-aos="flip-left"].aos-animate,
    [data-aos="flip-right"].aos-animate,
    [data-aos="flip-up"].aos-animate,
    [data-aos="flip-down"].aos-animate,
    [data-aos="zoom-in"].aos-animate,
    [data-aos="zoom-out"].aos-animate {
        transform: none !important;
        opacity: 1;
    }

    /* Предотвращаем переполнение контейнера */
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }
}

/* Стили для кнопок проектов */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: scale(1.02);
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.project-btn {
    position: absolute;
    bottom: 15px;
    right: 25px;
    background: transparent;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-btn::after {
    content: "→";
    font-size: 16px;
    transition: transform 0.3s ease;
}

.project-item:hover .project-btn {
    opacity: 1;
    transform: translateY(0);
}

.project-btn:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-btn:hover::after {
    transform: translateX(3px);
}

/* Адаптивность для мобильных */
@media screen and (max-width: 768px) {
    .project-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 12px;
        padding: 6px 12px;
        bottom: 5px;
        right: 15px;
        gap: 4px;
    }
    
    .project-btn::after {
        font-size: 14px;
    }
}


a {
  text-decoration: none;
}