.ft,
.ft *,
.ft-form,
.ft-form *,
.ft-modal,
.ft-modal * {
  box-sizing: border-box;
}

.ft {
  background: #f4f7fb;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-family: 'PTSansWebRegular', 'PT Sans', sans-serif;
  overflow: hidden;
}

.ft a {
  color: #fff;
}

.ft-grid {
  display: block;
}

.ft-card {
  background: #fff;
  color: #102a4c;
  border-radius: 18px;
  padding: 22px 16px 18px;
  margin: 16px 0 0;
  box-shadow: 0 12px 32px rgba(16, 42, 90, 0.12);
}

.ft-card-title,
.ft-h,
.ft-brand-name,
.ft-modal h3 {
  font-family: 'PTSansWebBold', 'PT Sans', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.ft-card-title {
  margin: 0 0 8px;
  text-align: center;
  color: #12315c;
  font-size: 26px;
  line-height: 1.2;
}

.ft-card-lead,
.ft-modal-lead {
  margin: 0 0 18px;
  text-align: center;
  color: #3e5678;
  font-size: 16px;
  line-height: 1.4;
}

.ft-main {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 24px;
  padding: 28px 20px 8px;
  background: linear-gradient(180deg, #3eb6e6 0%, #3f86dc 34%, #3a62c8 70%, #3548ae 100%);
}

.ft-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
}

.ft-brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex: 0 0 76px;
}

.ft-brand-name {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.ft-h {
  margin: 0 0 6px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.ft-phones,
.ft-meta,
.ft-acc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.ft-flag {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}

.ft-row-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 120px;
}

.ft-row-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.ft button.ft-callorder,
.ft button.ft-acc-btn,
.ft-modal button.ft-modal-close {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-transform: none;
  font-family: inherit;
  cursor: pointer;
}

.ft button.ft-callorder {
  min-height: 44px;
  padding: 4px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  text-decoration: underline;
  line-height: 1.2;
}

.ft-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.ft-wa,
.ft-tg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  flex: 0 0 44px;
  font-size: 22px;
}

.ft-wa {
  background: #25d366;
}

.ft-wa:hover,
.ft-wa:focus {
  background: #1ebe57;
  color: #fff !important;
  text-decoration: none;
}

.ft-tg {
  background: #2aabee;
}

.ft-tel {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ft-tel:hover,
.ft-tel:focus {
  color: #fff;
  text-decoration: underline;
}

.ft-meta {
  margin: 18px 0 10px;
}

.ft-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.ft-meta .fa {
  width: 22px;
  margin-top: 12px;
  text-align: center;
  flex: 0 0 22px;
  font-size: 18px;
}

.ft-meta > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.ft-meta > li > a span {
  overflow-wrap: anywhere;
}

.ft-meta > li > a .fa {
  margin-top: 0;
}

.ft-address span {
  display: block;
  padding-top: 10px;
}

.ft-map {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.ft-acc {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ft-acc:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.ft-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.ft-acc summary::-webkit-details-marker {
  display: none;
}

.ft-acc summary::marker {
  content: '';
}

.ft-chev {
  transition: transform 0.2s ease;
  font-size: 20px;
}

.ft-acc[open] .ft-chev {
  transform: rotate(180deg);
}

.ft-acc a,
.ft button.ft-acc-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  width: 100%;
  text-align: left;
}

.ft-acc a:hover,
.ft-acc a:focus,
.ft button.ft-acc-btn:hover,
.ft button.ft-acc-btn:focus {
  color: #fff;
  text-decoration: underline;
}

.ft-legal {
  background: #16356e;
  color: #fff;
  text-align: center;
  padding: 18px 16px calc(120px + env(safe-area-inset-bottom));
}

.ft-legal p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.ft-legal-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ft-legal-links span {
  display: none;
}

.ft-legal-links a {
  color: #fff;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
}

.ft-copy {
  margin-top: 4px;
}

.ft-disclaimer {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.ft-form {
  text-align: left;
}

.ft-field {
  margin: 0 0 14px;
}

.ft-form label,
.ft-modal label {
  display: inline;
  margin: 0;
  color: #16325c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.ft-field > label {
  display: block;
  margin: 0 0 6px;
}

.ft-opt {
  font-weight: 400;
  color: #5c7190;
}

.ft-control {
  position: relative;
}

.ft-control .fa {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #5d7190;
  font-size: 16px;
  pointer-events: none;
}

.ft-form input[type="text"],
.ft-form input[type="tel"],
.ft-form input[type="email"],
.ft-form textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid #d5deea;
  background: #fff;
  color: #102a4c;
  font-size: 16px;
  line-height: 1.3;
  border-radius: 12px;
  padding: 12px 14px 12px 44px;
  text-align: left;
  box-shadow: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ft-form textarea {
  display: block;
  padding: 12px 14px;
  min-height: 96px;
  resize: vertical;
}

.ft-form input::placeholder,
.ft-form textarea::placeholder {
  color: #8aa0b8;
  opacity: 1;
}

.ft-attach {
  margin: 2px 0 12px;
}

.ft-attach-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #1a56db;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ft-attach-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ft-hint,
.ft-file-name {
  margin: 4px 0 0;
  color: #4d6280;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.ft-file-name {
  color: #102a4c;
  font-weight: 700;
}

.ft-submit-wrap {
  margin: 8px 0 0;
}

.ft-form input.ft-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #1a56db;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'PTSansWebBold', 'PT Sans', sans-serif;
  text-align: center;
  cursor: pointer;
  text-transform: none;
}

.ft-form input.ft-submit:hover,
.ft-form input.ft-submit:focus {
  background: #1647b8;
  color: #fff;
}

.ft-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 0;
  min-height: 44px;
  color: #16325c;
  font-size: 16px;
  line-height: 1.35;
}

.ft-consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 10px 0 0;
  accent-color: #1a56db;
  flex: 0 0 24px;
}

