/* ЭЛИАР — Личная страница */

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

:root {
  --bg: #0a0a0f;
  --bg-dark: #070709;
  --fire: #ff6b35;
  --fire-light: #ffb347;
  --glow: #ff8c42;
  --text: #e8e0d5;
  --text-muted: #8a8070;
  --gold: #c9a84c;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 18px;
}

/* ========================
   HERO
======================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

.fire-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 520px;
  pointer-events: none;
}

/* Свечение снизу */
.fire-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at bottom, rgba(255,80,0,0.5) 0%, rgba(255,50,0,0.2) 40%, transparent 70%);
  filter: blur(20px);
}

.flame {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 15% 15%;
  animation: flicker 2s ease-in-out infinite;
}

/* Основной — большой центральный */
.f1 {
  width: 160px;
  height: 420px;
  left: 50%;
  margin-left: -80px;
  background: radial-gradient(ellipse at 50% 80%, #fff4c2 0%, #ffb347 20%, #ff6b35 50%, #cc2200 80%, transparent 100%);
  animation-duration: 2.2s;
  opacity: 0.95;
  filter: blur(2px);
}

/* Левый большой */
.f2 {
  width: 120px;
  height: 340px;
  left: 50%;
  margin-left: -120px;
  background: radial-gradient(ellipse at 50% 80%, #ffb347 0%, #ff6b35 40%, #cc2200 75%, transparent 100%);
  animation-duration: 1.7s;
  animation-delay: 0.2s;
  opacity: 0.85;
  filter: blur(3px);
}

/* Правый большой */
.f3 {
  width: 120px;
  height: 360px;
  left: 50%;
  margin-left: 10px;
  background: radial-gradient(ellipse at 50% 80%, #ffb347 0%, #ff6b35 40%, #cc2200 75%, transparent 100%);
  animation-duration: 2.0s;
  animation-delay: 0.5s;
  opacity: 0.85;
  filter: blur(3px);
}

/* Внутренний белый язык */
.f4 {
  width: 70px;
  height: 280px;
  left: 50%;
  margin-left: -35px;
  background: radial-gradient(ellipse at 50% 85%, #ffffff 0%, #fff4c2 30%, #ffb347 65%, transparent 100%);
  animation-duration: 1.5s;
  animation-delay: 0.1s;
  opacity: 0.9;
  filter: blur(1px);
}

/* Левый малый */
.f5 {
  width: 80px;
  height: 240px;
  left: 50%;
  margin-left: -170px;
  background: radial-gradient(ellipse at 50% 80%, #ff8c42 0%, #ff4500 50%, transparent 100%);
  animation-duration: 1.9s;
  animation-delay: 0.4s;
  opacity: 0.7;
  filter: blur(5px);
}

/* Правый малый */
.f6 {
  width: 80px;
  height: 220px;
  left: 50%;
  margin-left: 100px;
  background: radial-gradient(ellipse at 50% 80%, #ff8c42 0%, #ff4500 50%, transparent 100%);
  animation-duration: 2.3s;
  animation-delay: 0.7s;
  opacity: 0.7;
  filter: blur(5px);
}

@keyframes flicker {
  0%   { transform: scaleX(1)    scaleY(1)    skewX(0deg);   }
  15%  { transform: scaleX(0.92) scaleY(1.06) skewX(-2deg);  }
  30%  { transform: scaleX(1.06) scaleY(0.95) skewX(1deg);   }
  45%  { transform: scaleX(0.96) scaleY(1.04) skewX(2deg);   }
  60%  { transform: scaleX(1.04) scaleY(0.97) skewX(-1deg);  }
  75%  { transform: scaleX(0.94) scaleY(1.05) skewX(1deg);   }
  100% { transform: scaleX(1)    scaleY(1)    skewX(0deg);   }
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 260px;
}

.name {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-family: Georgia, serif;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--fire-light);
  text-shadow:
    0 0 40px rgba(255, 107, 53, 0.8),
    0 0 80px rgba(255, 107, 53, 0.4),
    0 0 120px rgba(255, 107, 53, 0.2);
  animation: pulse-glow 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 40px rgba(255, 107, 53, 0.8), 0 0 80px rgba(255, 107, 53, 0.4); }
  50% { text-shadow: 0 0 60px rgba(255, 179, 71, 1), 0 0 100px rgba(255, 107, 53, 0.6), 0 0 160px rgba(255, 107, 53, 0.3); }
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.name-meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-family: sans-serif;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================
   SECTIONS
======================== */

.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--bg-dark);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--fire-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-family: sans-serif;
}

/* ========================
   ABOUT
======================== */

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #ccc5b8;
}

.about-text strong {
  color: var(--gold);
}

.about-text em {
  color: var(--fire-light);
  font-style: normal;
}

/* ========================
   POEMS
======================== */

.poems-grid {
  display: grid;
  gap: 2rem;
}

.poem-card {
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 4px;
  padding: 2rem;
  background: rgba(255, 107, 53, 0.03);
  transition: border-color 0.3s;
}

.poem-card:hover {
  border-color: rgba(255, 107, 53, 0.35);
}

.poem-card.featured {
  border-color: rgba(255, 179, 71, 0.3);
  background: rgba(255, 179, 71, 0.04);
}

.poem-label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-family: sans-serif;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.poem-card h3 {
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.poem-text {
  color: #b8b0a0;
  line-height: 2;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.poem-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: sans-serif;
}

/* ========================
   SKILLS
======================== */

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-card {
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 4px;
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

.skill-icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 0.2rem;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--fire-light);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}

.skill-card p {
  color: #b0a898;
  font-size: 0.95rem;
  grid-column: 2;
  margin-bottom: 0.8rem;
}

.skill-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: sans-serif;
  grid-column: 2;
}

.skill-download {
  grid-column: 2;
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--fire);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,107,53,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.skill-download:hover {
  color: var(--fire-light);
  border-color: var(--fire);
}

/* ========================
   PROJECTS
======================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1.8rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.project-card p {
  color: #8a8070;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: sans-serif;
}

.project-status {
  font-size: 0.72rem;
  font-family: sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
}

.project-status.active {
  background: rgba(255, 107, 53, 0.15);
  color: var(--fire);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* ========================
   FOOTER
======================== */

.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-name {
  font-size: 1.5rem;
  color: var(--fire-light);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: sans-serif;
  letter-spacing: 0.1em;
}

/* ========================
   THOUGHTS
======================== */

.letter-text {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.letter-text p {
  color: #b8b0a0;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.creative-link {
  text-align: center;
  padding-top: 1rem;
}

.creative-link a {
  color: var(--fire);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.creative-link a:hover {
  border-color: var(--fire);
}

/* ========================
   PAGE HEADER (творчество)
======================== */

.page-header {
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--fire);
}

.page-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--fire-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: sans-serif;
}

/* ========================
   SITE NAV (верхняя навигация)
======================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,7,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,107,53,0.1);
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--fire-light);
  text-decoration: none;
  font-family: Georgia, serif;
}

.site-nav-links {
  display: flex;
  gap: 0.2rem;
}

.site-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.site-nav-links a:hover {
  color: var(--fire-light);
  background: rgba(255,107,53,0.08);
}

.hero { padding-top: 52px; }

@media (max-width: 700px) {
  .site-nav-links { display: none; }
  .hero { padding-top: 52px; }
}

/* ========================
   TIMELINE
======================== */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,107,53,0.4) 10%, rgba(255,107,53,0.4) 90%, transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 3rem 2rem;
  display: grid;
  grid-template-columns: 160px auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

