/* ============================================================
   ДИЗАЙН-ТОКЕНЫ — цвета, шрифты, отступы
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Цвета из Figma */
  --bg:           #faf5f0;
  --bg-card:      #ffffff;
  --bg-muted:     #f5ece4;
  --accent:       #d4614a;
  --accent-hover: #c04d38;
  --accent-light: rgba(212, 97, 74, 0.12);
  --text-dark:    #2c2420;
  --text-mid:     #5a4e49;
  --text-muted:   #9a8e8a;
  --gold:         #c9962a;
  --border:       rgba(44, 36, 32, 0.1);

  /* Типографика */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Отступы */
  --section-pad: 100px 0;
  --container:   1200px;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;

  /* Тени */
  --shadow-sm:   0 2px 8px rgba(44,36,32,0.06);
  --shadow-md:   0 8px 24px rgba(44,36,32,0.10);
  --shadow-lg:   0 20px 60px rgba(44,36,32,0.14);

  /* Анимации */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.3s;
}

/* ============================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text-dark); }

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

/* Переключатель языков */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-muted);
  border-radius: 20px;
  padding: 4px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 16px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.03em;
}
.lang-btn:hover  { color: var(--text-dark); }
.lang-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Мобильное меню */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* ============================================================
   SECTION ОБЩИЙ
   ============================================================ */
.section { padding: var(--section-pad); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.section-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
#home {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hero-inner { max-width: 700px; }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-role {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  margin-bottom: 12px;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 97, 74, 0.35);
}
.btn-primary svg { transition: transform var(--dur) var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

/* ============================================================
   ОБО МНЕ
   ============================================================ */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skill-tag {
  padding: 8px 18px;
  background: var(--bg-muted);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.about-visual {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   МОЙ ПУТЬ — временная шкала
   ============================================================ */
#journey { background: var(--bg-muted); }

.timeline-wrapper {
  position: relative;
  overflow: hidden;
}

.timeline-cards {
  display: flex;
  gap: 24px;
  overflow: hidden;
  padding: 16px 4px 24px;
  position: relative;
}

.timeline-card {
  min-width: 340px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
  opacity: 0.45;
  transform: scale(0.97);
  flex-shrink: 0;
}

.timeline-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-lg);
}

.card-year {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-icon { font-size: 1.5rem; margin-bottom: 8px; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.card-text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Индикатор шкалы */
.timeline-nav {
  margin-top: 32px;
}

.timeline-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  margin-bottom: 16px;
}

.timeline-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.timeline-dots {
  display: flex;
  justify-content: space-between;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot:hover  { border-color: var(--accent); color: var(--accent); }
.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* ============================================================
   ТЕКУЩИЙ ПРОЕКТ
   ============================================================ */
#current { background: var(--bg); }

.current-card {
  background: linear-gradient(135deg, #d4614a 0%, #e07d5a 60%, #d4a57a 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.current-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.current-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.current-desc {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}

.progress-wrap { margin-bottom: 24px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 1s var(--ease);
}

.current-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.current-tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
}

.current-features h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  opacity: 0.9;
}
.feature-item::before {
  content: "+";
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   ЗАВЕРШЁННЫЕ ПРОЕКТЫ
   ============================================================ */
#projects { background: var(--bg-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: 1px solid var(--border);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  background: var(--bg-muted);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-body { padding: 24px; }

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 4px 10px;
  background: var(--bg-muted);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
}

/* ============================================================
   ДОСТИЖЕНИЯ
   ============================================================ */
#achievements { background: var(--bg); }

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.achievement-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}
.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ach-icon { font-size: 1.6rem; flex-shrink: 0; }

.ach-year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.ach-place {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ach-org {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ach-desc {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ============================================================
   ГАЛЕРЕЯ
   ============================================================ */
#gallery { background: var(--bg-muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all var(--dur) var(--ease);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,36,32,0.6);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================================
   ВДОХНОВЕНИЕ
   ============================================================ */
#inspiration { background: var(--bg); }

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

.inspo-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}
.inspo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.inspo-thumb {
  background: var(--bg-muted);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.inspo-body { padding: 20px; }

.inspo-year {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.inspo-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.inspo-studio {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.inspo-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.inspo-quote::before { content: '"'; }
.inspo-quote::after  { content: '"'; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
#contact {
  background: var(--bg);
  text-align: center;
  padding: 120px 24px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  background: var(--bg-card);
}
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.contact-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.contact-btn.primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(212,97,74,0.3);
}

/* ============================================================
   ФУТЕР
   ============================================================ */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,36,32,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform var(--dur) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-thumb {
  background: var(--bg-muted);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}
.modal-thumb img, .modal-thumb iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
}

.modal-body { padding: 32px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}
.modal-close:hover { background: #fff; transform: scale(1.1); }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   АДАПТИВ — планшет
   ============================================================ */
@media (max-width: 900px) {
  .about-grid        { grid-template-columns: 1fr; }
  .about-visual      { max-width: 400px; margin: 0 auto; }
  .projects-grid     { grid-template-columns: 1fr 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .gallery-grid      { grid-template-columns: repeat(3, 1fr); }
  .inspo-grid        { grid-template-columns: repeat(2, 1fr); }
  .current-card      { grid-template-columns: 1fr; }
}

/* ============================================================
   АДАПТИВ — мобильный
   ============================================================ */
@media (max-width: 600px) {
  :root { --section-pad: 64px 0; }

  .nav-links       { display: none; }
  .nav-links.open  {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    z-index: 99;
  }
  .burger { display: flex; }

  .lang-switcher { gap: 2px; }
  .lang-btn      { padding: 4px 7px; font-size: 0.7rem; }

  .projects-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .inspo-grid     { grid-template-columns: 1fr; }
  .contact-links  { flex-direction: column; align-items: center; }

  .timeline-card  { min-width: 280px; }
}

/* ============================================================
   КАРУСЕЛЬ В МОДАЛКЕ
   ============================================================ */
.modal-carousel {
  position: relative;
  background: var(--bg-muted);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-inner {
  width: 100%;
  height: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}
.carousel-placeholder span { font-size: 4rem; }
.carousel-placeholder code {
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
  border: none;
  color: var(--text-dark);
  z-index: 2;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
}

/* ============================================================
   ТЕКУЩИЙ ПРОЕКТ — картинка справа
   ============================================================ */
.current-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.3);
}

.project-link-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--dur) var(--ease);
}
.project-link-btn:hover {
  background: var(--accent-hover);
}