@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Wix+Madefor+Display:wght@400..800&display=swap');

:root{
  --bg:#ffffff; /* фон белый */
  --panel: rgba(0,0,0,0.05); /* светлая граница */
  --muted: rgba(36,36,38,1); /* текст чуть серый */
  --accent-1: #2563eb; /* синий основной */
  --accent-2: #2563eb; /* синий */
  --glass: rgba(255, 255, 255, 0.8); /* прозрачность для карточек */
  --radius: 1rem;
  --maxw: 75rem;
  --gap: 1.25rem;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}


*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family:var(--sans);
  background: var(--bg);
  color:var(--muted);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===== Layout ===== */
.container {
  max-width:var(--maxw);
  margin:0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

header.site-header{
  padding:1.75rem 2.5rem;
  background:transparent;
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: white;
}

header.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin:0;
  padding:0;
}

.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:0}
.brand{display:flex;align-items:center;gap:.75rem;margin:0;padding:0}
.brand .logo{
  width:44px;height:44px;border-radius:10px;display:grid;place-items:center;
  background: var(--accent-1);
  font-weight:700;color:#ffffff; 
  box-shadow:0 6px 22px rgba(2,6,23,0.15);
}
.brand .title{font-weight:700;margin:0;padding:0;color:#000000}
nav a{color: rgba(36, 36, 38, 1.0);text-decoration:none;padding:.625rem 1.25rem; font-size:.875rem; font-weight: 500; font-family: "Inter"}
.actions{display:flex;gap:10px;align-items:center;margin:0;padding:0}
.btn{padding:12px 20px;border-radius:12px;border:1px solid rgba(0,0,0,0.1);text-decoration:none;font-weight:600;background:transparent;color:#000000;transition:all 0.3s ease}
.btn:hover{background:rgba(0,0,0,0.05);border-color:var(--accent-1)}
.btn-primary{background: var(--accent-1); color:#ffffff; border:none; box-shadow:0 4px 15px rgba(37,99,235,0.2)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(37,99,235,0.3)}
.lang{font-size:13px;color:var(--muted);margin:0;padding:0}

  /* ===== Hero ===== */
  .hero{display:grid;grid-template-columns:1fr 420px;gap:40px;align-items:center;padding:60px 0}
  .hero h1{font-size:48px;margin-bottom:20px;color:#000000;font-weight:700;line-height:1.2}
  .hero p{color:var(--muted);margin-bottom:32px;font-size:18px;line-height:1.6}
  .cta-row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:32px}
  .stats{display:flex;gap:20px;margin-top:40px}
  .stat{padding:20px 24px;border-radius:var(--radius);border:1px solid var(--panel);background:var(--glass);text-align:center;min-width:0rem}
  .stat b{display:block;font-size:24px;color:var(--accent-1);font-weight:700}

  /* ===== Cards / Features ===== */
  .features{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
  .card{background:var(--glass);padding:32px;border-radius:var(--radius);border:1px solid var(--panel);transition:all 0.3s ease}
  .card:hover{transform:translateY(-4px);border-color:var(--accent-1)}
  .card h3{margin-bottom:16px;font-size:20px;font-weight:600;color:#000000}
  .card p{line-height:1.6;color:#000000}

  /* ===== Download Section ===== */
  .download-section{text-align:center;padding:60px 0;color:#000000}
  .download-section h2{font-size:36px;margin-bottom:16px;font-weight:700}
  .download-buttons{justify-content:center}
  .download-btn{transition:all 0.3s ease;color:#000000}
  .download-btn:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(37,99,235,0.3)}
  .hero-btn-mobile:hover{transform:translateY(0px);}
  .hero-btn-mobile{transition:all 0.3s ease;color:#000000}

  /* ===== Security Section ===== */
  .security-section{padding:60px 0;color:#000000}
  .security-section h2{font-size:36px;margin-bottom:16px;font-weight:700;text-align:center}
  .security-features{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
  .security-features .card{text-align:center;color:#000000}

/* ===== Footer ===== */
footer{margin-top:80px;padding:60px 0;border-top:1px solid var(--panel);color:var(--muted)}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;margin-bottom:40px}
.col{min-width:0rem,;color:#000000}

/* Colors */
.text-trustBlack { color: #000000; }
.text-trustWhite { color: #ffffff; }
.text-trustBlue { color: rgba(5, 0, 255, 1.0); }
.text-trustGreen { color: rgb(72 255 145) }

/* Gradient Text → теперь однотонный синий */
.gradient-text {
  background: none;
  color: #2563eb;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* Trust Wallet Specific Styles */
.trust-gradient{background: var(--accent-1);}
.trust-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  color:#000000;
}
.trust-card:hover{transform:translateY(-4px);border-color:var(--accent-1);box-shadow:0 20px 40px rgba(0,0,0,0.1)}
.trust-button{
  background: var(--accent-1);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.trust-button:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(37,99,235,0.3)}


.brand-link svg {
  width: 160px;
  height: auto;
  display: block; /* применяем цвет к fill через currentColor */
}

.brand-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #2563eb; /* однотонный синий */
  margin-right: auto; /* логотип слева */
  transition: all 0.3s ease;
}

/* Кнопка */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem 0.375rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* По умолчанию показываем луну (темная иконка) с черным цветом */
.theme-dark {
  display: inline;
  color: black; /* черные линии */
}
.theme-light {
  display: none;
  color: white; /* белые линии */
}

/* Когда html получает класс dark */
html.dark .theme-dark {
  display: none;
}
html.dark .theme-light {
  display: inline;
}

html.dark {
  --bg: rgba(27,27,28,1);
  --panel: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.7);
  --glass: rgba(255,255,255,0.05);
}

.language-button {
  font-family: inherit;
  position: relative;
  z-index: 10;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
  height: 2.25rem; /* h-9 */
  border-radius: 9999px; /* rounded-full */
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: #0500ff; /* text-trustBlue */
  border: 1px solid #0500ff; /* border-trustBlue */
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-button:hover {
  background: #0500ff;
  color: #ffffff;
}

/* Для тёмной темы */
html.dark .language-button {
  color: #48FF91; /* text-trustGreen */
  border-color: #48FF91;
}

html.dark .language-button:hover {
  background: #48FF91;
  color: #000000; /* dark:hover:text-trustBlack */
}

#download-mobile {
  text-decoration: none;
  position: relative;
  z-index: 10;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.625rem 1.25rem;
  height: 36px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  background: #0500ff; /* trustBlue */
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#download-mobile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 9999px;
  background: #48FF91; /* trustGreen */
  z-index: -1;
  transition: width 0.5s ease;
}

#download-mobile:hover::before {
  width: 100%;
}

#download-mobile:hover {
  color: #000000;
}

/* Для тёмной темы */
html.dark #download-mobile {
  background: #48FF91; /* trustGreen */
  color: #000000; /* trustBlack */
}

html.dark #download-mobile::before {
  background: #0500ff; /* trustBlue */
}

html.dark #download-mobile:hover {
  color: #ffffff;
}

/* ====== Гамбургер ====== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px; /* чуть меньше, чтобы делилось ровно */
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
}

.hamburger .line {
  width: 100%;
  height: 4px; /* стало 4px вместо 3px */
  border-radius: 2px;
  background-color: #0500ff;
  transition: all 0.3s ease;
  transform-origin: center;
}

html.dark .hamburger .line {
  background-color: #48FF91;
}

/* Активное состояние (крест) */
.hamburger.active {
  width: 32px;
  transform: rotate(90deg);
}

.hamburger.active .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Показываем гамбургер только при ширине < 999px */
@media (max-width: 1299px) {
  .hamburger {
    display: flex !important;
  }

  header.site-header {
    padding: 1rem 2.5rem;
  }

  header nav {
    display: none !important;
  }

  header .actions {
    margin-left: auto;
    gap: 0; /* убираем промежуток, чтобы бургер прижался */
  }

  header .actions > *:not(.hamburger) {
    display: none !important;
  }

  /* Сокращаем логотип при мобильной ширине */
  .logo-trust svg path:not(:nth-last-child(-n+3)) {
    display: none;
  }
}

/* Мобильное меню — теперь обычный блок под хэдером */
.mobile-menu {
  position: fixed;
  top: 72px;                /* чтобы было прямо под хэдером */
  left: 0;
  right: 0;
  width: 100%;              /* теперь действительно по всей ширине */
  padding: 1rem 1.5rem;
  margin: 0;
  background-color: white;
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
}


/* Для тёмной темы */
html.dark .mobile-menu {
  background-color: rgba(27,27,28,1);
  border-top-color: rgba(255,255,255,0.1);
}

/* Кнопки меню */
.mobile-menu .btn {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: transparent;
  font-size: 2rem;
  font-weight: 500;
  color: #000;
  transition: background 0.2s ease;
}

.mobile-menu .btn:hover {
  background: rgba(0,0,0,0.05);
}

/* Тёмная тема для кнопок */
html.dark .mobile-menu .btn {
  color: #fff;
}

html.dark .mobile-menu .btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Только на мобильных */
@media (max-width: 999px) {
  .mobile-menu {
    display: none; /* скрыто до клика */
  }

  .mobile-menu.active {
    display: flex;
  }
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* логотип ↔ правая часть */
}

.right-side {
  display: flex;
  align-items: center;
  gap: 0px; /* расстояние между nav и actions */
  margin-left: auto; /* важно, прижимает всё к правому краю */
}

header.site-header .container.nav {
  max-width: none; /* снимаем ограничение ширины */
  width: 100%;     /* растягиваем на всю ширину */
  margin: 0;       /* убираем центрирование */ /* отступы по краям, чтобы контент не прилипал */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0; /* мы вручную задаём отступы */
  margin: 0;
  padding: 0;
  font-size: 0.5rem;
  font-family: "system-ui";
}

/* Отступ между theme-toggle и language */
#language-btn {
  margin-left: 0.625rem; /* 10px */
}

/* Отступ между language и download */
#download-mobile {
  margin-left: 1.5rem; /* 24px */
}

/* ======== ТЁМНАЯ ТЕМА: навигация + логотип ======== */

/* пункты навигации становятся белыми */
html.dark header nav a {
  color: #ffffff !important;
}

/* при наведении — лёгкий эффект */
html.dark header nav a:hover {
  opacity: 0.8;
}

html.dark header.site-header {
  background-color: rgba(27, 27, 28, 0.9);
  backdrop-filter: blur(12px);
}

/* логотип: меняем цвета местами — в тёмной теме зелёный становится синим, синий становится зелёным */
html.dark .logo-trust svg .text-trustBlue {
  color: #48FF91 !important; /* зелёный вместо синего */
  fill: currentColor !important;
}

html.dark .logo-trust svg .text-trustGreen {
  color: #0500ff !important; /* синий вместо зелёного */
  fill: currentColor !important;
}

/* По умолчанию — светлая тема */
.logo-trust svg path[fill="url(#paint0_linear_1578_140118undefined)"] {
  opacity: 0;
}
.logo-trust svg path[fill="url(#paint0_linear_1578_102342undefined)"] {
  opacity: 1;
}

/* В тёмной теме меняем прозрачность */
html.dark .logo-trust svg path[fill="url(#paint0_linear_1578_140118undefined)"] {
  opacity: 1;
}
html.dark .logo-trust svg path[fill="url(#paint0_linear_1578_102342undefined)"] {
  opacity: 0;
}

/* Добавим плавность */
.logo-trust svg path {
  transition: opacity 0.4s ease;
}



/* ==== Новый hero-блок в стиле Trust Wallet ==== */

.hero-heading {
  font-size: 3.25rem;
  font-weight: 700;
  margin-top: 1rem;
  line-height: 3.75rem;
  font-family: "Wix Madefor Display", sans-serif;
  color: #000000;
  transition: color 0.3s ease;
  margin-bottom: 0;
  text-wrap: nowrap;

}

html.dark .hero-heading {
  color: #ffffff;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 1.5rem 0;
  max-width: 40ch;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

html.dark .hero-subtext {
  color: #ffffff;
}

/* Mobile CTA */
.hero-btn-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  background: #0500ff;
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content;
}

.hero-btn-mobile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 999rem;
  background: #48FF91;
  z-index: -1;
  transition: width 0.5s ease;
}

.hero-btn-mobile:hover::before {
  width: 100%;
}

.hero-btn-mobile:hover {
  color: #000000;
}

html.dark .hero-btn-mobile {
  background: #48FF91;
  color: #000000;
}
html.dark .hero-btn-mobile::before {
  background: #0500ff;
}
html.dark .hero-btn-mobile:hover {
  color: #ffffff;
}

/* Для тёмной темы */
html.dark #hero-download-btn {
  background: #48FF91; /* trustGreen */
  color: #000000; /* trustBlack */
}

html.dark #hero-download-btn::before {
  background: #0500ff; /* trustBlue */
}

