/* ================= GREEN — портфолио ================= */

:root {
  --bg: #021C18;
  --emerald: #0B4639;
  --teal: #106256;
  --bright: #11A09A;
  --glow: #1E8B72;
  --mint: #A1E9D8;
  --paper: #E4F6EB;

  --text: #cfe9dd;
  --muted: #7fa79b;
  --card: rgba(6, 38, 32, 0.52);
  --card-solid: #05231e;
  --line: rgba(161, 233, 216, 0.14);
  --line-hover: rgba(161, 233, 216, 0.45);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(17, 160, 154, 0.4); color: #fff; }

/* ---------- ФОН ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.blob-1 {
  width: 55vw; height: 55vw; top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(11, 70, 57, 0.9), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 48vw; height: 48vw; bottom: -15%; right: -10%;
  background: radial-gradient(circle, rgba(16, 98, 86, 0.85), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 34vw; height: 34vw; top: 38%; left: 42%;
  background: radial-gradient(circle, rgba(17, 160, 154, 0.32), transparent 65%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.15); }
}

.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(1, 10, 8, 0.55) 100%);
}

.cursor-glow {
  position: fixed;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 160, 154, 0.075), transparent 62%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ---------- ХЕДЕР ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(2, 24, 20, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.brand img {
  height: 46px;
  display: block;
}
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--mint); background: rgba(161, 233, 216, 0.07); }
.header-cta {
  color: var(--mint);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 10px 20px;
  border: 1px solid var(--line-hover);
  border-radius: 100px;
  transition: all 0.25s;
}
.header-cta:hover {
  background: rgba(17, 160, 154, 0.15);
  box-shadow: 0 0 30px rgba(17, 160, 154, 0.25);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px clamp(18px, 4vw, 44px) 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(17, 160, 154, 0.1);
  border: 1px solid rgba(17, 160, 154, 0.35);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.status-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ee6a8;
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--paper);
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(92deg, var(--mint) 5%, var(--bright) 55%, var(--glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.18rem;
  max-width: 540px;
  color: var(--text);
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--paper); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, filter 0.3s;
}
.btn-arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(95deg, var(--bright), var(--glow));
  color: #03211c;
  box-shadow: 0 12px 38px -8px rgba(17, 160, 154, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 50px -8px rgba(17, 160, 154, 0.7);
}
.btn-ghost {
  background: rgba(161, 233, 216, 0.04);
  border: 1px solid var(--line);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--line-hover);
  background: rgba(161, 233, 216, 0.09);
  transform: translateY(-2px);
}
.btn-big { font-size: 1.15rem; padding: 19px 42px; }
.btn-full { width: 100%; }
.btn-sm { font-size: 0.88rem; padding: 9px 16px; }

.hero-facts { display: flex; gap: 34px; flex-wrap: wrap; }
.fact b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--mint);
  text-shadow: 0 0 24px rgba(17, 160, 154, 0.5);
}
.fact span { font-size: 0.88rem; color: var(--muted); }

.hero-right { position: relative; display: flex; justify-content: center; }
.hero-logo-bg {
  position: absolute;
  width: 135%;
  top: 18%;
  left: -18%;
  opacity: 0.22;
  pointer-events: none;
  animation: logoFloat 9s ease-in-out infinite alternate;
}
@keyframes logoFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}
/* Медальон-рамка: оригинал картинки без вырезаний, края геометрически ровные */
.hero-medal {
  position: relative;
  width: min(460px, 82vw);
  aspect-ratio: 0.92;
  z-index: 1;
  border-radius: 34px;
  overflow: hidden;
  background: #01100d;
  border: 1px solid rgba(161, 233, 216, 0.22);
  box-shadow:
    0 50px 110px -30px rgba(0, 0, 0, 0.85),
    0 0 90px -18px rgba(17, 160, 154, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  animation: charFloat 7s ease-in-out infinite alternate;
}
.hero-medal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  will-change: transform;
}
.medal-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(1, 12, 9, 0.55) 100%),
    linear-gradient(180deg, transparent 78%, rgba(1, 12, 9, 0.6));
  pointer-events: none;
}
.medal-shine {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(161, 233, 216, 0.09) 50%, transparent 58%);
  animation: shine 6.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes shine {
  0%   { transform: translateX(-60%); }
  55%, 100% { transform: translateX(60%); }
}
.medal-glow {
  position: absolute;
  width: 70%;
  height: 26%;
  bottom: -4%;
  left: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(17, 160, 154, 0.35), transparent 70%);
  filter: blur(38px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite alternate;
}
@keyframes charFloat {
  from { transform: translateY(-10px); }
  to   { transform: translateY(12px); }
}
@keyframes glowPulse {
  from { opacity: 0.65; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1.06); }
}

