/* Карточные игры - Стили сайта */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --card-red: #C41E3A;
  --card-black: #1a1a1a;
  --card-white: #FAF7F2;
  --accent-gold: #D4AF37;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --bg-light: #f9f6f0;
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Crimson Text', serif;
  line-height: 1.8;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f9f6f0 0%, #ede8dc 100%);
  background-attachment: fixed;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--card-black) 0%, #2d2d2d 100%);
  box-shadow: 0 4px 20px var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-gold);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--card-white);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

nav {
  margin-top: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav li {
  position: relative;
}

nav li::before {
  content: '';
  position: absolute;
  left: -0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--card-red);
}

nav li:nth-child(1)::before { content: '♠'; }
nav li:nth-child(2)::before { content: '♥'; }
nav li:nth-child(3)::before { content: '♣'; }
nav li:nth-child(4)::before { content: '♦'; }
nav li:nth-child(5)::before { content: '♠'; }
nav li:nth-child(6)::before { content: '♥'; }

nav a {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--card-white);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

nav a:hover,
nav a.active {
  background: var(--card-red);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* Main Content */
main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.6s ease;
}

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

.content-card {
  background: white;
  padding: 3.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow-soft);
  border-top: 4px solid var(--card-red);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '♠';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 200px;
  color: rgba(196, 30, 58, 0.03);
  font-family: serif;
  transform: rotate(15deg);
  pointer-events: none;
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--card-black);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--card-red) 0%, var(--accent-gold) 100%);
  border-radius: 2px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--card-red);
  margin: 2.5rem 0 1.2rem 0;
  line-height: 1.3;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-black);
  margin: 2.5rem 0 1.2rem 0;
  line-height: 1.4;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--card-red);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  text-align: justify;
}

/* Image Placeholder */
.image-placeholder {
  margin: 2rem 0;
  padding: 3rem;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border: 2px dashed #999;
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-style: italic;
  font-size: 1.1rem;
}

/* Lists */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
  font-size: 1.15rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

ul li {
  list-style-type: none;
  position: relative;
  padding-left: 1.8rem;
}

ul li::before {
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

ul li:nth-child(4n+1)::before {
  content: '♠';
  color: var(--card-black);
}

ul li:nth-child(4n+2)::before {
  content: '♥';
  color: var(--card-red);
}

ul li:nth-child(4n+3)::before {
  content: '♣';
  color: var(--card-black);
}

ul li:nth-child(4n+4)::before {
  content: '♦';
  color: var(--card-red);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px var(--shadow-soft);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: linear-gradient(135deg, var(--card-black) 0%, #2d2d2d 100%);
  color: white;
}

th {
  padding: 1.2rem;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--accent-gold);
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e0e0e0;
}

tbody tr {
  background: white;
  transition: background 0.3s ease;
}

tbody tr:nth-child(even) {
  background: #fafafa;
}

tbody tr:hover {
  background: #fff5f5;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--card-black) 0%, #2d2d2d 100%);
  color: var(--card-white);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 5rem;
  border-top: 3px solid var(--accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-card {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Mobile Hamburger Menu */
  .hamburger {
    display: flex;
    margin-top: 1rem;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--card-black) 0%, #2d2d2d 100%);
    flex-direction: column;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  nav ul.active {
    max-height: 500px;
    opacity: 1;
    padding: 1rem;
  }

  nav a {
    display: block;
    text-align: left;
    width: 100%;
  }

  nav li::before {
    left: 0.5rem;
  }

  table {
    font-size: 0.95rem;
  }

  th, td {
    padding: 0.8rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

/* Video Button Styles */
.video-button-container a:hover {
  background: #a01830 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6) !important;
}

/* FAQ Accordion Styles */
.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow-soft);
  overflow: hidden;
  border-left: 4px solid var(--card-red);
}

.faq-question {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--card-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
}

.faq-question::after {
  content: '+';
  font-size: 2rem;
  font-weight: bold;
  color: var(--card-red);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-answer p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Card-style Lists */
.card-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-list li {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-soft);
  border-top: 3px solid var(--card-red);
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.card-list li::before {
  content: '♦';
  position: static;
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--card-red);
}

.card-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}