html.dark #hero-download-btn:hover {
  color: #ffffff;
}

/* Hero illustration */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img {
  width: 100%;
  max-width: 33.438rem;
  height: auto;
}

/* Stats section */
.hero-stats {
  font-size: 1.5625rem;
  line-height: 1.6875rem;
  grid-column: 1 / 3;
  display: flex;
  justify-content: center;
  gap: 6rem;
  text-align: center;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.hero-stats h4 {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 700;
  line-height: 1.6875rem;
  color: #000000;
  transition: color 0.3s ease;
  margin-block-start: 0 !important;
  margin: 0;
}

.hero-stats h4 span {
  display: inline-block;
  color: #0500ff;
  transition: color 0.3s ease;
}

html.dark .hero-stats h4 {
  color: #ffffff;
}
html.dark .hero-stats h4 span {
  color: #48FF91;
}

.review-link {
  color: #0500ff;
  font-family: "Wix Madefor Display", sans-serif;
  text-decoration: none;
  font-size: 1.85rem;
}

html.dark .review-link {
  color: #48FF91;
}

/* Responsive */
@media (max-width: 999px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta-desktop {
    display: none;
  }

  .hero-img {
    display: block;
    width: 100%;
    max-width: 33.438rem;
    height: auto;
    aspect-ratio: 3455 / 3101;
    vertical-align: middle;
    border: 0;
    box-sizing: border-box;
    color: transparent;
    align-self: start;  /* ✅ добавь это */
    margin-top: -1.25rem; /* как у оригинала */
  }


  .hero-stats {
    flex-wrap: wrap; /* 👈 в мобильной версии переносим */
    gap: 1.5rem;     /* чуть меньшее расстояние */
    margin-top: 2.5rem;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.hero-section {
  display: grid;
  width: 100%;
  max-width: 75rem;          /* ← оригинальный max-width */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;                  /* расстояние между колонками */
  row-gap: 3.5rem;            /* расстояние между строками */
  margin: 0 auto;
  margin-bottom: 4rem;
  box-sizing: border-box;
  align-items: start;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgb(209, 211, 226 / 1.0);
  object-position: center;
}



section .pic {
  margin: auto;
  align-items: center;
  justify-content: center;
  
}

/* само изображение */
.swiper-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 25rem;
  object-fit: cover;
  display: block;
  object-position: center;
}

@media (max-width: 999px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-top: 0;
  }
}

main.responsive-page-paddings {
  margin-top: 9rem;
  display: grid;
  justify-items: center;
  margin-bottom: 5rem;
  row-gap: 3rem;
}

/* ==== Building on Trust section ==== */
.trust-section {
  margin: auto;
  display: flex;
  width: 100%;
  max-width: 75rem;
  justify-content: space-between;
  gap: 2.25rem;
  background-color: rgb(5 0 255 / 1);
  flex-direction: row;
  align-items: center;
  border-radius: 1.875rem;
  padding: 4rem;
  padding-left: 6.25rem;
  padding-right: 6.25rem;
  box-sizing: border-box;
  flex-wrap: nowrap;
  margin-top: 3rem;
}

/* контентная часть */
.trust-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  color: white;
  font-family: "Inter", sans-serif;
  max-width: 60ch;
}

