/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B35;
  --secondary-color: #F7931E;
  --accent-color: #FFD23F;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1e;
  --light-bg: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --border-color: #2a2a3e;
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFD23F 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Header Styles */
.main-header {
  background: var(--gradient-dark);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-wrapper {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
  color: var(--accent-color);
}

.logo-icon {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-image {
  transform: scale(1.1);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--accent-color);
  line-height: 1.3;
}

section h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
  line-height: 1.4;
  font-weight: 600;
}

section h3:first-of-type {
  margin-top: 0;
}

section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

section li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

section strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Banner Styles */
.banner-container {
  margin: 3rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.banner-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.banner-container a {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.banner-container a:hover {
  transform: scale(1.02);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--gradient-primary);
  position: relative;
  transition: transform 0.3s ease;
}

.banner-container a:hover .banner-image {
  transform: scale(1.02);
}

/* Banner Side Styles */
.advantages-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.advantages-text {
  flex: 1;
  min-width: 0;
}

.banner-side-container {
  flex-shrink: 0;
  width: 300px;
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
}

.banner-side-container a {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.banner-side-container a:hover {
  transform: scale(1.05);
}

.banner-side-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.banner-side-container a:hover .banner-side-image {
  transform: scale(1.05);
}

.banner-placeholder {
  width: 100%;
  min-height: 300px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--dark-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

table thead {
  background: var(--gradient-primary);
}

table th {
  padding: 1.25rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

table td {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  font-size: 1rem;
}

table tbody tr {
  transition: background 0.3s ease;
}

table tbody tr:hover {
  background: rgba(255, 107, 53, 0.1);
}

table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer Styles */
.main-footer {
  background: var(--gradient-dark);
  border-top: 2px solid var(--border-color);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-right: 0.5rem;
}

.footer-logo-icon {
  font-size: 2rem;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-warning {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: calc(100vw - 40px);
    max-width: 300px;
    height: 100vh;
    max-height: 100vh;
    background: var(--dark-bg);
    border-left: 2px solid var(--border-color);
    transition: right 0.3s ease;
    padding: 5rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .main-nav.active {
    right: 0;
  }

  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
  }

  main {
    padding: 2rem 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  section h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.75rem;
  }

  section h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
  }

  section p,
  section li {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .banner-placeholder {
    min-height: 200px;
    font-size: 1.2rem;
    padding: 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 0.75rem;
  }

  .advantages-content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .banner-side-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .banner-side-image {
    max-width: 100%;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }

  .promo-banner {
    padding: 0.75rem;
  }

  .promo-banner-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .promo-banner-text {
    font-size: 0.9rem;
    justify-content: center;
  }

  .promo-banner-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-link {
    font-size: 1.25rem;
  }

  .logo-image {
    height: 40px;
  }

  .logo-icon {
    font-size: 1.5rem;
  }

  section h1 {
    font-size: 1.75rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  section h3 {
    font-size: 1.1rem;
  }

  .banner-placeholder {
    min-height: 150px;
    font-size: 1rem;
  }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.scroll-to-top:active {
  transform: translateY(-3px) scale(1.05);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Promo Banner */
.promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--gradient-dark);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.promo-banner.visible {
  transform: translateY(0);
}

.promo-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-banner-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.promo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.promo-text {
  line-height: 1.4;
}

.promo-banner-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.promo-banner-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #FF7B45 0%, #F8A32E 50%, #FFD94F 100%);
}

.promo-banner-button:active {
  transform: translateY(0);
}

/* 404 Page Styles */
.back-home-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.back-home-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Print Styles */
@media print {
  .main-header,
  .main-footer,
  .scroll-to-top {
    display: none;
  }

  main {
    padding: 1rem;
  }

  section {
    page-break-inside: avoid;
  }
}

