/* =========================================================
   NYAO — design tokens
   ========================================================= */

@font-face {
  font-family: 'Minecraft Five';
  src: url('/fonts/minecraft-five-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --pink-500: #FF1C90;
  --pink-300: #FF89E2;
  --blush-100: #FFEAF6;
  --blush-50: #FFF6FB;
  --fog-100: #F4F2F4;
  --fog-200: #EAE6E9;
  --ink-900: #18141A;
  --ink-600: #635C69;
  --white: #FFFFFF;
  --line: #E9E1E7;

  --brand-gradient: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-300) 100%);

  /* type */
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-pixel: 'Minecraft Five', monospace;

  /* layout */
  --max-w: 1120px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

/*
 * Критичное правило: без него любой элемент, у которого есть класс с
 * явным display (flex/grid/inline-flex — а таких у нас много: .btn,
 * .account-actions, .stamp и т.д.), перестаёт скрываться атрибутом
 * hidden. Атрибут и класс имеют одинаковый вес в каскаде, и класс из
 * авторской таблицы стилей побеждает браузерный [hidden]{display:none}.
 * Отсюда баг: элементы с hidden всё равно были видны.
 */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------- pixel stamp -------------------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-500);
  background: var(--blush-100);
  border: 1.5px dashed var(--pink-300);
  border-radius: 999px;
  padding: 8px 14px;
  transform: rotate(-1.5deg);
}

.stamp::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand-gradient);
  flex: none;
}

.stamp--dark {
  color: var(--ink-900);
  background: var(--white);
  border-color: var(--fog-200);
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo .mark {
  width: 40px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-600);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--ink-900); background: var(--fog-100); }

.nav a.active {
  color: var(--ink-900);
  background: var(--blush-100);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.lang-switch a {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-600);
}

.lang-switch a:hover { background: var(--fog-100); color: var(--ink-900); }
.lang-switch a.active { background: var(--blush-100); color: var(--pink-500); }

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(255, 28, 144, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(255, 28, 144, 0.65); }

.btn-ghost {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--fog-200);
}
.btn-ghost:hover { border-color: var(--pink-300); background: var(--blush-50); }

/* -------------------- hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* signature blob visual */
.blob-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(60px);
  opacity: 0.35;
}

.hero-mark {
  position: relative;
  width: 64%;
  animation: mark-float 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(255, 28, 144, 0.28));
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* -------------------- sections -------------------- */
section { padding: 88px 0; }

.section-fog { background: var(--fog-100); }

.section-head {
  max-width: 60ch;
  margin: 0 0 48px;
}

.section-head .stamp { margin-bottom: 18px; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/* capability cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--pink-300);
  box-shadow: 0 20px 40px -24px rgba(24,20,26,0.25);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blush-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 22px; height: 22px; stroke: var(--pink-500); }

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.card p {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0;
}

/* process strip */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-step {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--fog-200);
}

.process-step .num {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--pink-500);
  display: block;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,137,226,0.35), transparent 55%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 8px;
  position: relative;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  position: relative;
  font-size: 16px;
}

.cta-band .btn-primary {
  position: relative;
  flex: none;
}

/* -------------------- footer -------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-brand .mark { width: 32px; height: auto; }

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-600);
  font-weight: 700;
}

.footer-links a:hover { color: var(--pink-500); }

.footer-meta {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--ink-600);
  letter-spacing: 0.04em;
}

/* -------------------- inner pages -------------------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}

.page-hero p {
  color: var(--ink-600);
  font-size: 18px;
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}

/* about page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.value-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-list .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-gradient);
  flex: none;
  margin-top: 4px;
}

.value-list h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.value-list p {
  font-size: 15px;
  color: var(--ink-600);
  margin: 0;
  line-height: 1.6;
}

.founder-card {
  background: var(--fog-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.founder-card .stamp { margin-bottom: 20px; }

.founder-card p {
  color: var(--ink-600);
  line-height: 1.7;
  font-size: 15.5px;
}

/* projects — empty state */
.empty-state {
  text-align: center;
  padding: 90px 40px;
  border: 2px dashed var(--fog-200);
  border-radius: var(--radius-lg);
  background: var(--blush-50);
}

.empty-state .blob-mini {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--brand-gradient);
}

.empty-state h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
}

.empty-state p {
  color: var(--ink-600);
  max-width: 42ch;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.formats-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
}

.contact-info p {
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0 0 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }

.contact-detail .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blush-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-detail .icon svg { width: 18px; height: 18px; stroke: var(--pink-500); }

.contact-detail strong { display: block; font-size: 14px; }
.contact-detail span { font-size: 14px; color: var(--ink-600); }

