/* ============================================================
   ezlingua — блок цен и страница преподавателей (сентябрь 2026)
   Компьютер и телефон. Подключается после style.css.
   ============================================================ */

/* ============================== ЦЕНЫ ============================== */
.px { padding-block: 70px 60px; }
.px .wide { text-align: center; }
.px__title { margin-bottom: 10px; }
.px__lead { font-size: 18px; color: #5d5a6e; margin: 0 auto 28px; max-width: 620px; line-height: 1.45; }

.px__tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 34px;
  background: #f3f0ff; border-radius: 999px;
}
.px__tab {
  border: 0; cursor: pointer; padding: 12px 26px; border-radius: 999px;
  background: transparent; color: #4b4760; font: inherit; font-size: 16px; font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
}
.px__tab.is-on { background: #fff; color: #7d5fff; box-shadow: 0 2px 10px rgba(80, 55, 200, .15); }
/* без JavaScript видны обе таблицы, заголовки групп — вместо вкладок */
.px__tabs { display: none; }
.px--tabs .px__tabs { display: inline-flex; }
.px__group { font-size: 22px; font-weight: 700; margin: 0 0 18px; text-align: left; color: #7d5fff; }
.px--tabs .px__group { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.px__panel + .px__panel { margin-top: 36px; }
.px--tabs .px__panel + .px__panel { margin-top: 0; }

.px__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
.pxc {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 22px; border-radius: 22px; background: #fff;
  border: 1px solid #ebe8f5; box-shadow: 0 10px 30px rgba(43, 28, 85, .07);
  transition: transform .2s, box-shadow .2s;
}
.pxc:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43, 28, 85, .12); }
.pxc--hot { border: 2px solid #7d5fff; box-shadow: 0 16px 40px rgba(125, 95, 255, .18); }
.pxc__badge {
  position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px;
  background: #7d5fff; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.pxc__badge--best { background: #1f9d6b; }
.pxc__count { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: #1d1a2b; }
.pxc__per { margin: 0; font-size: 15px; color: #5d5a6e; }
.pxc__per b { display: block; font-size: 38px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: #1d1a2b; margin-bottom: 2px; }
.pxc--hot .pxc__per b { color: #7d5fff; }
.pxc__total { margin: 14px 0 20px; padding-top: 14px; border-top: 1px dashed #e3def5; font-size: 14px; color: #5d5a6e; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pxc__save { padding: 3px 8px; border-radius: 8px; background: #e8f8f0; color: #157a51; font-size: 12px; font-weight: 700; }
.pxc__save--none { background: #f3f1f8; color: #7a7690; font-weight: 600; }
.pxc__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 14px; background: #f1edff; color: #6a4cf0;
  font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.pxc__cta:hover, .pxc--hot .pxc__cta { background: #7d5fff; color: #fff; }
.pxc--hot .pxc__cta:hover { background: #5b3fe0; }

.px__incl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.px__incl li { position: relative; padding-left: 26px; font-size: 15px; color: #3b384d; }
.px__incl li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: #7d5fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.px__note { margin: 18px 0 0; font-size: 15px; color: #5d5a6e; }
.px__note a { color: #7d5fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { .px__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; } }
@media (max-width: 760px) {
  .px { padding-block: 28px 24px; }
  .px__lead { font-size: 15px; margin-bottom: 18px; }
  .px__tabs { width: 100%; margin-bottom: 26px; }
  .px__tab { flex: 1; padding: 11px 8px; font-size: 15px; }
  .px__grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .pxc { padding: 20px 14px 14px; border-radius: 18px; }
  .pxc__badge { left: 12px; font-size: 11px; padding: 4px 9px; }
  .pxc__count { font-size: 15px; margin-bottom: 8px; }
  .pxc__per { font-size: 13px; }
  .pxc__per b { font-size: 27px; }
  .pxc__total { font-size: 12px; margin: 10px 0 14px; padding-top: 10px; }
  .pxc__save { font-size: 11px; }
  .pxc__cta { height: 42px; font-size: 15px; border-radius: 12px; }
  .px__incl { justify-content: flex-start; gap: 8px 16px; margin-top: 22px; text-align: left; }
  .px__incl li { font-size: 14px; }
  .px__note { text-align: left; font-size: 14px; }
}

/* ======================= СТРАНИЦА ПРЕПОДАВАТЕЛЕЙ ======================= */
.page-head { padding-block: 110px 20px; }
.page-head__title { letter-spacing: -0.03em; }
.tfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.tfilter__btn {
  border: 1px solid #e4e0f3; background: #fff; color: #3b384d; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.tfilter__btn img { width: 20px; height: 20px; border-radius: 50%; }
.tfilter__btn:hover { border-color: #7d5fff; }
.tfilter__btn.is-on { background: #7d5fff; border-color: #7d5fff; color: #fff; }

/* Карточки — компактные, подробности раскрываются по кнопке «Подробнее» */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tcard {
  display: flex; flex-direction: column; gap: 0; padding: 12px;
  border: 1px solid #ebe8f5; border-radius: 24px; box-shadow: 0 10px 30px rgba(43, 28, 85, .06);
}
.tcard[hidden] { display: none; }
.tcard__media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; }
.tcard__photo { min-height: 0 !important; max-height: none !important; height: 100%; width: 100%; object-fit: cover; object-position: center 22%; border-radius: 16px; }
.tcard__badge { top: 10px; left: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); font-weight: 600; font-size: 12px; }
.tcard__body { padding: 14px 6px 4px; display: flex; flex-direction: column; }
.tcard__head { display: flex; flex-direction: row !important; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.tcard__name { font-size: 24px !important; letter-spacing: -0.02em; line-height: 1.15; }
.tcard__lang { color: #7d5fff; font-weight: 600; margin-top: 2px; font-size: 14px; }
.tcard__price { background: #f3f0ff; border: 0; box-shadow: none; border-radius: 12px; padding: 7px 11px; text-align: right; align-self: flex-start !important; }
.tcard__price-label { display: none; }
.tcard__price-value { font-size: 17px; color: #1d1a2b; white-space: nowrap; }
.tcard__price-sub { display: block; margin-top: 1px; font-size: 11px; color: #6b6782; white-space: nowrap; }
.tcard__tags { gap: 6px; margin-bottom: 14px; }
.tcard__tag { background: #f6f5fa; border: 1px solid #ecebf3; color: #45425a; border-radius: 999px; padding: 5px 10px; font-size: 12px; }
.tcard__bio p { margin-top: 12px; padding-top: 12px; font-size: 14px; }
.tcard__points { margin: 0 0 4px; }
.tcard__points li { font-size: 15px; line-height: 1.45; margin-bottom: 6px; }
.tcard__actions { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
.tcard__actions .tcard__cta { flex: 1 1 auto !important; height: 46px; padding-inline: 12px; border-radius: 13px; font-size: 15px; font-weight: 700; }
.tcard__actions .tcard__more { flex: 0 0 auto !important; height: 46px; padding-inline: 14px; border-radius: 13px; font-size: 15px; }
.tcard__cta { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-align: center; }

@media (max-width: 1100px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .page-head { padding-block: 92px 10px; }
  .tfilter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .tfilter::-webkit-scrollbar { display: none; }
  .tfilter__btn { flex: none; padding: 9px 14px; font-size: 14px; }
}
/* Телефон: фото слева небольшое, всё главное — в одном экране */
@media (max-width: 640px) {
  .tcards { grid-template-columns: 1fr; gap: 12px; }
  .tcard {
    display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; padding: 12px; border-radius: 20px;
  }
  .tcard__media { grid-row: 1; aspect-ratio: auto; height: 132px; border-radius: 14px; }
  .tcard__photo { border-radius: 14px; }
  .tcard__badge { top: auto; bottom: 6px; left: 6px; right: 6px; text-align: center; font-size: 10px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tcard__body { display: contents; }
  .tcard__head { grid-column: 2; grid-row: 1; flex-direction: column !important; gap: 8px; margin: 0; align-self: center; }
  .tcard__name { font-size: 22px !important; }
  .tcard__price { text-align: left; padding: 6px 10px; }
  .tcard__price-value { font-size: 16px; }
  .tcard__tags, .tcard__bio, .tcard__actions { grid-column: 1 / -1; }
  .tcard__tags { margin: 12px 0 0; }
  .tcard__bio { margin-top: 4px; }
  .tcard__points { margin-top: 8px; }
  .tcard__actions { margin-top: 12px; }
}

/* ===== Логотип в шапке и подвале — одинаковый на всех страницах (как на главной) ===== */
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__text .brand__word{font-family:'Sora',Montserrat,sans-serif!important;text-transform:none!important;font-size:20px!important;font-weight:800!important;letter-spacing:0!important}
.brand__tagline{font-family:'Sora',Montserrat,sans-serif;font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8a8a96;margin-top:3px}
.px .px__title { text-align: center; }
.px__sub { margin: 0 auto 24px; max-width: 640px; padding: 12px 18px; border-radius: 14px; background: #f3f0ff; color: #3b384d; font-size: 15px; line-height: 1.45; }
.px__sub b { color: #1d1a2b; }
@media (max-width: 760px) { .px__sub { text-align: left; font-size: 14px; margin-bottom: 22px; } }
.tcard__actions { padding-top: 0 !important; border-top: 0 !important; }
/* цена в карточке: две короткие строки */
.tcard__price { display: grid; gap: 2px; padding: 7px 10px !important; }
.tcard__price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: #6b6782; white-space: nowrap; }
.tcard__price-row b { font-size: 15px; font-weight: 700; color: #1d1a2b; }
.tcard__price-row:first-of-type b { color: #7d5fff; }

/* ============================== КУРСЫ ============================== */
.course__cta { width: auto; min-width: 134px; padding: 0 22px; height: 42px; background: #7d5fff; color: #fff; }
.course__cta:hover { background: #5b3fe0; border-radius: 50px; }
@media (max-width: 760px) {
  .course__title { font-size: 22px !important; }
  .course__text { font-size: 14px !important; line-height: 1.45; }
  .course__cta { height: 40px; font-size: 14px; }
}
