/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sarabun', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Header Styles */
.header {
  background-color: #232939;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  max-height: 60px;
  width: auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-wrapper nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}

.login-button {
  background: transparent;
  color: #dbbe28;
  border-color: #dbbe28;
}

.login-button:hover {
  background: rgba(219, 190, 40, 0.1);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 190, 40, 0.3);
}

.register-button {
  background: linear-gradient(135deg, #dbbe28 0%, #c4a824 100%);
  color: #232939;
  border-color: #dbbe28;
}

.register-button:hover {
  background: linear-gradient(135deg, #c4a824 0%, #dbbe28 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(219, 190, 40, 0.5);
}

.button-wrapper {
  display: flex;
  align-items: center;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-button svg {
  fill: #dbbe28;
}

/* Скрываем мобильное меню и кнопку на десктопе */
.mobile-menu {
  display: none;
}

/* Десктопная версия - скрываем мобильные элементы */
@media (min-width: 769px) {
  .menu-button {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-image-wrapper {
    display: none !important;
  }

  /* На десктопе hero-секция: слева текст, справа карточка */
  .hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
  }

  .hero-card-wrapper {
    display: flex !important;
  }

  /* Десктопный футер - 4 колонки в ряд */
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 3rem !important;
  }
}

/* Main Button Styles */
.main-button {
  background-color: #dbbe28;
  color: #232939;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.main-button:hover {
  background-color: #c4a824;
  color: #232939;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 190, 40, 0.3);
}

.main-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #232939 0%, #333c55 100%);
  padding: 4rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text-wrapper h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #dbbe28;
  font-weight: 500;
}

.hero-button-wrapper {
  margin-top: 1rem;
}

/* Hero Card */
.hero-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: linear-gradient(145deg, #333c55 0%, #232939 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(219, 190, 40, 0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(219, 190, 40, 0.2);
}

.card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(219, 190, 40, 0.3);
}

.card-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #dbbe28;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-rating {
  text-align: center;
  margin-bottom: 2rem;
}

.rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.rating-value {
  font-size: 2rem;
  font-weight: 700;
  color: #dbbe28;
}

.rating-max {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.stars-svg {
  width: 100px;
  height: 20px;
  color: #dbbe28;
}

.rating-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 0 0;
}

.card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(219, 190, 40, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(219, 190, 40, 0.2);
}

.feature-icon {
  font-size: 1.2rem;
}

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

.card-button {
  display: inline-block;
  background: linear-gradient(135deg, #dbbe28 0%, #c4a824 100%);
  color: #232939;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(219, 190, 40, 0.3);
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 190, 40, 0.5);
  background: linear-gradient(135deg, #c4a824 0%, #dbbe28 100%);
  color: #232939;
}

/* CTA Section */
.cta-section {
  background-color: #333c55;
  padding: 3rem 2rem;
  text-align: center;
}

/* Content Section */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: #fff;
}

.content-section h2 {
  font-size: 2.5rem;
  color: #232939;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.content-section h3 {
  font-size: 1.8rem;
  color: #333c55;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Table Styles */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #232939;
  color: #fff;
}

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: #f5f5f5;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 1rem;
  color: #555;
}

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

tbody tr:nth-child(even):hover {
  background-color: #f0f0f0;
}

/* FAQ Section */
.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #232939 0%, #dbbe28 50%, #232939 100%);
}

.faq-title {
  font-size: 2.8rem;
  color: #232939;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #dbbe28, transparent);
  border-radius: 2px;
}

.faq-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-section li {
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(219, 190, 40, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(219, 190, 40, 0.15);
}

.faq-section li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(219, 190, 40, 0.2);
}

.faq-section details {
  cursor: pointer;
}

.faq-section details[open] {
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
}

.faq-section details[open] .faq-arrow {
  transform: rotate(180deg);
  color: #dbbe28;
}

.faq-section details[open] summary {
  background: linear-gradient(135deg, rgba(219, 190, 40, 0.05) 0%, rgba(219, 190, 40, 0.02) 100%);
  border-bottom: 2px solid rgba(219, 190, 40, 0.2);
}

.faq-section summary {
  padding: 1.75rem 2rem;
  font-weight: 600;
  color: #232939;
  background-color: #fff;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  list-style: none;
}

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

.faq-section summary:hover {
  background: linear-gradient(135deg, rgba(219, 190, 40, 0.08) 0%, rgba(219, 190, 40, 0.03) 100%);
}

.faq-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(219, 190, 40, 0.15) 0%, rgba(219, 190, 40, 0.05) 100%);
  border-radius: 12px;
  border: 2px solid rgba(219, 190, 40, 0.2);
  transition: all 0.3s ease;
}

