/* Основные стили для сайта [НовыйБренд] */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Переменные для цветовой схемы */
:root {
  --primary-blue: #3b5998; /* Основной синий цвет как на логотипе */
  --primary-dark: #1c1c28; /* Темный цвет для текста */
  --primary-white: #ffffff; /* Белый цвет */
  --secondary-blue: #4c6db0; /* Светлее основного синего */
  --secondary-gray: #f5f6fa; /* Светло-серый для фонов */
  --accent-blue: #2a407c; /* Темнее основного синего */
  --text-gray: #666666; /* Серый для текста */
  
  /* Размеры шрифтов */
  --font-small: 0.875rem;
  --font-normal: 1rem;
  --font-medium: 1.25rem;
  --font-large: 1.5rem;
  --font-xlarge: 2.5rem;
  --font-xxlarge: 3.5rem;
}

/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--primary-dark);
  line-height: 1.6;
  background-color: var(--primary-white);
  overflow-x: hidden;
  min-width: 320px; /* Минимальная ширина для поддержки маленьких устройств */
}

/* Отзывчивые изображения */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Предотвращение выхода элементов за границы */
.container,
.section,
.hero,
.header,
.footer {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--font-xxlarge);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-xlarge);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Убираем подсветку на мобильных */
}

a:hover {
  color: var(--accent-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-normal);
  -webkit-appearance: none; /* Убираем стандартные стили на iOS */
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation; /* Улучшаем отклик на мобильных */
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--primary-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  color: var(--primary-white);
}

/* Убедимся, что кнопки не активируются при скролле на мобильных */
@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--accent-blue);
  }
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--primary-white);
}

/* Утилитные классы */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.highlight {
  color: var(--primary-blue);
  font-weight: 500;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* Шапка сайта */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: var(--primary-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Предотвращаем сжатие логотипа */
}

.logo img {
  height: 60px;
  margin-right: 1rem;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap; /* Предотвращаем перенос названия */
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--primary-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0; /* Добавляем паддинг для лучшего касания на мобильных */
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover:after {
  width: 100%;
}

/* Мобильная навигация */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: 1rem;
}

/* Hero секция */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 89, 152, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(76, 109, 176, 0.08) 0%, transparent 50%);
  animation: heroBackgroundMove 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes heroBackgroundMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -10px) scale(1.05); }
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

/* Эффект свечения для заголовка */
.hero-title {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .subtitle {
  display: block;
  font-size: 0.4em;
  font-weight: 300;
  letter-spacing: 3px;
  margin-top: 0.5rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

.hero-description {
  font-size: var(--font-medium);
  margin-bottom: 2rem;
  color: var(--text-gray);
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description strong {
  color: var(--primary-dark);
  font-weight: 600;
  position: relative;
  padding: 0 2px;
}

/* Новая стильная кнопка */
.hero-cta {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--primary-white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(59, 89, 152, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 89, 152, 0.5);
  color: var(--primary-white);
}

.btn-primary:hover::before {
  left: 100%;
}

/* Новая сетевая визуализация - минималистичный 3D эффект */
.network-visualization {
  position: relative;
  width: 50%;
  height: 500px;
  overflow: visible;
  perspective: 1000px;
  background: linear-gradient(135deg, rgba(42, 64, 124, 0.05) 0%, rgba(59, 89, 152, 0.08) 100%);
  border-radius: 20px;
  padding: 20px;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.network-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Минималистичные плавающие элементы */
.floating-icon {
  position: absolute;
  color: var(--primary-blue);
  font-size: 1.8rem;
  opacity: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 89, 152, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  animation: floatIn 1s ease-out forwards, floatUpDown 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0.8s, 1.8s; }
.floating-icon:nth-child(2) { animation-delay: 1s, 2s; }
.floating-icon:nth-child(3) { animation-delay: 1.2s, 2.2s; }
.floating-icon:nth-child(4) { animation-delay: 1.4s, 2.4s; }
.floating-icon:nth-child(5) { animation-delay: 1.6s, 2.6s; }

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-20px) rotateZ(5deg);
  }
}

.crypto-icon {
  background: rgba(255, 215, 0, 0.1);
  color: #ffa500;
  border-color: rgba(255, 193, 7, 0.2);
}



/* Страны - изменение с SVG на emoji */
.country-flag {
  font-size: 2rem;
  margin-right: 1rem;
  line-height: 1;
}

.country-item span:not(.country-flag) {
  font-size: var(--font-normal);
  font-weight: 500;
  color: var(--primary-dark);
}



/* География работы */
.geography {
  background-color: var(--secondary-gray);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  margin-top: -2px;
}

/* Фоновый паттерн карты */
.geography::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(59, 89, 152, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(76, 109, 176, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(42, 64, 124, 0.02) 0%, transparent 60%);
  animation: mapFloat 20s ease-in-out infinite;
}

@keyframes mapFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, -5px) scale(1.05); }
}

