:root {
  /* Palette from presentation */
  --bg: #F1F3FD;
  --text: #141517;
  --muted: rgba(20, 21, 23, .72);
  --line: rgba(20, 21, 23, .10);

  --purple: #6160CA;
  --teal: #06A4AA;
  --yellow: #EBCF61;

  --shadow: 0 14px 55px rgba(20, 21, 23, .10);
  --shadow2: 0 10px 28px rgba(20, 21, 23, .08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(97, 96, 202, .10), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(6, 164, 170, .12), transparent 60%),
    radial-gradient(800px 500px at 55% 85%, rgba(235, 207, 97, .18), transparent 55%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  opacity: .95
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 243, 253, .75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
  flex-wrap: wrap
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aedev-logo {
  height: 55px;
  width: 60px;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow2)
}

.brand-title {
  font-weight: 900;
  letter-spacing: .2px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

.nav-links a {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px
}

.nav-links a:hover {
  color: var(--text)
}

.kicker-strong{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 1000;
  color: var(--text);
  border: 1px solid rgba(97,96,202,.22);
  background: linear-gradient(90deg, rgba(6,164,170,.22), rgba(97,96,202,.22));
  box-shadow: 0 8px 18px rgba(20,21,23,.08);
  letter-spacing: .12em; /* оставляет "kicker" вайб */
  margin-right: 6px;
}


/* UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .70);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(20, 21, 23, .06);
}

.btn:hover {
  background: rgba(255, 255, 255, .86)
}

.btn.primary {
  border-color: rgba(97, 96, 202, .18);
  background: linear-gradient(90deg, rgba(6, 164, 170, .18), rgba(97, 96, 202, .18));
}

.btn.primary:hover {
  background: linear-gradient(90deg, rgba(6, 164, 170, .26), rgba(97, 96, 202, .26));
}

.badge.badge-link {
  border-color: rgba(97, 96, 202, .18);
  background: linear-gradient(90deg, rgba(6, 164, 170, .18), rgba(97, 96, 202, .18));
}

.badge.badge-link:hover {
  background: linear-gradient(90deg, rgba(6, 164, 170, .26), rgba(97, 96, 202, .26));
}

.btn.small {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px
}

.card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(20, 21, 23, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* HERO */
.hero {
  padding: 64px 0 26px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px
}

@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr
  }
}

.hero-card {
  padding: 26px
}

.hero-side {
  padding: 22px
}

.kicker {
  color: var(--muted);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 10px 0;
  letter-spacing: -.02em
}

@media (max-width:900px) {
  .h1 {
    font-size: 36px
  }
}

.h3 {
  margin: 0 0 8px
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  margin: 0 0 18px
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 21, 23, .10);
  background: rgba(255, 255, 255, .62);
  color: rgba(20, 21, 23, .75);
  font-weight: 950;
  font-size: 12px;
}

.badge b {
  color: var(--text)
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow)
}

.smallnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px
}

/* STATS */
.statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px
}

@media (max-width:520px) {
  .statgrid {
    grid-template-columns: 1fr
  }
}

.stat {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 21, 23, .08);
  background: rgba(255, 255, 255, .62);
}

.stat .n {
  font-size: 22px;
  font-weight: 1000
}

.stat .t {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  margin-top: 4px
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(20, 21, 23, .18);
  background: rgba(255, 255, 255, .56);
  color: var(--muted);
  line-height: 1.6;
}

/* SECTIONS */
.section {
  padding: 30px 0
}

.section-title {
  font-size: 22px;
  margin: 0 0 12px
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

@media (max-width:900px) {
  .grid3 {
    grid-template-columns: 1fr
  }
}

.feature {
  padding: 16px
}

.feature h4 {
  margin: 0 0 6px;
  font-size: 16px
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

@media (max-width:900px) {
  .split {
    grid-template-columns: 1fr
  }
}

.panel {
  padding: 18px
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65
}

.panel b {
  color: var(--text)
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px
}

@media (max-width:900px) {
  .steps {
    grid-template-columns: 1fr
  }
}

.step {
  padding: 16px
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  background: linear-gradient(90deg, rgba(6, 164, 170, .18), rgba(97, 96, 202, .18));
  border: 1px solid rgba(20, 21, 23, .08);
  margin-bottom: 10px;
}

.step h4 {
  margin: 0 0 6px;
  font-size: 16px
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6
}

/* Pills */
.pillrow {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 21, 23, .10);
  background: rgba(255, 255, 255, .62);
  color: rgba(20, 21, 23, .78);
  font-weight: 900;
  font-size: 12px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px
}

.pill-dot.p {
  background: var(--purple)
}

.pill-dot.t {
  background: var(--teal)
}

.pill-dot.y {
  background: var(--yellow)
}

/* Achievements */
.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

@media (max-width:900px) {
  .ach-grid {
    grid-template-columns: 1fr
  }
}

.ach-card {
  padding: 18px
}

.ach-wide {
  margin-top: 14px
}

.ach-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 1000
}

