@import url('https://static.tildacdn.ink/css/fonts-tildasans.css');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'TildaSans', Arial, sans-serif;
  color: #ffffff;
  background-color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.section-title--center {
  text-align: center;
}

.white {
  color: #ffffff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 60px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: #ffd014;
  color: #000000;
}

.btn--primary:hover {
  background-color: #e6bb00;
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background-color: #000000;
  color: #ffffff;
  border-radius: 5px;
}

.btn--dark:hover {
  background-color: #333333;
}

.btn--sm {
  min-height: auto;
  padding: 8.4px 15px;
  font-size: 13px;
}

.btn--rounded {
  border-radius: 30px;
}

.btn-text {
  color: #ffd014;
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.btn-text:hover {
  opacity: 0.8;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000 url('../img/hero-bg.png') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.70), rgba(0,0,0,0.40));
}

.hero .container {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
}

.hero__content {
  display: table-cell;
  vertical-align: middle;
  height: 100vh;
  width: 760px;
  max-width: 760px;
  text-align: left;
  padding: 42px 0 42px 20px;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: 1px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 62px;
  font-weight: 800;
  color: #ffd014;
  line-height: 1.23;
}

.hero__company {
  color: #ffd014;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hero__inn {
  font-size: 20px;
  color: #ffd014;
  font-weight: 600;
  line-height: 1.23;
}

.hero__subtitle {
  font-size: inherit;
  font-weight: inherit;
  color: #ffffff;
  line-height: inherit;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 60px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
}

.hero__buttons .btn {
  border-radius: 50px;
  padding: 18.8px 60px;
}

/* ===== ADVANTAGES ===== */
.advantages {
  padding: 0;
}

.advantages {
  overflow: hidden;
}

.advantages .container {
  overflow: visible;
}

.advantages .section-title {
  padding-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.advantages__grid {
  display: flex;
  align-items: flex-start;
}

.advantages__list {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 720px;
  max-width: 720px;
  row-gap: 20px;
}

.advantage {
  display: flex;
  flex-direction: column;
  width: 360px;
  padding: 0 40px 0 0;
}

.advantage__icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
}

.advantage__icon img {
  width: 70px;
  height: 70px;
}

.advantage__text h3 {
  font-size: 20px;
  font-weight: 600;
  padding-top: 20px;
  margin-bottom: 0;
  line-height: 1.35;
}

.advantage__text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 23.25px;
  margin-top: 15px;
  color: #ffffff;
}

.advantages__image {
  flex: 0 0 340px;
  max-width: 340px;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  margin-left: auto;
  margin-right: -40px;
  border-radius: 8px;
  align-self: flex-start;
}

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

/* ===== CONSULTATION ===== */
.consultation {
  padding: 0;
}

.consultation .section-title {
  padding-bottom: 30px;
}

.consultation__subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
  color: #ffffff;
  line-height: 36px;
}

.consultation__form {
  display: flex;
  gap: 25px 20px;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
}

.consultation__form input {
  flex: 1;
  min-width: 200px;
  height: 60px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  outline: none;
}

/* intl-tel-input dropdown dark theme */
.iti__dropdown-content {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
}

