/* ===================== VARIABLES ===================== */
:root {
  --bg: #05050a;
  --bg-alt: #0b0b14;
  --panel: #0e0e18;
  --border: #23233a;
  --cyan: #4d8dff;
  --pink: #a855f7;
  --text: #eef0ff;
  --text-dim: #a9acc9;
  --radius: 16px;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

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

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

.txt-blue { color: var(--cyan); text-shadow: 0 0 10px rgba(77,141,255,0.6); }
.txt-pink { color: var(--pink); text-shadow: 0 0 10px rgba(168,85,247,0.6); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,10,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.5));
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text.small { font-size: 1.1rem; }

.main-nav {
  display: flex;
  gap: 28px;
}

.nav-mobile-actions { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn.header-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Кнопка «Написать» для мобильного вида — по центру шапки, всегда видна.
   На десктопе скрыта (там показывается обычная .header-cta).
   Селектор через .header-inner — чтобы перебить общее .btn { display }. */
.header-inner .header-cta-mobile {
  display: none;
}
.header-cta-mobile {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn.header-account {
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--pink);
  background: transparent;
}

.btn.header-account:hover {
  color: var(--pink);
  box-shadow: 0 0 12px rgba(168,85,247,0.35);
}

.btn.btn-rect {
  border-radius: 10px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-link.active {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(77,141,255,0.5);
}

.nav-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(77,141,255,0.5);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 20% 10%, rgba(168,85,247,0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(77,141,255,0.12), transparent 40%);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.hero-logo-col { flex: 0 0 auto; }

.hero-text-col {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}

.hero-dir-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.directions-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 2px solid var(--border);
  padding-left: 30px;
}

.direction-item {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dir-violet { color: var(--pink); text-shadow: 0 0 14px rgba(168,85,247,0.6), 0 0 30px rgba(168,85,247,0.3); }
.dir-blue { color: var(--cyan); text-shadow: 0 0 14px rgba(77,141,255,0.6), 0 0 30px rgba(77,141,255,0.3); }

.logo-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.grape-logo-img {
  width: 190px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(168,85,247,0.35)) drop-shadow(0 0 14px rgba(77,141,255,0.25));
}

.wordmark {
  font-family: var(--font-mono);
  margin-top: -6px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.word-easy { color: var(--cyan); text-shadow: 0 0 12px rgba(77,141,255,0.7), 0 0 28px rgba(77,141,255,0.35); }
.word-dev { color: var(--pink); text-shadow: 0 0 12px rgba(168,85,247,0.7), 0 0 28px rgba(168,85,247,0.35); }

.word-sub {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 10px 0;
}

.hero-tagline-big {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-row.format-row { margin-bottom: 32px; }

.tag {
  font-family: var(--font-mono);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
  background: rgba(255,255,255,0.02);
}

.tag-cyan { color: var(--cyan); border-color: rgba(77,141,255,0.5); box-shadow: 0 0 10px rgba(77,141,255,0.2) inset; }
.tag-pink { color: var(--pink); border-color: rgba(168,85,247,0.5); box-shadow: 0 0 10px rgba(168,85,247,0.2) inset; }
.tag-outline { color: var(--text-dim); border-color: var(--border); font-weight: 500; background: transparent; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-pills-row { margin-top: 36px; }

.btn {
  font-family: var(--font-mono);
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  display: inline-block;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--pink), #b400a0);
  color: #fff;
  box-shadow: 0 0 18px rgba(168,85,247,0.45);
}

.btn-primary:hover { box-shadow: 0 0 28px rgba(168,85,247,0.7); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(77,141,255,0.5);
}

.btn-ghost:hover { box-shadow: 0 0 20px rgba(77,141,255,0.4); }

/* ===================== SECTIONS ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 620px;
}

.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===================== ABOUT ===================== */
.about-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
}

.about-text { max-width: 640px; }

.avatar-photo {
  flex-shrink: 0;
  width: 260px;
  height: auto;
  align-self: stretch;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--pink);
  box-shadow: 0 0 24px rgba(168,85,247,0.45), inset 0 0 20px rgba(77,141,255,0.15);
}

.about-text p { color: var(--text-dim); }
.about-text p:first-of-type { color: var(--text); }

/* ===================== CARDS / SERVICES ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

/* Карусель направлений — квадраты только с названиями */
.dir-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}
.dir-track::-webkit-scrollbar { height: 8px; }
.dir-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.dir-chip {
  flex: 0 0 200px;
  width: 200px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(77,141,255,0.06), rgba(168,85,247,0.06));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.dir-chip:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 10px 30px rgba(168,85,247,0.18);
}

/* ===================== AI-КОНТЕНТ ===================== */
.ai-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}
.ai-track::-webkit-scrollbar { height: 8px; }
.ai-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.ai-tile {
  flex: 0 0 168px;
  width: 168px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(77,141,255,0.06), rgba(168,85,247,0.06));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ai-tile:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 10px 30px rgba(168,85,247,0.18);
}
.ai-emoji { font-size: 2.4rem; line-height: 1; }
.ai-label {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77,141,255,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  border: 1px solid;
}

.icon-pink { border-color: rgba(168,85,247,0.4); box-shadow: 0 0 14px rgba(168,85,247,0.25) inset; }
.icon-cyan { border-color: rgba(77,141,255,0.4); box-shadow: 0 0 14px rgba(77,141,255,0.25) inset; }

