/* ME602 (T395) — одинаковая ширина плиток с правой рамкой у каждой */
@media (max-width: 960px){
  .t395__wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 плитки в ряд */
    width: 100% !important;
    border-right: 1px solid #000000; /* рамка по периметру сетки */
    box-sizing: border-box;
  }
  .t395__wrapper_mobile { display: none !important; }

  .t395__tab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  /*   border-left: 1px solid #000000; /* ✅ у каждой плитки своя рамка */
    min-height: 64px;
    width: 100% !important;
  }

  .t395__title {
    text-align: center;
    padding: 10px 12px !important;
    line-height:1.2;
    width: 100%;
  }
}

@media (max-width: 460px){
  .t395__wrapper {
    grid-template-columns: repeat(2, 1fr); /* 2 плитки в ряд */
  }
}





/* ВЕРХНЕЕ МЕНЮ — аккуратное подчёркивание при наведении */
.link-ease-in-out a {
    position: relative;        /* фикс для ровного underline */
    display: inline-block;
    color: #000000;            /* цвет текста */
    text-decoration: none;
    line-height: 1.3;          /* чуть выше для комфортного отступа */
    cursor: pointer;
}

/* Тонкая премиальная линия снизу */
.link-ease-in-out a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;              /* расстояние до текста */
    width: 0;
    height: 0.6px;             /* ультратонкая линия */
    background-color: currentColor; /* совпадает с цветом текста */
    transition: width .22s ease;
    opacity: 0.85;
}

/* Плавное проявление */
.link-ease-in-out a:hover::after,
.link-ease-in-out a:focus::after {
    width: 100%;
}








/* Блок меню */
.link-ease-in-out1 a {
    position: relative;   /* ОБЯЗАТЕЛЬНО: позволяет привязать underline к ссылке */
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
}

/* Тонкая аккуратная линия */
.link-ease-in-out1 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;          /* расстояние до текста — можно менять */
    width: 0;
    height: 0.6px;         /* ультратонкая линия */
    background-color: currentColor; 
    transition: width .25s ease-in-out;
    opacity: 0.9;
}

/* Плавное проявление строго снизу */
.link-ease-in-out1 a:hover::after,
.link-ease-in-out1 a:focus::after {
    width: 100%;
}
