

/* ---------- Шрифт: одно семейство BlissPro со всеми начертаниями ----------
   Старые @font-face объявляют каждое начертание отдельным семейством, из-за
   этого браузер дорисовывал жирность (faux bold). Здесь одно семейство, веса
   настоящие, дорисовка запрещена. Файлы те же, что в fonts/. */
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'BlissPro'; src: url('../fonts/BlissPro-Heavy.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  --eg-ink: #0a0a0a;          /* настоящий чёрный холст и линии */
  --eg-paper: #ffffff;        /* чистый белый холст */
  --eg-paper-2: #f2f2f2;      /* светлая подложка второй ступени, нейтральная */
  --eg-text: #0a0a0a;
  --eg-text-2: #3b3b3b;       /* вторичный текст: 11:1 к белому, без тусклых серых */
  --eg-on-ink: #ffffff;
  --eg-on-ink-2: rgba(255,255,255,.76);
  --eg-line: #0a0a0a;
  --eg-line-on-ink: rgba(255,255,255,.28);
  --eg-font: 'BlissPro', Verdana, sans-serif;
  --eg-gutter: 24px;
  --eg-max: 1248px;           /* 1200 + поля, кратно модулю 8 */
  --eg-section-y: 112px;
  --eg-display: clamp(40px, 5.4vw, 80px);
  --eg-title-2: clamp(28px, 3.2vw, 48px);
}
@media (max-width: 767px) {
  :root { --eg-gutter: 16px; --eg-section-y: 72px; }
}

/* ---------- Фокус виден везде ---------- */
:focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px !important; }
/* на чёрных полосах рамка фокуса белая: currentColor у белой кнопки был бы чёрным на чёрном */
#twitter-parallax :focus-visible, #newsletter :focus-visible, #quote-parallax :focus-visible,
#contact-parallax :focus-visible, body > footer :focus-visible { outline-color: #ffffff !important; }
/* активный таб портфолио белый на чёрном: рамка снаружи чёрная, иначе пропадёт на белом поле */
#new_case ul.tabs.main_tabs > li.tab-active > a:focus-visible { outline-color: var(--eg-ink) !important; }

/* ==========================================================================
   Общая рамка секций ниже второго экрана
   ========================================================================== */
#we-are-good-at, #services, #clients, #we-love-technology, #new_case, #contact,
#newsletter, #twitter-parallax, #quote-parallax, #contact-parallax, body > footer {
  font-family: var(--eg-font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#we-are-good-at, #services, #we-love-technology, #new_case, #contact { background: var(--eg-paper); }
#clients { background: var(--eg-paper-2); }

#we-are-good-at > .container, #services > .container, #clients > .container,
#we-love-technology > .container, #contact > .container,
#new_case > .container, #new_case > .container.portfolio-title,
#newsletter > .container, #twitter-parallax .container, #quote-parallax .container,
#contact-parallax .container, body > footer > .container {
  width: auto !important;
  max-width: var(--eg-max);
  margin: 0 auto;
  padding: var(--eg-section-y) var(--eg-gutter);
  box-sizing: border-box;
  float: none;
}
#we-are-good-at *, #services *, #clients *, #we-love-technology *, #new_case *, #contact-parallax *,
#newsletter *, #twitter-parallax *, #quote-parallax *, body > footer * { box-sizing: border-box; }

/* Заголовок секции: тонкая линия сверху, заглавный гротеск Heavy слева */
#we-are-good-at .section-title, #services .section-title, #clients .section-title,
#we-love-technology .section-title, #new_case .section-title, #contact .section-title {
  width: auto;
  margin: 0 0 56px;
  padding-top: 24px;
  border-top: 1px solid var(--eg-line);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--eg-gutter);
  align-items: end;
}
#we-are-good-at .section-title h1, #services .section-title h1, #clients .section-title h1,
#we-love-technology .section-title h1, #new_case .section-title h1, #contact .section-title h1 {
  grid-column: 1;
  margin: 0;
  font-family: var(--eg-font);
  font-weight: 900;
  font-size: var(--eg-display);
  line-height: .94;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--eg-text);
  text-wrap: balance;
}
#we-are-good-at .section-title .border, #services .section-title .border, #clients .section-title .border,
#we-love-technology .section-title .border, #new_case .section-title .border, #contact .section-title .border { display: none; }
#we-are-good-at .section-title p, #services .section-title p, #clients .section-title p,
#we-love-technology .section-title p, #new_case .section-title p, #contact .section-title p {
  grid-column: 2;
  margin: 0;
  font-family: var(--eg-font);
  font-weight: 200;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.35;
  color: var(--eg-text);
  max-width: 34ch;
  text-wrap: pretty;
}
#contact .section-title p:empty { display: none; }
@media (max-width: 900px) {
  #we-are-good-at .section-title, #services .section-title, #clients .section-title,
  #we-love-technology .section-title, #new_case .section-title, #contact .section-title {
    grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-bottom: 40px;
  }
  #we-are-good-at .section-title p, #services .section-title p, #clients .section-title p,
  #we-love-technology .section-title p, #new_case .section-title p, #contact .section-title p { grid-column: 1; font-weight: 300; }
}

/* ==========================================================================
   Шапка-навигация
   ========================================================================== */
