/* Первый экран главной: обещание + «стена разговора» + четыре плитки вместо стоковых фото. */
.hq, .hq h1, .hq p, .hq a, .hq b, .hq q, .hq span, .hq small, .hq em, .hq i, .hq li { font-family: "Onest", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }
.hq { padding-block: 64px 40px; overflow: hidden; }
.hq__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hq__h { font-size: clamp(44px, 6.2vw, 92px); line-height: .96; font-weight: 800; letter-spacing: -.055em; color: #1d1a2b; margin: 0; }
.hq__lead { font-size: 20px; line-height: 1.5; color: #45425a; margin: 26px 0 34px; max-width: 29em; }
.hq__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hq__btn { display: inline-flex; align-items: center; justify-content: center; height: 66px; padding: 0 34px; border-radius: 22px; background: #1d1a2b; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; text-align: center; white-space: nowrap; transition: transform .15s, background .15s; }
.hq__btn:hover { transform: translateY(-2px); background: #7d5fff; }
.hq a:focus-visible { outline: 3px solid #7d5fff; outline-offset: 3px; border-radius: 12px; }
.hq__note { font-size: 15px; line-height: 1.4; color: #6b6782; margin: 0; max-width: 15em; }

.hq__chat { position: relative; }
.hq__chat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hq__m { display: flex; align-items: flex-end; gap: 10px; max-width: 86%; opacity: 0; transform: translateY(14px) scale(.96); animation: hqIn .5s cubic-bezier(.2, .8, .3, 1.15) forwards; }
.hq__m:nth-child(1) { animation-delay: .25s; } .hq__m:nth-child(2) { animation-delay: .85s; } .hq__m:nth-child(3) { animation-delay: 1.45s; }
.hq__m:nth-child(4) { animation-delay: 2.05s; } .hq__m:nth-child(5) { animation-delay: 2.65s; } .hq__m:nth-child(6) { animation-delay: 3.25s; }
@keyframes hqIn { to { opacity: 1; transform: none; } }
.hq__m img, .hq__m i { flex: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.hq__lg { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.c1 .hq__lg { background: #f3f0ff; color: #7d5fff; } .c2 .hq__lg { background: #fdeee9; color: #b4553c; } .c3 .hq__lg { background: #e9e7f0; color: #1d1a2b; }
.hq__m i { display: grid; place-items: center; background: #1d1a2b; color: #fff; font-style: normal; font-weight: 700; font-size: 16px; }
.hq__m p { margin: 0; padding: 16px 22px 18px; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.hq__m small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .75; margin-bottom: 5px; }
.hq__m [lang=ar] { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.45; display: block; }
.hq__m--t p { border-radius: 28px 28px 28px 8px; }
.hq__m--t.c1 p { background: #7d5fff; color: #fff; transform: rotate(-1.5deg); }
.hq__m--t.c2 p { background: #f3a995; color: #3a1c12; transform: rotate(1deg); }
.hq__m--t.c3 p { background: #1d1a2b; color: #fff; transform: rotate(-1deg); }
.hq__m--s { align-self: flex-end; flex-direction: row-reverse; }
.hq__m--s p { background: #a3f0d3; color: #0e3a2b; border-radius: 28px 28px 8px 28px; transform: rotate(1.2deg); }
.hq__m--s:nth-child(4) p { transform: rotate(-1deg); }
.hq__cap { margin: 18px 0 0 68px; font-size: 14px; color: #6b6782; }

.hq__tiles { display: grid; grid-template-columns: 1.1fr 1.25fr 1.25fr 1.2fr; gap: 16px; margin-top: 64px; }
.hq__t { position: relative; display: flex; flex-direction: column; min-height: 216px; padding: 26px 26px 24px; border-radius: 30px; text-decoration: none; color: #1d1a2b; transition: transform .18s; }
a.hq__t:hover { transform: translateY(-4px); }
.hq__t > span { font-size: 16px; line-height: 1.4; }
.hq__t { min-width: 0; overflow-wrap: break-word; }
.hq__t em { align-self: flex-start; margin-top: auto; padding-top: 18px; font-style: normal; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hq__t--price { background: #7d5fff; color: #fff; }
.hq__t--price b { white-space: nowrap; font-size: clamp(34px, 3.3vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.05em; margin-bottom: 12px; }
.hq__t--price > span { opacity: .92; }
.hq__t--lang { background: #f3a995; color: #3a1c12; }
.hq__t--lang > span { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hq__t--lang p { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 18px; }
.hq__t--lang p a { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; color: #1d1a2b; font-weight: 800; font-size: 19px; letter-spacing: -.03em; text-decoration: none; transition: background .15s, color .15s; }
.hq__t--lang p a[lang=ar] { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 700; letter-spacing: 0; font-size: 17px; padding-bottom: 4px; }
.hq__t--lang p a:hover { background: #1d1a2b; color: #fff; }
.hq__t--quote { background: #a3f0d3; color: #0e3a2b; }
.hq__t--quote q { quotes: "«" "»"; font-size: 25px; line-height: 1.16; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.hq__t--team { background: #f3f0ff; }
.hq__t--team .av { display: flex; margin: 0 0 16px; }
.hq__t--team .av img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #f3f0ff; margin-left: -14px; }
.hq__t--team .av img:first-child { margin-left: -3px; }
.hq__t--team > span { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; }

@media (max-width: 1000px) {
  .hq { padding-block: 28px 24px; }
  .hq__top { display: block; }
  .hq__lead { font-size: 17px; margin: 16px 0 22px; }
  .hq__btn { width: 100%; height: 58px; padding: 0 12px; font-size: clamp(15px, 4.5vw, 18px); border-radius: 18px; }
  .hq__h { font-size: clamp(38px, 11.5vw, 64px); text-wrap: balance; }
  .hq__cta { gap: 10px; } .hq__note { max-width: none; font-size: 14px; }
  .hq__chat { margin-top: 34px; } .hq__chat ul { gap: 9px; }
  .hq__m { max-width: 92%; gap: 8px; } .hq__m img, .hq__m i, .hq__lg { width: 40px; height: 40px; font-size: 12px; }
  .hq__m p { padding: 11px 15px 13px; font-size: 19px; } .hq__m small { font-size: 11.5px; margin-bottom: 3px; }
  .hq__m--t p { border-radius: 20px 20px 20px 6px; } .hq__m--s p { border-radius: 20px 20px 6px 20px; }
  .hq__cap { margin: 14px 0 0; font-size: 13px; }
  .hq__tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .hq__t { min-height: 150px; padding: 18px 16px 16px; border-radius: 22px; }
  .hq__t > span { font-size: 13.5px; } .hq__t em { font-size: 13.5px; padding-top: 12px; }
  .hq__t--price b { font-size: clamp(24px, 7.6vw, 36px); margin-bottom: 8px; }
  .hq__m p { font-size: clamp(16px, 4.8vw, 19px); }
  .hq__m--s:nth-child(2) p { max-width: 15em; }
  .hq__t--lang p a { height: 42px; padding: 0 15px; font-size: 17px; }
  .hq__t--team .av img { width: 44px; height: 44px; }
  .hq__t--lang { grid-column: 1 / -1; min-height: 0; } .hq__t--lang > span { font-size: 17px; } .hq__t--lang p { padding-top: 14px; }
  .hq__t--quote q { font-size: clamp(15.5px, 4.5vw, 18px); } .hq__t--team { grid-column: 1 / -1; min-height: 0; } .hq__t--team > span { font-size: 17px; }
  .hq__t--price { order: 1; } .hq__t--quote { order: 2; } .hq__t--lang { order: 3; } .hq__t--team { order: 4; }
}
@media (prefers-reduced-motion: reduce) { .hq__m { opacity: 1; transform: none; animation: none; } .hq__btn, .hq__t { transition: none; } }

/* Плитки под перепиской — спокойные, чтобы не сливались с цветными репликами */
.hq__tiles { margin-top: 72px; }
.hq__t, .hq__t--lang, .hq__t--quote, .hq__t--team { background: #f3f0ff; color: #1d1a2b; }
.hq__t--price { background: #1d1a2b; color: #fff; }
.hq__t--price b { color: #a3f0d3; }
.hq__t--lang p a { background: #fff; }
.hq__t--lang p a:hover { background: #1d1a2b; color: #fff; }
.hq__t--team .av img { border-color: #f3f0ff; }
@media (max-width: 1000px) { .hq__tiles { margin-top: 36px; } }

/* плитка-отзыв с кадром из видео */
.hq__t--quote { flex-direction: row; padding: 0; overflow: hidden; }
.hq__qt { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 26px 14px 24px 26px; }
.hq__qt > span { font-size: 15px; line-height: 1.4; }
.hq__t--quote q { font-size: 21px; }
.hq__qp { position: relative; flex: none; width: 40%; }
.hq__qp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hq__qp i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #1d1a2b; display: grid; place-items: center; font-style: normal; font-size: 15px; padding-left: 3px; box-shadow: 0 6px 18px #1d1a2b33; }
@media (max-width: 1000px) {
  .hq__t--price { order: 1; } .hq__t--lang { order: 2; } .hq__t--quote { order: 3; grid-column: 1 / -1; min-height: 150px; } .hq__t--team { order: 4; }
  .hq__qt { padding: 18px 12px 16px 16px; } .hq__qt > span { font-size: 13.5px; } .hq__t--quote q { font-size: 19px; } .hq__qp { width: 36%; }
}
@media (max-width: 1000px) { .hq__t--price { grid-column: 1 / -1; min-height: 0; } }