.trust-content h2 {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  font-size: 2rem;
}

.trust-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0;
  color: #ffffff;
  max-width: 60ch;
  text-wrap: wrap;
}

.trust-btn {
  font-family: "Wix Madefor Display", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999rem;
  font-size: .9375rem;
  text-decoration: none;
  padding: 0.75rem 2.5rem;
  background: #ffffff;
  color: #0500ff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content;
  font-weight: 600;
}

.trust-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999rem;
  background: #48ff91;
  z-index: -1;
  transition: width 0.5s ease;
}

.trust-btn:hover::before {
  width: 100%;
}

.trust-btn:hover {
  color: #000000;
}

/* иконка справа */
.trust-image img {
  display: block;
  width: 12.5rem;
  height: auto;
}

@media (max-width: 999px) {
  .trust-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.25rem;
    gap: 1.75rem;
  }

  .trust-content {
    align-items: center;
  }

  .trust-btn {
    margin-top: 1rem;
  }

  .trust-image img {
    width: 11.25rem;
    margin: 0 auto;
  }
}

/* Dark theme */
html.dark .trust-section {
  background-color: #0500ff;
}

html.dark .trust-content h2,
html.dark .trust-content p {
  color: #ffffff;
}

html.dark .trust-btn {
  background: #48ff91;
  color: #000000;
}

