/* ============================================
   DIN – about.css
   ============================================ */

/* ── HERO ── */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--navH) + 60px) 64px 64px;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(200,169,110,0.05) 0%, transparent 60%);
}

.about-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-hero-left { display: flex; justify-content: center; }

.about-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.about-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-h);
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.4s ease;
}

.about-photo-wrap:hover img { filter: brightness(1) saturate(1); }

.about-photo-wrap::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 80px; height: 80px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 4px 0 0 0;
  opacity: 0.5;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-radius: 0 0 4px 0;
  opacity: 0.5;
}

.about-photo-badge {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 999px;
  white-space: nowrap;
}

.about-photo-badge span:last-child {
  font-size: 12px;
  color: rgba(74,222,128,0.9);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74,222,128,0.6); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(74,222,128,0.9); }
}

.about-hero-right { display: flex; flex-direction: column; }

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.about-hero-right h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-hero-right h1 em { font-style: italic; color: var(--accent); }

.about-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ── Actions ── */
.about-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.about-cta-btn:hover { background: var(--accent-2); transform: scale(1.03); box-shadow: 0 8px 32px rgba(200,169,110,0.3); }

.about-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--border-h);
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-decoration: none;
}

.about-outline-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }

/* ── CV Dropdown ── */
.cv-dropdown { position: relative; }

.cv-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.82);
  border: 1px solid var(--border-h);
  transition: border-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}

.cv-dropdown-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.cv-chevron {
  transition: transform .25s ease;
  opacity: 0.6;
}

.cv-dropdown.open .cv-chevron { transform: rotate(180deg); }

.cv-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  width: 100%;
  background: rgba(12,12,12,0.97);
  border: 1px solid rgba(200,169,110,0.20);
  border-radius: 6px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.cv-dropdown.open .cv-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cv-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.08);
  transition: background .18s;
}

.cv-dropdown-item:last-child { border-bottom: none; }
.cv-dropdown-item:hover { background: rgba(200,169,110,0.07); }

.cv-lang {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  background: rgba(200,169,110,0.10);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 3px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.cv-dropdown-item span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.65);
  transition: color .18s;
}

.cv-dropdown-item:hover span:last-child { color: var(--white); }

/* ── ABOUT DETAIL ── */
.about-detail {
  background: var(--bg-2);
  padding: 120px 64px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-detail::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.about-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.label-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,169,110,0.30);
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
  background: rgba(200,169,110,0.05);
  margin-bottom: 28px;
}

.about-detail-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
}

.about-detail-left h2 em { font-style: italic; color: var(--accent); }

.about-detail-bar {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 28px 0;
  opacity: 0.4;
}

.about-lead { font-size: 17px; font-weight: 300; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.about-body { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.80); line-height: 1.8; margin-bottom: 14px; }

.about-certs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cert-item { display: flex; align-items: flex-start; gap: 14px; }
.cert-icon { font-size: 7px; color: var(--accent); margin-top: 5px; flex-shrink: 0; }
.cert-title { display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--white); line-height: 1.3; }
.cert-school { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 2px; }

.about-skills-grid { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.skill-group { display: flex; flex-direction: column; gap: 10px; }

.sg-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); opacity: 0.85; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.sg-tags span { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.92); border: 1px solid var(--border); padding: 8px 16px; border-radius: 4px; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.sg-tags span:hover { border-color: rgba(200,169,110,0.35); color: var(--white); background: rgba(200,169,110,0.05); }

.about-bio { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.about-bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-bio-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.about-bio h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 28px; font-weight: 300; }
.about-bio p { font-size: 15px; color: rgba(255,255,255,0.80); line-height: 1.9; margin-bottom: 20px; }
.about-bio-right { padding-top: 40px; }

.skills-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.skill-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.skill-item:hover { border-color: var(--border-h); transform: translateX(6px); }
.skill-name { font-size: 13px; color: rgba(255,255,255,0.92); font-weight: 400; }
.skill-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); background: rgba(200,169,110,0.08); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(200,169,110,0.2); }

.more-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--accent); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); transition: gap 0.3s var(--ease); }
.more-link:hover { gap: 16px; color: var(--accent-2); }

/* ============================================
   CTA SECTION
   ============================================ */
.about-cta {
  position: relative;
  padding: 160px 64px 120px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cta-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,169,110,0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at -5% 50%, rgba(200,169,110,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 105% 10%, rgba(200,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.cta-top { display: flex; flex-direction: column; }

.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.8;
}

.cta-line {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
}

.cta-heading em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.cta-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.cta-info { display: flex; flex-direction: column; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 32px;
  transition: border-color 0.3s;
}

.cta-row:last-child { border-bottom: none; }
.cta-row:hover { border-color: rgba(200,169,110,0.3); }

.cta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  min-width: 80px;
  flex-shrink: 0;
}

.cta-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  text-align: right;
}

