/* Общие стили для всех страниц. Стили конкретной страницы — в css/pages/<страница>.css */

@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url('/fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('/fonts/TildaSans-VF.woff2') format('woff2');
}

:root {
  --t-headline-font: 'TildaSans', Arial, sans-serif;
  --t-text-font: 'TildaSans', Arial, sans-serif;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Базовые правила, которые раньше давала Тильда (нулевая специфичность — стили страниц их перекрывают) */
div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, img, b, u, i, center, table, tr, th, td, video {
  margin: 0;
  padding: 0;
  border: 0;
}

:where(body) a {
  color: #ff8562;
  text-decoration: none;
}

:where(body) a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

:where(body) ol {
  padding-left: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}

:where(body) ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

:where(body) b,
:where(body) strong {
  font-weight: 700;
}

sup { line-height: 0; font-size: smaller; vertical-align: super; }
sub { line-height: 0; font-size: smaller; vertical-align: sub; }

/* ===== ФОРМА ЗАЯВКИ (внешний вид как у формы Тильды) ===== */
.ppk-form {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #222;
}

.ppk-form__title {
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}

.ppk-form__group {
  margin-bottom: 22px;
}

.ppk-form__label {
  display: block;
  color: #222;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ppk-form__input {
  display: block;
  width: 100%;
  height: 52px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  padding: 12px 16px;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ppk-form__input::placeholder {
  color: #9a9a9a;
}

textarea.ppk-form__input {
  height: 110px;
  min-height: 110px;
  resize: vertical;
}

.ppk-form__input:focus {
  border-color: #2f4d82;
  box-shadow: 0 0 0 2px rgba(47, 77, 130, 0.12);
}

.ppk-form__input[aria-invalid="true"] {
  border-color: #c62828;
}

.ppk-form__phone {
  position: relative;
}

.ppk-form__phone::before {
  content: "+7";
  position: absolute;
  left: 16px;
  top: 26px;
  transform: translateY(-50%);
  color: #777;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.ppk-form__phone .ppk-form__input {
  padding-left: 44px;
}

.ppk-form__error {
  display: none;
  margin-top: 6px;
  color: #c62828;
  font-size: 14px;
  line-height: 1.35;
}

.ppk-form__group.is-invalid .ppk-form__error {
  display: block;
}

/* скрытое поле-ловушка для ботов */
.ppk-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ppk-consent {
  width: 100%;
  margin: 2px auto 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #222;
  cursor: pointer;
}

.ppk-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: #2f4d82;
}

.ppk-consent span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}

.ppk-consent a {
  color: #2f4d82;
}

.ppk-form__submit {
  text-align: center;
}

.ppk-form__button {
  display: block;
  width: 220px;
  height: 56px;
  margin: 10px auto 0;
  padding: 0 24px;
  border: none;
  border-radius: 28px;
  background: #2f4d82;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.ppk-form__button:hover {
  background: #1f3963;
}

.ppk-form__button:disabled {
  background: #aeb7c4;
  cursor: not-allowed;
  opacity: 0.75;
}

.ppk-form__status {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}

.ppk-form__status.is-error {
  color: #c62828;
}

@media (max-width: 768px) {
  .ppk-form__title {
    font-size: 24px;
  }

  .ppk-form__input {
    font-size: 16px; /* 16px — чтобы iPhone не увеличивал страницу при фокусе */
  }
}
