:root {
  --gap-logo-to-previews: 36px;
  --gap-previews-to-first-button: 52px;
  --preview-width: 129px;
  --preview-height: 257px;
  --container-max: 430px;
  --bg: #16151A;
  --text: #D9D9D9;
  --line: #D9D9D9;
  --footer-text: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 80%;
  max-width: 300px;
  display: block;
}

.previews {
  display: flex;
  gap: 10px;
  margin-top: var(--gap-logo-to-previews);
}

.preview-item {
  width: var(--preview-width);
  height: var(--preview-height);
  border-radius: 10px;
  background: linear-gradient(100deg, #D9D9D9 30%, #e0e0e0 50%, #D9D9D9 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.first-buttons-block {
  width: 100%;
  margin-top: var(--gap-previews-to-first-button);
}

.button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 35px;
  font-size: 18px;
  text-align: center;
  color: white;
}

.apple { background: white; color: black; }
.facebook { background: #1877F2; }
.instagram { background: linear-gradient(90deg, #F9CE34, #EE2A7B, #6228D7); }
.snapchat { background: #FFFC00; color: black; }
.discord { background: #5662F6; margin-bottom: 34px;}

.line-local {
  width: 100%;
  height: 2px;
  background-color: var(--line);
  margin: 16px 0;
}

.full-line {
  width: 100vw;
  height: 2px;
  background-color: var(--line);
  margin-bottom: 16px;
}

.terms {
  font-size: 14px;
  text-align: center;
  margin: 12px 0 30px;
  line-height: 1.4;
}

f.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  color: var(--footer-text);
  margin-bottom: 32px;
  margin-top: 32px;
}

.footer-grid {
  display: flex;
  gap: 80px;
  max-width: 800px;
  width: 100%;
  justify-content: center;
  margin-bottom: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Модалки */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  width: 375px;
  background: #111215;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  color: #D9D9D9;
  font-family: Roboto, sans-serif;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #D9D9D9;
  cursor: pointer;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
}

.modal-field {
  display: flex;
  align-items: center;
  background: #16151A;
  border: 2px solid #0E0F12;
  border-radius: 20px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.modal-icon {
  margin-right: 12px;
  font-size: 26px;
  color: #D6D6D6;
  width: 26px;
  height: 26px;
}

.modal-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #D6D6D6;
  font-size: 16px;
  outline: none;
}

.modal-description {
  font-size: 15px;
  color: #D9D9D9;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.4;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-terms {
  font-size: 14px;
  text-align: center;
  margin: 20px 0;
  line-height: 1.4;
}

.modal-submit {
  width: 100%;
  background: #2699F7;
  border: 1px solid #154C79;
  border-radius: 13px;
  padding: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #D9D9D9;
  cursor: pointer;
}

.code-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.code-inputs input {
  width: 48px;
  height: 55px;
  background: #16151A;
  border: 2px solid #0E0F12;
  border-radius: 19px;
  text-align: center;
  font-size: 24px;
  color: #D6D6D6;
}

.code-inputs input:focus {
  border-color: #2699F7;
  box-shadow: 0 0 5px #2699F7;
}

@media (max-width: 430px) {
  .button {
    font-size: 16px;
    padding: 10px;
  }

  .preview-item {
    height: 200px;
  }

  .footer-grid {
    column-gap: 16px;
    row-gap: 13px;
  }
}
