/* ==========================================================================
   Персональне портфоліо Наталії Бойко (nata.videooko.net)
   Дизайн-система: «Тепло пряжі, Смереки Чорногори та Ранкова вода»
   ========================================================================== */

:root {
  /* Колірна палітра */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F0EFEA;
  --bg-Warm-tint: #F6F0E8;
  --surface-card: #FFFFFF;
  --surface-glass: rgba(250, 247, 242, 0.88);

  --accent-forest: #2C4A3E;
  --accent-forest-hover: #1F362D;
  --accent-forest-soft: #E6EFEA;

  --accent-terracotta: #C86D51;
  --accent-terracotta-hover: #B15B40;
  --accent-terracotta-soft: #F9EBE6;

  --accent-water: #3B7A8C;
  --accent-water-soft: #E6F1F5;

  --text-primary: #232926;
  --text-secondary: #546058;
  --text-muted: #78847C;
  --text-on-dark: #F7F4EE;

  --border-subtle: #E2DDD5;
  --border-strong: #CFC7BC;

  /* Типографіка */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Розміри та відступи */
  --container-max: 1220px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Тіні та анімації */
  --shadow-sm: 0 4px 16px rgba(35, 41, 38, 0.05);
  --shadow-md: 0 12px 32px rgba(35, 41, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(44, 74, 62, 0.14);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Базовий скид */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Друкована версія резюме прихована на екрані */
.print-only-cv {
  display: none;
}

/* ==========================================================================
   Типографіка та секційні заголовки
   ========================================================================== */
h1, h2, h3, .serif-quote {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text-primary);
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-eyebrow.forest {
  color: var(--accent-forest);
  background: var(--accent-forest-soft);
}

.section-eyebrow.water {
  color: var(--accent-water);
  background: var(--accent-water-soft);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-forest);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(44, 74, 62, 0.22);
}

.btn-primary:hover {
  background-color: var(--accent-forest-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(44, 74, 62, 0.3);
}

.btn-terracotta {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(200, 109, 81, 0.24);
}

.btn-terracotta:hover {
  background-color: var(--accent-terracotta-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-forest);
  border: 1.5px solid var(--accent-forest);
}

.btn-outline:hover {
  background-color: var(--accent-forest-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Шапка сайту (Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-forest);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-terracotta);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* ==========================================================================
   1. Секція HERO
   ========================================================================== */
.hero {
  padding: 4rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 109, 81, 0.1) 0%, rgba(44, 74, 62, 0.04) 60%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: var(--accent-forest-soft);
  color: var(--accent-forest);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #2E8B57;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.2);
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.hero-poetic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  color: var(--accent-forest);
  margin-bottom: 1.35rem;
  line-height: 1.38;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.pillar-mini {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
}

.pillar-mini-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-forest);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-mini-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Права колонка Hero — Портрет */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(145deg, #FFFFFF 0%, #EFEAE1 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.portrait-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background-color: var(--bg-secondary);
  position: relative;
}

.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.portrait-frame:hover .portrait-img-wrap img {
  transform: scale(1.02);
}

.floating-stat {
  position: absolute;
  background: var(--surface-card);
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.floating-stat.stat-top {
  top: 24px;
  left: -24px;
}

.floating-stat.stat-bottom {
  bottom: 24px;
  right: -20px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--accent-terracotta-soft);
}

.stat-icon.forest {
  background: var(--accent-forest-soft);
}

.stat-num {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   2. Секція ПРО МЕНЕ («Три грані особистості»)
   ========================================================================== */
.facets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.facet-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.facet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.facet-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.facet-card:nth-child(1) .facet-icon {
  background: var(--accent-forest-soft);
  color: var(--accent-forest);
}

.facet-card:nth-child(2) .facet-icon {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

.facet-card:nth-child(3) .facet-icon {
  background: var(--accent-water-soft);
  color: var(--accent-water);
}

.facet-step {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.facet-title {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.facet-text {
  font-size: 0.97rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.facet-photo-preview {
  margin-top: 1.4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 165px;
  position: relative;
}

.facet-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facet-photo-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(25, 30, 27, 0.78));
  color: #FFF;
  font-size: 0.78rem;
  padding: 1.2rem 0.85rem 0.55rem;
}

/* ==========================================================================
   3. Секція ПРОФЕСІЙНИЙ ДОСВІД І НАВИЧКИ
   ========================================================================== */
.roles-subheading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
  text-align: center;
  color: var(--accent-forest);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.role-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent-forest);
  box-shadow: var(--shadow-sm);
}

.role-card:nth-child(2) {
  border-top-color: var(--accent-terracotta);
}

.role-card:nth-child(3) {
  border-top-color: var(--accent-water);
}

.role-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.role-list li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.35rem;
}

.role-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-forest);
  font-weight: 700;
}