#navigation { font-family: var(--eg-font); font-synthesis: none; }
#navigation .navbar-inner {
  background: var(--eg-paper);
  border-bottom: 0 !important;
  box-shadow: inset 0 -1px 0 var(--eg-line) !important;
  min-height: 45px;
}
#navigation #logo { height: 45px; width: auto; top: 0; display: flex; align-items: center; margin-left: -40px; }
#navigation #logo a { position: static; width: auto; height: auto; display: inline-flex; align-items: center; }
#navigation #logo img { width: auto !important; height: 30px; display: block; }
#navigation .navbar .nav, #navigation .nav { margin: 0; }
#navigation .nav > li { vertical-align: top; }   /* без зазора строки: шапка ровно 45 px, как была */
#navigation .nav > li > a,
#navigation .nav > li > a.b24-web-form-popup-btn-18 {
  font-family: var(--eg-font) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--eg-text) !important;
  line-height: 45px !important;
  padding: 0 12px !important;
  height: 45px;
  box-shadow: none;
}
#navigation .nav > li > a:hover,
#navigation .nav > .active > a, #navigation .nav > .active > a:hover, #navigation .nav > .active > a:focus {
  color: var(--eg-text) !important;
  box-shadow: inset 0 -3px 0 var(--eg-ink) !important;
  background: none !important;
}
#navigation .nav > li.menu-7 > a.b24-web-form-popup-btn-18 {
  height: 31px; line-height: 29px !important; margin: 7px 4px 0 8px;
  border: 1px solid var(--eg-ink); padding: 0 14px !important;
}
#navigation .nav > li.menu-7 > a.b24-web-form-popup-btn-18:hover { background: var(--eg-ink) !important; color: var(--eg-on-ink) !important; box-shadow: none !important; }
#navigation .nav > li.phone_top > a.b24-web-form-popup-btn-18 {
  font-weight: 900 !important; font-size: 17px !important; letter-spacing: 0; text-transform: none;
}
#navigation .phone_top_min, #navigation .phone_top_min a {
  font-family: var(--eg-font); font-weight: 900; color: var(--eg-text); text-transform: none;
}
@media only screen and (max-width: 1024px) {
  #navigation #logo { left: 16px; margin-left: 0; }
  #navigation .navbar-inner { min-height: 45px !important; }
  #navigation .phone_top_min { padding: 0 !important; line-height: 44px; top: 0; font-size: 17px; font-weight: 700; right: 120px; }
  #navigation .feedback_min { opacity: 1; }
  #navigation .show-menu { opacity: 1; }
  #navigation .nav-collapse { background: var(--eg-paper); padding: 0 16px; }
  #navigation .nav-collapse.in { box-shadow: inset 0 1px 0 var(--eg-line); }
  #navigation .nav-collapse .nav > li { border-bottom: 1px solid rgba(10,10,10,.16); }
  #navigation .nav-collapse .nav > li > a { line-height: 48px !important; height: 48px; padding: 0 !important; font-size: 14px !important; }
  #navigation .nav > .active > a { box-shadow: none !important; }
}
@media only screen and (max-width: 479px) {
  #navigation #logo img { height: 26px; }
  #navigation .phone_top_min { font-size: 14px; right: 112px; }
}

/* ==========================================================================
   Компетенции: зонтичная ячейка группы и шесть направлений
   ========================================================================== */
#we-are-good-at .eg-comp {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(188px, auto);
  border-top: 1px solid var(--eg-line);
  border-left: 1px solid var(--eg-line);
}
#we-are-good-at .eg-comp__item {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--eg-line);
  border-bottom: 1px solid var(--eg-line);
  background: var(--eg-paper);
  margin: 0; float: none; width: auto; text-align: left;
}
#we-are-good-at .eg-comp__item p {
  margin: 0;
  font-family: var(--eg-font); font-weight: 700; font-size: 18px; line-height: 1.25;
  color: var(--eg-text); text-transform: none;
}
#we-are-good-at .eg-comp__item img { display: block; height: auto; width: auto; max-width: 100%; max-height: 44px; }
#we-are-good-at .eg-comp__item a { display: inline-block; }
#we-are-good-at .eg-comp__item--lead {
  grid-row: span 2;
  background: var(--eg-ink);
}
#we-are-good-at .eg-comp__item--lead p { color: var(--eg-on-ink); font-weight: 900; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
#we-are-good-at .eg-comp__item--lead img { max-height: none; width: 100%; max-width: 240px; }
@media (max-width: 1024px) {
  #we-are-good-at .eg-comp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #we-are-good-at .eg-comp__item--lead { grid-row: auto; grid-column: span 2; min-height: 220px; }
}
@media (max-width: 479px) {
  #we-are-good-at .eg-comp { grid-auto-rows: minmax(156px, auto); }
  #we-are-good-at .eg-comp__item { padding: 16px; }
  #we-are-good-at .eg-comp__item p { font-size: 16px; }
  #we-are-good-at .eg-comp__item img { max-height: 36px; }
}

/* ==========================================================================
   Чёрные полосы: лента блога, цитата, телефон. Фото чёрно-белые под чёрной вуалью
   ========================================================================== */
#twitter-parallax, #quote-parallax, #contact-parallax {
  background-color: var(--eg-ink) !important;
  background-blend-mode: luminosity;
  text-align: left;
  color: var(--eg-on-ink);
}
#twitter-parallax .parallax-overlay, #quote-parallax .parallax-overlay, #contact-parallax .parallax-overlay {
  background-color: rgba(10,10,10,.9) !important;
}