a.cta-value:hover { color: var(--accent); }

.cta-value--green {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(74,222,128,0.9);
  font-size: 18px;
}

.cta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-circle-btn {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(200,169,110,0.35);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.cta-circle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.cta-circle-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(200,169,110,0.25), 0 0 100px rgba(200,169,110,0.1);
  transform: rotate(10deg) scale(1.06);
}

.cta-circle-btn:hover::before { transform: scale(1); }

.cta-circle-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  line-height: 1.7;
  transition: color 0.3s;
}

.cta-circle-btn:hover .cta-circle-text { color: var(--bg); }

.cta-circle-arrow {
  position: relative;
  z-index: 1;
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, transform 0.3s;
}

.cta-circle-btn:hover .cta-circle-arrow {
  color: var(--bg);
  transform: translate(3px, -3px);
}

.cta-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
  white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-detail { padding: 80px 32px; }
  .about-detail-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .about-hero { padding: 110px 24px 60px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { max-width: 320px; margin: 0 auto; }
  .about-hero-right { text-align: center; align-items: center; }
  .about-hero-sub { max-width: 100%; }
  .about-hero-stats { justify-content: center; }
  .about-hero-actions { justify-content: center; width: 100%; }
  .about-bio { padding: 60px 24px; }
  .about-bio-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-bio-right { padding-top: 0; }
  .about-cta { padding: 100px 24px 80px; }
  .cta-bg-text { display: none; }
  .cta-bottom { grid-template-columns: 1fr; gap: 48px; }
  .cta-action { align-items: flex-start; }
  .cta-heading { font-size: clamp(3rem, 12vw, 5rem); }
}

@media (max-width: 480px) {
  .about-hero-stats { flex-direction: row; gap: 2px; justify-content: space-between; padding: 16px; }
  .stat-divider { width: 1px; height: 32px; }
  .stat { align-items: center; }
  .stat-num { font-size: 24px; }
  .about-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cv-dropdown { width: 100%; }
  .cv-dropdown-btn { width: 100%; justify-content: center; }
  .cv-dropdown-menu { width: 100%; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-value { text-align: left; font-size: 18px; }
  .cta-value--green { justify-content: flex-start; }
}

.inline-logo {
  height: 22px; /* было 22px → стало меньше */
  vertical-align: middle;
  filter: brightness(1.2);
    margin-bottom: 10px;
}

.name-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.name-logo img {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

.name-logo strong {
  font-weight: 500;
}

/* ─────────────────────────────────────────
   NAME LOGO — inline logo + name in text
───────────────────────────────────────── */

.name-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

.name-logo img {
  height: 1.4em;        /* масштабируется под размер шрифта */
  width: auto;
  filter: brightness(0) invert(1);   /* белый на тёмном фоне */
  vertical-align: middle;
  position: relative;
  top: -0.05em;       /* оптическое выравнивание */
}

/* Вариант для второго параграфа — логотип чуть крупнее */
.name-logo--inline {
  gap: 6px;
  margin-right: 4px;
}

.name-logo--inline img,
.inline-logo {
  height: 1.4em;
  filter: brightness(0) invert(1);
  vertical-align: middle;
  position: relative;
  top: -0.05em;
}

/* ── Фикс отступа под навбар ── */
.gallery-section {
  padding-top: var(--navH);
}

.gallery-header {
  padding-top: 36px; /* убираем лишние 72px, navH уже учтён */
}

@media (max-width: 820px) {
  .gallery-header {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    padding-top: 16px;
  }
}

/* ── INLINE NAME LOGO (теперь SVG с анимацией рисования, не img) ──
   Используют тот же .logo-draw / .logo-path / .logo-dot / .pen
   набор стилей и @keyframes из style.css (logo-cycle-path/dot/pen).
   Здесь только размер и выравнивание под текстовую строку. */
 
.name-logo-svg{
  height:1.4em;
  width:auto;
  vertical-align:middle;
  position:relative;
  top:-0.05em; /* оптическое выравнивание с текстом */
}
 
.name-logo--inline .inline-logo{
  height:1.4em;
  width:auto;
  vertical-align:middle;
  position:relative;
  top:-0.05em;
}
 
/* старые правила для img.name-logo / img.inline-logo с
   filter: brightness(0) invert(1) больше не нужны —
   SVG уже белый по fill/stroke, можно удалить их из about.css */
 