/* ==============================================================
   1. ПОДКЛЮЧЕНИЕ ШРИФТОВ (TILDA SANS)
   ============================================================== */
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "TildaSans";
  src: url("fonts/TildaSans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}

/* ==============================================================
   2. БАЗОВЫЕ НАСТРОЙКИ (RESET & BASE)
   ============================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "TildaSans", sans-serif;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Общий контейнер */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================================================
   3. ШАПКА И ЛОГОТИП (HEADER)
   ============================================================== */
.header {
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(243, 244, 246, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo img {
  height: 35px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-link {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: #288ceb;
}

.header-link-accent {
  color: #288ceb;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.header-link-accent:hover {
  color: #1f77cc;
}

/* ==============================================================
   4. КНОПКИ (BUTTONS)
   ============================================================== */
.buttons-group {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #288ceb;
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
}

/* ==============================================================
   5. СЕКЦИЯ ПРОДУКТОВ С АНИМАЦИЕЙ (GSAP SCROLL PIN)
   ============================================================== */
.scroll-section {
  position: relative;
  width: 100%;
  height: 1000vh;
  z-index: 20;
}

.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-left: max(20px, calc((100% - 1024px) / 2 + 20px));
  overflow: hidden;
}

/* Интерактивный фон (клеточка) */
.interactive-grid-bg {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.grid-mask {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 30%,
    transparent 85%
  );
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.grid-pattern {
  position: absolute;
  inset: -50px;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Левая колонка с текстами */
.content-left {
  width: 50%;
  max-width: 650px;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.text-block {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  width: 100%;
}

.text-block h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #333;
  line-height: 1.1;
  letter-spacing: -1px;
}

.text-block h2 {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #288ceb;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-color {
  color: #288ceb;
}

.product-logo {
  height: 65px;
  margin-bottom: 25px;
  display: block;
}

.text-block p {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.text-block p:last-of-type {
  margin-bottom: 0;
}

/* Акцентный текст с боковой линией */
.text-block p.action-text {
  border-left: 3px solid #288ceb;
  padding-left: 18px;
  margin-bottom: 0;
  color: #444;
}

/* Индивидуальные цвета продуктов */
.text-block.step-1 p.action-text {
  border-left-color: #6666ff;
}
.text-block.step-1 .btn-primary {
  background-color: #6666ff;
}

.text-block.step-2 p.action-text {
  border-left-color: #7ebde7;
}
.text-block.step-2 .btn-primary {
  background-color: #7ebde7;
}

.text-block.step-3 p.action-text {
  border-left-color: #669933;
}
.text-block.step-3 .btn-primary {
  background-color: #669933;
}

.text-block.step-4 p.action-text {
  border-left-color: #cc9933;
}
.text-block.step-4 .btn-primary {
  background-color: #cc9933;
}

.text-block.step-5 p.action-text {
  border-left-color: #ff6600;
}
.text-block.step-5 .btn-primary {
  background-color: #ff6600;
}

/* Вертикальная панель навигации (точки) */
.slider-nav {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: none;
  padding: 15px 0 0 0;
  z-index: 100;
}

.nav-dots {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.nav-dot {
  width: 12px;
  height: 12px;
  background: rgba(160, 164, 170, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-dot:hover {
  background: rgba(160, 164, 170, 0.8);
}

/* Правая колонка: Графика (Стеклянные плашки и канвасы) */
.visual-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 5;
}

.layer {
  position: absolute;
  top: 50%;
  margin-top: -300px;
  right: 0;
  width: 600px;
  height: 600px;
  opacity: 0.7;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: right center;
  mask-repeat: no-repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.layer-1 {
  background-image: url("img/sl1.svg");
  -webkit-mask-image: url("img/sl1.svg");
  mask-image: url("img/sl1.svg");
  z-index: 5;
}
.layer-2 {
  background-image: url("img/sl2.svg");
  -webkit-mask-image: url("img/sl2.svg");
  mask-image: url("img/sl2.svg");
  z-index: 4;
}
.layer-3 {
  background-image: url("img/sl3.svg");
  -webkit-mask-image: url("img/sl3.svg");
  mask-image: url("img/sl3.svg");
  z-index: 3;
}
.layer-4 {
  background-image: url("img/sl4.svg");
  -webkit-mask-image: url("img/sl4.svg");
  mask-image: url("img/sl4.svg");
  z-index: 2;
}
.layer-5 {
  background-image: url("img/sl5.svg");
  -webkit-mask-image: url("img/sl5.svg");
  mask-image: url("img/sl5.svg");
  z-index: 1;
}

.wave-canvas {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  transform: rotate(35deg);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(15px);
  -webkit-filter: blur(15px);
}

/* ==============================================================
   6. ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================== */
.section-title {
  font-size: 46px;
  font-weight: 600;
  color: #333;
  margin-bottom: 50px;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* ==============================================================
   7. МАНИФЕСТ (СЕКЦИЯ 2)
   ============================================================== */
.manifesto-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.manifesto-content {
  width: 100%;
}

.manifesto-text {
  font-size: 48px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* ==============================================================
   8. ЭКОСИСТЕМА BENTO (СЕКЦИЯ 3)
   ============================================================== */
.ecosystem-section {
  padding: 80px 0 120px;
  background-color: #ffffff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.bento-large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 60px;
}

.bento-large:hover {
  transform: none;
  box-shadow: none;
}

.bento-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.bento-content p {
  font-size: 18px;
  color: #666;
  line-height: 1.5;
}

.bento-large .bento-content {
  width: 50%;
}

.highlight-card {
  background: linear-gradient(
    135deg,
    rgba(40, 140, 235, 0.05),
    rgba(40, 140, 235, 0.01)
  );
  border: 1px solid rgba(40, 140, 235, 0.2);
}

/* Карточка тарифа */
.tariff-card {
  width: 50%;
  background: linear-gradient(
    135deg,
    rgba(40, 140, 235, 0.05),
    rgba(40, 140, 235, 0.01)
  );
  border-radius: 24px;
  border: 1px solid rgba(40, 140, 235, 0.2);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tariff-badge {
  position: absolute;
  top: -14px;
  right: 30px;
  background-color: #79ba45;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(121, 186, 69, 0.3);
}

.tariff-price {
  font-size: 42px;
  font-weight: 800;
  color: #288ceb;
  margin-bottom: 20px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tariff-price span {
  font-size: 18px;
  font-weight: 600;
  color: #666;
}

.tariff-logos-strip {
  margin-bottom: 20px;
  height: 12px;
  display: flex;
  align-items: center;
}

.tariff-logos-strip img {
  height: 100%;
  width: auto;
  display: block;
}

.tariff-features {
  list-style: none;
  margin-bottom: 25px;
  flex-grow: 1;
}

.tariff-features li {
  font-size: 15px;
  color: #444;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.tariff-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background-color: #288ceb;
  border-radius: 50%;
}

/* ==============================================================
   9. НАША КОМАНДА (СЕКЦИЯ 4)
   ============================================================== */
.team-section {
  padding: 100px 0 120px;
  background-color: #f8f9fa;
}

.team-header {
  text-align: left;
  margin-bottom: 50px;
}

.team-subtitle {
  font-size: 20px;
  color: #666;
  max-width: 100%;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.team-member {
  background: #ffffff;
  border-radius: 32px;
  padding: 40px 50px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 40px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.team-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.team-role {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #288ceb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.team-quote {
  font-size: 17px;
  font-style: italic;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 3px solid #288ceb;
  padding-left: 15px;
  line-height: 1.4;
}

.team-info p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}

.team-info p:last-child {
  margin-bottom: 0;
}

.team-info strong {
  color: #333;
  font-weight: 700;
}

.team-action {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

/* ==============================================================
   10. ПОДВАЛ (FOOTER)
   ============================================================== */
.lab-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  height: 24px;
  opacity: 0.5;
}

.footer-copy {
  color: #999;
  font-size: 15px;
  font-weight: 500;
}

.footer-legal {
  color: #b3b3b3;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #288ceb;
}

.footer-design-logo {
  height: 20px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.footer-design-logo:hover {
  opacity: 0.8;
}

/* ==============================================================
   11. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================================== */

/* Ноутбуки и планшеты (Landscape) */
@media (max-width: 1024px) {
  .text-block h1 {
    font-size: 48px;
  }
  .text-block h2 {
    font-size: 42px;
  }
  .manifesto-text {
    font-size: 40px;
  }
  .section-title {
    font-size: 40px;
  }
}

/* Планшеты (Portrait) и крупные смартфоны */
@media (max-width: 768px) {
  /* Шапка */
  .header-actions {
    gap: 15px;
  }
  .header-link {
    display: none;
  }

  /* ==========================================================
     СЕКЦИЯ ПРОДУКТОВ (МОБИЛЬНОЕ РАСПРЕДЕЛЕНИЕ)
     ========================================================== */
  .sticky-container {
    padding: 0 20px;
    height: 100dvh;
  }
  .visual-right {
    display: none;
  } /* Отключаем тяжелую графику */

  .content-left {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding-left: 0;
  }

  /* Контейнер текста занимает 75% экрана для идеального распределения */
  .text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 75dvh;
    width: 100%;
    padding: 0 10px;
  }

  /* 1. ЛОГОТИП (В самом верху) */
  .product-logo {
    height: auto;
    max-height: 55px;
    max-width: 90%;
    object-fit: contain;
    margin: 0 auto auto auto; /* Отталкивает текст вниз */
  }
  .intro-logo {
    max-height: 45px; /* Логотип в интро делаем чуть компактнее */
    display: none; /* Скрываем на десктопе */
  }

  /* 2. ТЕКСТ (Зажимается посередине, шрифты увеличены) */
  .text-block h1 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.1;
  }
  .text-block h2 {
    font-size: 36px;
    justify-content: center;
    margin-bottom: 20px;
  }
  .text-block p {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .text-block p.action-text {
    border-left: none !important;
    border-top: 3px solid #288ceb;
    padding-left: 0;
    padding-top: 15px;
    margin-top: 5px;
    display: inline-block;
  }
  .text-block.step-1 p.action-text {
    border-top-color: #6666ff;
  }
  .text-block.step-2 p.action-text {
    border-top-color: #7ebde7;
  }
  .text-block.step-3 p.action-text {
    border-top-color: #669933;
  }
  .text-block.step-4 p.action-text {
    border-top-color: #cc9933;
  }
  .text-block.step-5 p.action-text {
    border-top-color: #ff6600;
  }

  /* 3. КНОПКИ (Прижимаются к низу карточки) */
  .buttons-group {
    justify-content: center;
    width: 100%;
    margin: auto auto 0 auto; /* Отталкивает текст вверх */
  }

  /* 4. ТОЧКИ НАВИГАЦИИ (Под кнопками) */
  .slider-nav {
    position: absolute !important;
    top: auto !important;
    bottom: 30px !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
  .nav-dots {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100%;
  }

  /* ==========================================================
     ОСТАЛЬНЫЕ БЛОКИ
     ========================================================== */

  /* Bento */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 30px;
  }
  .bento-large .bento-content,
  .tariff-card {
    width: 100%;
  }
  .bento-card {
    padding: 30px;
  }
  .tariff-card {
    padding: 25px;
  }
  .tariff-badge {
    right: 20px;
    top: -12px;
  }

  /* Команда */
  .team-member {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 35px 30px;
  }
  .team-photo {
    margin-bottom: 10px;
  }
  .team-quote {
    border-top: none;
    border-left: 3px solid #288ceb;
    padding-top: 0;
    padding-left: 15px;
  }

  /* Манифест */
  .manifesto-section {
    padding: 70px 0;
  }
  .manifesto-text {
    font-size: 32px;
  }

  /* ==========================================================
     ПОДВАЛ (2 СТОЛБЦА)
     ========================================================== */
  .footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
    align-items: start;
  }
  .footer-left {
    align-items: flex-start;
    text-align: left;
  }
  .footer-links {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 12px;
  }
  .footer-right {
    grid-column: 1 / -1; /* Логотип студии по центру в самом низу */
    justify-content: center;
  }
}

/* Смартфоны (Mobile) */
@media (max-width: 480px) {
  /* Размеры шрифтов (Остаются крупными, но помещаются в экран) */
  .text-block h1 {
    font-size: 34px;
    margin-bottom: 15px;
  }
  .text-block h2 {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .text-block p {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .product-logo {
    max-height: 48px;
  }
  .intro-logo {
    display: block; /* Возвращаем видимость на мобильных */
    max-height: 245px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .manifesto-text {
    font-size: 24px;
  }

  /* Кнопки на 100% ширины */
  .buttons-group {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .team-action {
    flex-direction: column;
  }
  .team-action .btn {
    width: 100%;
  }
  .team-photo {
    width: 140px;
    height: 140px;
  }
  .team-member {
    padding: 30px 20px;
  }

  .tariff-price {
    font-size: 32px;
  }
}
