/* ============================================
   DRIVERS PAGE - EV Charging App for Drivers
   ============================================ */

/* ============================================
   HERO SECTION - DRIVERS
   ============================================ */
.drivers-hero {
  position: relative;
  background: linear-gradient(to right, #1F1F1F 0%, #3A3A3A 55.59%);
  min-height: 580px;
  overflow: hidden;
}

.drivers-hero .container {
  padding: 0;
}

.drivers-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  min-height: 580px;
}

.drivers-hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 0;
  align-items: flex-start; /* Щоб елементи не розтягувались */
}

.drivers-hero__title {
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  font-weight: var(--font-bold);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  text-transform: uppercase;
  color: var(--color-green-60);
  margin: 0;
}

.drivers-hero__subtitle {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: var(--body-line-height);
  color: var(--color-white);
  margin: 0;
}

.drivers-hero__buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.drivers-hero__buttons .app-btn--filled {
  background-color: transparent;
}

/* Phone mockup */
.drivers-hero__phone {
    position: relative;
    flex-shrink: 0;
    width: 350px;
    height: 584px;
    margin-right: -40px;
}

/* Ellipse 26 - сірий круг за телефоном */
.drivers-hero__platform {
  position: absolute;
  width: 318px;
  height: 318px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-gray-17);
  border-radius: 50%;
  z-index: 0;
}

.drivers-hero__phone-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Decorative element */
.drivers-hero__decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.drivers-hero__decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Desktop decor */
.drivers-hero__decor--desktop {
  right: -30px;
  bottom: 112px;
  width: 776.911px;
  height: 776.911px;
}

/* Mobile decor - hidden on desktop */
.drivers-hero__decor--mobile {
  display: none;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1279px) {
  .drivers-hero__content {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
    min-height: auto;
  }

  .drivers-hero__text {
    min-width: 100%;
    max-width: 100%;
    padding: 40px 0 0;
    align-items: center;
  }

  .drivers-hero__buttons {
    justify-content: center;
  }

  .drivers-hero__phone {
    width: 350px;
    height: 460px;
    margin-right: 0;
  }

  .drivers-hero__platform {
    width: 250px;
    height: 250px;
  }

  .drivers-hero__decor {
    right: -350px;
    bottom: 50px;
    width: 500px;
    height: 500px;
    opacity: 0.5;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 767px) {
  .drivers-hero {
    min-height: auto;
  }

  .drivers-hero .container {
    padding: 0 20px;
  }

  .drivers-hero__content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 40px 0 100px;
    gap: 40px;
  }

  .drivers-hero__text {
    gap: 40px;
    padding: 0;
    align-items: flex-start;
  }

  .drivers-hero__title {
    font-size: var(--h1-mobile-size);
    line-height: var(--h1-mobile-line-height);
    letter-spacing: var(--h1-mobile-letter-spacing);
  }

  .drivers-hero__buttons {
    flex-direction: row;
    gap: 16px;
  }

  .drivers-hero__buttons .app-btn {
    flex: 0 0 auto;
  }

  .drivers-hero__phone {
    width: 280px;
    height: 500px;
    margin-right: 0;
    margin-bottom: -80px;
    align-self: center; /* Телефон по центру */
  }

  .drivers-hero__phone-img {
    object-fit: contain;
    object-position: top center;
  }

  .drivers-hero__platform {
    width: 260px;
    height: 260px;
  }

  /* Hide desktop decor, show mobile decor */
  .drivers-hero__decor--desktop {
    display: none;
  }

  .drivers-hero__decor--mobile {
    display: block;
    width: 600px;
    height: 770px;
    right: -105px;
    bottom: -140px;
    opacity: 1;
  }
}

/* ============================================
   EASY CHARGE SECTION
   ============================================ */
.easy-charge {
  padding: 80px 0;
  background-color: var(--color-white);
}

.easy-charge__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-gray-20);
  margin: 0 0 40px;
}

