/* Styles of the four tabs, the topic list and the lesson sheet. */

/* Обучение */
.offline { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font: 500 13px Inter; color: var(--gold-text); background: var(--glass); border: 1px solid var(--glass-b); }
.offline .ic { width: 16px; height: 16px; }
/* Sticky offsets count from the scroller's content edge, which the page padding puts 6px below
   the title bar (var(--top) + 6px). -14px tucks the chips' 8px top padding under the title bar's
   fade, so the chip pills start right at its bottom edge and no content peeks in between. */
.chips {
  position: sticky; top: -14px; z-index: 5; display: flex; gap: 8px; margin: 14px -16px 0; padding: 8px 16px; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(var(--bg-rgb), 0));
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 100px; display: inline-flex; align-items: center; font: 500 13px Inter; color: var(--body); background: var(--glass); border: 1px solid var(--glass-b); transition: background .25s, color .25s; }
.chip[aria-selected="true"] { background: var(--gold-fill); color: #1a1208; border-color: transparent; font-weight: 600; }
.hero { display: block; width: 100%; margin-top: 10px; border-radius: 22px; padding: 8px 8px 14px; background: var(--glass); border: 1px solid var(--glass-b); text-align: left; }
.hero .cover { border-radius: 16px; }
.hero-title { font: 700 19px/1.25 'Playfair Display', Georgia, serif; color: var(--head); margin: 12px 6px 0; }
.meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 400 12.5px Inter; color: var(--muted); }
.meta .ic { width: 14px; height: 14px; }
.hero .meta { margin: 6px 6px 0; }
.start { margin-top: 24px; }
.start-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tile-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); text-align: center; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--gold-text); background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .28); }
.tile .ic { width: 22px; height: 22px; }
.tile-logo { width: 38px; height: 38px; object-fit: contain; filter: var(--sign-filter); }
.tile-label { font: 500 12.5px/1.25 Inter; color: var(--head); }
.sec { margin-top: 28px; scroll-margin-top: calc(var(--top) + 64px); }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.shead h2 { font: 700 21px/1.2 'Playfair Display', Georgia, serif; color: var(--head); margin-top: 6px; }
.all { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font: 500 14px Inter; color: var(--gold-text); white-space: nowrap; }
.all .ic { width: 16px; height: 16px; }
.row { display: flex; gap: 12px; margin: 12px -16px 0; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.card { flex: none; width: 232px; scroll-snap-align: start; text-align: left; }
.card-title { font: 500 14px/1.38 Inter; color: var(--head); margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; margin-top: 5px; }
.card, .hero, .tile-btn, .trow { transition: transform .15s var(--ease); }
.card:active, .hero:active, .tile-btn:active, .trow:active { transform: scale(.98); }

/* Обучение, the bottom: blocks from georgiirivera.ai (service card, contacts, socials) */
.site { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
/* The site's wide service card: a warm gold fill with a gold hairline. */
.site-service {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 16px; border-radius: 24px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 168, 76, .18), rgba(201, 168, 76, .055) 44%, var(--glass)); border: 1px solid rgba(201, 168, 76, .34);
  transition: transform .15s var(--ease);
}
/* The robots have a transparent background: a soft gold glow sits behind them, their feet fade out. */
.site-art-wrap { position: relative; align-self: stretch; display: flex; justify-content: center; margin: -6px -4px 6px; }
.site-art-wrap::before { content: ''; position: absolute; left: 50%; top: 50%; width: 92%; height: 120%; transform: translate(-50%, -50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201, 168, 76, .28), rgba(201, 168, 76, .08) 45%, transparent 72%); filter: blur(18px); pointer-events: none; }
.site-art {
  position: relative; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1000 / 560; object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, rgba(0, 0, 0, .35) 92%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 78%, rgba(0, 0, 0, .35) 92%, transparent 100%);
}
.site-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 100px; font: 600 11px Inter; letter-spacing: .1em; text-transform: uppercase; color: #1a1208; background: var(--gold-fill); box-shadow: 0 4px 16px rgba(201, 168, 76, .3); }
.site-service-title { margin-top: 12px; font: 700 22px/1.18 'Playfair Display', Georgia, serif; color: var(--head); text-wrap: balance; }
.site-points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.site-points li { position: relative; padding-left: 20px; font: 400 14.5px/1.5 Inter; color: var(--body); }
.site-points li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 76, .14); }
.site-service .btn { margin-top: 18px; }
.site-service:active { transform: scale(.99); }
/* Contacts: the site's centred card with a gold glow at the top; one row per contact. */
.site-contacts {
  position: relative; padding: 24px 14px 14px; border-radius: 24px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 168, 76, .06), var(--glass)); border: 1px solid rgba(201, 168, 76, .15);
}
.site-contacts::before { content: ''; position: absolute; top: -80px; left: 50%; width: 80%; height: 180px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(201, 168, 76, .15), transparent 70%); pointer-events: none; }
.site-contacts .eyebrow { position: relative; justify-content: center; }
.site-contacts-title { position: relative; margin-top: 10px; font: 700 22px/1.22 'Playfair Display', Georgia, serif; color: var(--head); }
.site-contact-list { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.site-contact {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 16px; text-align: left; text-decoration: none; color: inherit;
  background: rgba(var(--bg-rgb), .5); border: 1px solid var(--glass-b); transition: transform .15s var(--ease); -webkit-user-select: none; user-select: none;
}
.site-contact:active { transform: scale(.98); }
.site a:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.site-contact-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-text); background: rgba(201, 168, 76, .15); border: 1px solid rgba(201, 168, 76, .15); }
.site-contact-ic .ic { width: 20px; height: 20px; }
.site-contact-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.site-contact-label { font: 500 11px Inter; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-contact-value { font: 700 16.5px/1.3 'Playfair Display', Georgia, serif; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-contact-go { width: 18px; height: 18px; color: var(--gold-text); opacity: .8; }
/* Socials: the site's cards made small (the owner's wish), two per row, no counts. */
.site-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.site-social {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 8px 9px 9px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--glass-b); transition: transform .15s var(--ease); -webkit-user-select: none; user-select: none;
}
.site-social:active { transform: scale(.97); }
.site-social-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--gold-text); background: linear-gradient(135deg, rgba(201, 168, 76, .15), rgba(201, 168, 76, .03)); border: 1px solid rgba(201, 168, 76, .15); }
.site-social-ic .ic { width: 18px; height: 18px; }
.site-social-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.site-social-name { font: 700 14.5px/1.2 'Playfair Display', Georgia, serif; color: var(--head); }
.site-social-handle { display: flex; align-items: center; gap: 4px; font: 400 12px/16px Inter; color: var(--muted); white-space: nowrap; }
.site-verified { flex: none; width: 14px; height: 14px; }
.site-socials .footnote { margin-top: 10px; }
/* Its heading: eyebrow «Соцсети» (plus the title «Я в соцсетях» at the bottom of Обучение, set like a topic head). */
.site-socials > .shead, .site-socials > .eyebrow { margin-bottom: 12px; }
.site > .site-socials { margin-top: 12px; }
/* In the «Кто я» lesson, under its two buttons. */
.lesson .site-socials { margin-top: 26px; }
.site-social:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }

/* Topic list */
.topic-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.trow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-b); text-align: left; }
.num { flex: none; width: 30px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--gold-text); background: rgba(201, 168, 76, .1); border: 1px solid rgba(201, 168, 76, .24); }
.trow .cover { flex: none; width: 112px; border-radius: 10px; }
.trow .ph img { width: 22px; height: 22px; }
.trow .ph span { display: none; }
.trow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trow-title { font: 500 14px/1.35 Inter; color: var(--head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow-meta { font: 400 12px Inter; color: var(--muted); }
.badge-inline { position: static; align-self: flex-start; height: 20px; font-size: 10px; box-shadow: none; }

/* Lesson sheet */
.lesson .cover { border-radius: 18px; }
.bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(15, 15, 15, .32); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.bigplay .ic { width: 24px; height: 24px; margin-left: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { height: 24px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font: 600 11px Inter; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-b); }
.tag-gold { color: #1a1208; border: 0; background: var(--gold-fill); }
.lesson-title { font: 700 25px/1.18 'Playfair Display', Georgia, serif; letter-spacing: -.01em; color: var(--head); margin-top: 12px; }
.lesson .meta { margin-top: 8px; }
.excerpt { margin-top: 12px; font: 400 14.5px/1.6 Inter; color: var(--body); }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.extras .btn { width: auto; padding: 0 14px; }
.hint { text-align: center; margin-top: 10px; font: 400 12px Inter; color: var(--dim); }

/* Нейросети and Чат */
.ai-hero, .chat-hero { display: block; width: 100%; margin-top: 16px; border-radius: 22px; padding: 8px 8px 16px; background: var(--glass); border: 1px solid var(--glass-b); text-align: left; }
.ai-hero .cover, .chat-hero .cover { border-radius: 16px; }
.ai-title { font: 700 22px/1.2 'Playfair Display', Georgia, serif; color: var(--head); margin: 14px 8px 0; }
/* Чат: one card with the picture on top and the welcome under it, a warm gold tint of its own. */
.chat-hero { padding-bottom: 20px; background: linear-gradient(135deg, rgba(223, 192, 110, .16), rgba(201, 168, 76, .04)), var(--glass); border-color: rgba(201, 168, 76, .28); }
.chat-mark { width: 44px; height: 44px; margin: 12px 12px 0; border-radius: 14px; display: grid; place-items: center; color: #1a1208; background: var(--gold-fill); box-shadow: 0 8px 24px rgba(201, 168, 76, .24); }
.chat-mark .ic { width: 22px; height: 22px; }
.chat-text { margin: 16px 12px 0; font: 400 15.5px/1.6 Inter; color: var(--body); text-wrap: pretty; }
.chat-text + .chat-text { margin-top: 10px; }
.points { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font: 400 14.5px/1.5 Inter; color: var(--body); }
.point-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--gold-text); background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .28); }
.point-ic .ic { width: 15px; height: 15px; }
.video-card { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); text-align: left; }
.video-card .cover { flex: none; width: 120px; border-radius: 10px; }
.video-card .play { width: 32px; height: 32px; right: 6px; bottom: 6px; }
.video-card .play .ic { width: 12px; height: 12px; }
.video-text { display: flex; flex-direction: column; gap: 4px; }
.video-eyebrow { font: 500 11px Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.video-title { font: 500 14px/1.35 Inter; color: var(--head); }
.ai > .btn, .chat > .btn { margin-top: 18px; }
.chat > .btn + .btn { margin-top: 12px; }

/* Бонусы */
.banner { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 20px; text-align: left; background: linear-gradient(135deg, rgba(223, 192, 110, .22), rgba(201, 168, 76, .08)); border: 1px solid rgba(201, 168, 76, .32); }
.banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.banner-text b { font: 600 15px Inter; color: var(--head); }
.banner-text span { font: 400 13px Inter; color: var(--muted); }
.banner-chev, .svc-chev { width: 18px; height: 18px; color: var(--gold-text); }
.bsec { margin-top: 26px; }
.bsec h2 { font: 700 21px/1.2 'Playfair Display', Georgia, serif; color: var(--head); margin-top: 6px; }
.svc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); cursor: pointer; transition: transform .15s var(--ease); }
.svc:active { transform: scale(.98); }
.svc-tile { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 700 19px 'Playfair Display', Georgia, serif; color: var(--gold-text); background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .28); }
/* Service logo (img/services/<id>.webp): the same rounded square as the letter tile, a hairline ring
   keeps white and dark logos apart from the card. Both sit at the top, next to the service name. */
.svc-tile, .svc-logo { align-self: flex-start; }
.svc-logo { flex: none; display: block; width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: var(--ph); box-shadow: 0 0 0 1px var(--glass-b); }
.svc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svc-name { font: 600 15px Inter; color: var(--head); }
.svc-desc { font: 400 12.5px/1.4 Inter; color: var(--muted); }
.svc-bonus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bonus-pill { padding: 3px 9px; border-radius: 8px; font: 600 12px/1.35 Inter; color: #4d3b12; background: linear-gradient(135deg, #f7e2a6, #e9c86e); }
.nb { white-space: nowrap; }
.promo { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--gold-text); border: 1px dashed rgba(201, 168, 76, .6); }
.promo .ic { width: 13px; height: 13px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-link { gap: 6px; }
.chip-link .ic { width: 13px; height: 13px; color: var(--gold-text); }
.bonuses > .btn { margin-top: 24px; }
.footnote { margin-top: 14px; font: 400 11.5px/1.5 Inter; color: var(--dim); }
.copy-buffer { position: fixed; left: -9999px; top: 0; opacity: 0; }