/* Сітка Досвіду (Timeline) та Навичок */
.cv-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.cv-panel {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.cv-panel-title {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-forest-soft);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-forest);
  border: 2px solid #FFF;
  box-shadow: 0 0 0 3px var(--accent-forest-soft);
}

.timeline-period {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
}

.timeline-org {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-forest);
  margin-bottom: 0.55rem;
}

.timeline-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
}

.timeline-desc li {
  margin-bottom: 0.3rem;
}

/* Права колонка резюме: Навички, ПЗ, Освіта */
.skills-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skill-group-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.skill-tag.highlight {
  background: var(--accent-forest-soft);
  border-color: rgba(44, 74, 62, 0.2);
  color: var(--accent-forest);
  font-weight: 600;
}

.edu-box {
  background: var(--bg-primary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.edu-box h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cert-list li::before {
  content: '🏅 ';
}

/* ==========================================================================
   4. Секція МАЙСТЕРНЯ ТЕПЛА (Галерея творчих робіт)
   ========================================================================== */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-btn:hover {
  border-color: var(--accent-terracotta);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border-color: var(--accent-terracotta);
  box-shadow: 0 6px 18px rgba(200, 109, 81, 0.25);
}

.filter-count {
  font-size: 0.76rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.07);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.24);
  color: #FFF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.35rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 4.5;
  group: gallery;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 30, 27, 0.84) 0%, rgba(24, 30, 27, 0.18) 48%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0.92;
  transition: opacity var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-forest);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.45rem;
}

.gallery-card-title {
  color: #FFFFFF;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.38;
}

.gallery-load-more {
  margin-top: 2.5rem;
  text-align: center;
}

/* Баннер індивідуальних замовлень під галереєю */
.atelier-cta-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #FDF8F4 0%, #F5E6DE 100%);
  border: 1px solid rgba(200, 109, 81, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.atelier-cta-content h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.atelier-cta-content p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   5. Секція ЕНЕРГІЯ ПРИРОДИ, КАРПАТИ ТА БАЛАНС
   ========================================================================== */
.carpathians-feature {
  background: linear-gradient(135deg, #233D32 0%, #2C4A3E 60%, #1F353D 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carpathians-feature::after {
  content: '⛰️';
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 9rem;
  opacity: 0.07;
  pointer-events: none;
}

.carpathians-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.carpathians-feature h3 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.carpathians-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: #E8C5B0;
  margin-bottom: 1.2rem;
  line-height: 1.45;
}

.carpathians-story {
  font-size: 1rem;
  color: rgba(247, 244, 238, 0.9);
  margin-bottom: 1.6rem;
  line-height: 1.72;
}

.peaks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.peak-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.peak-badge.gold {
  background: rgba(200, 109, 81, 0.35);
  border-color: rgba(232, 197, 176, 0.5);
  font-weight: 600;
}

.carpathians-pillars {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.carp-pillar-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(247, 244, 238, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.carp-pillar-item span {
  font-size: 1.2rem;
}

.carpathians-carousel-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.carpathians-media .lifestyle-carousel-stage {
  height: 360px;
}

.carpathians-carousel-footer {
  padding: 0.85rem 1.1rem;
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  display: none;
}

.carpathians-carousel-footer.has-photos {
  display: block;
}

/* Три інтерактивні картки активного відновлення з міні-каруселями */
.lifestyle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
  align-items: stretch;
}

.lifestyle-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.lifestyle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lifestyle-media {
  position: relative;
  width: 100%;
  background: #232D29;
  border-bottom: 1px solid var(--border-subtle);
}

.lifestyle-placeholder {
  height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.placeholder-sup {
  background: linear-gradient(135deg, #1E4D5C 0%, #3B7A8C 55%, #73A9B8 100%);
}

.placeholder-bike {
  background: linear-gradient(135deg, #264638 0%, #3A6B56 55%, #7B9E6B 100%);
}

.placeholder-forest {
  background: linear-gradient(135deg, #3D312A 0%, #6E523F 55%, #9C7A5B 100%);
}

.lifestyle-placeholder-icon {
  font-size: 3.4rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.lifestyle-placeholder-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Вбудована міні-карусель у картці */
.lifestyle-carousel-stage {
  position: relative;
  height: 270px;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  background: #1B221F;
}

.lifestyle-carousel-bg {
  position: absolute;
  inset: -12px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.62);
  transform: scale(1.08);
  pointer-events: none;
}

.lifestyle-carousel-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.lifestyle-carousel-img.is-portrait {
  object-fit: contain;
  object-position: center;
}

.lifestyle-carousel-stage:hover .lifestyle-carousel-img {
  transform: scale(1.03);
}

.lifestyle-top-bar {
  position: absolute;
  top: 0.75rem;
  inset-inline: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lifestyle-pill {
  background: rgba(20, 26, 23, 0.68);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lifestyle-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 26, 23, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.lifestyle-nav-btn:hover {
  background: var(--accent-terracotta);
  transform: translateY(-50%) scale(1.08);
}

.lifestyle-nav-prev {
  left: 0.6rem;
}

.lifestyle-nav-next {
  right: 0.6rem;
}

/* Міні-стрічка прев'ю кадрів під головним слайдом */
.lifestyle-thumbs {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem 0.75rem;
  background: #F4EFE7;
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.lifestyle-thumb-btn {
  width: 44px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.68;
  transition: all 0.2s ease;
  background: #DDD;
}

.lifestyle-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-thumb-btn.active,
.lifestyle-thumb-btn:hover {
  opacity: 1;
  border-color: var(--accent-terracotta);
  transform: translateY(-1px);
}

.lifestyle-more-btn {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-forest);
  background: rgba(44, 74, 62, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
}

.lifestyle-more-btn:hover {
  background: rgba(44, 74, 62, 0.2);
}

.lifestyle-body {
  padding: 1.5rem 1.65rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lifestyle-head-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.lifestyle-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.lifestyle-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.18;
  margin-bottom: 0.15rem;
}

.lifestyle-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-water);
}

.lifestyle-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.62;
  flex-grow: 1;
}

.lifestyle-card-footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-subtle);
  display: none;
}

.lifestyle-card-footer.has-photos {
  display: block;
}

.lifestyle-album-btn {
  width: 100%;
  padding: 0.58rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--accent-forest-soft);
  color: var(--accent-forest);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition);
}

.lifestyle-album-btn:hover {
  background: var(--accent-forest);
  color: #FFFFFF;
}

/* ==========================================================================
   6. Секція КОНТАКТИ та Підвал
   ========================================================================== */
.contact-box {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2.2rem 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-forest);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-item-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-item-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-forest);
  word-break: break-all;
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Лайтбокс (Lightbox Modal)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 22, 20, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: #FFFFFF;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.lightbox-counter {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-top-controls {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0.65rem;
}