.easy-charge__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.easy-charge__card {
  background-color: var(--color-gray-95);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.easy-charge__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.easy-charge__icon {
  background-color: var(--color-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.easy-charge__icon svg,
.easy-charge__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.easy-charge__card-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-bold);
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
  flex: 1;
  min-width: 130px;
}

.easy-charge__card-text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .easy-charge__grid {
    gap: 20px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .easy-charge {
    padding: 60px 0;
  }

  .easy-charge__title {
    margin-bottom: 30px;
  }

  .easy-charge__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   WHY SECTION - Features List
   ============================================ */
.why-section {
  background-color: var(--color-gray-95);
  position: relative;
  min-height: 520px;
}

.why-section__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.why-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.why-section__image::before,
.why-section__image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  pointer-events: none;
}

.why-section__image::before {
  top: 0;
  background: linear-gradient(to bottom, #f1f3f5 0%, transparent 100%);
}

.why-section__image::after {
  bottom: 0;
  background: linear-gradient(to top, #f1f3f5 0%, transparent 100%);
}

.why-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
}

.why-section__spacer {
  /* Empty space for image */
}

.why-section__content {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start; /* Важливо! Щоб кнопка не розтягувалась */
}

.why-section__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-gray-20);
  margin: 0;
}

.why-section__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-section__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-section__item::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-green-60);
  border-radius: 50%;
  flex-shrink: 0;
}

.why-section__item-text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .why-section {
    min-height: auto;
  }

  .why-section__image {
    position: relative;
    width: 100%;
    height: 400px;
  }

  .why-section__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .why-section__spacer {
    display: none;
  }

  .why-section__content {
    padding: 40px 0;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .why-section__image {
    height: 520px;
  }

  .why-section__content {
    padding: 40px 0;
    gap: 24px;
  }

  .why-section__list {
    gap: 16px;
  }
}

/* ============================================
   TRUST SECTION - Stats Cards
   ============================================ */
.trust-section {
  position: relative;
  padding: 100px 0;
}

.trust-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.trust-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trust-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(58, 58, 58, 0.7);
}

.trust-section .container {
  position: relative;
  z-index: 1;
}

.trust-section__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 40px;
}

.trust-section__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-card {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background: linear-gradient(to right, rgba(58, 58, 58, 0.6), rgba(31, 31, 31, 0.6));
  border: 1px solid #666;
  border-radius: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-align: center;
}

.trust-card__number {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-green-60);
  margin: 0 0 20px;
}

.trust-card__text {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
  margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .trust-section {
    padding: 80px 0;
  }

  .trust-card {
    min-width: 280px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .trust-section {
    padding: 60px 0;
  }

  .trust-section__title {
    margin-bottom: 30px;
  }

  .trust-section__grid {
    gap: 20px;
  }

  .trust-card {
    min-width: 100%;
  }
}

/* ============================================
   REVIEWS SECTION - User Testimonials Carousel
   ============================================ */
.reviews-section {
  padding: 80px 0;
}

.reviews-section__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 40px;
}

.reviews-section__carousel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.reviews-section__slider {
  position: relative;
  overflow: hidden;
}

.reviews-section__track {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  transition: transform 0.5s ease-in-out;
}

/* Groups for mobile carousel - on desktop, groups are transparent */
.reviews-section__group {
  display: contents; /* On desktop, groups don't affect layout */
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  background-color: var(--color-gray-95);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: fit-content;
}

