/* style.css - исправленная версия */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #fafafa;
  color: #131313;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Градиентные элементы — используются в нескольких местах */
.gradient-text {
  background: linear-gradient(135deg, #2eed85, #131313);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Шапка */
.header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.sub-logo {
  font-size: 0.9rem;
  font-weight: 400;
  color: #131313;
  margin-top: 2px;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

.nav-links {
  font-size: 1.3em;
  display: flex;
  gap: 32px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: #2d2d2d;
  transition: color 0.3s ease;
  position: relative;   /* нужно для позиционирования полоски */
  padding-bottom: 4px;  /* небольшой отступ, чтобы полоска не прилипала к тексту */
}

/* Создаём полоску — пока она нулевой ширины и не видна */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #2eed85;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #2eed85;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Карусель акций */
.promo-section {
  margin: 32px 0 16px;
}

.promo-carousel {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #131313; /* fallback, если изображения не загрузятся */
  color: white;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  height: 400px;
  padding: 40px 32px;
  background-size: cover; /* чтобы изображение заполняло слайд */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a; /* тёмный фон, если картинка не загрузится */
}

.slide-content {
  max-width: 70%;
}

.slide-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.slide-desc {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.slide-title3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #131313;
}

.slide-desc3 {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 24px;
  color: #131313;
}

.slide-btn {
  background: #2eed85;
  color: #131313;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 14px rgba(46, 237, 133, 0.3);
}

.slide-btn:hover {
  background: #d0f8e2;
  color: #131313;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: #2eed85;
  transform: scale(1.2);
}

/* О нас */
.about-section {
  background: white;
  border-radius: 32px;
  padding: 40px 32px;
  margin: 48px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-highlight {
  color: #2eed85;
  font-weight: 700;
  background: #131313;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 30px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #3d3d3d;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature i {
  color: #2eed85;
  font-size: 1.4rem;
}

/* .about-image удалён, так как не используется */

/* Меню с табами */
.menu-section {
  margin: 40px auto;
  width: 100%;
  max-width: 1280px;
  padding: 0 24px;
  box-sizing: border-box;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%; /* вместо фиксированной 1230px */
  height: 4px;
  background: linear-gradient(90deg, #2eed85, #131313);
  border-radius: 4px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 12px;
  justify-content: left;
}

.tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: #5f5f5f;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 40px;
}

.tab:hover {
  color: #131313;
}

.tab.active {
  background: #131313;
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.tab.active i {
  color: #2eed85;
}

.tab i {
  margin-right: 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  display: none;
}

.cards-grid.active-grid {
  display: grid;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 20px 16px 16px;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -12px rgba(46, 237, 133, 0.25);
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f0f0f0;
  border-radius: 20px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eaeaea;
  overflow: hidden;
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: #6d6d6d;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 4px;
}

.price {
  font-weight: 800;
  font-size: 1.3rem;
  color: #131313;
}

.price small {
  font-weight: 400;
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Футер */
.footer {
  background: #131313;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
  border-radius: 40px 40px 0 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px;
}

.footer-logo img {
  height: 70px;
  width: auto;
}

.footer-links {
  font-size: 1.3em;
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2eed85;
}

.socials i {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #aaa;
  transition: color 0.2s;
}

.socials i:hover {
  color: #2eed85;
}

/* мобильные правки */
@media (max-width: 700px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .about-section {
    flex-direction: column;
    padding: 24px;
  }
  .slide-content {
    max-width: 100%;
  }
  .slide-title {
    font-size: 1.6rem;
  }
}

/* Стили для принципов */
.principles-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.principle-item {
  flex: 1;
  min-width: 150px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 16px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: default;
}

.principle-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -8px rgba(46, 237, 133, 0.4); /* зелёная тень, как в карточках меню */
}

.principle-title {
  font-weight: 600;
  margin-top: 8px;
}

.principle-desc {
  font-size: 0.9rem;
  color: #555;
}

/* Кнопки соцсетей в контактах */
.social-btn {
  background: #131313;
  color: white;
  padding: 8px 16px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition:
    color 0.2s,
    background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-btn:hover {
  color: #2eed85; /* зелёный текст при наведении */
  background: #222; /* можно затемнить фон для контраста */
}

/* Кнопка "Наверх" */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2eed85, #1cb86a); /* зелёный градиент */
  color: #131313;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 237, 133, 0.4);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(46, 237, 133, 0.6);
  background: #131313;
  color: #2eed85;
}

.scroll-top-btn i {
  line-height: 1;
  font-weight: bold;
  font-size: 28px;
  display: inline-block;
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
}

/* Адаптив для мобильных */
@media (max-width: 700px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .scroll-top-btn i {
    font-size: 22px;
  }
}

/* Блок "Сайт в разработке" */
.dev-notice-section {
  margin: 16px 0 8px;
}

.dev-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #131313 0%, #1f2a1f 100%);
  color: #fff;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(46, 237, 133, 0.2);
  flex-wrap: wrap;
}

.dev-notice-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2eed85;
  color: #131313;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.dev-notice-content {
  flex: 1;
  min-width: 240px;
}

.dev-notice-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2eed85;
}

.dev-notice-text {
  font-size: 0.95rem;
  color: #d8d8d8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.dev-notice-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 40px;
}

.tag-ready {
  background: #2eed85;
  color: #131313;
}

.tag-soon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(46, 237, 133, 0.4);
}

/* Мобильная версия */
@media (max-width: 700px) {
  .dev-notice {
    padding: 20px;
    gap: 14px;
  }
  .dev-notice-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .dev-notice-title {
    font-size: 1.1rem;
  }
}

/* Бейджи на карточках */
.card {
  position: relative; /* чтобы бейдж позиционировался относительно карточки */
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.card-badge.ready {
  background: #2eed85;
  color: #131313;
}

.card-badge.soon {
  background: #e5e5e5;
  color: #888;
  
}

/* Плавный поворот фото при наведении на карточку */
.card-image {
  transition: transform 0.4s ease;
}

.card:hover .card-image {
  transform: rotate(-3deg) scale(1.03);
}