:root {
  --bg-dark: #0f1011;
  --bg-darker: #060607;
  --bg-card: rgba(26, 28, 30, 0.7);
  --yellow-yandex: #ffcc00;
  --yellow-hover: #e6b800;
  --green-datajiro: #1db954;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border-light: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
}

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

body {
  font-family:
    "Jost",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
}

.text-yellow {
  color: var(--yellow-yandex);
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 16, 17, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 1rem;
}

.brand {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
}

.topbar-brand__logo {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
}

.topbar-brand__meta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  padding-left: 14px;
  margin-left: 4px;
  line-height: 1.04;
  align-self: center;
  transform: translateY(3px);
}

.topbar-brand__meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 42px;
  background: var(--border-light);
  transform: translateY(-50%);
}

.topbar-brand__meta > span {
  display: block;
}

.brand > span:first-of-type {
  color: var(--green-datajiro);
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 2rem;
    margin-left: 1.5rem;
    margin-right: auto;
  }

  .nav a {
    font-weight: 500;
    transition: color 0.3s;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--yellow-yandex);
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.button.primary {
  background-color: var(--yellow-yandex);
  color: #000;
}

.button.primary:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
}

.button.ghost {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.button.ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar-account {
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: -3px;
}

.topbar-account__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.58rem 0.8rem;
  background-color: transparent;
  min-width: 84px;
  justify-content: center;
}

.topbar-account__summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar-account__summary::-webkit-details-marker {
  display: none;
}

.topbar-account__initials-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2ch;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-account__arrow {
  display: inline-block;
  line-height: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.topbar-account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  min-width: 210px;
  max-width: min(90vw, 240px);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(15, 16, 17, 0.98);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.topbar-account__menu-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  white-space: nowrap;
}

.topbar-account__menu-link + .topbar-account__menu-link {
  border-top: 1px solid var(--border-light);
}

.topbar-account__menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .topbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar .inner {
    height: 64px;
    gap: 6px;
  }

  .topbar .brand {
    font-size: 1.6rem;
    min-width: 0;
    line-height: 0.96;
  }

  .topbar .topbar-brand {
    gap: 0.32rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar .topbar-brand__logo {
    height: 52px;
  }

  .topbar .topbar-brand__meta {
    font-size: 1.02rem !important;
    padding-left: 10px !important;
    margin-left: 2px !important;
    line-height: 1.02 !important;
    transform: translateY(2px);
  }

  .topbar .topbar-brand__meta::before {
    height: 36px;
  }

  .topbar .driver-login-button {
    margin-left: auto;
    margin-right: -3px;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0.62rem 0.82rem !important;
    font-size: 1rem !important;
    line-height: 1;
    border-radius: 11px;
    text-align: center;
    white-space: nowrap;
    -webkit-text-size-adjust: 100%;
  }

  .topbar .topbar-account__summary {
    gap: 8px;
    padding: 0.46rem 0.74rem;
    min-width: 76px;
  }

  .topbar .topbar-account__initials-text {
    font-size: 0.94rem;
  }

  .topbar .topbar-account__menu {
    min-width: 196px;
  }
}

@media (max-width: 420px) {
  .topbar .brand {
    font-size: 1.34rem;
  }

  .topbar .topbar-brand__meta {
    font-size: 0.9rem !important;
    padding-left: 9px !important;
    margin-left: 1px !important;
    transform: translateY(2px);
  }

  .topbar .topbar-brand__logo {
    height: 44px;
  }

  .topbar .topbar-brand__meta::before {
    height: 32px;
  }

  .topbar .driver-login-button {
    padding: 0.56rem 0.74rem !important;
    font-size: 0.96rem !important;
  }

  .topbar .topbar-account__summary {
    min-width: 72px;
  }

  .topbar .topbar-account__menu {
    min-width: 184px;
  }
}

/* App Store Badges */
.app-badges {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.app-badges a {
  display: block;
  transition: transform 0.2s;
}

.app-badges a:hover {
  transform: translateY(-2px);
}

.app-badges img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .app-badges {
    flex-direction: row;
    gap: 10px;
  }

  .app-badges a {
    flex: 1;
    min-width: 0;
  }

  .app-badges img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Hero Section */
.hero {
  padding: 10rem 0 8rem;
  background: radial-gradient(circle at top right, rgba(255, 204, 0, 0.1), transparent 40%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.02), transparent 40%);
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-actions .button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
  }
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Stats */
.stats-banner {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--yellow-yandex);
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features */
.features-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 204, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Steps (Kayıt Adımları) */
.steps-container {
  margin-top: 4rem;
}

.step-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .step-row {
    flex-direction: row;
    align-items: center;
  }

  .step-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.step-number {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 204, 0, 0.1);
  margin-bottom: -40px;
}

.step-content {
  flex: 1;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--yellow-yandex);
}

/* Cities */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  justify-content: center;
}

.city-badge {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.city-badge:hover {
  background: var(--yellow-yandex);
  color: #000;
  border-color: var(--yellow-yandex);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 4rem auto 0;
}

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

.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--yellow-yandex);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  margin-top: 2rem;
}

/* Applications Form */
.application-form-section {
  padding: 6rem 0;
  background: radial-gradient(circle at bottom right, rgba(255, 204, 0, 0.05), transparent 40%);
  border-top: 1px solid var(--border-light);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

input[type="date"].form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"].form-control::-webkit-datetime-edit {
  min-width: 0;
}

input[type="date"].form-control::-webkit-date-and-time-value {
  text-align: left;
}

.form-group.form-group-date label {
  overflow-wrap: anywhere;
}

.form-control:focus {
  outline: none;
  border-color: var(--yellow-yandex);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-control::placeholder {
  color: #555;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select.form-control option {
  background: var(--bg-darker);
  color: white;
}

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.w-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .application-form-section {
    padding: 4rem 0 2.5rem;
  }

  .form-wrapper {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 0.85rem;
  }

  .form-group label {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
  }

  .form-control {
    padding: 0.78rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline-block !important;
  }
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: white;
}

.floating-whatsapp svg {
  width: 35px;
  height: 35px;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }
}

/* Form Validation Styles */
.input-error {
  border-color: #e74c3c !important;
  animation: shake 0.5s;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

/* Mobile adjustments for Taxi Animation Game */
@media (max-width: 768px) {
  .taxi-animation {
    width: 55px !important;
    height: 55px !important;
  }

  .taxi-counter-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}