/* Лента блога: дата меткой, заголовок статьи крупным светлым начертанием */
#twitter-parallax .container { padding-bottom: 48px; }
#twitter-parallax .blog-feed {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 32px; align-items: start;
  border-top: 1px solid var(--eg-line-on-ink); padding-top: 24px;
}
#twitter-parallax .blog-feed > a { display: inline-block; width: 48px; height: 48px; }
#twitter-parallax .blog-feed > a img { width: 48px !important; height: 48px; display: block; opacity: 1; }
#twitter-parallax .blog-feed .bx-wrapper { margin: 0 !important; max-width: none !important; position: relative; }
#twitter-parallax .blog-feed .bx-wrapper .bx-viewport { box-shadow: none; border: 0; left: 0; background: transparent; }
#twitter-parallax .blog-feed-slider li, #twitter-parallax .blog-feed li { text-align: left; padding-right: 128px; }
#twitter-parallax .blog-feed time {
  display: block; padding: 0 0 16px; opacity: 1;
  font-family: var(--eg-font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eg-on-ink-2);
}
#twitter-parallax .blog-feed li a, #twitter-parallax .blog-feed li a:visited {
  display: block;
  font-family: var(--eg-font) !important; font-weight: 200 !important; font-size: clamp(26px, 3vw, 44px) !important;
  line-height: 1.12; color: var(--eg-on-ink) !important; text-wrap: balance;
}
#twitter-parallax .blog-feed li a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* стрелки слайдера: квадраты в тонкую линию */
#twitter-parallax .blog-feed .bx-wrapper .bx-controls-direction a {
  top: 0 !important; margin: 0 !important; width: 48px !important; height: 48px !important;
  background: none !important; border: 1px solid var(--eg-line-on-ink); opacity: 1 !important; z-index: 2;
}
#twitter-parallax .blog-feed .bx-wrapper .bx-prev { left: auto !important; right: 56px !important; }
#twitter-parallax .blog-feed .bx-wrapper .bx-next { right: 0 !important; }
#twitter-parallax .blog-feed .bx-wrapper .bx-controls-direction a::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border-top: 2px solid var(--eg-on-ink); border-right: 2px solid var(--eg-on-ink);
}
#twitter-parallax .blog-feed .bx-wrapper .bx-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
#twitter-parallax .blog-feed .bx-wrapper .bx-next::before { transform: translate(-70%, -50%) rotate(45deg); }
#twitter-parallax .blog-feed .bx-wrapper .bx-controls-direction a:hover { background: var(--eg-on-ink) !important; }
#twitter-parallax .blog-feed .bx-wrapper .bx-controls-direction a:hover::before { border-color: var(--eg-ink); }
@media (max-width: 767px) {
  #twitter-parallax .blog-feed { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  #twitter-parallax .blog-feed-slider li, #twitter-parallax .blog-feed li { padding-right: 0; padding-bottom: 64px; }
  #twitter-parallax .blog-feed .bx-wrapper .bx-controls-direction a { top: auto !important; bottom: 0; }
  #twitter-parallax .blog-feed .bx-wrapper .bx-prev { right: auto !important; left: 0 !important; }
  #twitter-parallax .blog-feed .bx-wrapper .bx-next { right: auto !important; left: 56px !important; }
}

/* Подписка: продолжение чёрной полосы, поле и кнопка без скруглений */
#newsletter { background: var(--eg-ink); }
#newsletter > .container { padding-top: 0; padding-bottom: 72px; }
#newsletter form.es {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0;
  border-top: 1px solid var(--eg-line-on-ink); padding-top: 24px;
}
#newsletter .newsletter-left, #newsletter .newsletter-right { width: auto; float: none; height: auto; text-align: left; }
#newsletter input[type="text"] {
  width: 100%; height: 56px; margin: 0; padding: 0 16px;
  background: transparent; border: 1px solid var(--eg-on-ink); border-right: 0; border-radius: 0;
  font-family: var(--eg-font); font-weight: 400; font-size: 18px; line-height: 54px;
  color: var(--eg-on-ink); text-transform: none; box-shadow: none;
}
#newsletter .es_sub {
  height: 56px; margin: 0; padding: 0 32px; border: 1px solid var(--eg-on-ink); border-radius: 0;
  background: var(--eg-on-ink); color: var(--eg-ink);
  font-family: var(--eg-font); font-weight: 900; font-size: 13px; letter-spacing: .1em; line-height: 54px !important;
  text-transform: uppercase; cursor: pointer;
}
#newsletter .es_sub:hover { background: var(--eg-ink); color: var(--eg-on-ink); }
@media (max-width: 479px) {
  #newsletter form.es { grid-template-columns: minmax(0, 1fr); }
  #newsletter input[type="text"] { border-right: 1px solid var(--eg-on-ink); }
  #newsletter .es_sub { width: 100%; border-top: 0; }
}

/* ==========================================================================
   Услуги: сетка 2 × 3, иконка на квадратной основе, тексты прежние
   ========================================================================== */
#services .eg-svc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;          /* левая колонка 1-2-3, правая 4-5-6, как было */
  border-top: 1px solid var(--eg-line);
  border-left: 1px solid var(--eg-line);
}
#services .eg-svc__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; row-gap: 12px;
  align-content: start;
  padding: 32px;
  border-right: 1px solid var(--eg-line);
  border-bottom: 1px solid var(--eg-line);
}
#services .eg-svc__icon { grid-row: span 2; width: 48px; height: 48px; display: block; }
#services .eg-svc__item h5 {
  margin: 0; font-family: var(--eg-font); font-weight: 800; font-size: 24px; line-height: 1.1;
  letter-spacing: 0; color: var(--eg-text); text-wrap: balance;
}
#services .eg-svc__item p {
  margin: 0; font-family: var(--eg-font); font-weight: 400; font-size: 16px; line-height: 1.5;
  color: var(--eg-text-2); max-width: 52ch; padding: 0;
}
@media (max-width: 900px) {
  #services .eg-svc { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 479px) {
  #services .eg-svc__item { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  #services .eg-svc__icon { grid-row: auto; }
}