.ach-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65
}

/* Контейнер: верхняя строка + нижняя (QR) */
.ach-row{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Верхняя строка из 2 плиток */
.ach-logos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px){
  .ach-logos{ grid-template-columns: 1fr; }
}

/* Общая "плитка" для каждой картинки */
.ach-item{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(20,21,23,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(20,21,23,.08);

  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ach-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 34px rgba(20,21,23,.10);
}

/* Картинки-иконки сверху */
.ach-item img{
  height: 98px;      /* как у тебя */
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(20,21,23,.10));
}

/* Нижний QR: отдельная плитка по центру */
.ach-item-qr{
  justify-self: center;   /* центрируем плитку */
  padding: 12px;
}

/* QR внутри (можно больше/меньше) */
.qr{
  height: 164px;
  width: 164px;
  border-radius: 16px;
  border: 1px solid rgba(20,21,23,.10);
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(20,21,23,.08);
  filter: none;           /* чтобы QR не “мылся” тенью от drop-shadow */
}


/* Daily Challenge compact row */
.dc-row{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.dc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:nowrap;
  min-width:0;
}

/* ЛОГО: оставляем большим, как было, но без % по высоте */
.dc-logo{
  flex: 1 1 60%;
  max-width: 60%;
  height: auto;
  width: auto;
  display:block;
}

/* Контейнер для founders: даём ему ограничение по ширине, чтобы всё влезало */
.dc-link{
  flex: 0 1 38%;
  max-width: 38%;
  display:flex;
  justify-content:flex-end;
  min-width:0;
}

/* FOUNDERS: убираем width:550px и height:100%, делаем "внутри контейнера" */
.dc-founders{
  width: auto;
  height: 250px;
  /* max-height: 170px; */
  border-radius:16px;
  border:1px solid rgba(20,21,23,.10);
  background:#000;
  object-fit: cover;
  box-shadow:var(--shadow2);
}

/* Пилюли отдельно */
.dc-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* На узких экранах — в столбик */
@media (max-width:720px){
  .dc-head{flex-wrap:wrap;}
  .dc-logo{max-width:100%; flex-basis:100%;}
  .dc-link{max-width:100%; flex-basis:100%;}
  .dc-founders{max-height:none;}
}



/* About wrap (чтобы не "торчало") */
.about-wrap {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(20, 21, 23, .08);
  box-shadow: 0 14px 55px rgba(20, 21, 23, .06);
}

/* Footer (в 1.5 раза выше и с контактами внутри) */
.footer {
  margin-top: 30px;
  padding: 46px 0 64px;
  /* было сильно ниже */
  border-top: 1px solid rgba(20, 21, 23, .10);
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px
}

.contact-text {
  margin-top: 8px
}

/* Telegram button */
.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 21, 23, .10);
  background: rgba(255, 255, 255, .62);
  font-weight: 900;
  margin-left: 6px;
}

.tg-pill img {
  height: 18px;
  width: 18px;
  display: block
}

/* QR: гарантированное переопределение любых общих img-правил */
.ach-item-qr img.qr{
  width: 120px !important;   /* меняй тут */
  height: 120px !important;  /* и тут */
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20,21,23,.10);
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(20,21,23,.08);
  filter: none !important;
}

.requisites{ margin-top:14px; }

.req-grid{
  margin: 10px 0 0;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 14px;
}

.req-grid dt{
  margin:0;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.req-grid dd{
  margin:0;
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
  word-break: break-word;
}

@media (max-width: 720px){
  .req-grid{ grid-template-columns: 1fr; }
  .req-grid dt{ margin-top: 6px; }
}