html.dark .trust-btn::before {
  background: #0500ff;
}

html.dark .trust-btn:hover {
  color: #ffffff;
}

/* ==== Community Section ==== */
.community-section {
  width: 100%;
  max-width: 75rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.community-section h2 {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.0625rem;
  color: #000000;
  max-width: 28ch;
  margin: 0;
  transition: color 0.3s ease;
}

html.dark .community-section h2 {
  color: #ffffff;
}

.community-section p {
  font-size: 1.125rem;
  line-height: 1.625rem;
  color: #444444;
  margin: 0;
  max-width: 50ch;
  transition: color 0.3s ease;
}

html.dark .community-section p {
  color: #ffffff;
}

/* === Cards list === */
.community-list {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
  list-style: none;
  width: 100%;
  max-width: 75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-inline-start: 0 !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.community-list::-webkit-scrollbar {
  height: 6px;
}

.community-list::-webkit-scrollbar-thumb {
  background: rgba(80, 80, 80, 0.3);
  border-radius: 3px;
}

.community-list li {
  flex: 0 0 auto;   
  min-width: 0rem;
  max-width: 23.4375rem;
  scroll-snap-align: start;
  color: #000000;
  transition: color 0.3s ease;
}

html.dark .community-list li {
  color: #ffffff;
}

.card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16; /* портретное соотношение сторон */
  overflow: hidden;
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  transition: transform 0.4s ease;
}

.card-image img:hover {
  transform: scale(1.04); /* лёгкий zoom при наведении */
}

@media (min-width: 768px) {
  .community-list li {
    min-width: 0rem;
    max-width: 22.5rem;
  }

  .card-image {
    aspect-ratio: 9 / 16; /* немного выше */
  }
}


/* blue overlay for selected cards */
.community-list li.blue .card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 0, 255, 0.8);
  mix-blend-mode: screen;
  z-index: 10;
  border-radius: 1.25rem;
}