/* Цепочка задач: тонкая линия, квадратные узлы, подписи сверху и снизу через одну, как было */
#services .eg-tasks {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative; min-height: 168px;
}
#services .eg-tasks::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--eg-line);
}
#services .eg-tasks__item {
  position: relative; height: 168px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: var(--eg-font); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--eg-text);
  padding: 0 8px; text-wrap: balance;
}
#services .eg-tasks__item::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px;
  transform: translate(-50%, -50%); background: var(--eg-ink);
}
/* подпись под линией у нечётных, над линией у чётных, как на прежней картинке */
#services .eg-tasks__item:nth-child(odd)  { justify-content: flex-start; padding-top: 108px; }
#services .eg-tasks__item:nth-child(even) { justify-content: flex-end; padding-bottom: 108px; }
@media (max-width: 767px) {
  #services .eg-tasks { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 48px; }
  #services .eg-tasks::before { left: 7px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 1px solid var(--eg-line); }
  #services .eg-tasks__item, #services .eg-tasks__item:nth-child(odd), #services .eg-tasks__item:nth-child(even) {
    height: auto; display: block; text-align: left; padding: 12px 0 12px 40px;
  }
  #services .eg-tasks__item::before { left: 8px; top: 50%; }
}

/* ==========================================================================
   Клиенты: прежние лидеры и проекты группы, всё в одном цвете
   ========================================================================== */
#clients .clients { margin: 0; padding: 0; }
#clients .eg-clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--eg-line); border-left: 1px solid var(--eg-line);
}
#clients .eg-clients__item {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 32px 24px 24px; min-height: 248px;
  border-right: 1px solid var(--eg-line); border-bottom: 1px solid var(--eg-line);
  background: var(--eg-paper); text-align: left;
}
#clients .eg-clients__logo { display: flex; align-items: center; justify-content: center; height: 128px; }
#clients .eg-clients__item img { display: block; width: auto; height: auto; max-width: 72%; max-height: 112px; margin: 0 auto; }
#clients .eg-clients__item p {
  margin: 0; font-family: var(--eg-font); font-weight: 400; font-size: 16px; line-height: 1.35; color: var(--eg-text-2);
}
#clients .eg-group {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-left: 1px solid var(--eg-line);
}
#clients .eg-group__item { border-right: 1px solid var(--eg-line); border-bottom: 1px solid var(--eg-line); background: var(--eg-paper); }
#clients .eg-group__item a {
  display: flex; align-items: center; justify-content: center; height: 128px; padding: 20px;
  transition: background-color .2s ease;
}
#clients .eg-group__logo { display: block; width: auto; height: auto; max-width: 100%; transition: filter .2s ease; }
/* оптическое выравнивание: знак плюс слово против одного слова */
#clients .eg-group__logo--verika { max-height: 40px; }
#clients .eg-group__logo--brandita { max-height: 44px; }
#clients .eg-group__logo--opter { max-height: 28px; }
#clients .eg-group__logo--revenuestory { max-height: 20px; }
#clients .eg-group__logo--advans { max-height: 34px; }
#clients .eg-group__logo--rejisser { max-height: 28px; }
#clients .eg-group__item a:hover, #clients .eg-group__item a:focus-visible { background: var(--eg-ink); }
#clients .eg-group__item a:hover .eg-group__logo, #clients .eg-group__item a:focus-visible .eg-group__logo { filter: invert(1); }
#clients .eg-group__item a:focus-visible { outline-offset: -4px !important; outline-color: var(--eg-on-ink) !important; }
#clients .eg-clients__more {
  margin: 56px 0 0; padding: 0; max-width: 20em;
  font-family: var(--eg-font); font-weight: 900; font-size: var(--eg-title-2); line-height: 1.02;
  letter-spacing: -.005em; text-transform: uppercase; text-align: left; color: var(--eg-text); text-wrap: balance;
}
@media (max-width: 1024px) {
  #clients .eg-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clients .eg-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  #clients .eg-clients__item { min-height: 200px; padding: 20px 16px 16px; }
  #clients .eg-clients__logo { height: 96px; }
  #clients .eg-clients__item img { max-height: 84px; }
  #clients .eg-clients__item p { font-size: 14px; }
  #clients .eg-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clients .eg-group__item a { height: 104px; padding: 16px; }
}

/* ==========================================================================
   Технологии: три собственных сервиса
   ========================================================================== */
