
/* ============================================
   Дмитрий Заводовский — сайт-визитка
   Тёмная тема, золотые акценты
   ============================================ */

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #15152a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent: #c9a227;
  --accent-hover: #ddb94a;
  --border: rgba(255,255,255,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: var(--bg-primary); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; position: relative; }

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

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 26, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.5rem;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  transition: var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.lang-switcher .divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ============================================
   Hero — ФОНОВОЕ ФОТО слева
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-photo-bg {
  position: relative;
  height: 100%;
  min-height: calc(100vh - 80px);
  background: url('../images/hero-photo.jpg') center 20% / cover no-repeat;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 4rem 4rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,162,39,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow::after {
  content: '→';
  transition: var(--transition);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   Three Pillars
   ============================================ */
.pillars { background: var(--bg-secondary); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.pillar-card h3 { margin-bottom: 0.75rem; }

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.pillar-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.pillar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}

.pillar-certs {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Cases
   ============================================ */
.case {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.case:last-of-type { border-bottom: none; }

.case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.case-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.case h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.case-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.case-situation h4,
.case-actions h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.case-actions ul { list-style: none; }

.case-actions li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.case-actions li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.result-item { text-align: center; }

.result-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-award {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
}

.case-award-icon { font-size: 1.5rem; }

.case-award-text { font-size: 0.9rem; }
.case-award-text strong { color: var(--accent); display: block; }

/* ============================================
   Career Timeline
   ============================================ */
.career { background: var(--bg-secondary); }

.career-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.career-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.career-card:hover {
  border-color: rgba(201,162,39,0.2);
  transform: translateY(-4px);
}

.career-logo {
  height: 50px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-logo img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
 
}

.career-card h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.career-period {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.career-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Education & Certs
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.edu-icon {
  width: 40px; height: 40px;
  background: rgba(201,162,39,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.edu-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.edu-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================
   Services
   ============================================ */
.services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(201,162,39,0.2);
  transform: translateY(-4px);
}

.service-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,162,39,0.7);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 { margin-bottom: 1rem; }
.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-when {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.service-when strong { color: var(--accent); }

/* ============================================
   Book — с фото обложки
   ============================================ */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.book-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a3a 0%, #0a0a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,162,39,0.1), transparent 60%);
}

.book-cover-placeholder-content { position: relative; z-index: 1; }

.book-cover-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.book-cover-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.book-info h2 { margin-bottom: 1rem; }
.book-info p { margin-bottom: 1.5rem; }

/* ============================================
   Contact — ФОНОВОЕ ФОТО слева
   ============================================ */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.contact-photo-bg {
  position: relative;
  min-height: 600px;
  background: url('../images/contact-photo.jpg') center 20% / cover no-repeat;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.contact-form-wrap {
  padding: 4rem 2rem 4rem 4rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus { border-bottom-color: var(--accent); }

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0;
}

.form-checkbox input {
  width: 20px; height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  color: var(--accent);
  text-align: center;
  margin-top: 1rem;
}

.form-success.visible { display: block; }

/* ============================================
   Articles
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  border-color: rgba(201,162,39,0.2);
  transform: translateY(-4px);
}

.article-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-bg,
  .contact-photo-bg {
    min-height: 40vh;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }

  .hero-content {
    padding: 2rem;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .contact-form-wrap { padding: 2rem; }

  .case-grid { grid-template-columns: 1fr; gap: 2rem; }

  .pillars-grid,
  .career-grid,
  .services-grid,
  .education-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid,
  .career-grid,
  .services-grid,
  .education-grid,
  .articles-grid,
  .case-results {
    grid-template-columns: 1fr;
  }

  .case-results { gap: 1rem; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-content,
  .contact-form-wrap {
    padding: 1.5rem;
  }
}
