:root {
  --white: #ffffff;
  --dark-green: #2f4b39;
  --forest: #33513d;
  --forest-deep: #1d3125;
  --medium-gray: #c9c7c7;
  --poppers-mint: #7ef0ce;
  --mist: #f2f4f1;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text-main: #153425;
  --text-soft: rgba(21, 52, 37, 0.72);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 14px 28px rgba(11, 20, 15, 0.26);
  --shadow-tile: 0 10px 22px rgba(9, 18, 12, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(126, 240, 206, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(201, 199, 199, 0.14), transparent 24%),
    linear-gradient(180deg, #324c3a 0%, #2d4535 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
}

body.telegram {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 16px 14px 34px;
}

.hero-stage {
  position: relative;
  padding: 2px 0 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 118px;
  padding: 12px 12px 12px 8px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(126, 240, 206, 0.08), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.topbar-logo {
  display: block;
  width: min(100%, 300px);
  height: 64px;
  object-fit: contain;
  object-position: right center;
}

.topbar-logo-hero {
  width: min(100%, 360px);
  height: 104px;
  margin-left: auto;
}

.section-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--medium-gray);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.service-tile {
  min-height: 118px;
  padding: 8px 6px 10px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 244, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow:
    0 10px 0 rgba(22, 46, 29, 0.34),
    0 18px 26px rgba(8, 17, 11, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.service-tile:active {
  transform: scale(0.988);
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 46%);
  pointer-events: none;
}

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: block;
}

.tile-icon-art {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 14px rgba(9, 18, 12, 0.14);
  margin-top: -2px;
}

.tile-icon-brand {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 14px rgba(9, 18, 12, 0.14);
  margin-top: -1px;
}

.tile-title {
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 84px;
}

.partners-section {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 10px;
}

.partner-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 20s linear infinite;
}

.partner-image {
  display: block;
  flex: 0 0 auto;
  width: 220px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-image img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .service-tile {
    min-height: 108px;
  }

  .tile-title {
    font-size: 0.74rem;
  }

  .tile-icon {
    width: 52px;
    height: 52px;
  }

  .tile-icon-art {
    width: 74px;
    height: 74px;
  }

  .tile-icon-brand {
    width: 72px;
    height: 72px;
  }

  .topbar {
    min-height: 106px;
  }

  .topbar-logo {
    width: min(100%, 270px);
    height: 56px;
  }

  .topbar-logo-hero {
    width: min(100%, 320px);
    height: 92px;
  }
}