#we-love-technology .section-title p { max-width: 40ch; }
#we-love-technology .eg-tech {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--eg-line); border-left: 1px solid var(--eg-line);
}
#we-love-technology .eg-tech__item {
  display: flex; flex-direction: column; gap: 32px; padding: 32px 24px;
  border-right: 1px solid var(--eg-line); border-bottom: 1px solid var(--eg-line); text-align: left;
}
#we-love-technology .eg-tech__item a { display: inline-flex; align-items: center; height: 64px; align-self: flex-start; }
#we-love-technology .eg-tech__item img { display: block; width: auto; height: auto; max-height: 56px; max-width: 100%; }
#we-love-technology .eg-tech__item p {
  margin: 0; font-family: var(--eg-font); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--eg-text-2);
}
@media (max-width: 900px) {
  #we-love-technology .eg-tech { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Цитата: тонкое начертание крупно на чёрном, без картинок кавычек
   ========================================================================== */
#quote-parallax .container.quote { padding-top: var(--eg-section-y); padding-bottom: var(--eg-section-y); }
#quote-parallax .quote h1 {
  margin: 0; padding: 32px 0 0; border-top: 1px solid var(--eg-line-on-ink);
  font-family: var(--eg-font); font-weight: 200; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.14;
  letter-spacing: 0; text-transform: none; color: var(--eg-on-ink); max-width: 24em; text-wrap: balance;
}
#quote-parallax .quote h1 .quote-img { display: none; }
#quote-parallax .quote h1::before { content: "«"; }
#quote-parallax .quote h1::after { content: "»"; }
#quote-parallax .quote p {
  margin: 32px 0 0; opacity: 1;
  font-family: var(--eg-font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eg-on-ink-2);
}

/* ==========================================================================
   Портфолио: список кейсов слева, задачи, решение и крупные числа результата
   ========================================================================== */
#new_case .wrap {
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); column-gap: 48px; align-items: start;
}
#new_case .wrap > .clear { display: none; }
#new_case ul.tabs.main_tabs {
  float: none; width: auto; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--eg-line);
}
#new_case ul.tabs.main_tabs { overflow: visible; }
#new_case ul.tabs.main_tabs > li { float: none; display: block; width: auto; margin: 0; text-align: left; border-bottom: 1px solid var(--eg-line); }
#new_case .tab_container { padding: 0; background: transparent; }
#new_case ul.tabs.main_tabs > li > a {
  display: block; width: auto; height: auto; margin: 0; padding: 16px 16px 16px 0;
  border: 0; border-radius: 0; color: var(--eg-text); background: none;
  transition: background-color .2s ease, color .2s ease, padding .2s ease;
}
#new_case ul.tabs.main_tabs > li > a span { display: block; font-family: var(--eg-font); font-weight: 400; font-size: 18px; line-height: 1.2; }
#new_case ul.tabs.main_tabs > li > a span em {
  display: block; margin-bottom: 4px; font-style: normal;
  font-family: var(--eg-font); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
}
#new_case ul.tabs.main_tabs > li > a b, #new_case ul.tabs.main_tabs > li.tab-active > a b {
  font-family: var(--eg-font); font-weight: 900; color: inherit;
}
#new_case ul.tabs.main_tabs > li > a:hover { background: var(--eg-paper-2); padding-left: 12px; }
#new_case ul.tabs.main_tabs > li.tab-active > a { background: var(--eg-ink); color: var(--eg-on-ink); padding-left: 16px; }
#new_case ul.tabs.main_tabs > li.tab-active > a:hover { background: var(--eg-ink); }

#new_case .tabs_cntnt { float: none; width: auto !important; }
#new_case .tabs_cntnt > .tab_container > span,
#new_case .alternative-content > span {
  display: block; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--eg-line);
  font-family: var(--eg-font); font-weight: 900; font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
  color: var(--eg-text);
}
#new_case .tabs_cntnt ul, #new_case .alternative-content ul { margin: 0 0 48px; padding: 0; list-style: none; }
#new_case .tabs_cntnt ul li, #new_case .alternative-content ul li {
  position: relative; margin: 0 0 12px; padding: 0 0 0 24px; background: none; overflow: visible;
  font-family: var(--eg-font); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--eg-text);
  text-align: left;
}
/* квадрат как основа маркеров списка */
#new_case .tabs_cntnt ul li::before, #new_case .alternative-content ul li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--eg-ink);
}
#new_case .tabs_cntnt ul li.noimg, #new_case .alternative-content ul li.noimg { padding-left: 0; }
#new_case .tabs_cntnt ul li.noimg::before, #new_case .alternative-content ul li.noimg::before { display: none; }
#new_case .tabs_cntnt ul li:empty, #new_case .alternative-content ul li:empty { display: none; }
#new_case .tabs_cntnt li br, #new_case .alternative-content li br { display: none; }
#new_case .tabs_cntnt li b, #new_case .alternative-content li b { font-family: var(--eg-font); font-weight: 800; color: var(--eg-text); }
/* строки результата: подпись слева, число крупно справа */
#new_case .tabs_cntnt ul li:has(> div), #new_case .alternative-content ul li:has(> div) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 44%); column-gap: 24px; align-items: baseline;
  margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(10,10,10,.16);
}
#new_case .tabs_cntnt ul li:has(> div)::before, #new_case .alternative-content ul li:has(> div)::before { display: none; }
#new_case .tabs_cntnt li div, #new_case .alternative-content li div { width: auto !important; float: none; color: var(--eg-text-2); }
#new_case .tabs_cntnt li em, #new_case .alternative-content li em {
  float: none; width: auto; display: inline; font-style: normal;
  font-family: var(--eg-font); font-weight: 900; color: var(--eg-text);
}
#new_case .tabs_cntnt li:has(> div) > em, #new_case .alternative-content li:has(> div) > em {
  display: block; font-size: 24px; line-height: 1.1; text-wrap: balance;
}
@media (max-width: 1024px) {
  #new_case .wrap { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); column-gap: 32px; }
}
@media only screen and (max-width: 767px) {
  #new_case > .container { width: auto !important; }
  #new_case .wrap { display: block; }
  #new_case ul.tabs.main_tabs { width: 100% !important; }
  #new_case ul.tabs.main_tabs > li > a { width: auto !important; }
  #new_case .tabs_cntnt { display: none; }
  #new_case .tab-active + .alternative-content { display: block; padding: 24px 0 8px; }
  #new_case .tabs_cntnt ul li, #new_case .alternative-content ul li { margin-left: 0 !important; }
  #new_case .tabs_cntnt ul li:has(> div), #new_case .alternative-content ul li:has(> div) { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}

/* ==========================================================================
   Телефон: номер крупно, почта и адрес в две ячейки
   ========================================================================== */
#contact-parallax .contact-details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--eg-gutter);
  text-align: left; border-top: 1px solid var(--eg-line-on-ink);
}
#contact-parallax .phone-icon { grid-column: 1 / -1; width: 48px; height: 48px; margin: 32px 0 24px; }
#contact-parallax .phone-icon img, #contact-parallax .eg-contact-icon { width: 40px; height: 40px; display: block; filter: invert(1); }
#contact-parallax .company-phone { grid-column: 1 / -1; padding-bottom: 40px; }
#contact-parallax .company-phone a {
  display: inline-block; margin: 0; padding: 0; border-radius: 0; background: none;
  font-family: var(--eg-font); font-weight: 900; font-size: clamp(40px, 7.4vw, 112px); line-height: .95;
  letter-spacing: -.01em; color: var(--eg-on-ink); white-space: nowrap;
}
#contact-parallax .eg-contact-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; align-items: center;
  padding: 24px 0 0; border-top: 1px solid var(--eg-line-on-ink);
}
#contact-parallax h5.company-email, #contact-parallax h5.company-address {
  margin: 0; font-family: var(--eg-font); font-weight: 400; font-size: 18px; line-height: 1.35;
  text-transform: none; color: var(--eg-on-ink);
}
#contact-parallax h5.company-email a { color: var(--eg-on-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
#contact-parallax h5.company-email a:hover { text-decoration-thickness: 2px; }
@media (max-width: 767px) {
  #contact-parallax .contact-details { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  #contact-parallax .company-phone a { font-size: clamp(34px, 10.4vw, 64px); }
  #contact-parallax .company-phone { padding-bottom: 16px; }
}