/* ---------- БЕГУЩАЯ СТРОКА ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: rgba(3, 26, 22, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161, 233, 216, 0.55);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- СЕКЦИИ ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 44px) 0; }

.overline {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 14px;
}
.section-head { margin-bottom: 44px; }
.section-head h2, .contact h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--paper);
  letter-spacing: -0.5px;
}
.section-sub { margin-top: 14px; color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ---------- РАБОТЫ ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.work-card {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-hover);
  box-shadow: 0 34px 70px -24px rgba(17, 160, 154, 0.35);
}
.work-thumb {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #04201b;
  position: relative;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.65s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.07); }
.work-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 28, 24, 0.85));
}
.work-cat {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(2, 28, 24, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
}
.work-body { padding: 20px 20px 18px; }
.work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper);
  line-height: 1.35;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 0.93rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(17, 160, 154, 0.1);
  border: 1px solid rgba(17, 160, 154, 0.25);
  padding: 4px 10px;
  border-radius: 100px;
}
.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(17, 160, 154, 0.12);
  border: 1px solid rgba(17, 160, 154, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.work-price { color: var(--mint); font-weight: 800; font-size: 0.98rem; }
.work-arrow {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--mint);
  font-size: 1.05rem;
  transition: all 0.3s var(--ease);
}
.work-card:hover .work-arrow {
  background: linear-gradient(95deg, var(--bright), var(--glow));
  color: #03211c;
  border-color: transparent;
  transform: translateX(3px);
}

/* CTA-карточка в конце сетки */
.work-card.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  background: linear-gradient(140deg, rgba(11, 70, 57, 0.75), rgba(16, 98, 86, 0.45));
  padding: 30px;
}
.cta-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 10px;
}
.cta-card p { color: var(--text); margin-bottom: 22px; font-size: 0.98rem; }

/* ---------- УСЛУГИ ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-card {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 3.5vw, 40px);
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.service-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -30px rgba(17, 160, 154, 0.3);
}
.service-accent { border-color: rgba(17, 160, 154, 0.4); }
.service-icon {
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 16px;
  background: rgba(17, 160, 154, 0.12);
  border: 1px solid rgba(17, 160, 154, 0.3);
  box-shadow: 0 0 34px rgba(17, 160, 154, 0.2);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 12px;
}
.service-card p { color: var(--text); font-size: 1rem; margin-bottom: 18px; }
.service-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(17, 160, 154, 0.08);
  border: 1px dashed rgba(17, 160, 154, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.check-list { list-style: none; margin-bottom: 24px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.step {
  text-align: center;
  background: rgba(2, 24, 20, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
}
.step b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mint);
}
.step span { font-size: 0.72rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }

/* ---------- КОНТАКТ ---------- */
.contact { text-align: center; padding-bottom: 60px; }
.contact-tg {
  width: 110px;
  margin-bottom: 8px;
  animation: charFloat 6s ease-in-out infinite alternate;
}
.contact p { margin: 18px auto 34px; color: var(--text); font-size: 1.1rem; }