.lightbox-action-btn {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lightbox-action-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Адаптивність (Mobile-First Responsive)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .cv-layout,
  .carpathians-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .portrait-frame {
    max-width: 340px;
  }

  .facets-grid,
  .roles-grid,
  .lifestyle-cards,
  .carpathians-pillars {
    grid-template-columns: 1fr;
  }

  .atelier-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.8rem 0;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }

  .floating-stat.stat-top {
    left: 0;
  }

  .floating-stat.stat-bottom {
    right: 0;
  }

  .carpathians-feature {
    padding: 2rem 1.4rem;
  }

  .contact-box {
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================================
   ВЕРСІЯ ДЛЯ ДРУКУ ТА ЗБЕРЕЖЕННЯ РЕЗЮМЕ В PDF (@media print)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm;
  }

  body {
    background: #FFFFFF !important;
    color: #111111 !important;
    font-size: 10pt;
    line-height: 1.4;
  }

  .site-header,
  .hero,
  .section,
  .site-footer,
  .lightbox {
    display: none !important;
  }

  .print-only-cv {
    display: block !important;
  }

  .print-cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #2C4A3E;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .print-cv-name {
    font-family: var(--font-serif);
    font-size: 24pt;
    font-weight: 700;
    color: #2C4A3E;
    line-height: 1.1;
  }

  .print-cv-title {
    font-size: 11pt;
    font-weight: 600;
    color: #444;
    margin-top: 4px;
  }

  .print-cv-contacts {
    text-align: right;
    font-size: 9.5pt;
    color: #333;
  }

  .print-cv-summary {
    margin-bottom: 14px;
    font-size: 9.8pt;
    color: #222;
    background: #F6F7F6;
    padding: 8px 12px;
    border-left: 3px solid #2C4A3E;
  }

  .print-cv-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 18px;
  }

  .print-section-title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #2C4A3E;
    border-bottom: 1px solid #DDD;
    padding-bottom: 3px;
    margin-bottom: 8px;
    margin-top: 10px;
  }

  .print-job {
    margin-bottom: 9px;
  }

  .print-job-head {
    font-weight: 700;
    font-size: 10pt;
  }

  .print-job-sub {
    font-size: 9pt;
    color: #555;
    margin-bottom: 3px;
  }

  .print-job ul {
    padding-left: 14px;
    font-size: 9.2pt;
  }
}