.form-card {
  background: var(--fog-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--fog-200);
  background: var(--white);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 4px var(--blush-100);
  outline: none;
}

.field textarea { resize: vertical; min-height: 130px; }

.form-msg {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { color: #1c8a5a; }
.form-msg.err { color: var(--pink-500); }

/* -------------------- portfolio grid / tilt cards -------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tilt-card {
  perspective: 1000px;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.tilt-card-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: perspective(1000px) rotateX(0) rotateY(0) scale(1);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
  will-change: transform;
  height: 100%;
}

.tilt-card:hover .tilt-card-inner,
.tilt-card:focus-visible .tilt-card-inner {
  box-shadow: 0 26px 46px -22px rgba(24,20,26,0.28);
  border-color: var(--pink-300);
}

.tilt-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--fog-100);
  background-size: cover;
  background-position: center;
}

.tilt-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  transform: rotate(-1.5deg);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--white);
  background: rgba(24,20,26,0.72);
  border-radius: 999px;
  padding: 7px 11px;
}

.tilt-card-cover .rating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

.tilt-card-body {
  padding: 22px 24px 26px;
}

.tilt-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.tilt-card-body p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tilt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--fog-200);
}

.price-tag {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--pink-500);
  letter-spacing: 0.02em;
}

.tilt-card-client {
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 700;
}

/* -------------------- project modal -------------------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-modal.open {
  visibility: visible;
  opacity: 1;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24,20,26,0.55);
  backdrop-filter: blur(4px);
}

.project-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s ease;
}

.project-modal.open .project-modal-card {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-900);
  cursor: pointer;
}
.project-modal-close:hover { border-color: var(--pink-300); color: var(--pink-500); }

.project-modal-gallery {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--fog-100);
}

.project-modal-gallery img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  scroll-snap-align: start;
}

.project-modal-content {
  padding: 32px 36px 40px;
}

.modal-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-tag-row .rating-badge {
  color: var(--pink-500);
  background: var(--blush-100);
}

.project-modal-content #modalTitle {
  font-size: 26px;
  font-weight: 800;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.project-modal-content #modalDescription {
  color: var(--ink-600);
  line-height: 1.65;
  font-size: 15.5px;
  margin: 0 0 22px;
}

.project-modal-price {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--pink-500);
  margin-bottom: 22px;
}

.review-block {
  background: var(--fog-100);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.review-block .stamp { margin-bottom: 12px; }

.review-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-900);
  font-style: italic;
}

.tools-block { margin-bottom: 24px; }

.tools-block .stamp { margin-bottom: 14px; }

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.tool-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tool-chip-fallback {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-meta {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.project-modal-meta span {
  display: block;
  font-size: 12px;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.project-modal-meta strong {
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .project-modal-content { padding: 26px 22px 30px; }
}

/* 404 */
.page-404 {
  padding: 120px 0;
  text-align: center;
}
.page-404 .stamp { margin: 0 auto 26px; }
.page-404 h1 {
  font-family: var(--font-pixel);
  font-size: clamp(48px, 10vw, 96px);
  margin: 0 0 16px;
  color: var(--pink-500);
}
.page-404 p { color: var(--ink-600); margin: 0 0 30px; }

/* -------------------- responsive -------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .blob-stage { max-width: 340px; margin: 0 auto; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 32px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }
  .nav-toggle { display: block; }
  .lang-switch {
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .grid-cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 70px; }
  section { padding: 60px 0; }
}

/* =====================================================================
   ЛИЧНЫЙ КАБИНЕТ
   ===================================================================== */

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-600);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--pink-500); }

.login-muted {
  color: var(--ink-600);
  font-size: 15px;
  margin: 0;
}

/* -------------------- вход -------------------- */
.login-card {
  max-width: 460px;
  background: var(--fog-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.login-providers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.login-provider-btn { width: 100%; }

/* Своя кнопка входа через Telegram — вместо заводского iframe-виджета */
.btn-telegram {
  width: 100%;
  background: #229ED9; /* фирменный синий Telegram, но форма и стиль — наши */
  color: var(--white);
  border: none;
}
.btn-telegram:hover { background: #1c8bc2; box-shadow: 0 14px 30px -10px rgba(34, 158, 217, 0.5); }
.btn-telegram:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn-telegram-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.login-error {
  background: var(--blush-100);
  border: 1.5px solid var(--pink-300);
  color: var(--pink-500);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 20px;
}

.login-note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-600);
  padding-top: 18px;
  border-top: 1px dashed var(--fog-200);
}

/* -------------------- кабинет -------------------- */
.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.account-admin-badge {
  vertical-align: middle;
  background: var(--blush-100);
  color: var(--pink-500);
  font-size: 10px;
}

.account-card { cursor: pointer; }

.account-card .tilt-card-body { padding: 26px 24px; }

.account-card-status { margin-bottom: 14px; }

.invoice-card-number {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ink-600);
}

