@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;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "TildaSans", sans-serif;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* === Широкий классический контейнер === */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4vw;
}

.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: 20px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.header-link,
.header-link-accent {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}
.header-link {
  color: #666;
}
.header-link:hover,
.header-link-accent {
  color: #288ceb;
}
.header-link-accent:hover {
  color: #1f77cc;
}
.buttons-group {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.buttons-group.justify-start {
  justify-content: flex-start;
}

/* === Базовые стили для кнопок (Овальные) === */
.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.btn-sm {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 40px;
}

/* === 3D-Объем ТОЛЬКО для главной кнопки "Оформить подписку" === */
.btn-primary {
  background: linear-gradient(180deg, #4da3f0 0%, #288ceb 100%);
  color: #fff;
  box-shadow: 
    0 8px 20px rgba(40, 140, 235, 0.3),
    inset 0 2px 1px rgba(255, 255, 255, 0.4), 
    inset 0 -3px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #5eb0f9 0%, #3695f2 100%);
  box-shadow: 
    0 10px 25px rgba(40, 140, 235, 0.4), 
    inset 0 2px 1px rgba(255, 255, 255, 0.5), 
    inset 0 -3px 2px rgba(0, 0, 0, 0.15);
}
.btn-primary:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #288ceb 0%, #1e78cd 100%);
  box-shadow: 
    0 2px 10px rgba(40, 140, 235, 0.3), 
    inset 0 3px 4px rgba(0, 0, 0, 0.2);
}

.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);
}

/* === Анимация появления при скролле === */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fade-delay, 0s);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.is-visible:hover {
  transition-delay: 0s !important;
}

/* === Hero Секция с фоновой сеткой === */
.hero-section {
  padding: 120px 0 60px;
  background: radial-gradient(circle at top left, rgba(40, 140, 235, 0.03) 0%, transparent 70%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; 
}
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%; 
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.hero-grid-pattern {
  width: 100%;
  height: 100%;
  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);
}
.hero-container {
  width: 100%;
  position: relative;
  z-index: 2; 
}
.hero-content {
  max-width: 50%;
  text-align: left;
}
.hero-section h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #333;
  line-height: 1.1;
  letter-spacing: -1px;
}
.brand-color {
  color: #288ceb;
}
.hero-section p {
  font-size: 22px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ЖЕСТКАЯ ФИКСАЦИЯ ИЗОБРАЖЕНИЯ */
.hero-image {
  position: absolute;
  left: 50%; 
  margin-left: -50px; 
  top: 53%;
  transform: translateY(-50%);
  width: 1400px; 
  min-width: 1400px; 
  max-width: none; 
  z-index: 1;
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === Сетка продуктов === */
/* Отступ снизу сокращен до 40px */
.products-section {
  padding: 80px 0 40px;
  background-color: #f4f7f9; 
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); 
  gap: 15px; 
}
.product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 30px 20px; 
  display: flex;
  flex-direction: column;
  word-wrap: break-word; 
}
.product-card.fade-up {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  transition-delay: var(--fade-delay, 0s);
}
.product-card.fade-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  border-color: var(--accent-color, #288ceb);
}

.product-card-header {
  margin-bottom: 25px;
}
.product-logo {
  height: 24px; 
  width: auto; 
  max-width: 100%; 
  object-fit: contain; 
  object-position: left center;
  display: block;
}

