.md-other-trainers {--md-gap:16px; width:100%; margin:55px 0 20px; padding:46px 20px 32px; box-sizing:border-box; border-radius:24px; background:radial-gradient(circle at 5% 10%,rgba(255,221,48,.12),transparent 28%),radial-gradient(circle at 95% 90%,rgba(35,139,230,.1),transparent 30%),#f7fbff; font-family:inherit;} .md-other-trainers *, .md-other-trainers *::before, .md-other-trainers *::after {box-sizing:border-box;} .md-other-trainers__inner {max-width:1180px; margin:0 auto;} .md-other-trainers__heading {text-align:center; margin-bottom:25px;} .md-other-trainers__badge {display:inline-flex; margin-bottom:11px; padding:7px 14px; border-radius:30px; background:#fff3a3; color:#174b9b; font-size:13px; font-weight:700; line-height:1;} .md-other-trainers__heading h2 {margin:0; color:#123f88; font-size:clamp(25px,3.5vw,34px); line-height:1.15; font-weight:800;} .md-other-trainers__heading p {margin:9px auto 0; color:#65768b; font-size:15px; line-height:1.5;} .md-other-trainers__slider {position:relative;} .md-other-trainers__viewport {overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; overscroll-behavior-x:contain; border-radius:18px;} .md-other-trainers__viewport::-webkit-scrollbar {display:none;} .md-other-trainers__track {display:flex; align-items:stretch; gap:var(--md-gap);} .md-other-trainers__card {flex:0 0 calc((100% - 2 * var(--md-gap)) / 3); min-width:0; display:flex; flex-direction:column; overflow:hidden; text-decoration:none !important; color:inherit; background:#fff; border:1px solid #e1ebf6; border-radius:18px; box-shadow:0 5px 18px rgba(31,87,145,.055); scroll-snap-align:start; transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;} .md-other-trainers__image {width:100%; height:174px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#edf6ff;} .md-other-trainers__image img {display:block; width:100%; height:100%; object-fit:contain; object-position:center; transition:transform .35s ease;} /* Последние две карточки: изображение заполняет всю ширину */ .md-other-trainers__card:nth-child(4) .md-other-trainers__image img, .md-other-trainers__card:nth-child(5) .md-other-trainers__image img {object-fit:cover; object-position:center;} .md-other-trainers__content {display:flex; flex:1; flex-direction:column; min-width:0; padding:17px 17px 18px;} .md-other-trainers__class {display:inline-block; align-self:flex-start; margin-bottom:8px; padding:4px 9px; border-radius:7px; background:#edf6ff; color:#2583dc; font-size:11px; font-weight:800; line-height:1.2;} .md-other-trainers__content h3 {margin:0; color:#193f77; font-size:17px; line-height:1.3; font-weight:800;} .md-other-trainers__content p {margin:8px 0 16px; color:#718197; font-size:13px; line-height:1.45;} .md-other-trainers__link {display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:auto; color:#247ed4; font-size:13px; font-weight:800;} .md-other-trainers__link span {font-size:20px; line-height:1;} .md-other-trainers__arrow {position:absolute; top:40%; z-index:2; display:flex !important; align-items:center !important; justify-content:center !important; width:42px; height:42px; padding:0; border:1px solid #d9e8f7; border-radius:50%; background:#fff; box-shadow:0 5px 18px rgba(20,69,122,.15); color:#247ed4; font-size:32px; line-height:1; cursor:pointer;} .md-other-trainers__arrow svg {display:block; width:20px; height:20px; flex:none;} .md-other-trainers__arrow--prev {left:-15px;} .md-other-trainers__arrow--next {right:-15px;} .md-other-trainers__arrow:disabled {opacity:.35; cursor:default;} .md-other-trainers__footer {display:flex; align-items:center; justify-content:center; gap:20px; margin-top:19px;} .md-other-trainers__dots {display:flex; align-items:center; justify-content:center; gap:8px;} .md-other-trainers__dot {width:9px; height:9px; padding:0; border:0; border-radius:50%; background:#c7d9ed; cursor:pointer; transition:background .2s, width .2s;} .md-other-trainers__dot[aria-current="true"] {width:24px; border-radius:10px; background:#2789e8;} @media (hover:hover) {.md-other-trainers__card:hover {transform:translateY(-3px); border-color:#c5dcf4; box-shadow:0 12px 30px rgba(31,87,145,.12);} .md-other-trainers__card:hover img {transform:scale(1.025);}} @media(max-width:900px) {.md-other-trainers__card {flex-basis:calc((100% - var(--md-gap)) / 2);} .md-other-trainers__image {height:170px;}} @media(max-width:600px) {.md-other-trainers {margin-top:40px; padding:36px 14px 27px; border-radius:20px;} .md-other-trainers__heading h2 {font-size:25px;} .md-other-trainers__heading p {font-size:13px;} .md-other-trainers__card {flex-basis:86%;} .md-other-trainers__image {height:185px;} .md-other-trainers__arrow {width:34px; height:34px; font-size:26px;} .md-other-trainers__arrow--prev {left:-10px;} .md-other-trainers__arrow--next {right:-10px;} .md-other-trainers__content {padding:15px;} } @media(prefers-reduced-motion:reduce) {.md-other-trainers__viewport {scroll-behavior:auto;} .md-other-trainers__card, .md-other-trainers__image img, .md-other-trainers__dot {transition:none !important;}}