.ft-consent label {
  flex: 1;
  min-height: 44px;
  display: block;
  padding: 10px 0;
  font-weight: 400;
  cursor: pointer;
}

.ft-consent a {
  color: #1a56db;
  font-weight: 700;
  text-decoration: underline;
  display: inline;
}

.ft-error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  flex: 1 0 100%;
}

.ft-form .is-invalid input[type="text"],
.ft-form .is-invalid input[type="tel"],
.ft-form .is-invalid input[type="email"],
.ft-form .is-invalid textarea,
.ft-consent.is-invalid {
  border-color: #d92d20;
}

.ft-consent.is-invalid {
  border-radius: 8px;
}

.ft :focus,
.ft-form :focus,
.ft-modal :focus {
  outline: 2px solid #7ec8ff;
  outline-offset: 2px;
}

#modal-callback .modal-dialog {
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 40px auto;
}

#modal-callback .ft-modal {
  background: #fff;
  color: #102a4c;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 42, 90, 0.2);
}

#modal-callback .modal-body {
  position: relative;
  padding: 28px 18px 20px;
}

#modal-callback .ft-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #102a4c;
  font-size: 32px;
  line-height: 1;
}

#modal-callback h3 {
  margin: 0 36px 8px 0;
  color: #12315c;
  font-size: 24px;
  line-height: 1.2;
  text-align: left;
}

#modal-callback .ft-modal-lead {
  text-align: left;
  margin-bottom: 16px;
}

.ft-doc {
  background: #fff;
  color: #102a4c;
  padding: 28px 0 48px;
}

.ft-doc .container {
  max-width: 760px;
}

.ft-doc h1,
.ft-doc h2 {
  font-family: 'PTSansWebBold', 'PT Sans', sans-serif;
  color: #12315c;
  text-transform: none;
  font-weight: 700;
}

.ft-doc h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
}

.ft-doc h2 {
  margin: 22px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.ft-doc p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

.ft-doc a {
  color: #1a56db;
}

.ft-doc-meta {
  margin-top: 24px;
  color: #4d6280;
}

@media (min-width: 640px) {
  .ft-legal-links {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .ft-legal-links span {
    display: inline;
  }
}

@media (min-width: 992px) {
  .ft {
    background: linear-gradient(165deg, #49b7d8 0%, #4a72d0 48%, #514fbe 100%);
    padding-top: 48px;
  }

  .ft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: start;
  }

  .ft-card {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .ft-main {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
    padding: 8px 8px 24px 0;
    background: transparent;
  }

  .ft-brand,
  .ft-h {
    justify-content: flex-start;
    text-align: left;
  }

  .ft-legal {
    background: rgba(10, 32, 84, 0.35);
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .ft-tel {
    white-space: normal;
  }

  .ft-card-title {
    font-size: 24px;
  }
}
