/* Telegram-style landing (mobile-first) */

:root {
  --tg-blue: #2AABEE;
  --tg-blue-dark: #229ED9;
  --bg-1: #cfe3c9;
  --bg-2: #b3d4b0;
  --bg-3: #e8e7b5;
  --text: #111111;
  --muted: rgba(0,0,0,.55);
  --shadow: 0 14px 40px rgba(0,0,0,.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
}

a {
  color: inherit;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: #1b1b1b;
}

.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(34,158,217,.25);
  flex: 0 0 auto;
}

.brand__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tg-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .6px;
}

.download:hover {
  background: var(--tg-blue-dark);
}

.page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 56px);
  padding: 0;
}

.hero {
  min-height: calc(100vh - 56px);
  padding: 24px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
  z-index: -2;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke%3D%22%252387a987%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3C%21--%20paper%20plane%20--%3E%0A%20%20%20%20%3Cpath%20d%3D%22M34%2046l44-22-22%2048-6-18z%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M56%2070l22-18%22/%3E%0A%20%20%20%20%3C%21--%20chat%20bubble%20--%3E%0A%20%20%20%20%3Cpath%20d%3D%22M165%2034h34a10%2010%200%200%201%2010%2010v18a10%2010%200%200%201-10%2010h-16l-14%2010v-10h-4a10%2010%200%200%201-10-10V44a10%2010%200%200%201%2010-10z%22/%3E%0A%20%20%20%20%3C%21--%20star%20--%3E%0A%20%20%20%20%3Cpath%20d%3D%22M70%20140l6%2014%2015%202-11%2010%203%2015-13-7-13%207%203-15-11-10%2015-2z%22/%3E%0A%20%20%20%20%3C%21--%20heart%20--%3E%0A%20%20%20%20%3Cpath%20d%3D%22M188%20146c-10-10-26%202-16%2014%207%209%2016%2016%2016%2016s9-7%2016-16c10-12-6-24-16-14z%22/%3E%0A%20%20%20%20%3C%21--%20small%20circles%20--%3E%0A%20%20%20%20%3Ccircle%20cx%3D%2240%22%20cy%3D%22200%22%20r%3D%2210%22/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%22200%22%20cy%3D%22210%22%20r%3D%228%22/%3E%0A%20%20%20%20%3C%21--%20smile%20--%3E%0A%20%20%20%20%3Ccircle%20cx%3D%22132%22%20cy%3D%22196%22%20r%3D%2214%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M126%20196h0%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M138%20196h0%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M126%20202c3%204%209%204%2012%200%22/%3E%0A%20%20%20%20%3C%21--%20hashtag%20--%3E%0A%20%20%20%20%3Cpath%20d%3D%22M100%2064h20%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M96%2076h20%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M106%2056l-6%2028%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M118%2056l-6%2028%22/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-size: 240px 240px;
  opacity: .24;
  z-index: -1;
}

.card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px 34px 26px;
  text-align: center;
}

.avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.channel-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
}

.subscribers {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.description {
  margin: 14px 0 22px;
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.55;
}

.primary-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #46b7f1 0%, var(--tg-blue) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(42,171,238,.28);
}

.primary-btn:hover {
  filter: brightness(.98);
}

.preview {
  margin-top: 16px;
  color: rgba(0,0,0,.45);
  font-size: 14px;
}

.lang-switch {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.lang-switch a {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.75);
  border: 1px solid rgba(0,0,0,.08);
}

.lang-switch a:hover {
  background: rgba(255,255,255,.9);
}

.lang-switch a[aria-current="page"] {
  background: rgba(42,171,238,.92);
  color: #ffffff;
  border-color: rgba(42,171,238,1);
}


/* SEO content blocks */

.seo {
  width: 100%;
  padding: 0 16px 54px;
}

.seo__container {
  width: min(960px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  padding: 26px 22px;
}

.seo h2, .seo h3 {
  margin: 18px 0 10px;
  text-align: left;
}

.seo p {
  margin: 10px 0;
  line-height: 1.7;
}

.seo ul, .seo ol {
  margin: 8px 0 14px 20px;
  padding: 0;
}

.seo li {
  margin: 6px 0;
  line-height: 1.6;
}

.seo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}
.seo__grid picture {
  display: block;
}

.seo__grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

@media (min-width: 860px) {
  .seo__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.seo__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 6px;
}

.seo__gallery figure {
  margin: 0;
}

.seo__gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.seo__gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,.62);
  line-height: 1.35;
  text-align: left;
}

.seo table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.seo th, .seo td {
  word-break: break-word;
  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}

.seo th {
  background: rgba(42,171,238,.10);
  text-align: left;
  font-weight: 800;
}

.seo details {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}

.seo summary {
  cursor: pointer;
  font-weight: 800;
}

.seo__note {
  padding: 12px 14px;
  border-left: 4px solid rgba(42,171,238,.75);
  background: rgba(42,171,238,.07);
  border-radius: 12px;
}

.seo__hr {
  height: 1px;
  background: rgba(0,0,0,.08);
  border: 0;
  margin: 18px 0;
}

@media (max-width: 480px) {
  .seo {
    padding: 0 12px 46px;
  }

  .seo__container {
    padding: 20px 16px;
    border-radius: 16px;
  }

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

  .seo table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topbar {
    padding: 0 12px;
  }

  .brand {
    font-size: 18px;
  }

  .card {
    padding: 26px 18px 20px;
    border-radius: 18px;
  }

  .avatar {
    width: 118px;
    height: 118px;
    margin-bottom: 14px;
  }

  .avatar__img {
    width: 100%;
    height: 100%;
  }

  .channel-title {
    font-size: 24px;
  }

  .subscribers {
    font-size: 15px;
  }

  .description {
    font-size: 15px;
  }

  .primary-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 360px) {
  .seo__gallery {
    grid-template-columns: 1fr;
  }
}

/* SEO banners (background images with text overlay) */

.seo-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

.seo-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
}

.seo-banner__bg {
  position: absolute;
  inset: 0;
}

.seo-banner__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.seo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.64) 72%, rgba(0,0,0,.80) 100%);
}

.seo-banner__content {
  position: relative;
  color: #ffffff;
  max-width: 760px;
}

.seo-banner__content h4 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.seo-banner__content p {
  margin: 8px 0;
  color: rgba(255,255,255,.92);
}

.seo-banner__content ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.seo-banner__content li {
  margin: 6px 0;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}

.seo-banner__content a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 900;
}

@media (max-width: 480px) {
  .seo-banner {
    min-height: 340px;
    padding: 16px;
  }

  .seo-banner__content h4 {
    font-size: 17px;
  }
}