/* card name */
.community-list strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.375rem;
}

/* card text */
.community-list p {
  font-size: .9375rem;
  line-height: 1.375rem;
  color: inherit;
  margin: 0;
}

/* === CTA button === */
.community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 999rem;
  background: #0500ff;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content;
  text-decoration: none;
}

.community-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999rem;
  background: #48ff91;
  z-index: -1;
  transition: width 0.5s ease;
}

.community-btn:hover::before {
  width: 100%;
}

.community-btn:hover {
  color: #000000;
}

/* dark theme */
html.dark .community-btn {
  background: #48ff91;
  color: #000000;
}

html.dark .community-btn::before {
  background: #0500ff;
}

html.dark .community-btn:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 999px) {
  .community-section {
    align-items: center;
    text-align: center;
  }

  .community-list {
    gap: 1rem;
  }

  .community-btn {
    margin: 0 auto;
  }
}

/* === Footer Styles (Optimized) === */

.footer {
  background: rgb(244 244 247 / 1);
  border-radius: 1.875rem;
  padding: 3rem 5rem;
  max-width: 75rem;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  transition: background 0.3s, border-color 0.3s;
}

.footdown {
  padding-bottom: 2.5rem;
}

.footerbg {
  background-color: #f4f4f7;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 87.5rem;
  margin: 0 auto;
}

/* === Left Side === */
.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-width: 0rem;
  margin: auto 0;
}

.footer-logo-text {
  height: 3.78rem;
  width: auto;
  color: #0500ff;
}

.footer-logo-icon {
  width: 11.25rem;
  margin-top: .625rem;
}

.footer-logo-svg {
  width: 18.3125;
  height: auto;
  color: #0500ff;
  transition: color 0.3s ease;
}

.dark .footer-logo-svg {
  color: #48ff91;
}