/* ==========================================================================
   Контакты и карта: карта в одном цвете, как фото канона
   ========================================================================== */
#contact > .container { padding-bottom: 48px; }
#contact #contact-formular { text-align: left !important; }
#contact > :not(.container):not(script) { filter: grayscale(1); border-top: 1px solid var(--eg-line); }

/* ==========================================================================
   Подвал: настоящий чёрный
   ========================================================================== */
body > footer {
  background: var(--eg-ink) !important; color: var(--eg-on-ink); box-shadow: none; padding: 0; text-align: left;
}
body > footer > .container {
  padding: 40px var(--eg-gutter) !important;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative;
}
body > footer ul.socials-icons { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
body > footer ul.socials-icons li { margin: 0; float: none; display: block; width: auto; height: auto; }
body > footer > .container::before, body > footer > .container::after { display: none; }   /* clearfix Bootstrap становился лишним флекс-элементом */
body > footer > .container > #back-top { position: absolute; top: 0; right: 0; width: 0; height: 0; }
body > footer ul.socials-icons li a { display: block; width: 44px; height: 44px; opacity: 1; }
body > footer ul.socials-icons li a img { width: 44px; height: 44px; display: block; filter: invert(1); opacity: 1; }
body > footer ul.socials-icons li a:hover img { opacity: .7; }
body > footer .copyright {
  margin: 0; font-family: var(--eg-font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eg-on-ink-2);
}
body > footer #menu_top {
  border-radius: 0; background: var(--eg-ink); width: 48px; height: 48px; margin: 0; left: auto; right: var(--eg-gutter); top: -48px;
}
body > footer #menu_top_inside { filter: invert(1); left: 15px; top: 18px; }

/* ==========================================================================
   Движение: только по желанию посетителя
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #clients .eg-group__item a, #clients .eg-group__logo, #new_case ul.tabs.main_tabs > li > a { transition: none; }
  /* лента блога без автосмены: те же четыре записи из PHP списком, слайдер под ним продолжает
     работать, но его прозрачность и скрытие перекрыты (WCAG 2.2.2, движение по желанию) */
  #twitter-parallax .blog-feed .bx-viewport { height: auto !important; }
  #twitter-parallax .blog-feed-slider { width: auto !important; }
  #twitter-parallax .blog-feed-slider li {
    position: static !important; display: block !important; opacity: 1 !important; float: none !important;
    width: auto !important; z-index: auto !important; padding: 20px 0 !important; margin: 0 !important;
    border-top: 1px solid var(--eg-line-on-ink);
  }
  #twitter-parallax .blog-feed-slider li:first-child { border-top: 0; padding-top: 0 !important; }
  #twitter-parallax .blog-feed .bx-controls { display: none; }
  #twitter-parallax .blog-feed li a { font-size: clamp(22px, 2.2vw, 30px) !important; }
}