.product-card-body {
  flex-grow: 1;
}
.product-card-body h3 {
  font-size: 18px; 
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-card-body p {
  font-size: 14px; 
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.product-card-footer {
  display: flex;
  flex-direction: column; 
  gap: 8px;
}
.product-card-footer .btn {
  width: 100%; 
  padding: 10px;
  font-size: 13px;
}
.product-card-footer .btn-primary {
  background: var(--accent-color); 
  box-shadow: none; 
  text-shadow: none;
}
.product-card-footer .btn-primary:hover {
  background: var(--accent-color);
  filter: brightness(1.1); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.product-card-footer .btn-primary:active {
  background: var(--accent-color);
  filter: brightness(0.95);
  box-shadow: none;
  transform: translateY(1px);
}

/* === Остальные секции === */
.section-title {
  font-size: 46px;
  font-weight: 600;
  color: #333;
  margin-bottom: 50px;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Отступы сокращены: сверху 40px, снизу 60px */
.ecosystem-section {
  padding: 40px 0 60px;
  background-color: #fff;
}

/* Логотип подписки */
.subscription-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.subscription-logo {
  height: 32px;
  width: auto;
  display: block;
}

.bento-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card.fade-up {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
  transition-delay: var(--fade-delay, 0s);
}
.bento-card.fade-up: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.fade-up:hover {
  transform: translateY(0); 
  box-shadow: none;
}
.bento-content p {
  font-size: 18px;
  color: #666;
  line-height: 1.5;
}
.bento-large .bento-content {
  width: 50%;
}
/* Ограничение длины только для сноски, чтобы она не была длиннее основного текста */
.bento-content p.disclaimer-text,
.bento-content .disclaimer-text {
  font-size: 12px !important;
  color: #a0a0a0 !important;
  margin-top: 20px;
  line-height: 1.4;
  max-width: 500px; 
}

.highlight-card,
.tariff-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%;
  border-radius: 24px;
  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: #fff;
  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%;
}

/* === Схема-разбор (Технологии) === */
.diagram-layout {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  margin-top: 60px;
  width: 100%;
}
.diagram-side {
  flex: 1; 
  z-index: 2;
}
.diagram-card {
  padding: 20px 30px !important; 
  height: 100%;
}
.diagram-card .bento-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.diagram-card .bento-content p {
  font-size: 15px;
  margin-bottom: 0;
}

.diagram-center {
  flex: 0 0 450px; 
  text-align: center;
  z-index: 1; 
  padding: 0;
  margin: 0 -40px; 
}
.diagram-center img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

.diagram-connector {
  flex: 0 0 100px; 
  height: 100px;
  position: relative;
  z-index: 3; 
}
.animated-flow {
  animation: dataFlow 1.5s linear infinite;
}
@keyframes dataFlow {
  to { stroke-dashoffset: -20; }
}

/* === Команда (Контакты по центру) === */
/* Отступ сверху сокращен до 60px */
.team-section {
  padding: 60px 0 120px;
  background-color: #f8f9fa;
}
.team-header {
  text-align: center; 
  margin-bottom: 50px;
}
.team-subtitle {
  font-size: 20px;
  color: #666;
  max-width: 800px; 
  margin: 0 auto; 
  line-height: 1.6;
}

/* Блок "Связаться с нами" */
.team-action {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 15px; 
  margin-top: 90px; 
}
.contact-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
.contact-icons {
  display: flex;
  gap: 20px; 
}
.contact-icons a {
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.contact-icons a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
.contact-icons img {
  width: 36px; 
  height: 36px;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 0; 
}
.team-member {
  background: #fff;
  border-radius: 32px;
  padding: 40px 50px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.team-member.fade-up {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
  transition-delay: var(--fade-delay, 0s);
}
.team-member.fade-up: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;
}

.lab-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}
.footer-logo-icon {
  height: 24px;
  opacity: 0.5;
}
.footer-copy {
  color: #999;
  font-size: 15px;
  font-weight: 500;
}
.footer-design-logo {
  height: 20px;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.footer-design-logo:hover {
  opacity: 0.8;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 450px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin: 0;
}
.cookie-banner a {
  color: #288ceb;
  text-decoration: underline;
}
.cookie-banner .btn-small {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* === Адаптация === */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-section h1 { font-size: 48px; }
  .section-title { font-size: 40px; }
  .team-grid { grid-template-columns: 1fr; }
  
  .diagram-layout {
    flex-direction: column;
    gap: 30px;
  }
  .diagram-connector {
    display: none;
  }
  /* На мобильных и планшетах ПРЯЧЕМ центральную картинку-схему полностью */
  .diagram-center {
    display: none; 
  }
  .diagram-side {
    width: 100%;
    max-width: none;
    flex: auto;
    z-index: 2; 
  }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
  .header-actions { gap: 15px; }
  .header-link { display: none; }
  .container { padding: 0 20px; }
  
  /* Полностью отключаем анимацию появления при скролле для стабильности на мобильных */
  .fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  /* Возвращаем плавность для hover-эффектов */
  .product-card.fade-up, .bento-card.fade-up, .team-member.fade-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  }
  
  /* Мобильный экран: как на референсе */
  .hero-section { 
    padding: 130px 0 0; /* Отступ сверху для текста */
    height: 100dvh; 
    min-height: 650px;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    overflow: hidden; 
    position: relative;
  }
  
  /* Включаем сетку на мобильных */
  .hero-grid-bg { 
    display: block; 
    height: 55%; 
  }
  
  .hero-container { 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2; 
    margin-bottom: 0;
  }
  .hero-content { 
    max-width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  .hero-section h1 { 
    font-size: 44px; 
    margin-bottom: 10px; 
    line-height: 1.1;
    padding: 0 10px;
    position: relative;
    z-index: 3;
  }
  .hero-section p { 
    font-size: 16px; 
    margin-bottom: 0; 
    position: relative;
    z-index: 3;
  }
  
  /* Кнопки прибиваем к низу в один ряд (как на референсе) */
  .buttons-group.justify-start { justify-content: center; }
  .hero-section .buttons-group { 
    flex-direction: row; 
    width: 100%; 
    margin-top: auto; 
    margin-bottom: 40px; 
    position: relative; 
    z-index: 3;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero-section .buttons-group .btn {
    width: 50%;
    padding: 14px 10px;
    font-size: 14px;
    white-space: nowrap; 
  }
  
  /* Картинка: внизу, обрезана справа, под кнопками */
  .hero-image {
    position: absolute;
    bottom: 140px; 
    top: auto;
    left: 50%;
    transform: translateX(-23%); 
    width: 900px; 
    min-width: 900px;
    max-width: none;
    margin: 0; 
    opacity: 1; 
    z-index: 1; 
  }
  
  .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; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 38px; } /* Увеличен размер заголовка на смартфонах */
  .hero-section p { font-size: 15px; padding: 0 10px; }
  
  /* Увеличен отступ снизу под кнопками для пространства */
  .hero-section .buttons-group {
    margin-bottom: 30px;
  }
  .hero-section .buttons-group .btn { font-size: 13px; padding: 14px 5px; }
  
  /* Идеальное позиционирование смартфона на узких экранах */
  .hero-image {
    bottom: 110px; /* Картинка поднята выше от кнопок */
    width: 800px; 
    min-width: 800px;
    transform: translateX(-20%); /* Сдвинута вправо для нужного обрезания */
  }
  
  .logo img { height: 26px; }
  .section-title { font-size: 30px; margin-bottom: 30px; }
  .bento-content h3, .team-info h3, .product-card-body h3, .diagram-card .bento-content h3 { font-size: 22px; margin-bottom: 10px; }
  .bento-content p, .team-subtitle, .team-quote, .team-info p, .product-card-body p, .diagram-card .bento-content p { font-size: 15px; }
  
  .product-card-footer .btn, .tariff-card .btn { width: 100%; }
  
  .team-photo { width: 140px; height: 140px; }
  .team-member { padding: 30px 20px; }
  .tariff-price { font-size: 32px; }
  .cookie-banner { bottom: 10px; left: 10px; right: 10px; flex-direction: column; padding: 15px; text-align: center; }
  .cookie-banner .btn-small { width: 100%; }
  .subscription-title { font-size: 22px; }
  .subscription-logo { height: 28px; }
}