/* ===== CSS Variables ===== */
:root {
  --primary: #6C5CE7;
  --primary-gradient: linear-gradient(123deg, #6C5CE7 8.5%, #A29BFE 50%, #DCD6F7 91.5%);
  --bg-features: #F0EEF6;
  --footer-bg: #2D3436;
  --text-dark: #101828;
  --text-body: #4A5565;
  --text-muted: #364153;
  --footer-text: #99A1AF;
  --footer-muted: #6A7282;
  --footer-divider: #364153;
  --white: #ffffff;
  --radius-card: 24px;
  --radius-btn: 9999px;
  --shadow-card: 0 4px 24px rgba(108, 92, 231, 0.08);
  --shadow-btn: 0 4px 16px rgba(108, 92, 231, 0.18);
  --landing-topbar-height: 56px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Container ===== */
.container {
  max-width: 1143px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--store {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  width: 240px;
  min-width: 240px;
  height: 46px;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
}

.btn--store:hover {
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.28);
}

/* ===== Section titles ===== */
.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-body);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

/* ===== Policy page ===== */
.hero--compact {
  min-height: auto;
  padding: 80px 0 72px;
}

.hero--compact.hero--slim {
  padding: 24px 0 20px;
}

.hero--compact .hero__inner {
  min-height: auto;
}

.policy {
  background: #F9FAFB;
  padding: 72px 0 96px;
}

.policy__content {
  max-width: 840px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-body);
}

.policy__content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 12px;
}

.policy__content p {
  margin-bottom: 12px;
}

.policy__content ul {
  margin: 8px 0 16px 20px;
  padding-left: 0;
}

.policy__content li {
  margin-bottom: 6px;
  list-style: disc;
}

.policy__date {
  margin-bottom: 24px;
}

.policy__back {
  margin-top: 32px;
}

/* ===== Landing glass top bar (content from top, bar overlaps) ===== */
.landing-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(108, 92, 231, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-topbar--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.landing-topbar__inner {
  max-width: 1143px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-topbar__logo {
  font-family: 'Rouge Script', cursive;
  font-size: 28px;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.landing-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.landing-topbar__nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-topbar__nav a:hover {
  color: var(--white);
}

.landing-layout .hero:not(.hero--compact) {
  padding-top: var(--landing-topbar-height, 56px);
  box-sizing: border-box;
}

/* policy/terms: отдельные отступы — см. .hero--legal */
.landing-layout .hero.hero--compact:not(.hero--legal) {
  padding-top: calc(var(--landing-topbar-height, 56px) + 48px);
}

.landing-layout .hero.hero--compact.hero--legal {
  padding: calc(var(--landing-topbar-height, 56px) + 12px) clamp(16px, 4vw, 28px) 28px;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .landing-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 20px;
  }

  .landing-topbar__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 16px;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(133deg, #6C5CE7 10.4%, #A29BFE 68.5%, #DCD6F7 96%);
  overflow: hidden;
  min-height: 762px;
}

/* Перебивает min-height главной: иначе privacy/terms остаются ~762px */
.hero.hero--compact {
  min-height: 0;
}

/* ===== Legal hero (privacy.html, terms.html only) ===== */
.landing-layout .hero.hero--legal {
  background: linear-gradient(152deg, #4c3fb8 0%, #6556e0 45%, #8f7ae0 100%);
}

.hero__content--legal {
  position: relative;
  z-index: 1;
}

.hero__legal-panel {
  max-width: 840px;
  margin: 0 auto;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__legal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__logo-wrap--legal {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.hero__logo-img--legal {
  width: 32px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.hero__legal-brand {
  font-family: 'Rouge Script', cursive;
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.hero__legal-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 10px;
}

.hero__legal-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (max-width: 520px) {
  .hero__legal-panel {
    padding: 14px 16px 16px;
    border-radius: 16px;
  }

  .landing-layout .hero.hero--compact.hero--legal {
    padding-bottom: 22px;
  }
}

.hero__bubbles,
.download__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  animation-name: bubble-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.bubble--1 {
  width: 209px;
  height: 209px;
  top: -6%;
  left: 21%;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.23;
  animation-duration: 18s;
  animation-delay: -4s;
}

.bubble--2 {
  width: 282px;
  height: 282px;
  bottom: 10%;
  left: -5%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0.25;
  animation-duration: 22s;
  animation-delay: -10s;
}

.bubble--3 {
  width: 80px;
  height: 80px;
  top: 36%;
  left: 7%;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.25;
  animation-duration: 20s;
  animation-delay: -7s;
}

.bubble--4 {
  width: 60px;
  height: 60px;
  bottom: 12%;
  right: 8%;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.20;
  animation-duration: 24s;
  animation-delay: -2s;
}

@keyframes bubble-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(6px, -8px, 0);
  }
  50% {
    transform: translate3d(-4px, -4px, 0);
  }
  75% {
    transform: translate3d(4px, 6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Hero layout — absolute positioning per Figma */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1143px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 762px;
}

/* Left column: branding + CTA stacked vertically */
.hero__left {
  position: absolute;
  left: 33px;
  top: 113px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 182px;
}

.hero__branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 403px;
}

.hero__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
}

.hero__logo-img {
  width: 75px;
  height: 98px;
  border-radius: 0;
  object-fit: contain;
}

.hero__title {
  font-family: 'Rouge Script', cursive;
  font-size: 96px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2.8px;
}

/* CTA: download text + buttons */
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 403px;
  margin-top: -100px;
}

.hero__download-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  text-align: center;
  line-height: 1.5;
}

.hero__store-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}

.hero__store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  width: 240px;
  min-width: 240px;
  height: 46px;
  justify-content: center;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-btn);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero__store-btn img,
.btn--store .icon-store {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}

.hero__store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.12);
}

