/* Это по закону — Payment Landing Static Site */
/* Color system based on the app's light theme */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.1);
  --primary-lighter: rgba(37, 99, 235, 0.05);
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --background: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #f8fafc;
  --destructive: #ef4444;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 42rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  gap: 0.5rem;
}

.header-back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 3.5rem;
  gap: 0.75rem;
}

.header-back a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-xl);
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.2s;
}

.header-back a:hover {
  background: var(--muted);
}

.header-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
}

.header-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.header-page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  margin-bottom: 1rem;
}

.hero-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 24rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* Features */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary);
}

.feature-text h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.feature-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Price */
.price-card {
  text-align: center;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.price-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Delivery info */
.delivery-card {
  background: var(--primary-lighter);
  border-color: rgba(37, 99, 235, 0.15);
}

.delivery-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.delivery-content svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.delivery-content h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.delivery-content p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Consent */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
}

.consent-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  border-radius: 0.25rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.consent-label span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.consent-label a {
  color: var(--primary);
  text-decoration: none;
}

.consent-label a:hover {
  text-decoration: underline;
}

/* Pay button */
.pay-button {
  width: 100%;
  height: 3.25rem;
  border: none;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: background 0.2s, transform 0.1s;
}

.pay-button:hover:not(:disabled) {
  background: var(--primary-hover);
}

.pay-button:active:not(:disabled) {
  transform: scale(0.98);
}

.pay-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pay-button svg {
  width: 1rem;
  height: 1rem;
}

/* Payment badges */
.payment-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.payment-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.payment-note {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(100, 116, 139, 0.7);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* FAQ */
.faq-section {
  margin-bottom: 2rem;
}

.faq-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.faq-question svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-question.open svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: none;
}

.faq-answer.open {
  display: block;
}

/* Legal links */
.legal-links {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(100, 116, 139, 0.6);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-links a {
  color: rgba(100, 116, 139, 0.6);
  text-decoration: underline;
}

.legal-links a:hover {
  color: var(--foreground);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--muted);
  margin-top: auto;
}

.footer-inner {
  padding: 1.25rem 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-links .separator {
  color: var(--border);
}

.footer-info {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(100, 116, 139, 0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-copyright {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(100, 116, 139, 0.4);
  margin-top: 0.5rem;
}

/* Legal pages */
.legal-content {
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.9);
}

.legal-content .date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.legal-content p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Contacts page */
.contacts-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.contacts-hero h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contacts-hero p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-info h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-info p,
.contact-info a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.disclaimer-box {
  padding: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--muted);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.disclaimer-box p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