.card h3 { font-family: var(--font-mono); margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ===================== DIRECTION DETAIL BLOCKS ===================== */
.dir-detail {
  display: flex;
  align-items: stretch;
  gap: 44px;
  margin-top: 56px;
}

.dir-detail.reverse { flex-direction: row-reverse; }

.dir-shot {
  flex-shrink: 0;
  width: 320px;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--pink);
  box-shadow: 0 0 24px rgba(168,85,247,0.35), inset 0 0 20px rgba(77,141,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.dir-shot-roblox { background: linear-gradient(135deg, #3a0a3a, #0d0d1a); }
.dir-shot-minecraft { background: linear-gradient(135deg, #0a2a1a, #0d0d1a); }
.dir-shot-unity { background: linear-gradient(135deg, #052a3a, #0d0d1a); }
.dir-shot-scratch { background: linear-gradient(135deg, #2a1a3a, #0d0d1a); }
.dir-shot-math { background: linear-gradient(135deg, #1a2a3a, #0d0d1a); }

.dir-detail-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.dir-detail-title {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.dir-detail-text > p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-list li {
  color: var(--text);
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
}

.skills-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--pink);
}

/* ===================== FRIENDS CAROUSEL ===================== */
.friends-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}
.friends-track::-webkit-scrollbar { height: 8px; }
.friends-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.friend-card {
  flex: 0 0 340px;
  width: 340px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.friend-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.friend-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.friend-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(77,141,255,0.35);
}

.friend-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  background: radial-gradient(circle at 30% 30%, #1a1a2e, #05050a);
}

.friend-name { font-family: var(--font-mono); margin: 0 0 4px; font-size: 1.05rem; }
.friend-role { margin: 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.35; }
.friend-fact {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--pink);
  font-weight: 600;
}

.friend-links {
  display: flex;
  gap: 10px;
}

.friend-link-pill {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(77,141,255,0.5);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.friend-link-pill:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(77,141,255,0.3);
}

/* ===================== TELEGRAM REVIEWS ===================== */
.tg-header-bar {
  background: #1c2733;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto 24px;
}

.tg-header {
  background: #1c2733;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.tg-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.tg-status { color: #8fa3b3; font-size: 0.78rem; }

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-track {
  flex: 1 1 auto;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 6px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}

.reviews-track::-webkit-scrollbar { height: 8px; }
.reviews-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.review-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 480px;
  max-width: 88vw;
  background: #e6ebee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='4' cy='4' r='1' fill='%23d4dade'/%3E%3C/svg%3E");
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.reviews-nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.reviews-nav:hover { border-color: var(--cyan); color: var(--cyan); }

.tg-bubble {
  max-width: 78%;
  background: #fff;
  color: #1a1a1a;
  padding: 9px 12px 8px;
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12);
  font-size: 0.92rem;
  position: relative;
}

.tg-bubble.me {
  align-self: flex-end;
  background: #effdde;
  border-radius: 12px 12px 3px 12px;
}

.tg-bubble-name {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #a855f7;
}

.tg-bubble.me .tg-bubble-name { color: #4d8dff; }

.tg-bubble-text { line-height: 1.4; white-space: pre-wrap; }

.tg-bubble-meta {
  float: right;
  margin: 4px -2px -2px 8px;
  font-size: 0.68rem;
  color: #8a8a8a;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tg-check { color: #4fa9e6; }

/* ===================== CONTACT FORM ===================== */
.contact-inner { max-width: 620px; }

.closing-line {
  color: var(--pink);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 14px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77,141,255,0.15);
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.ok { color: var(--cyan); }
.form-status.err { color: var(--pink); }

/* ===================== FOOTER ===================== */
.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand { display: flex; align-items: baseline; gap: 8px; }
.footer-sub { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

.footer-group-label {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 0 10px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-pill {
  font-family: var(--font-mono);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}

.contact-pill:hover { border-color: var(--cyan); color: var(--cyan); }

.footer-note {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  width: 100%;
  text-align: center;
  margin: 22px auto 6px;
}

/* Кликабельный юзернейм в футере */
.copy-username {
  font: inherit;
  color: var(--cyan);
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  border-bottom: 1px dashed rgba(77,141,255,0.5);
  transition: color 0.2s, border-color 0.2s;
}
.copy-username:hover { color: #fff; border-color: #fff; }
.copy-username.copied { color: #4ade80; border-color: #4ade80; }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 6px 0 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .about-inner { flex-direction: column; text-align: center; }

  .about-text { margin: 0 auto; }

  .avatar-photo { width: 200px; height: 200px; align-self: center; }

  .hero-top { flex-direction: column; gap: 28px; text-align: center; }

  .hero-text-col { text-align: center; }

  .directions-list {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .direction-item { font-size: 1.6rem; }

  .dir-detail,
  .dir-detail.reverse {
    flex-direction: column;
    text-align: center;
  }

  .dir-shot { width: 100%; max-width: 320px; height: 200px; margin: 0 auto; }

  .dir-detail-text { max-width: 100%; align-items: center; }

  .skills-list { align-items: center; }

  .skills-list li { padding-left: 0; }
  .skills-list li::before { display: none; }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5,5,10,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .burger { display: flex; }

  .header-actions { display: none; }

  /* Кнопка «Написать» всегда видна и по центру шапки в мобильном виде */
  .header-inner .header-cta-mobile {
    display: inline-flex;
    margin: 0 auto;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  /* В выпадающем меню дублировать «Написать» не нужно — она уже в шапке */
  .nav-mobile-actions .btn-primary { display: none; }

  .wordmark { font-size: 2.2rem; }

  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .tg-bubble { max-width: 88%; }
  .hero { padding: 60px 0 50px; }
}