/* 2: второй экран сохранён, только серый текст темнее: #999 на #f5f5f5 давал 2,61:1, #666 даёт 5,3:1 */
#we-are-newave .section-title p { color: #666; }
/* 1: подпись над рядом проектов группы */
#clients .eg-group__title {
  margin: 56px 0 16px; padding: 0;
  font-family: var(--eg-font); font-weight: 700; font-size: 20px; line-height: 1.2;
  text-transform: none; letter-spacing: 0; text-align: left; color: var(--eg-text);
}
/* 4: новый знак Оптер в компетенциях, по высоте как соседние словесные знаки */
#we-are-good-at .eg-comp__item img.eg-comp__logo--opter { max-height: 30px; }
@media (max-width: 479px) {
  #clients .eg-group__title { margin-top: 40px; font-size: 18px; }
  #we-are-good-at .eg-comp__item img.eg-comp__logo--opter { max-height: 24px; }
}


/* P2-3: фото с чужим водяным знаком снято, полоса ленты настоящая чёрная */
#twitter-parallax { background-image: none !important; background-color: var(--eg-ink) !important; }
/* P2-4: лента блога всегда списком, без автосмены и наложения заголовков */
#twitter-parallax .blog-feed-slider { width: auto !important; margin: 0; padding: 0; list-style: none; }
#twitter-parallax .blog-feed-slider li {
  position: static !important; display: block !important; opacity: 1 !important; float: none !important;
  width: auto !important; padding: 20px 0 !important; margin: 0 !important;
  border-top: 1px solid var(--eg-line-on-ink);
}
#twitter-parallax .blog-feed-slider li:first-child { border-top: 0; padding-top: 0 !important; }
#twitter-parallax .blog-feed li a { font-size: clamp(22px, 2.2vw, 30px) !important; }
/* P2-6: заголовок «Контакты» стоит в полосе с телефоном, куда ведёт пункт меню */
#contact-parallax .section-title.eg-title-on-ink {
  width: auto; margin: 0 0 48px; padding-top: 24px; border-top: 1px solid var(--eg-line-on-ink); text-align: left;
}
#contact-parallax .section-title.eg-title-on-ink h1 {
  margin: 0; font-family: var(--eg-font); font-weight: 900; font-size: var(--eg-display); line-height: .94;
  letter-spacing: -.005em; text-transform: uppercase; color: var(--eg-on-ink);
}
/* P2-7: услуги в регистре предложения, без длинного капса */
#services .eg-svc__item h5 { text-transform: none; font-size: 22px; line-height: 1.18; }
@media (max-width: 479px) { #services .eg-svc__item h5 { font-size: 19px; } }
/* P2-12: подсказка в поле подписки, а не значение */
#newsletter input[type="email"] {
  height: 56px; width: 100%; margin: 0; padding: 0 16px; background: transparent;
  border: 1px solid var(--eg-on-ink); border-right: 0; border-radius: 0;
  font-family: var(--eg-font); font-weight: 400; font-size: 18px; line-height: 54px; color: var(--eg-on-ink); box-shadow: none;
}
#newsletter input[type="email"]::placeholder { color: var(--eg-on-ink-2); opacity: 1; }
@media (max-width: 479px) { #newsletter input[type="email"] { border-right: 1px solid var(--eg-on-ink); } }
/* заголовок контактов переехал в полосу с телефоном: пустой контейнер над картой без отступов */
#contact > .container { padding-top: 0 !important; padding-bottom: 0 !important; }


#contact .eg-map { margin: 0; padding: 0; }
#contact .eg-map__frame { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }
#contact .eg-map__link {
  max-width: var(--eg-max); margin: 0 auto; padding: 20px var(--eg-gutter) 40px; box-sizing: border-box;
  font-family: var(--eg-font); font-weight: 700; font-size: 16px; line-height: 1.4;
}
#contact .eg-map__link a { color: var(--eg-text); text-decoration: underline; text-underline-offset: 3px; }
#contact .eg-map__link a:hover { text-decoration-thickness: 2px; }
#twitter-parallax .eg-feed__title {
  margin: 0 0 32px; padding: 0; font-family: var(--eg-font); font-weight: 900;
  font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.005em; text-transform: uppercase;
  color: var(--eg-on-ink); text-align: left;
}
@media (max-width: 479px) {
  #contact .eg-map__frame { height: 320px; }
  #contact .eg-map__link { padding: 16px var(--eg-gutter) 32px; }
}
#twitter-parallax .eg-feed__title { grid-column: 1 / -1; }

/* ==========================================================================
   Логотипы цветные, проекты группы в компетенциях, лента и подписка на светлом
   ========================================================================== */
/* компетенции: 12 ячеек ровно в три ряда по четыре, ведущая ячейка без растяжки */
#we-are-good-at .eg-comp__item--lead { grid-row: auto; }
#we-are-good-at .eg-comp__item a { display: inline-block; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--opter { max-height: 34px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--verika { max-height: 40px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--brandita { max-height: 48px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--revenuestory { max-height: 22px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--advans { max-height: 36px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--rejisser { max-height: 30px; }
@media (max-width: 1024px) {
  #we-are-good-at .eg-comp__item:last-child:nth-child(even) { grid-column: span 2; }
}
/* лента блога и подписка на светлой подложке */
#twitter-parallax, #newsletter { background: var(--eg-paper-2) !important; background-image: none !important; color: var(--eg-text); }
#twitter-parallax .parallax-overlay { background-color: transparent !important; }
#twitter-parallax .eg-feed__title { color: var(--eg-text); }
#twitter-parallax .blog-feed { border-top-color: var(--eg-line); }
#twitter-parallax .blog-feed time { color: var(--eg-text-2); }
#twitter-parallax .blog-feed li a, #twitter-parallax .blog-feed li a:visited { color: var(--eg-text) !important; }
#twitter-parallax .blog-feed-slider li { border-top-color: rgba(10,10,10,.18); }
#twitter-parallax .blog-feed > a img { filter: invert(1); }
#twitter-parallax :focus-visible, #newsletter :focus-visible { outline-color: var(--eg-ink) !important; }
#newsletter > .container { border-top-color: var(--eg-line); }
#newsletter input[type="email"] { border-color: var(--eg-ink); color: var(--eg-text); background: var(--eg-paper); }
#newsletter input[type="email"]::placeholder { color: var(--eg-text-2); }
#newsletter .es_sub { background: var(--eg-ink); color: var(--eg-on-ink); border-color: var(--eg-ink); }
#newsletter .es_sub:hover { background: var(--eg-paper); color: var(--eg-ink); }