/* ---------- ФУТЕР ---------- */
.footer {
  text-align: center;
  padding: 44px 20px 50px;
  border-top: 1px solid var(--line);
}
.footer img {
  height: 40px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.footer p { color: var(--muted); font-size: 0.92rem; }
.footer a { color: var(--mint); text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }

/* ---------- МОДАЛКИ ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog {
  position: relative;
  background: linear-gradient(160deg, rgba(6, 38, 32, 0.96), rgba(3, 26, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(17, 160, 154, 0.25);
  animation: modalIn 0.4s var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(2, 24, 20, 0.7);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s;
}
.modal-close:hover { border-color: var(--line-hover); transform: rotate(90deg); }

.work-dialog {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  max-width: 920px;
  width: 100%;
}
.work-modal-media {
  background: #04201b;
  min-height: 380px;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
}
.work-modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.work-modal-body { padding: 38px 34px; }
.work-modal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--paper);
  line-height: 1.25;
  margin-bottom: 14px;
}
.work-modal-body p { color: var(--text); font-size: 1rem; white-space: pre-line; margin-bottom: 26px; }
.wm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.wm-price-label { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.wm-price b { font-family: var(--font-display); font-size: 1.15rem; color: var(--mint); }

.login-dialog {
  max-width: 400px;
  width: 100%;
  padding: 40px 34px;
  text-align: center;
}
.login-dialog .service-icon { margin: 0 auto 18px; }
.login-dialog h3 {
  font-family: var(--font-display);
  color: var(--paper);
  margin-bottom: 8px;
}
.login-hint { color: var(--muted); font-size: 0.94rem; margin-bottom: 22px; }
.login-dialog input {
  width: 100%;
  background: rgba(2, 24, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.login-dialog input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(17, 160, 154, 0.18); }
.login-error { color: #ff8f8f; font-size: 0.88rem; min-height: 1.2em; margin-top: 10px; font-weight: 700; }
.login-dialog.shake { animation: shake 0.45s; }
@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ---------- АДМИНКА ---------- */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(1, 14, 11, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  padding: 0 clamp(14px, 3vw, 40px) 60px;
  display: none;
}
.admin-panel.open { display: block; animation: fadeIn 0.3s ease; }
.admin-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  background: rgba(1, 14, 11, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--paper);
}
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-editor {
  background: var(--card);
  border: 1px solid var(--line-hover);
  border-radius: 20px;
  padding: 26px;
  margin: 24px 0;
  animation: modalIn 0.35s var(--ease);
}
.admin-editor h4 {
  font-family: var(--font-display);
  color: var(--paper);
  margin-bottom: 18px;
  font-size: 1.15rem;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-editor label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 12px;
}
.admin-editor input, .admin-editor textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: rgba(2, 24, 20, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}
.admin-editor input:focus, .admin-editor textarea:focus { border-color: var(--bright); }
.editor-actions { display: flex; gap: 10px; margin-top: 6px; }

.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  transition: border-color 0.25s;
}
.admin-row:hover { border-color: var(--line-hover); }
.admin-row img {
  width: 74px; height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: #04201b;
  flex-shrink: 0;
}
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-info b { display: block; color: var(--paper); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-info span { font-size: 0.8rem; color: var(--muted); }
.admin-row-btns { display: flex; gap: 6px; }
.admin-row-btns button {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-row-btns button:hover { border-color: var(--line-hover); color: var(--mint); }
.admin-row-btns button.danger:hover { border-color: #ff8f8f; color: #ff8f8f; }

.admin-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(95deg, var(--bright), var(--glow));
  color: #03211c;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 100px;
  box-shadow: 0 16px 40px -8px rgba(17, 160, 154, 0.6);
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
  z-index: 120;
}
.admin-toast.show { transform: translateX(-50%); opacity: 1; }
.admin-toast.error { background: linear-gradient(95deg, #ff7b7b, #d64545); color: #fff; }

/* ---------- ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

[id] { scroll-margin-top: 80px; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-top: 110px; }
  .hero-right { order: -1; }
  .hero-medal { width: min(330px, 74vw); }
  .hero-logo-bg { width: 120%; top: 0; left: -10%; }
  .work-dialog { grid-template-columns: 1fr; max-height: 92vh; }
  .work-modal-media { min-height: 240px; max-height: 300px; border-radius: 24px 24px 0 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 20px; }
}

/* ---------- ДОСТУПНОСТЬ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee-track, .hero-medal, .medal-shine, .medal-glow, .hero-logo-bg, .contact-tg, .status-chip .dot { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