/* === Links Section === */
.footer-content {
  flex: 1 1 43.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  line-height: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0rem;
  max-width: 6.25rem;
}

.footer-col strong {
  font-weight: 600;
  font-size: .9375rem;
  color: #000;
  margin-bottom: .5rem;
}

.footer-col a {
  font-size: .9375;
  color: #1b1b1c;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* === Certificates === */
.footer-certificates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  flex-wrap: nowrap;
}

.cert-icon {
  width: 3.625rem;
  height: auto;
  display: inline-block;
}

/* === Right Section === */
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-download,
.footer-top {
  flex: 1 1 45%;
  min-width: 0rem;
}

.footer-download {
  max-width: 22.5rem;
  color: #1b1b1c;
  padding-right: 1.25rem;
}

.footer-download strong {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #000;
}

.footer-download p {
  font-size: .75rem;
  margin: .3125rem 0 1rem;
  color: #444;
}

.footer-download-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem .75rem;
  max-width: 330px;
  margin: 0 auto;
}

.download-btn {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid #007aff;
  color: #007aff;
  background: transparent;
  border-radius: 999rem;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.download-btn:hover {
  background-color: #007aff;
  color: #fff;
}

.download-btn .icon,
.download-btn svg {
  height: 1.125rem;
  width: auto;
}

/* === Socials === */
.footer-top {
  text-align: left;
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
}

.footer-top h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .9375;
  color: #000;
}

.footer-top a {
  margin-right: 0.75rem;
}

/* === Theme Adjustments === */
@media (prefers-color-scheme: dark) {
  .footer {
    background: rgb(244 244 247 / 1);
  }

  .footer-download {
    color: #f4f4f4;
  }

  .download-btn {
    border-color: #0500ff;
    color: #0500ff;
  }

  .download-btn:hover {
    background-color: #0500ff;
    color: #fff;
  }
}

/* === Responsive === */
@media (max-width: 1200px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-svg {
    width: 15rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 1299px) {
  nav a {
    font-size: 1.1rem;
  }
  .language-button {
    font-size: 1.1rem;
    padding: 1.25rem 1.35rem;
  }
  #download-mobile {
    font-size: 1.1rem;
    padding: 1.25rem 1.35rem;
  }
  .hero-heading {
    font-size: 3.8rem;
    line-height: 4.6rem;
    text-wrap: wrap;
    margin-top: -1rem;
    text-align: left;
  }
  .hero-subtext {
    font-size: 1.3rem;
    text-align: left;
  }
  .hero-btn-mobile {
    font-size: 1.1rem;
    padding: .7rem 1.35rem;
  }
  .hero-img {
    margin-top: 1rem;
  }
  .hero-stats {
    font-size: 1.8rem;
    flex-wrap: wrap;
  }
  .trust-content h2 {
    font-size: 2.4rem;
  }
  .trust-content p {
    font-size: 1.3rem;
  }
  .trust-btn {
    font-size: 1.05rem;
  }
  .community-section h2 {
    font-size: 2rem;
  }
  .community-section p {
    font-size: 1.3rem;
  }
  .community-list strong {
    font-size: 1.1rem;
    line-height: 2rem;
  }
  .community-list p {
    font-size: 1.1rem;
  }
  .community-btn {
    font-size: 1.1rem;
  }
  .footer-col strong {
    font-size: 1.1rem;
  }
  .footer-col {
    font-size: 1.1rem;
  }
    .hero-section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "image"
      "stats";
    
    gap: 2.5rem;
  }

  .hero-text {
    grid-area: text;
    
    margin-top: 2rem;
  }

  .hero-heading,
  .hero-subtext {
    width: 100%;
    max-width: none;
    
  }

  .hero-btn-mobile {
    
  }

  .hero-img {
    grid-area: image;
    justify-self: center;
    width: 100%;
    max-width: 33.438rem;
    height: auto;
    margin-top: 1.5rem;
  }

  .hero-stats {
    grid-area: stats;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }

}

  .swiper-slide img {
    object-position: center;  /* гарантируем центрирование */
  }

