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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo__icon {
  flex-shrink: 0;
  display: block;
}

.logo__text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 0;
}

.layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

/* Left block */
.left-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
}

.left-block h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 90px;
}

.cta-row__promo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.promo-code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  flex-shrink: 0;
}

.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-hover);
}

/* Stats */
.stats {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 90px;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-number,
.stat-suffix {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-suffix {
  margin-left: 2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.gallery img {
  flex: 1;
  min-width: 0;
  height: 32px;
  width: auto;
  max-width: calc((100% - 70px) / 8);
  object-fit: contain;
  object-position: center;
}

/* Right block */
.right-block {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scroll-list {
  list-style: none;
  max-height: calc(6 * 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.scroll-list::-webkit-scrollbar {
  width: 4px;
}

.scroll-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.list-item__content {
  flex: 1;
  min-width: 0;
}

.list-item__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.list-item__text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.footer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  text-align: center;
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.modal__close:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.modal__img {
  width: 300px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal {
  position: relative;
}

/* Responsive */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery img {
    max-width: calc((100% - 30px) / 4);
    flex: 0 0 calc((100% - 30px) / 4);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 0 16px;
  }

  .header {
    padding: 16px 0;
  }

  .header__actions {
    gap: 8px;
  }

  .header__actions .btn {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .page__center {
    padding: 20px 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-row__promo {
    justify-content: center;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
  }

  .gallery img {
    max-width: calc((100% - 20px) / 4);
    flex: 0 0 calc((100% - 20px) / 4);
    height: 28px;
  }

  .list-item {
    flex-wrap: wrap;
    padding: 8px;
  }

  .list-item .btn {
    width: 100%;
    margin-top: 4px;
  }

  .scroll-list {
    max-height: calc(6 * 120px);
  }
}