/* Mobile-only description — hidden on desktop */
.hero__description--mobile {
  display: none;
}

/* Right column: headline text (top) + phones */
.hero__right {
  position: absolute;
  left: 356px;
  top: 114px;
  width: 787px;
}

.hero__right-text {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 35.75px;
  margin-bottom: 29px;
  max-width: 787px;
}

.hero__headline {
  margin-bottom: 0;
}

.hero__tagline {
  margin-top: 0;
}

/* Phone mockups — proportions from Figma (canvas 1143x762) */
.hero__phones {
  position: relative;
  width: 674px;
  height: 543px;
  margin-left: 113px;
}

.hero__phone-slot {
  position: absolute;
  overflow: hidden;
}

.hero__phone-image {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

/* Left phone (Figma 787shots_so 1) */
.hero__phone-slot--left {
  width: 281.15px;
  height: 458.56px;
  left: 0;
  top: 90px;
  z-index: 1;
}

.hero__phone-image--left {
  width: 236.74%;
  height: 108.84%;
  left: -68.06%;
  top: -8.84%;
}

/* Center phone (Figma 489shots_so 1) */
.hero__phone-slot--center {
  width: 384.93px;
  height: 543.03px;
  left: 104px;
  top: 14px;
  z-index: 3;
}

.hero__phone-image--center {
  width: 210.76%;
  height: 112.06%;
  left: -54.77%;
  top: -12.06%;
}

/* Right phone (Figma 560shots_so 1) */
.hero__phone-slot--right {
  width: 318.56px;
  height: 497.17px;
  left: 290px;
  top: 58px;
  z-index: 2;
}

.hero__phone-image--right {
  width: 231.6%;
  height: 111.28%;
  left: -68.03%;
  top: -11.28%;
}

/* ===== Features ===== */
.features {
  background: var(--bg-features);
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.14);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.feature-card__icon img {
  width: 64px;
  height: 64px;
  padding: 12px;
  object-fit: contain;
}

.feature-card__title {
  font-weight: 600;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ===== Screenshots / Carousel ===== */
.screenshots {
  background: var(--white);
  padding: 100px 0;
}

/* ===== Community / Telegram ===== */
.community {
  background: #0F7BDE;
  background: radial-gradient(circle at top left, #32B3FF 0, #0F7BDE 40%, #005BBB 100%);
  padding: 96px 0 80px;
  color: var(--white);
}

.community__inner {
  max-width: 1143px;
  margin: 0 auto;
  padding: 0 24px;
}

.community__header {
  max-width: none;
}

.community__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.community__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.community__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--white);
  color: #0F7BDE;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.community__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.community__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.community__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-card {
  border-radius: 24px;
  background: rgba(15, 123, 222, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 20px;
}

.community-card__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.community-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* Community Carousel */
.community-carousel {
  position: relative;
}

.community-carousel__viewport {
  overflow: hidden;
}

.community-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-carousel__slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* VK slide — blue theme */
.community-carousel__slide--vk .community__cta {
  color: #0077FF;
}

/* Telegram slide — blue theme */
.community-carousel__slide--tg .community__cta {
  color: #0F7BDE;
}

/* Override grid inside carousel slides — ensure it fits */
.community-carousel__slide .community__grid {
  margin-top: 0;
}

/* Carousel arrows */
.community-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.community-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.community-carousel__arrow--prev {
  left: -60px;
}

.community-carousel__arrow--next {
  right: -60px;
}

/* Carousel dots */
.community-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.community-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.community-carousel__dot--active {
  background: var(--white);
  transform: scale(1.2);
}

.community-carousel__dot:hover:not(.community-carousel__dot--active) {
  background: rgba(255, 255, 255, 0.6);
}

.community__stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-radius: 24px;
  background: rgba(10, 79, 162, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 24px;
}

.community-stat {
  min-width: 120px;
}

.community-stat__number {
  font-size: 28px;
  font-weight: 700;
}

.community-stat__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__slide-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px;
}

.carousel__image {
  flex: 0 0 auto;
  width: 220px;
}

.carousel__image img {
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(108, 92, 231, 0.12);
}

.carousel__text {
  flex: 1;
  min-width: 0;
}

.carousel__heading {
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.carousel__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.carousel__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
}

.carousel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.carousel__list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.carousel__list a:hover {
  text-decoration: underline;
}

/* Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}

.carousel__arrow:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.carousel__arrow--prev {
  left: -24px;
}

.carousel__arrow--next {
  right: -24px;
}

/* Dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #D1D5DB;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.carousel__dot--active {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel__dot:hover:not(.carousel__dot--active) {
  background: #A29BFE;
}

/* ===== Download ===== */
.download {
  position: relative;
  background: var(--primary-gradient);
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
}

.download__content {
  position: relative;
  z-index: 1;
}

.download__brand {
  font-family: 'Rouge Script', cursive;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.download__title {
  font-weight: 700;
  font-size: 48px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.download__subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.download__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.download__stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-weight: 700;
  font-size: 42px;
  color: var(--white);
  line-height: 1.2;
}

.stat__label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 32px;
  color: var(--footer-text);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  font-family: 'Rouge Script', cursive;
  font-size: 42px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand-text {
  font-size: 14px;
  color: var(--footer-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer__moses {
  margin-bottom: 12px;
}

.footer__moses img {
  height: 28px;
  opacity: 0.6;
}

.footer__copyright {
  font-size: 12px;
  color: var(--footer-muted);
}

.footer__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--footer-text);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contacts ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer__contacts a {
  color: var(--footer-text);
  transition: color 0.2s;
}

.footer__contacts a:hover {
  color: var(--white);
}

.footer__contacts img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.footer__divider {
  border-top: 1px solid var(--footer-divider);
  margin: 40px 0 24px;
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--footer-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Fade-in animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger feature cards */
.feature-card.fade-in:nth-child(2) { transition-delay: 0.08s; }
.feature-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.feature-card.fade-in:nth-child(4) { transition-delay: 0.24s; }
.feature-card.fade-in:nth-child(5) { transition-delay: 0.32s; }
.feature-card.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .section-title {
    font-size: 36px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero__inner {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .hero__left,
  .hero__right {
    position: static;
    width: 100%;
  }

  .hero__left {
    align-items: center;
    gap: 40px;
  }

  .hero__branding {
    width: 100%;
    max-width: 403px;
  }

  .hero__title {
    font-size: 80px;
  }

  .hero__cta {
    width: 100%;
    max-width: 403px;
  }

  .hero__right {
    margin-top: 40px;
  }

  .hero__right-text {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
  }

  .hero__phones {
    width: min(674px, 100%);
    height: auto;
    aspect-ratio: 674 / 543;
    margin: 0 auto;
  }

  .hero__phone-slot--left {
    width: 41.71%;
    height: 84.45%;
    top: 14.18%;
  }

  .hero__phone-slot--center {
    width: 57.11%;
    height: 100%;
    left: 15.43%;
  }

  .hero__phone-slot--right {
    width: 47.26%;
    height: 91.55%;
    top: 5.16%;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel__arrow--prev {
    left: 8px;
  }

  .carousel__arrow--next {
    right: 8px;
  }

  .carousel__slide-inner {
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
  }

  .carousel__image {
    width: 200px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download__title {
    font-size: 36px;
  }

  .download__stats {
    gap: 40px;
  }

  /* Community — tablet */
  .community {
    padding: 64px 0 56px;
  }

  .community__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .community__header {
    max-width: 100%;
  }

  .community__title {
    font-size: 32px;
  }

  .community-carousel__arrow--prev {
    left: 4px;
  }

  .community-carousel__arrow--next {
    right: 4px;
  }
}

/* Hero mobile layout */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100svh;
    padding: 16px 24px;
  }

  .hero__left {
    width: 100%;
    max-width: 392px;
    align-items: center;
    gap: 0;
    min-height: calc(75svh - 32px);
  }

  .hero__branding {
    width: 100%;
    max-width: 225px;
    gap: 12px;
  }

  .hero__right {
    display: none;
  }

  .hero__description--mobile {
    display: block;
    font-size: 16px;
    color: var(--white);
    max-width: 303px;
    margin: 28px auto 0;
    line-height: 1.625;
    text-align: center;
    order: 2;
  }

  .hero__cta {
    width: 100%;
    max-width: 392px;
    margin-top: auto;
    gap: 12px;
    order: 3;
    padding-bottom: 6px;
  }

  .hero__download-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.625;
    order: -1;
  }

  .hero__store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__store-btn {
    width: 240px;
    min-width: 240px;
    height: 46px;
    justify-content: center;
    padding: 10px 24px;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 13px;
    letter-spacing: 2.4px;
  }

  .hero__logo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 30px;
  }

  .hero__logo-img {
    width: 55px;
    height: 72px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .features {
    padding: 64px 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .screenshots {
    padding: 64px 0;
  }

  .carousel__heading {
    font-size: 22px;
  }

  .carousel__image {
    width: 180px;
  }

  .carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .carousel__arrow--prev {
    left: 4px;
  }

  .carousel__arrow--next {
    right: 4px;
  }

  .download {
    padding: 64px 0;
  }

  .download__title {
    font-size: 28px;
  }

  .download__subtitle {
    font-size: 16px;
  }

  .download__buttons {
    flex-direction: column;
    align-items: center;
  }

  .download__stats {
    gap: 32px;
  }

  .stat__number {
    font-size: 32px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  /* Community — mobile */
  .community {
    padding: 48px 0 40px;
  }

  .community__title {
    font-size: 26px;
  }

  .community__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .community__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .community__stats {
    gap: 20px;
    padding: 16px 20px;
    justify-content: space-between;
  }

  .community-stat__number {
    font-size: 22px;
  }

  .community-stat__label {
    font-size: 12px;
  }

  .community-carousel__arrow {
    display: none;
  }

  .community-carousel__dots {
    margin-top: 16px;
  }

  /* Carousel — mobile: arrows below, not overlapping */
  .carousel__arrow {
    display: none;
  }

  .carousel__dots {
    margin-top: 20px;
  }

  .carousel__image {
    width: 160px;
  }

  .carousel__heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .carousel__list li {
    font-size: 14px;
  }

  .carousel__slide-inner {
    padding: 16px 12px;
    gap: 16px;
  }
}
