@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600&display=swap');

body {
    margin-left: 20px;
    margin-right: 20px;
    padding: 0;
    font-family: "Comfortaa", sans-serif;
    background-color: #fff;
    color: #000;
}

/* --- Навигационная панель --- */
.naviBar {
    position: fixed;
    top: 10;
    border-radius: 50px;
    padding: 5px;
    left: 50%;
    column-gap: 10px;
    z-index: 1000;
    transform: translateX(-50%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.576);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.naviBar a{
    text-decoration: none;
}


#interakt {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: black;
    color: white;
    display: inline-block; /* чтобы padding не растягивал контейнер */
    text-align: center;
}



/* Боковое меню */
.infofo {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 999;

  /* Скрываем полностью за экраном */
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

/* Когда активно — сдвигаем на место */
.infofo.active {
  transform: translateX(0);
}

.contentInfo{
    display: flex;
    flex-direction: column; /* в столбик */
    gap: 20px;
}

.contentInfo a {
  color: black;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  transition: color 0.2s, padding 0.5s;
}

.contentInfo a:hover{
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 10px;
}

.contentInfo a:last-child {
  border-bottom: none; /* убираем у последнего */
}





.naviBar h1 {
    font-size: 1.8rem;
    margin: 0;
}







.menuLinks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menuLinks a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: transform 0.2s, color 0.2s;
}

.menuLinks a:hover {
    transform: scale(1.05);
    color: #8d8d8d;
}

/* --- Главное изображение и текст --- */
.banner {
    position: relative;
    width: 100%;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.textUD {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
    color: rgb(255, 255, 255);
}

.textUD h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

.butA {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 12px;
    background: white;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.butA:hover {
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* --- Карточки проектов --- */
.projectsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h2 {
    font-size: 1.4rem;
    padding: 10px 15px 5px 15px;
    margin: 0;
}

.card p {
    padding: 0 15px 10px 15px;
    font-size: 0.95rem;
    color: #333;
    flex-grow: 1;
}

.reviev {
    margin: 0 15px 15px 15px;
    padding: 8px 15px;
    background-color: black;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 0 7px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.reviev:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* --- Блок обновлений --- */
.blockUpdate {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    background: white;
    color: black;
    padding: 20px;
    position: relative;
}

.blockUpdate img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.blockUpdate h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Кнопки внутри блока */
.bottomBlockUpdate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.bottomBlockUpdate .btnUPD {
    flex: 1 1 150px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    background-color: black;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}


.btn{
    padding-right:20px;
    padding-left:20px;
    border-radius: 12px;
    font-weight: bold;
    background-color: black;
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 25px;
}




/* --- Адаптивность --- */
@media (max-width: 768px) {
    .textUD h1 {
        font-size: 1.8rem;
    }

    .butA {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .projectsContainer {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .card img {
        height: 160px;
    }

    .blockUpdate img {
        max-width: 90%;
    }

    .menuLinks {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .naviBar h1 {
        font-size: 1.5rem;
    }
}

/* --- Кнопка "Показать еще" во всю ширину --- */
.nextes {
    display: block; /* чтобы заняла всю ширину */
    width: calc(100% - 40px); /* учитываем margin 20px слева и справа */
    margin: 20px auto; /* сверху/снизу 20px, по центру по горизонтали */
    padding: 15px 0; /* вертикальные отступы */
    background-color: black;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.nextes:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* --- Анимация "прыжка на подушку" при загрузке --- */
@keyframes bounceIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    60% {
        transform: translateY(10px);
        opacity: 1;
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.kitty.loaded {
    animation: bounceIn 0.8s ease forwards;
}


/* Кнопка-бургер */
.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100; /* выше бокового меню */
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* Анимация превращения в крест */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);   /* сжимаем в ноль */
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.whyUDay {
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
    text-align: center;
    padding: 60px 20px;
    color: #111;
}

.whyUDay h1 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #000;
}

.whyGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.whyGrid div {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whyGrid div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.whyGrid i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

.whyGrid h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.whyGrid p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* 📱 Мобильная адаптация */
@media (max-width: 600px) {
    .whyUDay {
        padding: 40px 15px;
    }

    .whyUDay h1 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .whyGrid div {
        padding: 25px 15px;
    }

    .whyGrid i {
        font-size: 2rem;
    }
}

#toTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: black;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    font-size: 20px;
    display: none; /* по умолчанию скрыта */
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 100000;
    transition: all 0.2s;
}

#toTopBtn:hover {
    background: rgb(40, 40, 40);
}