.faq-section details[open] .faq-icon {
  background: linear-gradient(135deg, rgba(219, 190, 40, 0.25) 0%, rgba(219, 190, 40, 0.15) 100%);
  border-color: rgba(219, 190, 40, 0.4);
  transform: scale(1.05);
}

.faq-question {
  font-size: 1.25rem;
  margin: 0;
  color: #232939;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.faq-arrow {
  font-size: 1.2rem;
  color: #333c55;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(219, 190, 40, 0.1);
  border-radius: 50%;
}

.faq-answer {
  padding: 0 2rem 2rem 2rem;
  background-color: transparent;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  color: #555;
  line-height: 1.9;
  margin: 0;
  font-size: 1.05rem;
  padding-left: 70px;
  position: relative;
}

.faq-answer p::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #dbbe28 0%, rgba(219, 190, 40, 0.3) 100%);
  border-radius: 2px;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #232939 0%, #1a1f2e 100%);
  color: #fff;
  padding: 4rem 2rem 2rem;
  border-top: 3px solid #dbbe28;
}

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

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(219, 190, 40, 0.2);
}

.footer-section h3 {
  font-size: 1.5rem;
  color: #dbbe28;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section h4 {
  font-size: 1.2rem;
  color: #dbbe28;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.footer-social {
  margin-top: 1.5rem;
}

.social-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.social-icon:hover {
  transform: scale(1.2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: "▶";
  color: #dbbe28;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #dbbe28;
  padding-left: 1rem;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.payment-icons {
  display: flex;
  gap: 1rem;
}

.payment-icon {
  font-size: 1.8rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: inherit;
  cursor: pointer;
}

.payment-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copyright {
  color: #1095b5;
  font-size: 0.85rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(219, 190, 40, 0.2);
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-wrap: nowrap;
    padding: 1rem;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
  }

  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    z-index: 1001;
  }

  .logo-link {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
  }

  .logo-link img {
    max-height: 35px;
  }

  .nav-wrapper {
    display: flex;
    flex-shrink: 0;
    order: 3;
  }

  .nav-wrapper nav {
    display: block;
  }

  .nav-wrapper nav ul {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Выпадающее мобильное меню */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #232939 0%, #1a1f2e 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    padding: 5rem 0 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 2px solid rgba(219, 190, 40, 0.3);
  }

  .mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
  }

  .mobile-menu-link {
    display: block;
    padding: 1.25rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(219, 190, 40, 0.1);
    transition: all 0.3s ease;
    position: relative;
  }

  .mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dbbe28;
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .mobile-menu-link:hover,
  .mobile-menu-link:active {
    background: rgba(219, 190, 40, 0.1);
    color: #dbbe28;
    padding-left: 2.5rem;
  }

  .mobile-menu-link:hover::before,
  .mobile-menu-link:active::before {
    transform: scaleY(1);
  }

  .mobile-menu-buttons {
    margin-top: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 2px solid rgba(219, 190, 40, 0.2);
  }

  .mobile-menu-button {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .mobile-menu-button.login-button {
    background: transparent;
    color: #dbbe28;
    border-color: #dbbe28;
  }

  .mobile-menu-button.login-button:hover {
    background: rgba(219, 190, 40, 0.15);
    color: #fff;
    border-color: #fff;
  }

  .mobile-menu-button.register-button {
    background: linear-gradient(135deg, #dbbe28 0%, #c4a824 100%);
    color: #232939;
    border-color: #dbbe28;
  }

  .mobile-menu-button.register-button:hover {
    background: linear-gradient(135deg, #c4a824 0%, #dbbe28 100%);
    color: #fff;
  }
}

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

  .hero-text-wrapper h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* На мобильной версии карточка уже показывается */

  .hero-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-card {
    max-width: 100%;
    padding: 1.5rem;
  }

  .card-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }


  .content-section h2 {
    font-size: 2rem;
  }

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

  .footer-payment {
    flex-direction: column;
    gap: 0.75rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .faq-section summary {
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  .faq-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-arrow {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1.5rem 1rem;
  }

  .faq-answer p {
    padding-left: 0;
    font-size: 0.95rem;
  }

  .faq-answer p::before {
    display: none;
  }

  table {
    font-size: 0.9rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
    min-height: 50vh;
  }

  .hero-text-wrapper h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .main-button.large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Link Styles */
a {
  color: #dbbe28;
  transition: color 0.3s ease;
}

a:hover {
  color: #c4a824;
}

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

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

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