/* Перестройка футера: footer-top -> footer-links -> footer-download -> footer-logo */
@media (max-width: 1210px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  /* Скрываем оболочки из визуального потока, чтобы их дети стали "прямыми" элементами .footer-inner */
  .footer-left,
  .footer-content,
  .footer-right {
    display: contents;
  }

  /* Общие правила для блоков */
  .footer-top,
  .footer-links,
  .footer-download,
  .footer-logo {
    width: 100%;
    max-width: 75rem; /* можно уменьшить если нужно */
    box-sizing: border-box;
  }

  /* Новый порядок */
  .footer-top {
    order: 1;
    margin-bottom: 1rem;
    text-align: center;
  }

  .footer-links {
    order: 2;
    margin: 0.25rem 0 1rem;
    /* На узких экранах делаем 2 колонки */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
    align-items: start;
    list-style: none;
  }

  /* Если хочешь ещё более компактно — уменьши max-width у колонок:
     .footer-col { max-width: 100%; min-width: 0; } */
  .footer-col {
    min-width: 0;
    max-width: none;
    justify-self: center;
  }

  .footer-download {
    order: 3;
    margin: 0.5rem 0 1rem;
    text-align: center;
  }

  .footer-logo {
    order: 4;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
  }

   .footer-logo svg {
      width: 45px;      /* уменьшенный размер */
      height: auto;
      flex-shrink: 0;
    }

    .footer-logo div {
    font-size: 1.25rem; /* около 20px */
    font-weight: 600;
    line-height: 1;
    color: var(--trustBlue, #0038ff); /* подстраивается под тему */
    display: flex;
    align-items: center;
  }
  .footer-logo svg,
  .footer-logo div {
    display: inline-block;
    vertical-align: middle;
  }

  /* Центрируем кнопки и сертификаты */
  .footer-download-buttons,
  .footer-certificates {
    justify-content: center;
  }

  /* Уменьшаем внутренние отступы футера */
  .footer {
    padding: 2rem;
  }
}

/* По умолчанию — показываем .footer-logo, скрываем мобильный svg */
.mx-auto.mt-8.self-center {
  display: none;
}

@media (max-width: 1200px) {
  /* Скрываем оригинальный футерный логотип */
  .footer-logo {
    display: none !important;
  }

  /* Показываем мобильный svg-логотип и ставим его на место футерного */
  .mx-auto.mt-8.self-center {
    display: flex !important;
    justify-content: center;
    align-items: center;
    order: 4; /* чтобы он был в том же месте, где footer-logo */
    margin-top: 1rem;
    width: 100%;
  }

  /* Чтобы svg не был огромным */
  .mx-auto.mt-8.self-center svg {
    width: 300px;
    height: auto;
  }
}

/* Контейнеры */
.container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}


@media (max-width: 700px) {
  .hero-section {
  width: 100%;
  max-width: 100%; /* позволяем сжиматься */
  box-sizing: border-box;
  padding-top: 0;
  padding-left: 0rem;
  padding-right: 0rem;
  overflow-x: hidden;
  grid-template-columns: 1fr;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Разрешаем перенос заголовка */
  .hero-heading {
    white-space: normal; /* заменяет text-wrap: nowrap */
    word-wrap: break-word;
    text-align: center;
    font-size: clamp(1.75rem, 6vw, 3.25rem); /* плавное уменьшение на мобильных */
    line-height: 1.2;
  }
  .card-image img {
    max-height: 60rem ;
  }
    .hero {
    grid-template-columns: 1fr; /* одна колонка */
    padding: 40px 1rem; /* меньше отступов */
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero img, .hero-illustration {
    max-width: 100%;
    height: auto;
  }
  .community-list {
  grid-template-columns: 1fr; /* гибкая сетка */
  }
  .card-image img {
  object-fit: cover; /* важно — не тянет картинку */
  }
    .community-list li {
    padding: 0.75rem;
    max-width: 16rem; /* около 256px */
  }

  .card-image {
  }

  .community-list li p {
    font-size: 0.9rem;
  }
  .hero-heading {
    text-align: left;
    font-size: 2.6rem;
    max-width: 90%;
    margin-top: -2.5rem;
  }
  .hero-subtext {
    font-size: 1.2rem;
  }
  .hero-text {
    gap: 1rem;

  }
  .footer-download {
    padding-right: 0;
  }
}
/* Адаптивная сетка hero */
@media (max-width: 700px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-img {
    margin: 0 auto;
  }
}

html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  box-sizing: border-box;
}