* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f8fafc;
  color: #222;
  line-height: 1.5;
}

a {
  color: #0BADEC;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.message.success { background: #28a745; }
.message.error { background: #dc3545; }

/* Header */
.landing-header {
  background: #fff;
  border-bottom: 1px solid #eef1f3;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0BADEC;
  font-weight: 700;
  font-size: 20px;
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-nav a {
  margin-left: 20px;
  font-size: 14px;
  color: #555;
}

.header-nav a:hover {
  color: #0BADEC;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0BADEC 0%, #0887b8 100%);
  color: #fff;
  padding: 64px 0;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero-content p {
  font-size: 18px;
  margin: 0 0 32px;
  opacity: 0.95;
}

.stats {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
}

/* Register card */
.register-card {
  flex: 0 0 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 32px;
  color: #222;
}

.register-card h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.field input,
.field select,
.phone-input-wrap {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4dbe0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.phone-input-wrap:focus-within {
  outline: none;
  border-color: #0BADEC;
  box-shadow: 0 0 0 3px rgba(11,173,236,0.15);
}

.hint {
  font-size: 13px;
  color: #666;
  margin: 6px 0 0;
}

.hint.error {
  color: #dc3545;
}

/* Phone input */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  padding-left: 14px;
}

.phone-prefix {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  margin-right: 6px;
}

.phone-input-wrap input.phone-input {
  border: none;
  box-shadow: none;
  padding-left: 0;
  flex: 1;
}

.phone-input-wrap input.phone-input:focus {
  border: none;
  box-shadow: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary {
  background: #0BADEC;
  color: #fff;
}

.btn-primary:hover {
  background: #099ace;
}

.btn:disabled {
  background: #b2dcee;
  cursor: not-allowed;
}

.btn-secondary {
  background: #eef1f3;
  color: #444;
}

.btn-secondary:hover {
  background: #e1e7ea;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
  width: auto;
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #eef1f3;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: none;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active,
.auth-tab:hover {
  color: #0BADEC;
  border-bottom-color: #0BADEC;
}

.auth-form.hidden {
  display: none !important;
}

.form-switch {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: 12px;
}

.form-switch a {
  color: #0BADEC;
  text-decoration: none;
}

.form-switch a:hover {
  text-decoration: underline;
}

/* Captcha */
.math-captcha {
  background: #f8fbfc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.math-captcha input {
  margin-top: 8px;
  width: 100%;
}

/* City search */
.city-search-wrap {
  position: relative;
}

.city-search-wrap input {
  width: 100%;
}

#city-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d4dbe0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

#city-results li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

#city-results li:hover,
#city-results li.selected-city {
  background: #f0f8ff;
}

#city-selected {
  margin-top: 8px;
  font-size: 14px;
  color: #0BADEC;
  font-weight: 500;
}

/* Consent */
.consent .checkbox {
  display: block;
  font-size: 13px;
  color: #555;
  font-weight: 400;
  line-height: 1.4;
}

.consent .checkbox input {
  display: inline-block;
  vertical-align: middle;
  width: auto;
  margin-right: 6px;
  margin-top: -2px;
}

.consent .checkbox a {
  display: inline;
  white-space: nowrap;
  text-decoration: underline;
}

/* Badges */
.badges-section {
  padding: 48px 0;
  text-align: center;
  background: #fff;
}

.badges-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 20px;
}

.store-badges {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  vertical-align: middle;
}

.store-badges a,
.store-badges img {
  display: inline-block;
  height: 48px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

.rustore-badge {
  opacity: 0.9;
}

/* Footer */
.landing-footer {
  background: #fff;
  border-top: 1px solid #eef1f3;
  padding: 32px 0;
}

.footer-legal {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

/* Legal pages */
.legal-page {
  background: #fff;
}

.legal-content {
  padding: 48px 24px;
  max-width: 800px;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 24px;
}

.legal-text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.legal-text p {
  margin: 0 0 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .register-card {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .header-nav a {
    margin: 0 10px;
  }

  .hero {
    padding: 40px 0;
  }

  .register-card {
    padding: 24px;
    border-radius: 0;
  }

  .store-badges img {
    height: 40px;
  }
}