.reviews-section__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.reviews-section__arrow {
  width: 32px;
  height: 32px;
  background-color: var(--color-gray-95);
  border: 1px solid var(--color-green-60);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.reviews-section__arrow:hover {
  background: linear-gradient(90deg, rgba(61, 208, 120, 0.2) 0%, rgba(61, 208, 120, 0.2) 100%), var(--color-gray-95);
}

.reviews-section__arrow svg {
  width: 8px;
  height: 12px;
  stroke: var(--text-primary);
  transition: var(--transition-fast);
}

.reviews-section__arrow--next svg {
  transform: rotate(180deg);
}

/* Dots for mobile */
.reviews-section__dots {
  display: none; /* Приховано на десктопі */
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reviews-section__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gray-30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reviews-section__dot--active {
  background-color: var(--color-green-60);
}

.review-card__quote {
  font-family: var(--font-primary);
  font-size: var(--body-small-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #b0b2b5;
}

.review-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.review-card__user {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.review-card__avatar {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__avatar--placeholder {
  background-color: #ffb573;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-card__avatar-letter {
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: var(--font-bold);
  line-height: 1.5;
  color: #000;
}

.review-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-card__name {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.review-card__source {
  font-family: var(--font-primary);
  font-size: var(--body-small-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: #808080;
  margin: 0;
}

.review-card__stars {
  display: flex;
  align-items: center;
  gap: 2.647px;
  flex-shrink: 0;
}

.review-card__star {
  width: 16px;
  height: 16px;
  fill: var(--color-green-60);
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .reviews-section {
    padding: 60px 0;
  }

  .review-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 280px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .reviews-section {
    padding: 40px 0;
  }

  .reviews-section__title {
    margin-bottom: 30px;
  }

  .reviews-section__slider {
    overflow: hidden;
  }

  .reviews-section__track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  /* Groups become flex columns on mobile */
  .reviews-section__group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 100%;
    min-width: 100%;
    justify-content: flex-start; /* Cards align to top */
  }

  .review-card {
    min-width: 100%;
  }

  .reviews-section__nav {
    display: none;
  }

  .reviews-section__dots {
    display: flex;
  }
}

/* ============================================
   MAP SECTION - Find Station
   ============================================ */
.map-section {
  background-color: var(--color-gray-95);
  padding: 80px 0;
}

.map-section__content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.map-section__text {
  flex: 0 0 auto;
  width: 545px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.map-section__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

.map-section__description {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.map-section__map {
  flex: 1;
  position: relative;
  height: 323px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-white);
  cursor: pointer;
}

.map-section__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-section__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-section__map:hover .map-section__overlay {
  opacity: 1;
}

.map-section__overlay-icon {
  width: 189px;
  height: 189px;
}

.map-section__overlay-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .map-section {
    padding: 60px 0;
  }

  .map-section__text {
    width: 400px;
  }

  .map-section__map {
    height: 280px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .map-section {
    padding: 40px 0;
  }

  .map-section__content {
    flex-direction: column;
    gap: 30px;
  }

  .map-section__text {
    width: 100%;
    gap: 24px;
  }

  .map-section__map {
    width: 100%;
    height: 250px;
  }
}

/* ============================================
   DRIVERS CTA SECTION - Download App
   ============================================ */
.drivers-cta {
  position: relative;
  height: 571px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.drivers-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.drivers-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Зміщення вниз для показу дівчини */
}

.drivers-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(58, 58, 58, 0.3);
}

.drivers-cta .container {
  position: relative;
  z-index: 1;
}

.drivers-cta__card {
  width: 600px;
  max-width: 100%;
  padding: 40px;
  background: linear-gradient(to right, rgba(58, 58, 58, 0.6), rgba(31, 31, 31, 0.6));
  border: 1px solid #666;
  border-radius: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.drivers-cta__title {
  font-family: var(--font-primary);
  font-size: var(--h3-alt-size);
  font-weight: var(--h3-alt-weight);
  line-height: var(--h3-alt-line-height);
  letter-spacing: var(--h3-alt-letter-spacing);
  color: var(--color-white);
  margin: 0;
}

.drivers-cta__description {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
  margin: 0;
}

.drivers-cta__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drivers-cta__buttons {
  display: flex;
  gap: 20px;
}

.drivers-cta__buttons .app-btn--filled {
  background-color: transparent;
}

/* Responsive - Tablet */
@media (max-width: 1279px) {
  .drivers-cta {
    height: auto;
    min-height: 450px;
    padding: 60px 0;
  }

  .drivers-cta__card {
    padding: 30px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .drivers-cta {
    min-height: 400px;
    padding: 40px 0;
  }

  .drivers-cta__bg img {
    object-position: 70% 30%;
  }

  .drivers-cta__card {
    padding: 24px;
    gap: 24px;
  }

  .drivers-cta__buttons {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .drivers-cta__buttons .app-btn {
    width: 50%;
  }
}

