@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/Century Gothic Paneuropean/CenturyGothicPaneuropeanRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+0400-04FF;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/Century Gothic Paneuropean/CenturyGothicPaneuropeanBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+0400-04FF;
}

:root {
  --bg: #0a0e1a;
  --bg-secondary: #141824;
  --text: #e8edf2;
  --text-secondary: #b4bcc7;
  --muted: #8891a0;
  --primary: #5ce1b8;
  --primary-hover: #4dd4a8;
  --primary-light: rgba(92, 225, 184, 0.15);
  --border: rgba(92, 225, 184, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 48px rgba(92, 225, 184, 0.3);
  --radius: 12px;
  --maxw: 1200px;
  --textw: min(900px, 92vw);
  --videow: min(720px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg) url('../img/bg.jpg') center/cover fixed;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.85);
  z-index: -1;
  pointer-events: none;
}

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

img.rounded {
  border-radius: var(--radius);
}

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

.header {
  position: sticky;
  top: 0;
  background: rgba(20, 24, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 60;
  padding: 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.header h1 {
  display: none;
}

.header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.header nav a:hover {
  color: var(--primary);
}

.header nav a:hover::after {
  width: 100%;
}

main {
  min-height: 100vh;
}

.hero-section {
  padding: 100px 0 80px;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  margin: 0 auto 32px;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 900px;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(92, 225, 184, 0.3);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92, 225, 184, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(92, 225, 184, 0.2);
}

.content-section {
  max-width: var(--textw);
  margin: 60px auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.content-section p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.content-section strong {
  color: var(--primary);
  font-weight: 700;
}

.content-section ol,
.content-section ul {
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.content-section li {
  margin-bottom: 12px;
}

.content-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

#articles {
  max-width: var(--maxw);
  margin: 80px auto;
  padding: 0 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.article-card {
  display: block;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  will-change: transform;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

.article-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.article-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  will-change: transform;
}

.article-card:hover .article-card-media img {
  transform: scale(1.05) translateZ(0);
}

.article-card-content {
  padding: 24px;
}

.article-card-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.article-card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.article-card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

#faq {
  max-width: var(--textw);
  margin: 80px auto;
  padding: 0 24px;
}

.faq-section {
  margin-top: 40px;
}

article .faq-section {
  max-width: var(--textw);
  margin: 80px auto 40px;
  padding: 0 24px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  content-visibility: auto;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 28px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-content p {
  margin: 0;
}

#video {
  max-width: var(--textw);
  margin: 80px auto;
  padding: 0 24px;
}

.video-embed {
  margin-top: 40px;
  max-width: var(--videow);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-placeholder {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(92, 225, 184, 0.4);
}

.video-play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid var(--bg);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(92, 225, 184, 0.5);
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 100px;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateZ(0);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(92, 225, 184, 0.4);
  will-change: opacity, transform;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 0;
  height: 0;
  border-left: 12px solid var(--bg);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateZ(0) scale(1);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 6px 24px rgba(92, 225, 184, 0.5);
}

article header {
  max-width: var(--textw);
  margin: 60px auto 40px;
  padding: 0 24px;
  text-align: center;
}

article header h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--text);
}

article header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

article header nav a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

article header nav a:hover {
  color: var(--primary-hover);
}

article header nav .sep {
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .header nav {
    gap: 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  article header h1 {
    font-size: 32px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  #faq {
    margin: 60px auto;
    padding: 0 16px;
  }

  .faq-section {
    margin-top: 32px;
  }

  article .faq-section {
    margin: 60px auto 32px;
    padding: 0 16px;
  }

  .faq-item {
    margin-bottom: 12px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 16px;
  }

  .faq-item summary::after {
    font-size: 24px;
  }

  .faq-content {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .content-section {
    padding: 0 16px;
  }

  article header {
    padding: 0 16px;
  }

  article header h1 {
    font-size: 28px;
  }

  article header nav {
    font-size: 13px;
  }
}
