

:root {
  --bg-color: #0d1117;
  --surface-color: #161b22;
  --surface-color-alt: #21262d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --primary-color: #d4af37;
  
  --primary-color-hover: #b8962c;
  --accent-color: #3b82f6;
  
  --border-color: #30363d;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4 {
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

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

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-color-hover);
  color: #000;
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background-color: var(--primary-color);
  color: #000;
}

.btn--full {
  width: 100%;
}

.ic {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.brand-mark {
  color: var(--primary-color);
  width: 32px;
  height: 32px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav a.btn-quiz {
  background: var(--primary-color);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 700;
}

.nav a.btn-quiz:hover {
  transform: translateY(-2px);
  background: var(--primary-color-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: .25s ease-in-out;
}

.burger span:nth-child(1) {
  top: 0px;
}

.burger span:nth-child(2) {
  top: 11px;
}

.burger span:nth-child(3) {
  top: 22px;
}

.burger.is-active span:nth-child(1) {
  top: 11px;
  transform: rotate(135deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.burger.is-active span:nth-child(3) {
  top: 11px;
  transform: rotate(-135deg);
}

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--surface-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 1.5rem;
    transition: 0.3s ease;
  }

  .nav.is-open {
    left: 0;
  }

  .header-actions .btn {
    display: none;
  }

  .burger {
    display: block;
  }
}

.hero {
  padding: 160px 0 100px;
  background-image: url('hero_bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__lead {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: var(--text-secondary);
}

.section {
  padding: 80px 0;
}

.section--surface {
  background-color: var(--surface-color);
}

.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--surface-color-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-card__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.quiz-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}


/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.blog-card__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
}
.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Quiz */
.quiz-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
}
.quiz-question {
  display: none;
}
.quiz-question.active {
  display: block;
  animation: modalIn 0.4s ease;
}
.quiz-option {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--surface-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.quiz-option:hover {
  border-color: var(--primary-color);
  background: rgba(212, 175, 55, 0.1);
}
.quiz-result {
  display: none;
  text-align: center;
}
.quiz-result.active {
  display: block;
  animation: modalIn 0.4s ease;
}
.quiz-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 16px 0;
}

/* Footer */
.site-footer {
  background: #0f1f3d;
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
}

/* Modal Success */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-backdrop.is-open {
  display: flex;
}
.modal {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.modal__close:hover {
  color: #fff;
}

/* Chat */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: #000;
}
.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  height: 400px;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-panel.is-open {
  transform: translateY(0);
}
.chat-head {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-head h4 {
  margin: 0;
  font-size: 1rem;
}
.chat-head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.chat-head__close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.9rem;
}
.chat-msg--bot {
  background: var(--surface-color-alt);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-input {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  outline: none;
}
.chat-input button {
  background: var(--primary-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}

.cart-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: flex-end;
}
.cart-modal-overlay.is-open {
  display: flex;
}
.cart-modal {
  background: var(--surface-color);
  border-left: 1px solid var(--border-color);
  width: 100%;
  max-width: 420px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.cart-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}
.cart-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}
.cart-modal__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .quiz-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.1rem !important; }
  body { font-size: 0.9rem; }
  .hero__lead { font-size: 0.95rem !important; }
  .site-header__row { padding: 0 16px; }
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .hero { min-height: unset; }

  .products-grid,
  .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }
  .quiz-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  .quiz-hero > div:last-child { display: none; }
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 8px;
    text-align: center;
  }
  .section__head { margin-bottom: 24px; }
  .btn { font-size: 0.9rem; padding: 10px 18px; }
  .nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
  }
  .nav.is-open { transform: translateX(0); }
  .cart-modal { max-width: 100%; border-left: none; border-top: 1px solid var(--border-color); height: 90vh; border-radius: 20px 20px 0 0; }
  
/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.blog-card__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
}
.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Quiz */
.quiz-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
}
.quiz-question {
  display: none;
}
.quiz-question.active {
  display: block;
  animation: modalIn 0.4s ease;
}
.quiz-option {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--surface-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.quiz-option:hover {
  border-color: var(--primary-color);
  background: rgba(212, 175, 55, 0.1);
}
.quiz-result {
  display: none;
  text-align: center;
}
.quiz-result.active {
  display: block;
  animation: modalIn 0.4s ease;
}
.quiz-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 16px 0;
}

/* Footer */
.site-footer {
  background: #0f1f3d;
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
}

/* Modal Success */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-backdrop.is-open {
  display: flex;
}
.modal {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.modal__close:hover {
  color: #fff;
}

/* Chat */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: #000;
}
.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  height: 400px;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-panel.is-open {
  transform: translateY(0);
}
.chat-head {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-head h4 {
  margin: 0;
  font-size: 1rem;
}
.chat-head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.chat-head__close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.9rem;
}
.chat-msg--bot {
  background: var(--surface-color-alt);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-input {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  outline: none;
}
.chat-input button {
  background: var(--primary-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}

.cart-modal-overlay { align-items: flex-end; }
  .article-modal { margin: 10px; max-height: 95vh; }
  .article-modal__img-wrap { height: 160px; }
  .article-modal__body { padding: 16px; }
  .site-header__row .btn { display: none; }
  #cart-btn { display: none !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 0.98rem !important; }
  body { font-size: 0.85rem; }
  .container { padding: 0 12px; }
  .btn { font-size: 0.82rem; padding: 9px 14px; }
  .blog-card__title { font-size: 0.95rem; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.2rem !important; }
  h2 { font-size: 1.05rem !important; }
  h3 { font-size: 0.92rem !important; }
  .container { padding: 0 10px; }
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--surface-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.05);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Article Modal */
.article-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.article-modal-overlay.is-open {
  display: flex;
}
.article-modal {
  background: var(--surface-color);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  position: relative;
  border: 1px solid var(--border-color);
  animation: modalIn 0.3s ease;
}
.article-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}
.article-modal__close:hover {
  background: var(--primary-color);
  color: #000;
}
.article-modal__img-wrap {
  width: 100%;
  height: 240px;
  position: relative;
}
.article-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.article-modal__body {
  padding: 32px;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility fixes */
details summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}
details summary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
details .faq__body {
  padding: 0 16px 16px 16px;
}