.geography .section-title {
  color: var(--primary-dark);
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.countries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%; /* Убедимся, что сетка не выходит за границы */
  padding: 0; /* Убираем паддинг по умолчанию */
}

.country-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem; /* Уменьшаем горизонтальный паддинг */
  background-color: var(--primary-white);
  border: 1px solid rgba(59, 89, 152, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  min-width: 0; /* Позволяем элементам сжиматься */
}

/* Анимация появления с задержкой для каждого элемента */
.country-item:nth-child(1) { animation-delay: 0.1s; }
.country-item:nth-child(2) { animation-delay: 0.15s; }
.country-item:nth-child(3) { animation-delay: 0.2s; }
.country-item:nth-child(4) { animation-delay: 0.25s; }
.country-item:nth-child(5) { animation-delay: 0.3s; }
.country-item:nth-child(6) { animation-delay: 0.35s; }
.country-item:nth-child(7) { animation-delay: 0.4s; }
.country-item:nth-child(8) { animation-delay: 0.45s; }
.country-item:nth-child(9) { animation-delay: 0.5s; }
.country-item:nth-child(10) { animation-delay: 0.55s; }
.country-item:nth-child(11) { animation-delay: 0.6s; }

/* Эффект свечения при наведении */
.country-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(59, 89, 152, 0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.country-item:hover::before {
  width: 200%;
  height: 200%;
}

.country-item:hover {
  transform: translateY(-5px);
  background-color: var(--primary-white);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 25px rgba(59, 89, 152, 0.15);
}

.country-item span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
}

/* Добавляем декоративные точки соединения */
.geography::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='dots' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(59,89,152,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23dots)'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 1;
}

/* Эффект волны при клике */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 89, 152, 0.2) 0%, transparent 70%);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* О платформе */
.about {
  background-color: var(--primary-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%; /* Убедимся, что контент не выходит за границы */
}

/* Стили для анимированной P2P-сети */
.about-illustration {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(145deg, #f5f5fa, #e8eaf0);
  overflow: hidden;
  min-height: 400px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.p2p-network {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* Узлы сети */
.node {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3);
}

.node-main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: var(--accent-blue);
  z-index: 3;
}

.node-1 {
  top: 20%;
  left: 25%;
  animation: floatAnimation 6s ease-in-out infinite alternate;
}

.node-2 {
  top: 15%;
  right: 20%;
  animation: floatAnimation 7s ease-in-out infinite alternate-reverse;
}

.node-3 {
  bottom: 15%;
  left: 15%;
  animation: floatAnimation 8s ease-in-out 1s infinite alternate;
}

.node-4 {
  bottom: 20%;
  right: 30%;
  animation: floatAnimation 5s ease-in-out 0.5s infinite alternate-reverse;
}

.node-5 {
  top: 50%;
  right: 10%;
  animation: floatAnimation 9s ease-in-out 0.3s infinite alternate;
}

.node-icon {
  color: white;
  font-size: 1.5rem;
}

.node-main .node-icon {
  font-size: 2rem;
}

/* Пульсация узлов */
.node-pulse {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: inherit;
  opacity: 0.5;
  animation: pulseAnimation 2s ease-out infinite;
}

/* Соединения между узлами */
.connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(75, 109, 176, 0.3), rgba(75, 109, 176, 0.7), rgba(75, 109, 176, 0.3));
  z-index: 1;
  transform-origin: left center;
}

