/* Базовые стили */
:root {
  --ac-primary: #c4512f;
  --ac-primary-light: #e07a52;
  --ac-primary-rgb: 196, 81, 47;
  --ac-dark: #181c20;
  --ac-dark-mobile: #0a1018;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'TildaSans', Arial, sans-serif;
  color: #000;
  background: #fff;
}

.page,
#allrecords {
  overflow-x: clip;
  max-width: 100%;
}

/* Tilda прячет страницу до загрузки — показываем сразу */
#allrecords.t-records {
  opacity: 1 !important;
}

.t-form__screen-hiderecord {
  opacity: 1 !important;
}

.section--header-info .t396__artboard {
  opacity: 1 !important;
}

.section { position: relative; }

.anchor {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Блок с формой: фоновое фото на всю карточку */
.section--contact-form .tn-elem[data-elem-id="1729904673301"] {
  z-index: 1 !important;
  pointer-events: none;
}

.section--contact-form .tn-elem[data-elem-id="1729904673301"] .tn-atom {
  background-image: url("../assets/images/IMG_9363.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

.section--contact-form .tn-elem[data-elem-id="1729933787753"],
.section--contact-form .tn-elem[data-elem-id="1729934104090"],
.section--contact-form .tn-elem[data-elem-id="1752528345034"] {
  z-index: 5 !important;
  position: relative;
}

/* Подвал: без карты и блока «Мы в соцсетях» */
.section--footer .tn-elem[data-elem-id="1709635371336"],
.section--footer .tn-elem[data-elem-id="1707750851240"],
.section--footer .tn-elem[data-elem-id="1707750851247"],
.section--footer .tn-elem[data-elem-id="1754309289243"],
.section--footer .tn-elem[data-elem-id="1707799616150"],
.section--footer .tn-elem[data-elem-id="1707799611028"] {
  display: none !important;
}

@media screen and (min-width: 960px) {
  .section--footer .tn-elem[data-elem-id="1707750851422"] {
    left: calc(50% - 600px + 20px) !important;
    width: 560px !important;
    height: 237px !important;
    top: 655px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851180"] {
    left: calc(50% - 600px + 600px) !important;
    width: 560px !important;
    height: 237px !important;
    top: 655px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851429"] {
    left: calc(50% - 600px + 50px) !important;
    top: 685px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851478"] {
    left: calc(50% - 600px + 50px) !important;
    top: 721px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851436"] {
    left: calc(50% - 600px + 50px) !important;
    top: 830px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851465"] {
    left: calc(50% - 600px + 50px) !important;
    top: 842px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799396046"] {
    left: calc(50% - 600px + 270px) !important;
    top: 822px !important;
    width: 40px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799392435"] {
    left: calc(50% - 600px + 320px) !important;
    top: 822px !important;
    width: 40px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851192"] {
    left: calc(50% - 600px + 630px) !important;
    top: 685px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851209"] {
    left: calc(50% - 600px + 630px) !important;
    top: 721px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851199"] {
    left: calc(50% - 600px + 630px) !important;
    top: 790px !important;
    width: auto !important;
    max-width: 500px !important;
  }
}

/* Логотип Asia Car */
.section--header-info .t396__artboard,
.section--header-info .t396__carrier,
.section--header-info .t396__filter {
  overflow: hidden !important;
}

.section--header-info .tn-elem[data-elem-id="176252302021255350"] {
  width: 56px !important;
  height: 56px !important;
  top: 15px !important;
  overflow: hidden;
}

.section--header-info .tn-elem[data-elem-id="176252302021255350"] .tn-atom,
.section--header-info .tn-elem[data-elem-id="176252302021255350"] .tn-atom__img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain;
  display: block;
}

/* Дублирует текст «Asia Car» слева — в узком блоке виден только «Car» */
.section--header-info .tn-elem[data-elem-id="176252302022413970"] {
  display: none !important;
}

.section--hero .tn-elem[data-elem-id="1729856145031"] {
  width: 56px !important;
  height: 56px !important;
  overflow: hidden;
}

.section--hero .tn-elem[data-elem-id="1729856145031"] .tn-atom,
.section--hero .tn-elem[data-elem-id="1729856145031"] .tn-atom__img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain;
  display: block;
}

.section--hero .tn-elem[data-elem-id="1729857900905"] {
  display: none !important;
}

/* Нижняя панель с юридическими ссылками */
.site-footer-bar {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.site-footer-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.site-footer-bar a:hover {
  color: var(--ac-primary-light);
}

/* Страница политики конфиденциальности */
.page-privacy {
  background: #f7f7f7;
  color: #1a1a1a;
}

.privacy-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.privacy-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.privacy-header__back {
  font-size: 14px;
  color: var(--ac-primary);
  text-decoration: none;
}

.privacy-header__back:hover {
  color: var(--ac-primary-light);
}

.privacy-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.privacy-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.privacy-content h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.privacy-content__date {
  margin: 0 0 24px;
  color: #666;
  font-size: 14px;
}

.privacy-content h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.privacy-content p,
.privacy-content li {
  font-size: 15px;
  line-height: 1.65;
}

.privacy-content p {
  margin: 0 0 12px;
}

.privacy-content ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.privacy-content li + li {
  margin-top: 4px;
}

.privacy-content a {
  color: var(--ac-primary);
}

.privacy-content a:hover {
  color: var(--ac-primary-light);
}

@media (max-width: 640px) {
  .privacy-content {
    padding: 24px 18px;
  }

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