/* привязанные способы входа */
.link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
}

.link-chip--on {
  border-color: var(--pink-300);
  background: var(--blush-50);
}

.link-chip span { color: var(--ink-600); font-weight: 700; }
.link-chip a { color: var(--pink-500); font-weight: 800; }
.link-chip a:hover { text-decoration: underline; }

/* -------------------- этапы проекта -------------------- */
.stages-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--fog-200);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.stage-card--waiting_feedback { border-left-color: var(--pink-500); }
.stage-card--approved { border-left-color: #34c17f; }
.stage-card--in_progress { border-left-color: var(--pink-300); }

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stage-num {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--pink-500);
}

.stage-state {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stage-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.stage-desc {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* прошлые реакции */
.stage-feedback-log {
  background: var(--fog-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.stage-feedback-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-600);
  margin-bottom: 12px;
}

.feedback-item {
  padding: 10px 0;
  border-top: 1px dashed var(--fog-200);
}
.feedback-item:first-of-type { border-top: none; }

.feedback-item p {
  margin: 6px 0 4px;
  font-size: 14.5px;
  line-height: 1.55;
}

.feedback-mood {
  font-size: 13px;
  font-weight: 800;
}
.feedback-mood--love { color: #1f9d63; }
.feedback-mood--tweak { color: var(--pink-500); }
.feedback-mood--question { color: #b8862b; }

.feedback-date {
  font-size: 12px;
  color: var(--ink-600);
}

/* форма реакции */
.feedback-form {
  border-top: 1px dashed var(--fog-200);
  padding-top: 18px;
}

.feedback-form-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.mood-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  transition: transform 0.15s ease;
}

.mood-row--nudge { transform: translateX(-4px); }

.mood-btn {
  border: 1.5px solid var(--fog-200);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mood-btn:hover { transform: translateY(-1px); border-color: var(--pink-300); }

.mood-btn.is-selected {
  border-color: var(--pink-500);
  background: var(--blush-100);
  color: var(--pink-500);
}

.feedback-comment {
  width: 100%;
  border: 1.5px solid var(--fog-200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  margin-bottom: 14px;
}

.feedback-comment:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 4px var(--blush-100);
}

.feedback-submit { padding: 11px 22px; font-size: 14px; }

/* -------------------- файлы -------------------- */
.upload-box {
  background: var(--white);
  border: 2px dashed var(--fog-200);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  margin-bottom: 24px;
}

.upload-btn { cursor: pointer; }

.upload-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-600);
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  flex-wrap: wrap;
}

.file-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.file-info strong {
  font-size: 15px;
  word-break: break-word;
}

.file-meta { font-size: 12.5px; color: var(--ink-600); }

.file-actions { display: flex; gap: 8px; flex: none; }

.file-btn { padding: 8px 16px; font-size: 13px; }

.file-btn--danger:hover {
  border-color: var(--pink-500);
  color: var(--pink-500);
}

/* -------------------- карточка-инвойс -------------------- */
.invoice-stage { max-width: 620px; }

.invoice-card { cursor: default; }

.invoice-card-inner { padding: 36px 38px 40px; }

.invoice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.invoice-number {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ink-600);
  display: block;
  margin-bottom: 8px;
}

.invoice-top h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.invoice-status { flex: none; }
.invoice-status--paid { background: #1f9d63; }
.invoice-status--overdue { background: var(--pink-500); }
.invoice-status--void { background: var(--ink-600); }

.invoice-amount-block {
  background: var(--fog-100);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 26px;
}

.invoice-amount-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
  margin-bottom: 10px;
}

.invoice-amount {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 4.5vw, 38px);
  color: var(--pink-500);
  line-height: 1.1;
}

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.invoice-meta-cell span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-600);
  margin-bottom: 5px;
}

.invoice-meta-cell strong { font-size: 14.5px; font-weight: 800; }

.invoice-note { margin-bottom: 26px; }
.invoice-note .stamp { margin-bottom: 10px; }
.invoice-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
}

.invoice-pay .btn { width: 100%; }

.invoice-no-checkout {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-600);
  text-align: center;
}

@media (max-width: 640px) {
  .login-card { padding: 26px 22px; }
  .stage-card { padding: 22px 20px; }
  .invoice-card-inner { padding: 26px 22px 30px; }
  .file-row { flex-direction: column; align-items: flex-start; }
  .file-actions { width: 100%; }
  .file-btn { flex: 1; }
}
