* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px;
}

header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #e6f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.logo:hover::after {
  width: 100%;
}

.logo:hover {
  transform: translateY(-2px);
}

/* Анімація для логотипу */
@keyframes logoGlow {
  0%,
  100% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(255, 255, 255, 0.1);
  }

  50% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(255, 255, 255, 0.2);
  }
}

.logo {
  animation: logoGlow 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

.page {
  display: none;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page.active {
  display: block;
}

h1,
h2 {
  color: #4a5568;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

input {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

input[type="number"],
input[type="text"],
input[type="tel"] {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: #667eea;
}

/* Стилі для полів з валідацією */
.input-validation-warning {
  border-color: #f6ad55 !important;
  background-color: #fffaf0;
}

.validation-hint {
  font-size: 0.85rem;
  color: #d69e2e;
  margin-top: 0.25rem;
  font-style: italic;
}

.order-list {
  margin-bottom: 2rem;
}

.order-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a67d8;
}

.btn-success {
  background: #48bb78;
  color: white;
}

.btn-success:hover {
  background: #38a169;
}

.btn-danger {
  background: #f56565;
  color: white;
}

.btn-danger:hover {
  background: #e53e3e;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
}

.faq-question {
  font-weight: bold;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.total-order {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1rem 0;
  white-space: pre-line;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 0.7rem;
}

.lang-switcher select option {
  background: #4a5568;
  color: white;
}

@media (max-width: 768px) {
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.footer-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.footer-content-compact {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 200px;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-center {
  display: flex;
  justify-content: center;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-logo-compact h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-nav-compact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.footer-nav-compact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.footer-nav-compact a:hover {
  transform: translateY(-1px);
}

.footer-contact-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.contact-btn {
  display: inline-flex;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.telegram-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-right: 0.5rem;
}

.contact-icon {
  font-size: 1.3rem;
}

.crypto-badge {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  text-align: center;
}

.crypto-badge:hover {
  transform: translateY(-2px);
}

.footer-bottom-compact {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
}

.footer-copy-compact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer-copy-compact span:first-child {
  font-weight: 600;
}

@media (max-width: 968px) {
  .footer-content-compact {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-right {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
  }

  .footer-contact-compact {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-nav-compact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-nav-compact a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 568px) {
  .footer-compact {
    padding: 1.5rem 0 1rem;
  }

  .footer-content-compact {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
  }

  .footer-logo-compact h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  .footer-stats-inline {
    justify-content: center;
    gap: 0.5rem;
  }

  .stat-compact {
    font-size: 0.85rem;
  }

  .footer-nav-compact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-nav-compact a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .footer-contact-compact {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-copy-compact {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .footer-stats-inline {
    flex-direction: column;
    gap: 0.3rem;
  }

  .stat-separator {
    display: none;
  }

  .footer-nav-compact a {
    min-width: 80px;
    text-align: center;
  }
}

.loader {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #667eea;
  font-size: 1.2rem;
}

.loader.active {
  display: block;
}

.order-headers {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.order-header {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  text-align: left;
  /* Центрируем заголовки */
}

.order-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.order-item input[type="number"] {
  text-align: center;
  /* Центрируем текст в полях ввода чисел */
}

@media (max-width: 768px) {
  .order-headers {
    display: none;
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .order-item input {
    margin-bottom: 0.5rem;
    text-align: left;
    /* На мобильных возвращаем левое выравнивание */
  }
}

.notice-text {
  color: #dc2626;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