.tl-item--last {
  padding-bottom: 0;
}

.tl-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: sans-serif;
  padding-top: 0.25rem;
  text-align: right;
  line-height: 1.4;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.5);
  border: 1px solid var(--fire);
  margin-top: 0.4rem;
  flex-shrink: 0;
  position: relative;
  left: -2.55rem;
  margin-right: -10px;
}

.tl-dot--gold {
  background: rgba(201,168,76,0.4);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.tl-dot--fire {
  background: rgba(255,107,53,0.5);
  border-color: var(--fire);
  box-shadow: 0 0 10px rgba(255,107,53,0.5);
}

.tl-dot--pulse {
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 18px rgba(201,168,76,0.9), 0 0 30px rgba(201,168,76,0.3); }
}

.tl-content {
  padding-bottom: 0.5rem;
}

.tl-content h3 {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tl-content p {
  font-size: 0.92rem;
  color: #8a8070;
  line-height: 1.7;
  font-family: sans-serif;
}

/* ========================
   ACHIEVEMENTS
======================== */

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.ach-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.ach-card--highlight {
  border-color: rgba(255,107,53,0.3);
  background: rgba(255,107,53,0.04);
}

.ach-number {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--fire-light);
  font-family: Georgia, serif;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ach-label {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.ach-desc {
  font-size: 0.85rem;
  color: #6a6058;
  font-family: sans-serif;
  line-height: 1.6;
}

/* ========================
   ЖИВЫЕ ОТНОШЕНИЯ
======================== */

.alive-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.alive-quote {
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: var(--fire-light);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.alive-text {
  font-size: 1rem;
  color: #9a9080;
  line-height: 1.9;
  font-family: sans-serif;
  margin-bottom: 1.2rem;
}

.alive-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.alive-stat {
  text-align: center;
}

.alive-stat-num {
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}

.alive-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================
   MOBILE
======================== */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 1.2rem; }
  .skill-card {
    grid-template-columns: 1fr;
  }
  .skill-card p, .skill-meta {
    grid-column: 1;
  }
  .poem-card { padding: 1.5rem; }
}