.iti__search-input {
  background: #2a2a2a !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

.iti__search-input::placeholder {
  color: #999 !important;
}

.iti__country-list {
  background: #1a1a1a !important;
}

.iti__country {
  color: #ffffff !important;
}

.iti__country:hover,
.iti__country--highlight {
  background: #333333 !important;
}

.iti__dial-code {
  color: #cccccc !important;
}

.consultation__form .iti__selected-dial-code {
  color: #000000;
}

.contacts__form .iti__selected-dial-code {
  color: #ffffff;
}

/* intl-tel-input integration */
.consultation__form .iti {
  flex: 1.5;
  min-width: 280px;
}

.consultation__form .iti input,
.contacts__form .iti input {
  width: 100%;
}

.contacts__form .iti {
  width: 100%;
}

.contacts__form .iti input {
  padding-left: 52px;
  border: none;
  border-bottom: 2px solid #999999;
  background: transparent;
  color: #ffffff;
  height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.consultation__form input::placeholder {
  color: #000000;
  opacity: 0.5;
}

.consultation__form .btn {
  min-width: 200px;
  font-size: 18px;
  border-radius: 0;
}

.form-error {
  display: block;
  color: #ff4444;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}

.input-error {
  border-color: #ff4444 !important;
}

.contacts__form .input-error {
  border-bottom-color: #ff4444 !important;
}

.form-success {
  text-align: center;
  padding: 30px;
}

.form-success h3 {
  font-size: 24px;
  color: #ffd014;
  margin-bottom: 10px;
}

/* ===== PROCESS ===== */
.process {
  padding: 0;
  position: relative;
}

.process__grid.container {
  max-width: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.process__image {
  flex: 0 0 50%;
  overflow: hidden;
  position: relative;
}

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

.process__content {
  flex: 0 0 50%;
  padding-left: 40px;
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
}

.process .section-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.23;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.process__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 23px;
}

.process__check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 28px;
  height: 28px;
  background: #ffd014;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__check svg {
  width: 16px;
  height: 16px;
}

.process__check svg path {
  stroke: #000000;
  stroke-width: 3;
}

.process__step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.35;
}

.process__step p {
  font-size: 18px;
  font-weight: 300;
  line-height: 27.9px;
  color: #ffffff;
}

/* ===== CARS ===== */
.cars {
  padding: 0;
}

.cars .section-title {
  padding-bottom: 50px;
}

.cars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.car-card {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.car-card__image {
  position: relative;
  padding-bottom: 300px;
  overflow: hidden;
}

.car-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card__content {
  padding: 27px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 27px;
}

.car-card__specs {
  font-size: 14px;
  font-weight: 300;
  line-height: 21.7px;
  margin-top: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.car-card__specs p {
  margin-bottom: 0;
}

.car-card .btn {
  align-self: flex-start;
  margin-bottom: 8px;
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 0;
}

.contacts .section-title {
  padding-bottom: 40px;
}

.contacts__grid {
  display: flex;
  align-items: start;
}

.contacts__info {
  flex: 0 0 50%;
  padding: 0 20px;
}

.contacts__form-wrapper {
  flex: 0 0 50%;
  padding: 0 20px;
}

.contacts__phone,
.contacts__email {
  font-size: 30px;
  font-weight: 300;
  line-height: 43.5px;
  margin-bottom: 0;
}

.contacts__email {
  margin-bottom: 40px;
}

.contacts__company {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27.9px;
  color: #cccccc;
}

.contacts__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contacts__social a {
  transition: opacity 0.2s;
}

.contacts__social a:hover {
  opacity: 0.7;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__form input {
  padding: 16px 20px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #999999;
  background: transparent;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.contacts__form input:focus {
  border-bottom-color: #ffd014;
}

.contacts__form input::placeholder {
  color: #ffffff;
  opacity: 0.5;
}

/* ===== FAQ ===== */
.faq {
  padding: 0;
}

.faq .section-title {
  padding-bottom: 30px;
}

.faq__list {
  max-width: 100%;
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid #444;
}

.faq__item:last-child {
  border-bottom: 1px solid #444;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq__question:hover {
  color: #ffd014;
}

.faq__icon {
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 20px;
}

.faq__answer p {
  font-size: 16px;
  font-weight: 300;
  line-height: 24.8px;
  color: #ffffff;
  margin-bottom: 20px;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 0;
}

.reviews .section-title {
  padding-bottom: 50px;
}

.slider {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}

.slider__track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider__slide {
  min-width: 100%;
  padding: 0 40px;
}

.review-card {
  display: flex;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  max-width: 860px;
  height: 360px;
  margin: 0 auto;
  color: #000000;
}

.review-card__image {
  flex: 0 0 300px;
  width: 300px;
  min-height: 360px;
}

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

.review-card__text {
  padding: 30px;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 200px;
}

.review-card__text p {
  font-size: 20px;
  font-weight: 300;
  line-height: 31px;
  margin-bottom: 20px;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.slider__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slider__arrow--prev {
  left: 0;
}

.slider__arrow--next {
  right: 0;
}

.slider__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.slider__dots {
  display: flex;
  gap: 8px;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #adadad;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slider__dot.active {
  background: #ffffff;
}

/* ===== FOOTER ===== */
.footer {
  padding: 30px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: #888888;
}

/* ===== THANK YOU MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #000000;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal__close:hover {
  color: #333;
}

.modal__icon {
  margin-bottom: 20px;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000000;
}

.modal__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  margin-bottom: 24px;
}

.modal__btn {
  min-height: 48px;
  padding: 0 48px;
  border-radius: 50px;
  font-size: 16px;
}

/* ===== SECTION SPACING ===== */
/* Tilda uses t-rec_pt_XX / t-rec_pb_XX classes */
.advantages,
.process,
.contacts,
.faq,
.reviews {
  padding-top: 30px;
  padding-bottom: 30px;
}

.consultation {
  padding-top: 30px;
  padding-bottom: 45px;
}

.advantages {
  padding-top: 60px;
  padding-bottom: 50px;
}

.cars {
  padding-top: 30px;
  padding-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .advantages .container {
    max-width: 1200px;
    padding: 0 20px;
  }

  .advantages__grid {
    flex-direction: column;
    margin-left: 0;
  }

  .advantages__list {
    flex: 1;
    max-width: 100%;
  }

  .advantages__image {
    order: -1;
    width: 280px;
    max-width: 60%;
    flex: none;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 380px;
  }

  .advantages__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .advantage {
    width: 50%;
  }

  .process__grid.container {
    max-width: 1200px;
    padding: 0 20px;
    flex-direction: column;
  }

  .process__image {
    max-height: 400px;
  }

  .process__content {
    padding-left: 0;
    padding: 20px;
    padding-right: 20px;
  }

  .cars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__grid {
    flex-direction: column;
    gap: 40px;
  }

  .contacts__info,
  .contacts__form-wrapper {
    flex: 1;
    width: 100%;
  }

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

@media (max-width: 768px) {
  .hero__content {
    width: 100%;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 30px;
  }

  .section-title {
    font-size: 28px;
  }

  .advantage {
    width: 100%;
  }

  .cars__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .review-card {
    flex-direction: column;
    height: auto;
    max-width: 100%;
  }

  .review-card__image {
    flex: none;
    width: 100%;
    height: 220px;
    min-height: auto;
    max-height: 220px;
    overflow: hidden;
  }

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

  .review-card__text {
    padding: 20px;
  }

  .review-card__text p {
    font-size: 15px;
    line-height: 23px;
  }

  .slider {
    padding: 0;
    overflow: hidden;
  }

  .slider__track {
    touch-action: pan-y;
  }

  .slider__slide {
    min-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
  }

  .slider__arrow {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

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

  .consultation__form {
    flex-direction: column;
    align-items: stretch;
  }

  .consultation__form input,
  .consultation__form .iti {
    min-width: auto;
    width: 100%;
    font-size: 18px;
  }

  .consultation__form input {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
  }

  .consultation__form .iti {
    height: 60px !important;
    max-height: 60px !important;
    overflow: hidden;
  }

  .consultation__form .iti input {
    height: 60px !important;
    max-height: 60px !important;
    padding-left: 52px !important;
    margin: 0 !important;
    border: 1px solid #000 !important;
  }

}

@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero__content {
    height: auto;
    min-height: 100vh;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 24px;
  }

  .btn {
    min-height: 48px;
    padding: 0 32px;
    font-size: 14px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .process__step h3 {
    font-size: 18px;
  }

  .process__step p {
    font-size: 16px;
  }
}