.connection-1 {
  top: calc(50% + 35px);
  left: calc(50% + 35px);
  width: 150px;
  transform: rotate(30deg);
}

.connection-2 {
  top: calc(50% - 5px);
  left: calc(50% + 35px);
  width: 180px;
  transform: rotate(-15deg);
}

.connection-3 {
  top: calc(50% + 15px);
  left: calc(50% - 230px);
  width: 200px;
  transform: rotate(165deg);
}

.connection-4 {
  top: calc(50% + 70px);
  left: calc(50% - 70px);
  width: 140px;
  transform: rotate(100deg);
}

.connection-5 {
  top: calc(50% - 80px);
  left: calc(50% - 35px);
  width: 180px;
  transform: rotate(245deg);
}

/* Анимация "пакетов данных" */
.data-packet {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  z-index: 2;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.packet-1 {
  top: calc(50% + 35px);
  left: calc(50% + 35px);
  animation: packetAnimation1 5s linear infinite;
}

.packet-2 {
  top: calc(50% - 5px);
  left: calc(50% + 35px);
  animation: packetAnimation2 6s linear 1s infinite;
}

.packet-3 {
  top: calc(50% + 15px);
  left: calc(50% - 35px);
  animation: packetAnimation3 7s linear 2s infinite;
}

.packet-4 {
  top: calc(50% + 70px);
  left: calc(50% - 70px);
  animation: packetAnimation4 8s linear 0.5s infinite;
}

.packet-5 {
  top: calc(50% - 80px);
  left: calc(50% - 35px);
  animation: packetAnimation5 4s linear 1.5s infinite;
}

/* Символы транзакций */
.transaction-symbol {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  background-color: var(--secondary-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  animation: symbolFadeIn 10s ease-in-out infinite;
}

.symbol-1 {
  top: 30%;
  left: 40%;
  animation-delay: 2s;
}

.symbol-2 {
  bottom: 25%;
  right: 45%;
  animation-delay: 5s;
}

.symbol-3 {
  top: 40%;
  right: 30%;
  animation-delay: 8s;
}

/* Анимации */
@keyframes floatAnimation {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 15px);
  }
  100% {
    transform: translate(-5px, -10px);
  }
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes packetAnimation1 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(150px, 90px);
    opacity: 0;
  }
}

@keyframes packetAnimation2 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(180px, -50px);
    opacity: 0;
  }
}

@keyframes packetAnimation3 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-190px, 30px);
    opacity: 0;
  }
}

@keyframes packetAnimation4 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-80px, -140px);
    opacity: 0;
  }
}

@keyframes packetAnimation5 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(120px, 140px);
    opacity: 0;
  }
}

@keyframes symbolFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  20% {
    opacity: 0.8;
    transform: scale(1);
  }
  30% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
  }
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-bottom: 2rem;
}

/* Условия подключения */
.conditions {
  background-color: var(--secondary-gray);
}

.conditions-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%; /* Убедимся, что сетка не выходит за границы */
}