/* OPT320827: логотипы компетенций без искажения пропорций.
   Ячейка это колонка flex, и знак без ссылки-обёртки растягивался на всю ширину при высоте,
   зажатой max-height: Оптер и Пресс-релизы выходили шире своих пропорций в 2-4 раза.
   Теперь знак не тянется по ширине, а высота каждого подобрана так, чтобы знаки выглядели
   одного веса: площадь примерно поровну, плотные чёрные знаки чуть меньше. Ширину режет
   только max-width, а он при width и height auto пропорций не ломает. */
#we-are-good-at .eg-comp__item > img, #we-are-good-at .eg-comp__item > a { align-self: flex-start; }
#we-are-good-at .eg-comp__item img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
#we-are-good-at .eg-comp__item img[class*="eg-comp__logo--"] { max-height: var(--eg-logo-h); }
#we-are-good-at .eg-comp__item img.eg-comp__logo--optimism { --eg-logo-h: 35px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--sitereport { --eg-logo-h: 44px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--blogun { --eg-logo-h: 35px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--greenpr { --eg-logo-h: 47px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--press { --eg-logo-h: 60px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--opter { --eg-logo-h: 35px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--verika { --eg-logo-h: 48px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--brandita { --eg-logo-h: 48px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--revenuestory { --eg-logo-h: 23px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--advans { --eg-logo-h: 39px; }
#we-are-good-at .eg-comp__item img.eg-comp__logo--rejisser { --eg-logo-h: 32px; }
#we-are-good-at .eg-comp__item--lead img { width: 100%; max-width: 240px; max-height: none; }
@media (max-width: 479px) {
  #we-are-good-at .eg-comp__item img[class*="eg-comp__logo--"] { max-height: calc(var(--eg-logo-h) * .75); }
  #we-are-good-at .eg-comp__item--lead img { max-width: 200px; max-height: none; }
}

/* OPT320827, слово Романа 14:17: знак Element Group соразмерно остальным логотипам, на телефоне меньше пустоты.
   Замер до правки на ширине 390: между блоками соседних светлых секций 144 px пустого (72 + 72), у «26 лет
   экспертизы» 100 px сверху и снизу, ячейки компетенций и клиентов растянуты минимальной высотой. */
#we-are-good-at .eg-comp__item--lead img { max-width: 160px; }
@media (max-width: 479px) {
  :root { --eg-section-y: 48px; }
  #we-are-newave > .container { padding-top: 48px !important; padding-bottom: 48px !important; }
  #we-are-newave .section-title { margin-bottom: 32px !important; }
  #we-are-good-at .section-title, #services .section-title, #clients .section-title,
  #we-love-technology .section-title, #new_case .section-title, #contact .section-title { margin-bottom: 28px; }
  #we-are-good-at .eg-comp { grid-auto-rows: auto; }
  #we-are-good-at .eg-comp__item { gap: 20px; }
  #we-are-good-at .eg-comp__item--lead { min-height: 0; }
  #we-are-good-at .eg-comp__item--lead img { max-width: 140px; }
  #we-are-good-at .eg-comp__item img[class*="eg-comp__logo--"] { max-height: calc(var(--eg-logo-h) * .9); }
  #twitter-parallax .container { padding-bottom: 32px; }
  #newsletter > .container { padding-bottom: 48px; }
  #clients .eg-clients__item { min-height: 0; }
  #clients .eg-clients__logo { height: 88px; }
  #clients .eg-clients__more { margin-top: 40px; }
}

/* OPT320827, замечание Романа 17:00: «чёрный квадрат без иконки». Стрелка «Наверх» в images/menu_bottom_top_bg.png
   уже белая, а invert(1) из редизайна делал её чёрной на чёрной кнопке. */
body > footer #menu_top_inside { filter: none; }

/* Ссылка на всю ячейку бренда в «Компетенциях» */
#we-are-good-at .eg-comp__item--link { padding: 0; }
#we-are-good-at .eg-comp__item--link > a.eg-comp__link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  flex: 1 1 auto; align-self: stretch; padding: 24px;
  color: inherit; text-decoration: none; transition: background-color .2s ease;
}
#we-are-good-at a.eg-comp__link > img { align-self: flex-start; }
#we-are-good-at a.eg-comp__link:hover { background: var(--eg-paper-2); }
#we-are-good-at a.eg-comp__link:hover p { text-decoration: underline; text-underline-offset: 3px; }
#we-are-good-at a.eg-comp__link:focus-visible { outline: 2px solid var(--eg-ink) !important; outline-offset: -4px; }
@media (max-width: 479px) {
  #we-are-good-at .eg-comp__item--link > a.eg-comp__link { padding: 16px; gap: 20px; }
}