.condition-card {
  background-color: var(--primary-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.condition-card:hover {
  transform: translateY(-10px);
}

.condition-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.condition-title {
  font-size: var(--font-medium);
  margin-bottom: 1rem;
}

.condition-description {
  color: var(--text-gray);
}

/* Conditions Graphic Style */
.conditions-graphic {
    display: flex;
    justify-content: space-around;
    margin: 3rem auto;
    max-width: 900px;
    gap: 2rem;
}

.condition-graphic-item {
    text-align: center;
    background: linear-gradient(145deg, #3b5998, #4267b2);
    border-radius: 15px;
    padding: 2rem;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(59, 89, 152, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-icon-large {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.condition-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .conditions-graphic {
        flex-direction: column;
        align-items: center;
    }
    
    .condition-graphic-item {
        width: 80%;
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
}

/* Simple Conditions List Style */
.conditions-simple-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 960px;
    margin: 2rem auto 0;
    width: 100%; /* Убедимся, что список не выходит за границы */
    padding: 0; /* Убираем паддинг по умолчанию */
}

.condition-simple-item {
    display: flex;
    align-items: flex-start; /* Выравниваем по верху для лучшего вида */
    padding: 1.5rem;
    background-color: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-simple-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(59, 89, 152, 0.1);
}

.condition-simple-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-right: 1.5rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0; /* Не позволяем иконке сжиматься */
    margin-top: 0.25rem; /* Небольшое смещение для лучшего выравнивания */
}

.condition-simple-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Четкое выравнивание по левому краю */
}

.condition-simple-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem; /* Увеличиваем отступ */
    line-height: 1.3;
    text-align: left;
}

.condition-simple-text p {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-normal);
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 768px) {
    .conditions-simple-list {
        grid-template-columns: 1fr;
    }
    .condition-simple-item {
        flex-direction: column;
        text-align: center;
    }
    .condition-simple-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Преимущества */
.features {
  background-color: var(--primary-white);
}

.features-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1rem; /* Добавляем паддинг для мобильных */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  width: 100%; /* Убедимся, что сетка не выходит за границы */
}

.feature-item {
  padding: 2rem;
  border-radius: 8px;
  background-color: var(--secondary-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: var(--font-medium);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-gray);
}

/* FAQ секция - добавляем стили */
.faq {
  background-color: var(--secondary-gray);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--primary-white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: var(--font-medium);
}

.faq-item p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.faq-item strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Контакты */
.contact {
  background-color: var(--secondary-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-method {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--primary-white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-title {
  font-size: var(--font-medium);
  margin-bottom: 1rem;
}

.contact-description {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-blue);
  color: var(--primary-white);
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-link:hover {
  background-color: var(--accent-blue);
  color: var(--primary-white);
}

/* Футер */
.footer {
  background-color: var(--primary-dark);
  color: var(--primary-white);
  padding: 4rem 0 2rem;
  width: 100%; /* Убедимся, что футер занимает всю ширину */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  width: 100%; /* Убедимся, что контент не выходит за границы */
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 40px;
  margin-right: 1rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-medium);
  font-weight: 700;
  text-transform: uppercase;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-contact a {
  display: block;
  color: var(--primary-white);
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-nav h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-small);
}

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 768px) {
  /* Убедимся, что все сетки адаптированы */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-item {
    min-width: 0; /* Позволяем элементам сжиматься */
    max-width: 100%;
  }
  
  /* Улучшаем читаемость на мобильных */
  p, li {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  /* Увеличиваем кликабельные области */
  a, button {
    min-height: 44px; /* Минимальный размер для удобного касания */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Исправляем проблемы с горизонтальным скроллом */
@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    max-width: 100%;
  }
  
  .countries-list {
    padding: 0 0.5rem; /* Добавляем небольшой паддинг */
  }
  
  .conditions-simple-list {
    grid-template-columns: 1fr;
  }
}

/* Оптимизация производительности анимаций на мобильных */
@media (max-width: 768px) {
  /* Отключаем сложные анимации */
  .node-pulse,
  .data-packet,
  .transaction-symbol {
    animation: none;
  }
  
  /* Упрощаем hover эффекты */
  .country-item:hover,
  .feature-item:hover,
  .faq-item:hover {
    transform: none;
  }
  
  /* Используем GPU для лучшей производительности */
  .hero,
  .network-visualization,
  .floating-icon {
    will-change: transform;
  }
} 